:root {
  --page: #ffffff;
  --surface: #f4f6f8;
  --surface-strong: #e7edf2;
  --ink: #17191f;
  --ink-muted: #4f5865;
  --ink-soft: #6a7380;
  --accent: #b53b1b;
  --accent-strong: #873015;
  --focus: #0a66c2;
  --border: #d8dee6;
  --shadow: 0 18px 55px rgba(17, 25, 40, 0.16);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: min(100% - 32px, var(--max-width));
  min-height: 64px;
  margin: 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.logo-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(199, 71, 32, 0.12);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-links a,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 74svh;
  overflow: hidden;
  color: #ffffff;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(10, 12, 18, 0.15) 0%, rgba(10, 12, 18, 0.72) 74%),
    linear-gradient(90deg, rgba(10, 12, 18, 0.72) 0%, rgba(10, 12, 18, 0.18) 70%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #20242b url("architectural-skylight-hero-1600.jpg") center / cover no-repeat;
  background-image: image-set(
    url("architectural-skylight-hero-1600.webp") type("image/webp"),
    url("architectural-skylight-hero-1600.jpg") type("image/jpeg")
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ffb199;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link {
  width: fit-content;
  color: #ffffff;
  background: var(--accent);
  box-shadow: var(--shadow);
}

.primary-link:hover {
  color: #ffffff;
  background: var(--accent-strong);
}

.secondary-link {
  width: fit-content;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.secondary-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
}

.answer-section {
  padding: 72px 0;
}

.answer-section {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.content-wrap {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.answer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.answer-list article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.answer-list p {
  margin-bottom: 0;
  color: var(--ink-muted);
}

.answer-list .practice-link {
  margin-top: auto;
  padding-top: 18px;
}

.answer-list p a,
.prose p a,
.site-footer p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal-page {
  padding: 72px 0 88px;
  background: var(--page);
}

.prose {
  max-width: 760px;
}

.prose h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 3rem;
  line-height: 1.08;
}

.prose h2 {
  margin: 44px 0 10px;
  font-size: 1.45rem;
}

.prose p {
  color: var(--ink-muted);
}

.site-footer {
  padding: 48px 0 calc(48px + env(safe-area-inset-bottom));
  color: #dbe2ea;
  background: #17191f;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: #ffb199;
}

.footer-brand {
  color: #ffffff;
  font-weight: 800;
}

.footer-links {
  align-content: start;
  justify-content: end;
}

.footer-links a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
}

.copyright {
  grid-column: 1 / -1;
  color: #aeb8c5;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .hero {
    min-height: 68svh;
  }

  .hero-media {
    background-image: image-set(
      url("architectural-skylight-hero-960.webp") type("image/webp"),
      url("architectural-skylight-hero-960.jpg") type("image/jpeg")
    );
  }

  .hero-content {
    padding: 72px 0 56px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .answer-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .answer-list {
    border-left: 0;
  }

  .answer-list article {
    padding: 22px 0;
    background: transparent;
    border-right: 0;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .site-logo {
    font-size: 0.96rem;
  }

  .hero {
    min-height: 64svh;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2,
  .prose h1 {
    font-size: 1.75rem;
  }

  .hero-summary {
    font-size: 1.05rem;
  }

  .answer-section,
  .legal-page {
    padding-block: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
