/* Ruby Styling · Soft Feminine · Modern Editorial
   Layout: editorial grid with generous margins, asymmetric heroes and hairline rules.
   One bold moment (the pinned fabric-swatch board on Home); everything else stays quiet.
   Single light theme by design: the brand palette is Soft White–led (55 / 25 / 10 / 7 / 3). */
:root {
  /* Brand palette */
  --soft-white: #FAF9F6;   /* nền chính */
  --warm-beige: #EEE7DD;   /* nền phụ */
  --sand: #D8CBB9;         /* điểm nhấn nhẹ */
  --taupe: #A18E7B;        /* chi tiết phụ */
  --soft-brown: #66564B;   /* tiêu đề / CTA */
  --dusty-rose: #B98280;   /* accent nữ tính */
  /* Derived for legibility */
  --ink: #3B312B;
  --muted: #75665A;
  --line: #E3DACE;
  --line-strong: #D8CBB9;
  --rose-text: #8E5856;
  --rose-tint: #F3E6E3;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.75rem, 1.25rem + 1.9vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 1.35rem + 3.4vw, 4rem);

  --space-section: clamp(64px, 8vw, 112px);
  --max: 1200px;
  --measure: 68ch;
  --radius: 3px;
  --header-h: 72px;

  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--soft-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--soft-white);
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--dusty-rose); outline-offset: 3px; }
::selection { background: var(--rose-tint); color: var(--ink); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--soft-brown); color: var(--soft-white);
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}
.section { padding-block: var(--space-section); }
.section--beige { background: var(--warm-beige); }
.section--rule { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 20px); min-width: 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 40px; margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head .stack { max-width: 42rem; --gap: 16px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--soft-brown);
  line-height: 1.22;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.15; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 400; color: var(--dusty-rose); }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--dusty-rose); }
.eyebrow--rose { color: var(--rose-text); }
.lead { font-size: var(--fs-lg); font-weight: 300; line-height: 1.75; color: var(--ink); max-width: 58ch; }
.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--soft-brown); border-radius: var(--radius);
  background: var(--soft-brown); color: var(--soft-white);
  font: 500 .9375rem/1.2 var(--font-body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--soft-brown); }
.btn--ghost:hover { background: var(--warm-beige); color: var(--ink); border-color: var(--soft-brown); }
.btn--light { background: var(--soft-white); border-color: var(--soft-white); color: var(--soft-brown); }
.btn--light:hover { background: var(--warm-beige); border-color: var(--warm-beige); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .875rem; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9375rem; font-weight: 500; color: var(--soft-brown);
  text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--sand);
  transition: border-color .2s ease;
}
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover { border-color: var(--dusty-rose); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--soft-white); border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 36px; min-height: var(--header-h); }
.logo {
  margin-right: auto; white-space: nowrap;
  font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--soft-brown); text-decoration: none;
}
.nav { display: flex; gap: 30px; }
.nav a {
  position: relative; padding: 8px 0;
  font-size: .9375rem; color: var(--ink); text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: var(--dusty-rose); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--soft-brown); font-weight: 500; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: transparent; border: 0; cursor: pointer; color: var(--soft-brown);
}
.burger { position: relative; display: block; width: 22px; height: 1.5px; background: currentColor; transform: translateY(-4px); transition: transform .25s ease; }
.burger::before {
  content: ""; position: absolute; right: 0; top: 8px; width: 14px; height: 1.5px; background: currentColor;
  transition: transform .25s ease, width .25s ease, top .25s ease;
}
.nav-toggle[aria-expanded="true"] .burger { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::before { top: 0; width: 22px; transform: rotate(-90deg); }
.nav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--soft-white); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 32px -28px rgba(59, 49, 43, .4);
}
.nav-panel .wrap { display: flex; flex-direction: column; gap: 20px; padding-block: 8px 24px; }
.nav-panel nav { display: flex; flex-direction: column; }
.nav-panel nav a {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 1.0625rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-panel nav a[aria-current="page"] { color: var(--rose-text); }
@media (max-width: 959px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 960px) { .nav-panel { display: none !important; } }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.display { font-size: clamp(2.5rem, 1.45rem + 4vw, 4.5rem); line-height: 1.12; letter-spacing: -.01em; }
.tagline { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 4px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none;
  margin: 8px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--muted);
}
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dusty-rose); }

/* Fabric swatch board */
.board-wrap { margin: 0; display: grid; gap: 16px; justify-items: center; min-width: 0; }
.board {
  position: relative; width: 100%; max-width: 480px; aspect-ratio: 5 / 6;
  background:
    repeating-linear-gradient(90deg, rgba(161, 142, 123, .07) 0 1px, transparent 1px 6px),
    var(--warm-beige);
  border-radius: var(--radius);
}
@media (max-width: 959px) { .board { aspect-ratio: 1 / 1; max-width: 440px; } }
.swatch {
  position: absolute; margin: 0;
  left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  transform: rotate(var(--r));
  filter: drop-shadow(0 14px 16px rgba(102, 86, 75, .18));
  animation: settle .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes settle { from { transform: translateY(-10px) rotate(0deg); } to { transform: rotate(var(--r)); } }
.swatch::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: 10px; width: 11px; height: 11px; margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sand) 0 18%, var(--soft-brown) 22%);
}
.fabric {
  display: block; width: 100%; height: 100%;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.fabric--silk {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, .34) 44%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(102, 86, 75, .14)),
    var(--dusty-rose);
}
.fabric--linen {
  background:
    repeating-linear-gradient(0deg, rgba(102, 86, 75, .09) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 1px, transparent 1px 5px),
    var(--sand);
}
.fabric--wool {
  background:
    repeating-linear-gradient(45deg, rgba(59, 49, 43, .13) 0 2px, transparent 2px 6px),
    var(--taupe);
}
.fabric--cotton {
  background:
    repeating-linear-gradient(90deg, rgba(161, 142, 123, .13) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(161, 142, 123, .09) 0 1px, transparent 1px 3px),
    var(--soft-white);
}
.swatch .tag {
  position: absolute; left: 12px; bottom: 22px; z-index: 2;
  display: flex; flex-direction: column; padding: 6px 10px;
  background: var(--soft-white); color: var(--ink);
  font-size: .6875rem; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase;
}
.swatch .tag span { color: var(--muted); letter-spacing: .04em; text-transform: none; }
.board-note { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--muted); text-align: center; max-width: 34ch; }

/* ---------- Home sections ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; } }
.statement {
  margin: 18px 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.3; color: var(--soft-brown); text-wrap: balance;
}
.statement em { font-style: italic; color: var(--dusty-rose); }
.values { list-style: none; margin: 0; padding: 0; display: grid; }
.values li { display: grid; gap: 8px; padding-block: 24px; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values h3 { font-size: 1.3125rem; }
.values p { color: var(--muted); max-width: 58ch; }

.svc-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc { display: flex; flex-direction: column; gap: 14px; padding: 28px 0; border-top: 1px solid var(--line-strong); min-width: 0; }
@media (min-width: 860px) {
  .svc { padding: 4px 32px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .svc:first-child { padding-left: 0; border-left: 0; }
  .svc:last-child { padding-right: 0; }
}
.svc-meta { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.svc h3 { font-size: 1.75rem; }
.svc-vn { font-size: var(--fs-sm); font-weight: 500; color: var(--rose-text); margin-top: -6px; }
.svc .link-arrow { margin-top: auto; align-self: flex-start; }
.svc p:not(.svc-meta):not(.svc-vn) { color: var(--ink); }

.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-strong); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-style: italic; font-size: 2.25rem; line-height: 1; color: var(--taupe);
}
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--muted); font-size: .9375rem; }

/* ---------- Article cards & thumbs ---------- */
.cards { display: grid; gap: 48px 32px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.card .thumb { transition: transform .4s ease; }
.card:hover .thumb { transform: translateY(-4px); }
.card-cat { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-text); }
.card-cat span { color: var(--muted); }
.card h3 { font-size: 1.4375rem; transition: color .2s ease; }
.card:hover h3 { color: var(--ink); }
.card p { color: var(--muted); font-size: .9375rem; }
.card-meta { font-size: var(--fs-sm); color: var(--muted); }

.thumb {
  position: relative; overflow: hidden; container-type: inline-size;
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); background: var(--warm-beige);
}
.thumb--wide { aspect-ratio: 16 / 7; }
@media (max-width: 600px) { .thumb--wide { aspect-ratio: 4 / 3; } }
.thumb--words { display: flex; flex-direction: column; justify-content: center; gap: .05em; padding: 0 9%; }
.thumb--wide.thumb--words { padding: 0 12%; }
.tw-label { position: absolute; left: 9%; top: 9%; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tw { font-family: var(--font-display); font-style: italic; font-size: 1.9rem; font-size: 11.5cqi; line-height: 1.1; color: var(--soft-brown); }
.thumb--wide .tw { font-size: 6.5cqi; }
.tw.w2 { color: var(--dusty-rose); padding-left: 14%; }
.tw.w3 { padding-left: 28%; }
.thumb--palette { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.thumb--palette i { background: var(--c); }
.tp-label {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 14px; background: var(--soft-white); color: var(--ink);
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
}
.thumb--rail svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rail .r-bar { stroke: var(--soft-brown); stroke-width: 3; stroke-linecap: round; }
.rail .r-knob { fill: var(--soft-brown); }
.rail .r-hook, .rail .r-hanger { fill: none; stroke: var(--taupe); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rail .r-detail { fill: none; stroke: var(--warm-beige); stroke-width: 1.5; stroke-linecap: round; opacity: .8; }
.rail .r-seam { fill: none; stroke: var(--soft-brown); stroke-width: 1.2; opacity: .35; }
.rail .r-button { fill: var(--sand); }
.rail .f-white { fill: var(--soft-white); stroke: var(--sand); stroke-width: 1.5; }
.rail .f-rose { fill: var(--dusty-rose); }
.rail .f-brown { fill: var(--soft-brown); }
.rail .f-sand { fill: var(--sand); }
.rail .f-taupe { fill: var(--taupe); }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .page-hero .wrap.has-aside { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 72px; }
  .page-hero .wrap.has-aside > .stack { grid-row: span 2; }
}
.page-hero .stack { --gap: 22px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a {
  padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .875rem; color: var(--ink); text-decoration: none; transition: border-color .2s ease, background-color .2s ease;
}
.jump a:hover { border-color: var(--soft-brown); background: var(--warm-beige); }

/* ---------- About ---------- */
.story { display: grid; gap: 40px; }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; } }
.quote { margin: 0; display: grid; gap: 18px; }
.quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.125rem); line-height: 1.4; color: var(--soft-brown); text-wrap: balance; }
.quote footer { font-size: var(--fs-sm); color: var(--muted); letter-spacing: .04em; }
.quote footer strong { color: var(--ink); font-weight: 500; }
.story-text { display: flex; flex-direction: column; gap: 1.1em; font-size: var(--fs-md); line-height: 1.8; max-width: var(--measure); min-width: 0; }
.principles { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.principle { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--dusty-rose); }
.principle h3 { font-size: 1.375rem; }
.principle p { color: var(--muted); }
.traits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.traits li { display: grid; gap: 6px 32px; align-items: baseline; padding-block: 24px; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 800px) { .traits li { grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr); } }
.trait-en { font-family: var(--font-display); font-style: italic; font-size: clamp(1.875rem, 1.35rem + 1.6vw, 2.625rem); line-height: 1.1; color: var(--soft-brown); }
.trait-vn { font-weight: 500; color: var(--rose-text); }
.trait-desc { color: var(--ink); }
.voice { display: grid; gap: 20px; }
@media (min-width: 760px) { .voice { grid-template-columns: 1fr 1fr; } }
.voice-col { display: grid; gap: 16px; align-content: start; padding: 28px clamp(20px, 3vw, 32px); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.voice-col--yes { background: var(--warm-beige); border-color: var(--warm-beige); }
.voice-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.voice-col li { display: flex; gap: 12px; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.45; color: var(--soft-brown); }
.voice-col li::before { content: "✓"; flex: none; font-family: var(--font-body); font-size: .9375rem; color: var(--rose-text); }
.voice-col--no li { color: var(--muted); }
.voice-col--no li::before { content: "×"; font-size: 1.125rem; line-height: 1.35; color: var(--dusty-rose); }
.voice-title { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Services ---------- */
.service { display: grid; gap: 40px; padding-block: var(--space-section); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 8px); }
.service:first-of-type { border-top: 0; }
@media (min-width: 960px) { .service { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; } }
.service-side { display: grid; gap: 24px; min-width: 0; }
@media (min-width: 960px) { .service-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 32px); } }
.service-meta { display: grid; margin: 0; border-top: 1px solid var(--line-strong); }
.service-meta div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.service-meta dt { color: var(--muted); }
.service-meta dd { margin: 0; text-align: right; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.service-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: var(--measure); }
.service-body h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.875rem); }
.service-vn { font-size: var(--fs-md); font-weight: 500; color: var(--rose-text); margin-top: -10px; }
.service-body p { font-size: var(--fs-md); line-height: 1.8; }
.fit { padding: 18px 22px; background: var(--warm-beige); border-radius: var(--radius); }
.fit strong { display: block; margin-bottom: 4px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-text); }
.includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.includes li { display: flex; gap: 14px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.includes li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .7em; border-radius: 50%; background: var(--dusty-rose); }
.includes-title { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.faq { display: grid; border-top: 1px solid var(--line-strong); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 22px; list-style: none; cursor: pointer;
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; color: var(--soft-brown);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-body); font-weight: 300; font-size: 1.625rem; line-height: 1; color: var(--dusty-rose); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; max-width: 64ch; color: var(--ink); }

/* ---------- Journal ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 44px; }
.chip-btn {
  min-height: 40px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink); font: inherit; font-size: .875rem; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.chip-btn:hover { border-color: var(--soft-brown); }
.chip-btn[aria-pressed="true"] { background: var(--soft-brown); border-color: var(--soft-brown); color: var(--soft-white); }
.filter-count { margin-left: auto; font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.upcoming { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.upcoming li { display: grid; gap: 4px 24px; padding-block: 20px; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (min-width: 760px) { .upcoming li { grid-template-columns: 220px minmax(0, 1fr) auto; } }
.up-cat { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-text); }
.up-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; color: var(--soft-brown); }
.up-status { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; align-items: start; } }
.form { display: grid; gap: 22px; scroll-margin-top: calc(var(--header-h) + 24px); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); padding: 0; }
.field .req { color: var(--rose-text); }
fieldset.field { border: 0; margin: 0; padding: 0; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--soft-white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2366564B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
input::placeholder, textarea::placeholder { color: #9A8C80; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--soft-brown); box-shadow: 0 0 0 3px var(--rose-tint); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-size: .9375rem;
  transition: border-color .2s ease, background-color .2s ease;
}
.radio input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--soft-brown); }
.radio:has(input:checked) { border-color: var(--soft-brown); background: var(--warm-beige); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-note { font-size: var(--fs-sm); color: var(--muted); }
.status { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--dusty-rose); border-radius: var(--radius); background: var(--rose-tint); }
.status h3 { font-size: 1.25rem; }
.status pre {
  margin: 0; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--font-body); font-size: .875rem; line-height: 1.6;
  background: var(--soft-white); border-radius: var(--radius); color: var(--ink);
}
.status .actions { margin-top: 0; }
.info { display: grid; margin: 0; }
.info div { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid var(--line); }
.info div:last-child { border-bottom: 1px solid var(--line); }
.info dt { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--ink); overflow-wrap: anywhere; }
.copy-btn {
  min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--soft-brown); font: inherit; font-size: .8125rem; cursor: pointer;
}
.copy-btn:hover { border-color: var(--soft-brown); }
.prep { display: grid; gap: 12px; padding: 24px; background: var(--warm-beige); border-radius: var(--radius); margin-top: 28px; }
.prep h2 { font-size: 1.375rem; }
.prep ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .9375rem; }
.prep li::marker { color: var(--dusty-rose); }

/* ---------- Article ---------- */
.article-head { display: grid; gap: 20px; justify-items: start; padding-block: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 48px); }
.article-head h1 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem); max-width: 22ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--soft-brown); text-decoration: underline; text-underline-offset: 3px; }
.dek { font-size: var(--fs-lg); font-weight: 300; line-height: 1.7; max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-sm); color: var(--muted); }
.byline span + span::before { content: "·"; margin-right: 10px; color: var(--taupe); }
.article-art { margin-bottom: clamp(40px, 6vw, 72px); }
.article-layout { display: grid; gap: 36px; }
@media (min-width: 1040px) { .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; } }
.toc { align-self: start; font-size: var(--fs-sm); }
@media (min-width: 1040px) { .toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 32px); } }
@media (max-width: 1039px) { .toc { padding-block: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } }
.toc-title { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.toc a { display: block; padding-left: 14px; border-left: 1px solid var(--line-strong); color: var(--muted); text-decoration: none; line-height: 1.5; transition: color .2s ease, border-color .2s ease; }
.toc a:hover { color: var(--soft-brown); border-color: var(--dusty-rose); }

.prose { display: flex; flex-direction: column; gap: 1.15em; max-width: var(--measure); min-width: 0; font-size: var(--fs-md); line-height: 1.8; }
.prose h2 { margin-top: 1.3em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin-top: .5em; font-size: 1.25rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: .55em; }
.prose li::marker { color: var(--dusty-rose); }
.prose ol li::marker { font-family: var(--font-display); font-style: italic; }
.prose strong { font-weight: 600; color: var(--soft-brown); }
.prose em { font-style: italic; }
.prose a { color: var(--rose-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pull {
  margin: .4em 0; padding-block: 22px; border-top: 1px solid var(--dusty-rose); border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.45; color: var(--soft-brown);
}
.try { display: grid; gap: 12px; padding: 24px clamp(20px, 3vw, 32px); background: var(--warm-beige); border-radius: var(--radius); }
.try-label { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-text); }
.figure { margin: .4em 0; display: grid; gap: 14px; min-width: 0; }
.figure figcaption { font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table, .table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
th { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line-strong); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); vertical-align: bottom; }
td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { font-weight: 500; color: var(--soft-brown); }
.num { text-align: right; white-space: nowrap; }
tfoot td { border-bottom: 0; font-weight: 600; color: var(--soft-brown); }
.meter { display: block; height: 8px; width: calc(var(--v) * 10%); min-width: 8px; margin-top: .55em; background: var(--sand); border-radius: 2px; }

.venn { display: block; width: 100%; max-width: 400px; height: auto; }
.venn .v1 { fill: var(--sand); fill-opacity: .75; }
.venn .v2 { fill: var(--dusty-rose); fill-opacity: .42; }
.venn .v3 { fill: var(--taupe); fill-opacity: .4; }
.venn .vt { font-family: var(--font-body); font-size: 13px; font-weight: 500; fill: var(--ink); }
.venn .vc { font-family: var(--font-display); font-size: 18px; font-style: italic; fill: var(--ink); }

.bar { display: flex; gap: 2px; height: 44px; border-radius: var(--radius); overflow: hidden; }
.bar span { flex: var(--w) 1 0%; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-sm); color: var(--ink); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; }
.legend b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--soft-brown); }
.c1 { background: var(--soft-brown); }
.c2 { background: var(--taupe); }
.c3 { background: var(--sand); }
.c4 { background: var(--dusty-rose); }
.c-beige { background: #CDB89C; }
.c-ivory { background: #F3E9D7; box-shadow: inset 0 0 0 1px var(--line-strong); }

.palettes { display: grid; gap: 22px; }
.palette-row { display: grid; gap: 10px; }
.palette-row h4 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.chip { display: flex; flex-direction: column; gap: 6px; font-size: .75rem; line-height: 1.35; color: var(--muted); min-width: 0; }
.chip i { display: block; aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--radius); background: var(--c); box-shadow: inset 0 0 0 1px rgba(59, 49, 43, .1); }

.ratios { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ratio { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; }
.ratio-fig { display: grid; grid-template-rows: calc(var(--top) * 1%) 1fr; gap: 3px; height: 168px; }
.ratio-fig span:first-child { background: var(--sand); border-radius: 2px 2px 0 0; }
.ratio-fig span:last-child { background: var(--soft-brown); border-radius: 0 0 2px 2px; }
.ratio p { font-size: .875rem; line-height: 1.55; color: var(--muted); }
.ratio strong { display: block; font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; color: var(--soft-brown); font-variant-numeric: tabular-nums; }

.piles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pile { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: .9375rem; line-height: 1.6; }
.pile b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--soft-brown); }
.pile--keep { background: var(--warm-beige); border-color: var(--warm-beige); }

.math { display: grid; gap: 4px; padding: 22px clamp(20px, 3vw, 28px); border-top: 1px solid var(--dusty-rose); border-bottom: 1px solid var(--line); }
.math p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-block: 6px; }
.eq { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--soft-brown); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.math p span:last-child { color: var(--muted); font-size: .9375rem; }

.calc { display: grid; gap: 14px; padding: 24px clamp(20px, 3vw, 32px); background: var(--warm-beige); border-radius: var(--radius); }
.calc-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.calc-out { display: grid; gap: 4px; }
.calc-out .label { font-size: var(--fs-sm); font-weight: 500; }
.calc output { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; color: var(--soft-brown); font-variant-numeric: tabular-nums lining-nums; min-height: 48px; display: flex; align-items: center; }

.article-end { display: grid; gap: 28px; padding-block: 56px var(--space-section); }
.series-nav { display: grid; gap: 14px; }
@media (min-width: 720px) { .series-nav { grid-template-columns: 1fr 1fr; } }
.series-nav a {
  display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  text-decoration: none; transition: border-color .2s ease, background-color .2s ease;
}
.series-nav a:hover { border-color: var(--soft-brown); background: var(--warm-beige); }
.series-nav .next { text-align: right; }
.series-nav .dir { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.series-nav .t { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; color: var(--soft-brown); }
.author { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
.monogram {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--warm-beige); color: var(--soft-brown); font-family: var(--font-display); font-style: italic; font-size: 1.5rem;
}
.author p { font-size: .9375rem; color: var(--muted); }
.author strong { color: var(--ink); font-weight: 500; }

/* ---------- 404 ---------- */
.lost { display: grid; gap: 40px; padding-block: clamp(56px, 9vw, 120px); }
@media (min-width: 900px) { .lost { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: start; } }
.lost-code { font-family: var(--font-display); font-style: italic; font-size: clamp(4.5rem, 3rem + 6vw, 8rem); line-height: 1; color: var(--sand); }
.lost-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.lost-links a { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.35; color: var(--soft-brown); }
.lost-links a::after { content: "→"; font-family: var(--font-body); color: var(--dusty-rose); }
.lost-links a:hover { color: var(--ink); }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--soft-brown); color: var(--soft-white); }
.cta-band .wrap { display: grid; gap: 28px; padding-block: clamp(56px, 7vw, 96px); }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; } }
.cta-band h2 { color: var(--soft-white); max-width: 22ch; }
.cta-band h2 em { color: var(--sand); }
.cta-band p { margin-top: 14px; max-width: 54ch; color: var(--warm-beige); }

.site-footer { padding-block: 64px 32px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.cta-band + .site-footer { border-top: 0; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.4fr 1.3fr; gap: 48px; } }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand .logo { margin: 0; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-brand .tagline { font-size: 1.0625rem; }
.footer-title { margin-bottom: 14px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--rose-text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }

.num .meter { margin-left: auto; }
