/* ==========================================================
   D'LUXE WEDDINGS & EVENTS
   Editorial / Tropical-Luxe — protagonist: deep botanical moss
   See DESIGN.md for system rationale
   ========================================================== */

:root {
  /* Color (OKLCH, paper-tinted neutrals, no #000/#fff) */
  --moss:        oklch(0.30 0.045 155);
  --moss-deep:   oklch(0.22 0.038 155);
  --moss-tint:   oklch(0.30 0.045 155 / 0.08);
  --paper:       oklch(0.965 0.012 75);
  --paper-deep:  oklch(0.93 0.022 70);
  --paper-warm:  oklch(0.95 0.018 70);
  --ink:         oklch(0.20 0.025 50);
  --ink-soft:    oklch(0.42 0.025 55);
  --bone:        oklch(0.97 0.008 80);
  --bone-soft:   oklch(0.97 0.008 80 / 0.72);
  --brass:       oklch(0.68 0.10 75);
  --brass-deep:  oklch(0.55 0.11 70);
  --heliconia:   oklch(0.62 0.18 35);
  --hairline:    oklch(0.20 0.025 50 / 0.16);
  --hairline-on-moss: oklch(0.97 0.008 80 / 0.20);

  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow:      0 30px 80px -30px oklch(0.20 0.025 50 / 0.25);

  --pad-x:       clamp(1.5rem, 5vw, 5rem);
  --rhythm:      clamp(5rem, 9vw, 9rem);
  --rhythm-cine: clamp(8rem, 14vw, 14rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; height: auto; }

::selection { background: var(--moss); color: var(--bone); }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-weight: 300;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color .35s ease; }
a:hover { color: var(--brass-deep); }

/* ========== Display type ========== */

.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(3rem, 9vw, 8rem); font-weight: 300; }
h2 { font-size: clamp(2.25rem, 5.5vw, 4.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 400; line-height: 1.2; }

.display .it,
h1 .it, h2 .it { font-style: italic; font-weight: 300; }
.display .accent { color: var(--brass); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-block;
}
.eyebrow.on-moss { color: var(--brass); }

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 30ch;
}

p { margin-bottom: 1rem; max-width: 65ch; }
p:last-child { margin-bottom: 0; }

.dropcap::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 5.2em;
  float: left;
  line-height: 0.85;
  padding: 0.18em 0.18em 0 0;
  color: var(--brass-deep);
}

/* ========== Layout primitives ========== */

.wrap        { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-prose  { max-width: 720px; margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-wide   { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-fluid  { margin: 0 auto; padding: 0 clamp(1.5rem, 6vw, 8rem); }

section { padding: var(--rhythm) 0; position: relative; }
section.cine { padding: var(--rhythm-cine) 0; }
section.tight { padding: clamp(3rem, 5vw, 4rem) 0; }

.bg-paper-deep { background: var(--paper-deep); }
.bg-paper-warm { background: var(--paper-warm); }
.bg-moss       { background: var(--moss); color: var(--bone); }
.bg-moss h1, .bg-moss h2, .bg-moss h3 { color: var(--bone); }

/* ========== Navigation ========== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.4rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: background .4s ease, padding .4s ease, color .4s ease;
}
.nav.scrolled {
  background: oklch(0.965 0.012 75 / 0.92);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  padding: 1rem var(--pad-x);
  border-bottom: 1px solid var(--hairline);
}
.nav.on-dark:not(.scrolled) { color: var(--bone); }
.nav.on-dark:not(.scrolled) .brand { color: var(--bone); }
.nav.on-dark:not(.scrolled) .nav-links a { color: var(--bone-soft); }
.nav.on-dark:not(.scrolled) .nav-cta { color: var(--bone) !important; border-color: var(--bone-soft); }

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.brand .amp {
  color: var(--brass);
  font-style: italic;
  font-weight: 400;
  margin: 0 0.18em;
  letter-spacing: 0;
}
.brand img {
  height: 88px;
  width: auto;
  display: block;
  transition: height .35s ease, filter .35s ease;
}
.nav.scrolled .brand img { height: 72px; }
@media (max-width: 600px) {
  .brand img { height: 64px; }
  .nav.scrolled .brand img { height: 52px; }
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: .35rem 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--brass);
}

.nav-cta {
  padding: .85rem 1.6rem;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  letter-spacing: 0.18em !important;
  transition: all .35s cubic-bezier(.16,1,.3,1);
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--bone) !important;
  border-color: var(--ink);
}
.nav.on-dark:not(.scrolled) .nav-cta:hover { background: var(--bone); color: var(--ink) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px; height: 22px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: all .3s ease;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 4px; }
.nav-toggle.open { color: var(--ink); }
.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Force ink colors on menu items when mobile menu is open
   (overrides .nav.on-dark:not(.scrolled) bone-soft colors that would
   render as white-on-paper inside the open menu) */
.nav-links.open a { color: var(--ink) !important; }
.nav-links.open .nav-cta { color: var(--ink) !important; border-color: var(--ink) !important; background: transparent !important; }
.nav-links.open .nav-cta:hover { background: var(--ink) !important; color: var(--bone) !important; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.75rem;
    padding: 0 var(--pad-x);
    transform: translateX(100%);
    transition: transform .55s cubic-bezier(.16,1,.3,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.5rem; letter-spacing: 0.04em; text-transform: none; font-family: var(--font-display); font-weight: 300; }
  .nav-links a.active::after { display: none; }
  .nav-cta { font-size: 0.7rem !important; letter-spacing: 0.18em !important; text-transform: uppercase !important; font-family: var(--font-body) !important; font-weight: 500 !important; }
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .4s cubic-bezier(.16,1,.3,1);
  position: relative;
}
.btn::after {
  content: '→';
  font-size: 0.95rem;
  letter-spacing: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.btn:hover::after { transform: translateX(5px); }

.btn.no-arrow::after { display: none; }

.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--moss); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-ghost   { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); transform: translateY(-2px); }

.btn-bone    { background: var(--bone); color: var(--ink); }
.btn-bone:hover { background: var(--brass); transform: translateY(-2px); }

.btn-ghost-bone { background: transparent; color: var(--bone); border: 1px solid var(--bone-soft); }
.btn-ghost-bone:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); transform: translateY(-2px); }

/* ========== Hero ========== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  background: var(--moss);
  color: var(--bone);
  padding: 7rem 0 3rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, oklch(0.40 0.06 165 / 0.5), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, oklch(0.18 0.03 155 / 0.6), transparent 60%);
  pointer-events: none;
}

/* Hero ambient particles — slow-drifting rings, leaves, orchids, petals */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hp {
  position: absolute;
  top: -8%;
  opacity: 0;
  will-change: transform, opacity;
  animation: hp-drift var(--dur, 28s) linear infinite;
  animation-delay: var(--d, 0s);
}
.hp img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes hp-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  6%   { opacity: var(--o, .18); }
  94%  { opacity: var(--o, .18); }
  100% { transform: translate3d(var(--x, 30px), 130vh, 0) rotate(var(--r, 360deg)); opacity: 0; }
}
@media (max-width: 600px) {
  /* Halve density on phones to keep low-end devices smooth */
  .hp:nth-child(even) { display: none; }
}
.hero h1, .hero h2, .hero h3 { color: var(--bone); }

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  position: relative;
  z-index: 2;
}

.hero-copy { padding-bottom: 2vw; }
.hero-copy .eyebrow { color: var(--brass); margin-bottom: 2rem; display: block; }
.hero-copy h1 {
  font-size: clamp(3.5rem, 11vw, 10rem);
  letter-spacing: -0.015em;
  margin-bottom: 2.5rem;
}
.hero-copy h1 .it { font-style: italic; color: var(--brass); }

.hero-foot {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline-on-moss);
  max-width: 540px;
}
.hero-foot .lede {
  color: var(--bone-soft);
  font-size: 1.15rem;
  flex: 1;
  min-width: 240px;
  max-width: none;
}

.hero-image-wrap {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.hero-image {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4/5.4;
  background: linear-gradient(180deg, oklch(0.50 0.04 80), oklch(0.30 0.05 60));
  background-size: cover;
  background-position: center;
  position: relative;
  margin-right: calc(-1 * var(--pad-x));
  filter: saturate(1.05);
}
.hero-image::after {
  content: '';
  position: absolute;
  left: -12px; top: 12px;
  right: 12px; bottom: -12px;
  border: 1px solid var(--brass);
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  bottom: 2.5rem;
  right: var(--pad-x);
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone-soft);
  z-index: 3;
}
.hero-meta strong { color: var(--brass); font-weight: 400; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.7rem; display: block; margin-bottom: .35rem; }

@media (max-width: 1024px) {
  .hero { padding: 9rem 0 4rem; flex-direction: column; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; align-items: start; }
  .hero-image { max-width: 100%; margin-right: 0; }
  .hero-meta { position: static; text-align: left; padding: 1rem var(--pad-x) 0; width: 100%; }
}

/* ========== Marquee section opener ========== */

.opener {
  padding: var(--rhythm) 0 0;
}
.opener .markword {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 11vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.opener .markword .it { font-style: italic; color: var(--brass-deep); }
.opener .markword.on-moss { color: var(--bone); }
.opener .markword.on-moss .it { color: var(--brass); }

/* ========== Editorial split ========== */

.editorial {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.editorial.flip   { grid-template-columns: 7fr 5fr; }
.editorial.even   { grid-template-columns: 1fr 1fr; }
.editorial-img {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.editorial-img.tall { aspect-ratio: 3/4.5; }
.editorial-img.wide { aspect-ratio: 5/4; }
.editorial-text { padding-top: 1rem; }
.editorial-text h2 { margin: 1rem 0 1.5rem; max-width: 14ch; }
.editorial-text p { color: var(--ink-soft); }
.editorial-text .lede { margin-bottom: 1.5rem; color: var(--ink); }

.editorial-caption {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 36ch;
}
.editorial-caption .eyebrow { display: block; margin-bottom: .35rem; font-style: normal; }

@media (max-width: 1024px) {
  .editorial, .editorial.flip, .editorial.even { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ========== Services — editorial list, NOT card grid ========== */

.service-list {
  list-style: none;
  border-top: 1px solid var(--hairline);
  counter-reset: svc;
}
.service-row {
  display: grid;
  grid-template-columns: 0.8fr 3fr 6fr 1.5fr;
  gap: 2rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: background .3s ease, padding .35s cubic-bezier(.16,1,.3,1);
  counter-increment: svc;
  cursor: default;
}
.service-row:hover {
  background: var(--moss-tint);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.service-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass);
  font-style: italic;
}
.service-num::before { content: counter(svc, decimal-leading-zero); }
.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.service-row:hover .service-name { font-style: italic; }
.service-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 52ch;
}
.service-meta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
}

@media (max-width: 800px) {
  .service-row { grid-template-columns: auto 1fr; gap: 1rem; padding: 1.5rem 0; }
  .service-row:hover { padding-left: 0; padding-right: 0; }
  .service-num { grid-row: 1; }
  .service-name { grid-row: 1; grid-column: 2; }
  .service-desc { grid-column: 1 / -1; font-size: 0.92rem; }
  .service-meta { display: none; }
}

/* ========== Process — editorial spread, NOT timeline cards ========== */

.proc {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 1.4fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
  align-items: start;
  border-top: 1px solid var(--hairline);
}
.proc:last-child { border-bottom: 1px solid var(--hairline); }
.proc.flip { grid-template-columns: 1.4fr 1.3fr 0.7fr; }
.proc.flip .proc-num-side { order: 3; }
.proc.flip .proc-text     { order: 2; }
.proc.flip .proc-image    { order: 1; }

.proc-image {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  align-self: stretch;
  min-height: 380px;
}

.proc-num-side {
  position: sticky;
  top: 7rem;
}
.proc-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(7rem, 16vw, 14rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--brass);
  letter-spacing: -0.02em;
}
.proc-num.solid {
  -webkit-text-stroke: 0;
  color: var(--brass);
}
.proc-text { padding-top: 1.5rem; }
.proc-text .eyebrow { margin-bottom: 1.25rem; }
.proc-text h2 { margin-bottom: 1.5rem; max-width: 16ch; }
.proc-text p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; max-width: 52ch; }

@media (max-width: 1024px) {
  .proc, .proc.flip { grid-template-columns: 1fr; gap: 1.5rem; padding: 3.5rem 0; }
  .proc-num-side, .proc.flip .proc-num-side { order: 1; }
  .proc-image,    .proc.flip .proc-image    { order: 2; aspect-ratio: 4/3; min-height: auto; }
  .proc-text,     .proc.flip .proc-text     { order: 3; }
  .proc-num-side { position: static; }
  .proc-num { font-size: clamp(5rem, 22vw, 9rem); }
}

/* ========== Pull quote (full-bleed moss) ========== */

.pull {
  background: var(--moss);
  color: var(--bone);
  text-align: center;
  padding: var(--rhythm-cine) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.pull::before, .pull::after {
  content: '';
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.40 0.06 165 / 0.45), transparent 65%);
  pointer-events: none;
}
.pull::before { top: -30vw; left: -20vw; }
.pull::after  { bottom: -30vw; right: -20vw; }

.pull-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.pull-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--brass);
  margin-bottom: 1rem;
}
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.3;
  color: var(--bone);
  margin-bottom: 2.5rem;
  letter-spacing: -0.005em;
}
.pull-attr {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}
.pull-attr::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--brass);
}

/* ========== Gallery — asymmetric mosaic ========== */

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(140px, 13vw, 200px);
  gap: clamp(0.5rem, 1vw, 1rem);
}
.mosaic > div {
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transition: filter .5s ease, transform .6s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.mosaic > div:hover { filter: saturate(1.15) brightness(1.05); }
.mosaic .a { grid-column: span 6; grid-row: span 3; }
.mosaic .b { grid-column: span 3; grid-row: span 2; }
.mosaic .c { grid-column: span 3; grid-row: span 2; }
.mosaic .d { grid-column: span 4; grid-row: span 2; }
.mosaic .e { grid-column: span 4; grid-row: span 2; }
.mosaic .f { grid-column: span 4; grid-row: span 3; }

@media (max-width: 800px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(140px, 26vw, 200px); }
  .mosaic .a { grid-column: span 6; grid-row: span 2; }
  .mosaic .b, .mosaic .c { grid-column: span 3; grid-row: span 2; }
  .mosaic .d, .mosaic .e, .mosaic .f { grid-column: span 6; grid-row: span 2; }
}
@media (max-width: 600px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(180px, 60vw, 320px); }
  .mosaic > div { grid-column: span 6 !important; grid-row: span 1 !important; }
}

/* ========== Page header (inner pages) ========== */

.page-head {
  padding: 11rem 0 4.5rem;
  background: var(--paper);
  position: relative;
}
.page-head .crumb {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.page-head .crumb a { color: var(--brass-deep); }
.page-head h1 {
  font-size: clamp(3.5rem, 11vw, 9.5rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}
.page-head h1 .it { font-style: italic; color: var(--brass-deep); }
.page-head .lede { max-width: 36ch; }

/* ========== Form (Contact) ========== */

.letter {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.letter .open {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 3.5rem;
  line-height: 1.45;
  max-width: 32ch;
}
.fset {
  border: none;
  padding: 2rem 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}
.fset:first-of-type { border-top: 0; padding-top: 0; }
.fset legend {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--brass-deep);
  margin-bottom: 2rem;
  padding: 0;
}
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 1.5rem;
}
.frow.single { grid-template-columns: 1fr; }
@media (max-width: 600px) { .frow { grid-template-columns: 1fr; gap: 1.5rem; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  width: 100%;
  transition: border-color .3s ease;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
}
.field input::placeholder, .field textarea::placeholder {
  color: oklch(0.42 0.025 55 / 0.5);
  font-weight: 300;
}

.send {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.send .note {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
}

.form-success {
  display: none;
  margin-top: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--brass);
}
.form-success.show { display: block; }
.form-success h3 {
  color: var(--brass-deep);
  font-style: italic;
  margin-bottom: .75rem;
}
.form-success p { color: var(--ink-soft); }

.signoff {
  text-align: center;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--hairline);
}
.signoff p {
  margin: 0 auto 1rem;
  max-width: 60ch;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
}
.signoff .sig {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

/* ========== CTA band ========== */

.cta {
  background: var(--moss);
  color: var(--bone);
  padding: var(--rhythm-cine) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before, .cta::after {
  content: '';
  position: absolute;
  width: 70vw; height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.40 0.06 165 / 0.4), transparent 65%);
  pointer-events: none;
}
.cta::before { top: -35vw; left: -20vw; }
.cta::after  { bottom: -35vw; right: -20vw; }
.cta-inner { position: relative; z-index: 2; padding: 0 var(--pad-x); }
.cta h2 { color: var(--bone); margin-bottom: 1.5rem; max-width: 18ch; margin-inline: auto; }
.cta h2 .it { color: var(--brass); font-style: italic; }
.cta p { color: var(--bone-soft); max-width: 56ch; margin: 0 auto 2.5rem; }

/* ========== Footer ========== */

.foot {
  background: var(--moss-deep);
  color: var(--bone-soft);
  padding: 5rem 0 2rem;
  font-size: 0.92rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--hairline-on-moss);
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; padding-bottom: 2rem; } .foot-mark { font-size: 1.25rem; letter-spacing: 0.18em; } }

.foot h4 {
  font-family: var(--font-body);
  color: var(--brass);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.foot ul { list-style: none; }
.foot ul li { margin-bottom: .55rem; }
.foot a:hover { color: var(--brass); }
.foot-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1rem;
}
.foot-mark .amp { color: var(--brass); font-style: italic; margin: 0 .15em; letter-spacing: 0; }
.foot-mark img { height: 144px; width: auto; display: block; }
@media (max-width: 480px) { .foot-mark img { height: 110px; } }
.foot-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bone-soft);
  max-width: 30ch;
  line-height: 1.5;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(0.97 0.008 80 / 0.5);
}
.socials { display: flex; gap: .85rem; margin-top: 1rem; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-on-moss);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0;
  border-radius: 50%;
  transition: all .3s ease;
}
.socials a:hover {
  border-color: var(--brass);
  color: var(--brass);
}

/* ========== Reveal animations ========== */

.r {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.r.in { opacity: 1; transform: none; }
.r.d1 { transition-delay: 0.08s; }
.r.d2 { transition-delay: 0.16s; }
.r.d3 { transition-delay: 0.24s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * { animation: fadeUp 1.1s cubic-bezier(.16,1,.3,1) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: .15s; }
.hero-copy > *:nth-child(2) { animation-delay: .35s; }
.hero-copy > *:nth-child(3) { animation-delay: .55s; }
.hero-copy > *:nth-child(4) { animation-delay: .75s; }
.hero-image-wrap { animation: fadeUp 1.4s .4s cubic-bezier(.16,1,.3,1) backwards; }

/* ========== Utilities ========== */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-5 { margin-top: 5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   JOURNAL — listing + post layouts
   Editorial, NOT a card grid. Asymmetric image / text splits.
   ========================================================== */

.journal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}

.journal-card {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.journal-card:first-child { border-top: 0; padding-top: 0; }

.journal-card-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 7rem);
  align-items: center;
  color: inherit;
  transition: opacity .35s ease;
}

/* Journal page heading — restrained, less overpowering than other inner pages */
.page-head.journal-head { padding: 9rem 0 3rem; }
.page-head.journal-head h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  margin-bottom: 1.5rem;
}
.page-head.journal-head .lede { max-width: 48ch; font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.journal-card-link:hover { color: inherit; }
.journal-card-link:hover .journal-card-title { color: var(--brass-deep); }
.journal-card-link:hover .journal-card-img { filter: saturate(1.15) brightness(1.03); }

.journal-card-img {
  aspect-ratio: 5/4;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transition: filter .5s ease;
}

.journal-card-body { padding: 0.5rem 0; }
.journal-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.journal-card-meta span:not(:first-child):not(:last-child) { color: var(--brass); }
.journal-card-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin-bottom: 1.5rem;
  color: var(--ink);
  transition: color .35s ease;
  max-width: 16ch;
}
.journal-card-title .it { font-style: italic; color: var(--brass-deep); }
.journal-card-excerpt {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.65;
  max-width: 55ch;
  margin-bottom: 2rem;
}
.journal-card-cta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-deep);
  position: relative;
  padding-bottom: 0.35rem;
  display: inline-block;
}
.journal-card-cta::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0; right: 30%;
  height: 1px;
  background: var(--brass);
  transition: right .35s cubic-bezier(.16,1,.3,1);
}
.journal-card-link:hover .journal-card-cta::after { right: 0; }

.journal-empty {
  border-top: 1px solid var(--hairline);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
  max-width: 56ch;
}
.journal-empty .eyebrow { margin-bottom: 1.25rem; }
.journal-empty-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.journal-empty-title .it { font-style: italic; color: var(--brass-deep); }
.journal-empty-text {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .journal-card-link { grid-template-columns: 1fr; gap: 2rem; }
  .journal-card-img { aspect-ratio: 5/4; }
}

/* ========== Post (article) layout ========== */

.post-head { padding: 11rem 0 4rem; }
.post-head .crumb a { color: var(--brass-deep); }
.post-title {
  font-size: clamp(2.5rem, 6.5vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin-bottom: 2rem;
  max-width: 22ch;
}
.post-head .post-meta { max-width: 60ch; }
.post-title .it { font-style: italic; color: var(--brass-deep); }

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.post-meta .post-byline strong { color: var(--ink); font-weight: 500; }
.post-meta a { color: inherit; }
.post-meta a:hover { color: var(--brass-deep); }
.post-meta .post-divider { color: var(--brass); }
.post-meta time { color: var(--ink-soft); }

.post { padding: 0 0 clamp(4rem, 7vw, 6rem); }

/* Post body uses the fluid (full-width) container.
   Inside, prose elements have readable max-widths centered in the column.
   Special elements (tables, callouts, FAQ, TLDR) break out wider for an
   editorial magazine feel on big screens — text never goes wider than
   ~75ch because long lines kill readability. */
.post-body {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}

/* Readable prose elements — always centered, capped */
.post-body > p,
.post-body > ul,
.post-body > ol,
.post-body > .post-list,
.post-body > .post-signoff,
.post-body > .post-next-empty {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}
.post-body > p { margin-bottom: 1.75rem; }
.post-body > h2 {
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
}
.post-body > h3,
.post-body > h4 {
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

/* Editorial breakouts — wider on big screens, scale fluidly */
.post-body > .post-tldr {
  max-width: clamp(720px, 55vw, 1000px);
  margin-left: auto;
  margin-right: auto;
}
.post-body > .post-toc {
  max-width: clamp(720px, 55vw, 1000px);
  margin-left: auto;
  margin-right: auto;
}
.post-body > .post-callout {
  max-width: clamp(720px, 60vw, 1100px);
  margin-left: auto;
  margin-right: auto;
}
.post-body > .post-faq {
  max-width: clamp(720px, 65vw, 1200px);
  margin-left: auto;
  margin-right: auto;
}
.post-body > .post-table-wrap {
  max-width: clamp(720px, 75vw, 1500px);
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: collapse all inner caps so everything fills the viewport
   (the wrap-fluid outer padding handles gutters) */
@media (max-width: 768px) {
  .post-body > p,
  .post-body > ul,
  .post-body > ol,
  .post-body > h2,
  .post-body > h3,
  .post-body > h4,
  .post-body > .post-list,
  .post-body > .post-signoff,
  .post-body > .post-tldr,
  .post-body > .post-toc,
  .post-body > .post-callout,
  .post-body > .post-faq,
  .post-body > .post-table-wrap,
  .post-body > .post-next-empty {
    max-width: none;
  }
}
.post-body > h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 3rem 0 1.5rem;
  max-width: 22ch;
}
.post-body > h2 .it { font-style: italic; color: var(--brass-deep); }

.post-tldr {
  background: var(--moss-tint);
  padding: 2rem 2rem;
  margin: 0 0 3rem;
  position: relative;
}
.post-tldr::before, .post-tldr::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--brass);
}
.post-tldr::before { top: 0; }
.post-tldr::after  { bottom: 0; }
.post-tldr .eyebrow { margin-bottom: 0.75rem; color: var(--brass-deep); }
.post-tldr p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  max-width: none;
}
.post-tldr a { color: var(--brass-deep); border-bottom: 1px solid var(--brass); }
.post-tldr a:hover { color: var(--ink); }

.post-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.post-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.post-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 0.65rem;
  height: 1px;
  background: var(--brass);
}

.post-body a:not(.btn) {
  color: var(--brass-deep);
  border-bottom: 1px solid var(--hairline);
  transition: border-color .25s ease;
}
.post-body a:not(.btn):hover { border-bottom-color: var(--brass); }

/* FAQ on post — accordion-style details/summary */
.post-faq {
  margin: 3.5rem 0 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}
.post-faq-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.post-faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: 1.25rem 0;
}
.post-faq-item summary {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  transition: color .25s ease;
}
.post-faq-item summary::-webkit-details-marker { display: none; }
.post-faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--brass);
  line-height: 1;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.post-faq-item[open] summary::after { transform: rotate(45deg); }
.post-faq-item summary:hover { color: var(--brass-deep); }
.post-faq-body {
  padding-top: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.post-faq-body p { margin-bottom: 0.75rem; }

.post-signoff {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
  text-align: left;
}
.post-signoff-line {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.post-signoff-line em { font-style: italic; color: var(--brass-deep); }
.post-signoff-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.post-next {
  background: var(--paper-deep);
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.post-next .eyebrow { margin-bottom: 1.25rem; }
.post-next-empty {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 50ch;
  margin: 0;
}
.post-next a { color: var(--brass-deep); }

.link-underline {
  border-bottom: 1px solid var(--brass);
  transition: color .25s ease;
}
.link-underline:hover { color: var(--brass-deep); }

/* ==========================================================
   Long-form editorial article: tables, callouts, sub-heads
   ========================================================== */

.post-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.25;
  margin: 3rem 0 1.25rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.post-body h2 .it { font-style: italic; color: var(--brass-deep); }
.post-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.3;
  margin: 2.25rem 0 0.85rem;
  color: var(--ink);
  font-style: italic;
}
.post-body h2 + p,
.post-body h3 + p { margin-top: 0; }

.post-table-wrap {
  margin: 1.75rem 0 2.25rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--paper);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.5;
}
.post-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  padding: 1rem 1.25rem 0.6rem;
}
.post-table thead th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-deep);
}
.post-table tbody td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  vertical-align: top;
}
.post-table tbody tr:last-child td { border-bottom: none; }
.post-table tbody tr:nth-child(odd) td { background: transparent; }
.post-table tbody tr.is-total td {
  font-weight: 600;
  background: var(--paper-deep);
  border-top: 1px solid var(--brass);
  border-bottom: none;
}
.post-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.post-table .pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.post-table .note { color: var(--ink-soft); font-size: 0.85rem; }

.post-callout {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem 1.4rem 1.75rem;
  border-left: 2px solid var(--brass);
  background: var(--paper-deep);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
}
.post-callout strong { color: var(--brass-deep); font-weight: 600; }
.post-callout p { margin: 0; }
.post-callout p + p { margin-top: 0.6rem; }

.post-author-bio {
  margin-top: 3.5rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.post-author-bio strong { color: var(--ink); font-weight: 500; }
.post-author-bio a { color: var(--brass-deep); border-bottom: 1px solid var(--brass); }
.post-author-bio em { font-style: italic; }
.post-update-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 1rem;
}

.post-toc {
  margin: 2rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--hairline);
  background: var(--paper);
}
.post-toc-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 0.85rem;
}
.post-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  columns: 2;
  column-gap: 2rem;
}
@media (max-width: 640px) { .post-toc ol { columns: 1; } }
.post-toc li {
  counter-increment: toc;
  padding: 0.3rem 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  break-inside: avoid;
}
.post-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-right: 0.7rem;
}
.post-toc a { color: var(--ink); }
.post-toc a:hover { color: var(--brass-deep); }

/* ==========================================================
   WhatsApp bubble — fixed, bottom-right, moss + brass glyph
   ========================================================== */

.wa-bubble {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.25rem 0.95rem 1rem;
  background: var(--moss);
  color: var(--bone);
  border-radius: 999px;
  box-shadow: 0 14px 36px -10px oklch(0.20 0.025 50 / 0.45);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, background .25s ease, color .25s ease;
}
.wa-bubble:hover {
  background: var(--moss-deep);
  color: var(--bone);
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -12px oklch(0.20 0.025 50 / 0.55);
}
.wa-bubble-icon {
  width: 24px;
  height: 24px;
  color: var(--brass);
  flex-shrink: 0;
  transition: color .25s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.wa-bubble:hover .wa-bubble-icon {
  color: var(--bone);
  transform: rotate(-6deg);
}

@media (max-width: 600px) {
  .wa-bubble {
    padding: 0.95rem;
    border-radius: 50%;
    gap: 0;
  }
  .wa-bubble-label { display: none; }
  .wa-bubble-icon { width: 26px; height: 26px; }
}

/* Hide WhatsApp bubble when the mobile menu drawer is open
   (drawer covers viewport at z-index: 100, bubble at 90, but this
   keeps the layout cleaner and avoids ghosted shadows behind the panel) */
.nav-links.open ~ .wa-bubble,
body:has(.nav-links.open) .wa-bubble { opacity: 0; pointer-events: none; }

