:root {
  --bg: #f4eee6;
  --bg-deep: #eadcca;
  --surface: rgba(255, 252, 247, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --ink: #1a1715;
  --muted: rgba(26, 23, 21, 0.7);
  --line: rgba(26, 23, 21, 0.1);
  --accent: #ba6738;
  --shadow: 0 28px 80px rgba(61, 40, 27, 0.1);
  --max-width: 1120px;
  --logo-width: 7.7rem;
  --space-logo-xs: calc(var(--logo-width) * 0.12);
  --space-logo-sm: calc(var(--logo-width) * 0.18);
  --space-logo-md: calc(var(--logo-width) * 0.28);
  --space-logo-lg: calc(var(--logo-width) * 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 24%, rgba(186, 103, 56, 0.12), transparent 24rem),
    radial-gradient(circle at 84% 18%, rgba(63, 79, 70, 0.08), transparent 22rem),
    linear-gradient(180deg, #faf6f0 0%, var(--bg) 58%, var(--bg-deep) 100%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: absolute;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-left {
  top: 3rem;
  left: -10rem;
  background: rgba(186, 103, 56, 0.16);
}

.ambient-right {
  right: -12rem;
  bottom: -6rem;
  background: rgba(63, 79, 70, 0.12);
}

.site-header,
.hero,
.legal-main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-logo-sm);
  padding-bottom: var(--space-logo-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.brand-logo {
  width: var(--logo-width);
  height: auto;
}

.hero {
  flex: 1 0 auto;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: var(--space-logo-md);
  padding: 0 0 var(--space-logo-md);
  text-align: center;
}

.hero-frame {
  width: min(100%, 920px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2rem;
  padding: calc(var(--logo-width) * 0.22);
  background:
    linear-gradient(180deg, var(--surface-strong), rgba(255, 248, 239, 0.8)),
    linear-gradient(135deg, rgba(186, 103, 56, 0.05), transparent 42%, rgba(63, 79, 70, 0.04) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.7fr);
  align-items: start;
  gap: var(--space-logo-md);
  width: 100%;
}

.hero-copy-block,
.hero-aside {
  display: grid;
  text-align: left;
}

.hero-copy-block {
  gap: 0.65rem;
}

.hero-aside {
  align-content: start;
  justify-items: start;
  gap: var(--space-logo-sm);
  max-width: 22rem;
  padding-top: 0.4rem;
}

.eyebrow,
.item-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
.platform-item h2 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: -0.06em;
}

h1 {
  max-width: 9.2ch;
  font-size: clamp(2.85rem, 5vw, calc(var(--logo-width) * 0.56));
  font-weight: 800;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-text,
.item-copy,
.section-tagline,
.story-copy,
.story-note,
.story-list {
  color: var(--muted);
}

.hero-text {
  margin: 0;
  max-width: 26ch;
  font-size: calc(var(--logo-width) * 0.13);
  line-height: 1.62;
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.88rem 1.2rem;
  background: linear-gradient(135deg, #1f1917 0%, #31221c 100%);
  color: #fff9f2;
  box-shadow: 0 18px 38px rgba(40, 25, 18, 0.16);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease;
  justify-self: start;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(40, 25, 18, 0.2);
}

.platform-band {
  width: min(100%, 920px);
  text-align: left;
}

.platform-band {
  display: grid;
  gap: var(--space-logo-sm);
  padding: var(--space-logo-sm) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-head .eyebrow {
  color: var(--muted);
  letter-spacing: 0.1em;
}

.section-tagline {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-logo-sm);
}

.platform-item {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  text-align: left;
}

.platform-item + .platform-item {
  border-left: none;
  padding-left: 0;
}

.platform-item h2 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.08;
}

.item-copy {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.58;
}

.story-copy,
.story-note {
  margin: 0;
  max-width: 42rem;
  font-size: 0.96rem;
  line-height: 1.62;
}

.story-link {
  margin-top: 0.08rem;
}

.story-list {
  margin: 0.12rem 0 0;
  padding: 0;
  list-style: none;
}

.story-list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.56;
}

.site-footer {
  margin-top: auto;
  width: min(calc(100% - 2.5rem), 980px);
  padding: 0.12rem 0 0.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: rgba(26, 23, 21, 0.48);
  font-size: 0.7rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.subpage-main {
  flex: 1 0 auto;
  display: grid;
  align-content: start;
  gap: var(--space-logo-lg);
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
  padding: 0 0 1.6rem;
}

.subpage-main-compact {
  gap: var(--space-logo-md);
}

.subpage-intro {
  width: min(100%, 920px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(18rem, 0.76fr);
  align-items: start;
  column-gap: var(--space-logo-lg);
  row-gap: 0.72rem;
  padding: 0 0 var(--space-logo-sm);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.subpage-intro .eyebrow {
  grid-column: 1 / -1;
}

.subpage-title {
  margin: 0;
  max-width: 14ch;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.95rem, 3vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.subpage-lead,
.subpage-copy {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.64;
}

.subpage-lead {
  max-width: 24rem;
  padding-top: 0.25rem;
}

.subpage-meta-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(26, 23, 21, 0.48);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subpage-heading {
  margin: 0;
  max-width: 15ch;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.editorial-rows {
  display: grid;
  gap: 0;
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: left;
}

.editorial-row {
  display: grid;
  grid-template-columns: minmax(8rem, 10.5rem) minmax(0, 1fr);
  gap: var(--space-logo-lg);
  padding: var(--space-logo-sm) 0;
  border-top: 1px solid var(--line);
}

.editorial-row:first-child {
  padding-top: 0;
  border-top: none;
}

.editorial-label {
  padding-top: 0.12rem;
}

.editorial-body {
  display: grid;
  gap: 0.72rem;
}

.legal-sidehead {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.legal-bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.64;
}

.legal-bullets li + li {
  margin-top: 0.42rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a,
.text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.legal-main {
  flex: 1 0 auto;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.4rem 0 1.8rem;
}

.legal-card {
  width: min(100%, 920px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 2rem;
  padding: 1.4rem;
  background:
    linear-gradient(180deg, var(--surface-strong), rgba(255, 248, 239, 0.74)),
    linear-gradient(135deg, rgba(186, 103, 56, 0.05), transparent 42%, rgba(63, 79, 70, 0.04) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.legal-intro {
  display: grid;
  gap: 0.7rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.legal-intro h1 {
  max-width: none;
  font-size: clamp(2.5rem, 3.6vw, 3.6rem);
}

.legal-meta,
.legal-copy,
.legal-list {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-sections {
  display: grid;
  gap: 1.2rem;
  padding-top: 1.2rem;
}

.legal-section {
  display: grid;
  gap: 0.45rem;
}

.legal-section h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.legal-list {
  padding-left: 1.25rem;
}

.legal-list li + li {
  margin-top: 0.38rem;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

@media (max-width: 820px) {
  .hero {
    flex: 0 0 auto;
    gap: var(--space-logo-sm);
    padding-top: 0;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--space-logo-sm);
  }

  .hero-copy-block,
  .hero-aside {
    text-align: center;
  }

  .hero-aside {
    justify-items: center;
    max-width: none;
    padding: var(--space-logo-sm) 0 0;
    border-top: 1px solid var(--line);
  }

  .site-header {
    gap: 1rem;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1rem;
  }

  .button {
    justify-self: center;
  }

  .section-head,
  .platform-grid,
  .editorial-row {
    grid-template-columns: 1fr;
  }

  .subpage-intro {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .subpage-lead {
    max-width: none;
    padding-top: 0;
  }

  .section-head {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    text-align: center;
  }

  .platform-item + .platform-item {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }

  .platform-item {
    padding: 0;
  }

  .story-block h2 {
    max-width: none;
  }

  .hero-frame {
    padding: 1.15rem;
  }

  .editorial-row {
    gap: 0.6rem;
  }

  .editorial-label {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .legal-main,
  .subpage-main,
  .site-footer {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .site-header {
    padding-top: 1rem;
    padding-bottom: 0.8rem;
  }

  .brand-logo {
    width: 6.7rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.35rem, 10.8vw, 3.4rem);
  }

  .hero-text {
    max-width: none;
    font-size: 0.96rem;
  }

  .button {
    width: 100%;
    justify-self: stretch;
  }

  .platform-band {
    gap: 0.85rem;
    padding: 0.95rem 0 1rem;
  }

  .subpage-main {
    gap: 1.35rem;
    padding-bottom: 1.25rem;
  }

  .site-footer p {
    font-size: 0.66rem;
  }

  .legal-main {
    padding-top: 0.9rem;
  }

  .legal-card {
    padding: 1.1rem;
    border-radius: 1.5rem;
  }

  .footer-links {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}
