/* ============================================================
   Vinícola Sperle — design tokens & components
   Palette: honey amber / deep brown (meadery)
   Display: Boska · Body: Switzer
   ============================================================ */

:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces — warm cream */
  --color-bg: #f8f3e9;
  --color-surface: #faf6ee;
  --color-surface-2: #fdfaf4;
  --color-surface-offset: #f1e9da;
  --color-surface-offset-2: #ece2cf;
  --color-surface-dynamic: #e5d9c2;
  --color-divider: #e2d6c0;
  --color-border: #d3c4a8;

  /* Text — deep umber */
  --color-text: #2a2013;
  --color-text-muted: #6f6250;
  --color-text-faint: #b0a48d;
  --color-text-inverse: #f9f5ec;

  /* Primary — honey amber */
  --color-primary: #8a5c10;
  --color-primary-hover: #6e480d;
  --color-primary-active: #55370a;
  --color-primary-highlight: #eddcbb;

  /* Gold accent (badges, medals) */
  --color-gold: #a37a12;
  --color-gold-highlight: #f0e3c2;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.25 0.03 80 / 0.07);
  --shadow-md: 0 4px 14px oklch(0.25 0.03 80 / 0.1);
  --shadow-lg: 0 14px 36px oklch(0.25 0.03 80 / 0.14);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  --font-display: 'Boska', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  /* hero overlay tint */
  --hero-tint: oklch(0.16 0.03 70 / 0.62);
}

[data-theme='dark'] {
  --color-bg: #16110b;
  --color-surface: #1c160e;
  --color-surface-2: #211a11;
  --color-surface-offset: #1e1810;
  --color-surface-offset-2: #251d13;
  --color-surface-dynamic: #302617;
  --color-divider: #2a2214;
  --color-border: #42361f;

  --color-text: #e8ddc6;
  --color-text-muted: #a2937a;
  --color-text-faint: #6b5f4b;
  --color-text-inverse: #241d12;

  --color-primary: #d9a445;
  --color-primary-hover: #e5b968;
  --color-primary-active: #c08c2f;
  --color-primary-highlight: #3a2e19;

  --color-gold: #dcae4f;
  --color-gold-highlight: #382c15;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 14px 36px oklch(0 0 0 / 0.5);

  --hero-tint: oklch(0.13 0.02 70 / 0.68);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #16110b;
    --color-surface: #1c160e;
    --color-surface-2: #211a11;
    --color-surface-offset: #1e1810;
    --color-surface-offset-2: #251d13;
    --color-surface-dynamic: #302617;
    --color-divider: #2a2214;
    --color-border: #42361f;
    --color-text: #e8ddc6;
    --color-text-muted: #a2937a;
    --color-text-faint: #6b5f4b;
    --color-text-inverse: #241d12;
    --color-primary: #d9a445;
    --color-primary-hover: #e5b968;
    --color-primary-active: #c08c2f;
    --color-primary-highlight: #3a2e19;
    --color-gold: #dcae4f;
    --color-gold-highlight: #382c15;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 14px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 14px 36px oklch(0 0 0 / 0.5);
    --hero-tint: oklch(0.13 0.02 70 / 0.68);
  }
}

/* ============ Layout helpers ============ */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
}
.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}
.section--offset {
  background: var(--color-surface-offset);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.lead {
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.logo-link {
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
}
.logo-link:hover {
  color: var(--color-primary);
}

/* ============ Nav ============ */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav__link,
.nav__toggle-sub {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav__link:hover,
.nav__toggle-sub:hover {
  color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.08);
}
.nav__link[aria-current='page'] {
  color: var(--color-primary);
}
.nav__item--sub {
  position: relative;
}
.nav__toggle-sub .chev {
  transition: transform var(--transition-interactive);
}
.nav__item--sub[data-open] .nav__toggle-sub .chev {
  transform: rotate(180deg);
}
.submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-2);
  display: none;
  z-index: 60;
}
.nav__item--sub[data-open] .submenu {
  display: block;
}
.submenu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.submenu a:hover {
  background: oklch(from var(--color-primary) l c h / 0.1);
  color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.theme-toggle,
.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
.theme-toggle:hover,
.nav-burger:hover {
  color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.08);
}
.nav-burger {
  display: none;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 48px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
[data-theme='dark'] .btn--primary {
  color: #1c1509;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--primary:active {
  background: var(--color-primary-active);
}
.btn--ghost {
  border-color: oklch(from var(--color-text) l c h / 0.25);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--ondark {
  border-color: oklch(1 0 0 / 0.4);
  color: #f7f1e3;
}
.btn--ondark:hover {
  border-color: #f7f1e3;
  background: oklch(1 0 0 / 0.1);
  color: #fff;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
  color: #f7f1e3;
  isolation: isolate;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to right,
    var(--hero-tint),
    oklch(0.16 0.03 70 / 0.35) 65%,
    oklch(0.16 0.03 70 / 0.15)
  );
}
.hero__content {
  max-width: var(--content-wide);
  width: 100%;
  margin-inline: auto;
  padding: clamp(var(--space-16), 12vw, var(--space-32)) var(--space-5);
}
.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e9c983;
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  max-width: 16ch;
  margin-bottom: var(--space-5);
}
.hero p {
  font-size: var(--text-lg);
  font-weight: 300;
  max-width: 44ch;
  color: oklch(0.94 0.02 85);
  margin-bottom: var(--space-8);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Page hero (interior) */
.page-hero {
  position: relative;
  padding: clamp(var(--space-16), 10vw, var(--space-24)) 0 clamp(var(--space-10), 6vw, var(--space-16));
  background: var(--color-surface-offset);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}
.page-hero .lead {
  font-size: var(--text-base);
}

/* ============ Cards / grids ============ */
.split {
  display: grid;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
@media (min-width: 820px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--rev > :first-child {
    order: 2;
  }
}
.split figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

.stat-band {
  background: #1d1610;
  color: #ecdfc5;
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
}
.stat-band .eyebrow {
  color: #dcae4f;
}
.stat-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  color: #f2e6c9;
  margin-bottom: var(--space-1);
}
.stat p {
  color: #b8a888;
  font-size: var(--text-sm);
  max-width: 34ch;
}

/* Product cards */
.product-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.product-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}
.product-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.product-card__style {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.product-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
}
.product-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  align-self: flex-start;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-gold-highlight);
  color: var(--color-gold);
}

/* Featured product (sabores page) */
.feature-product {
  display: grid;
  gap: clamp(var(--space-6), 5vw, var(--space-12));
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.09);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
@media (min-width: 820px) {
  .feature-product {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.feature-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-product__body {
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}
.feature-product__body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
}

.notes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.notes span {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--color-text) l c h / 0.15);
  color: var(--color-text-muted);
}

/* ============ Radar ============ */
.radar-wrap {
  display: grid;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
@media (min-width: 880px) {
  .radar-wrap {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.radar-figure {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.09);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(var(--space-5), 4vw, var(--space-10));
}
.radar-figure figcaption {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}
.radar-svg {
  width: 100%;
  height: auto;
}
.radar-svg .ring {
  fill: none;
  stroke: oklch(from var(--color-text) l c h / 0.14);
  stroke-width: 1;
}
.radar-svg .axis {
  stroke: oklch(from var(--color-text) l c h / 0.2);
  stroke-width: 1;
}
.radar-svg .shape {
  fill: oklch(from var(--color-primary) l c h / 0.28);
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.radar-svg .dot {
  fill: var(--color-primary);
}
.radar-svg text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--color-text);
}
.radar-svg .scale-label {
  font-size: 10px;
  font-weight: 400;
  fill: var(--color-text-faint);
}

.attr-list {
  display: grid;
  gap: var(--space-4);
}
.attr {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
}
.attr__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.2;
}
.attr h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.attr p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.attr .reading {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-primary-highlight);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  max-width: none;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-12));
}
@media (min-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.contact-item:last-child {
  border-bottom: none;
}
.contact-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}
.contact-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
}
.contact-item p,
.contact-item a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact-item a:hover {
  color: var(--color-primary);
}

.form {
  display: grid;
  gap: var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.09);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  box-shadow: var(--shadow-sm);
}
.form label {
  font-size: var(--text-sm);
  font-weight: 600;
  display: grid;
  gap: var(--space-2);
}
.form input,
.form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid oklch(from var(--color-text) l c h / 0.18);
  background: var(--color-surface);
  font-size: var(--text-base);
  font-weight: 400;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: transparent;
}
.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============ CTA band ============ */
.cta-band {
  position: relative;
  isolation: isolate;
  color: #f7f1e3;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  text-align: center;
  overflow: hidden;
}
.cta-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: oklch(0.15 0.03 70 / 0.72);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}
.cta-band p {
  color: oklch(0.92 0.02 85);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.cta-band .hero__cta {
  justify-content: center;
}

/* ============ Footer ============ */
.footer {
  background: #17110b;
  color: #cbbc9d;
  padding-block: clamp(var(--space-12), 7vw, var(--space-20)) var(--space-8);
}
.footer a {
  color: inherit;
  text-decoration: none;
}
.footer a:hover {
  color: #e9c983;
}
.footer__grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer__brand p {
  font-size: var(--text-sm);
  color: #9a8c6f;
  max-width: 38ch;
  margin-top: var(--space-4);
}
.footer h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e9c983;
  margin-bottom: var(--space-4);
}
.footer ul {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.footer__legal {
  border-top: 1px solid oklch(1 0 0 / 0.08);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: #8a7c60;
}

/* ============ Age gate ============ */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: oklch(0.1 0.02 70 / 0.55);
  backdrop-filter: blur(4px);
  padding: var(--space-4);
}
.age-gate[hidden] {
  display: none;
}
.age-gate__box {
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-8);
}
.age-gate__box h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.age-gate__box p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Mobile nav ============ */
@media (max-width: 900px) {
  .nav-burger {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-6) var(--space-5);
    display: none;
    z-index: 49;
    overflow-y: auto;
  }
  .nav[data-open] {
    display: flex;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }
  .nav__link,
  .nav__toggle-sub {
    width: 100%;
    justify-content: space-between;
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-3);
    border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.07);
    border-radius: 0;
  }
  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--color-surface-offset);
    border-radius: var(--radius-md);
    margin: var(--space-2) 0;
  }
  .submenu a {
    padding: var(--space-3) var(--space-4);
  }
  .nav .btn {
    margin-top: var(--space-6);
  }
}
