/* ===========================================================
   刻舟求剑 · Beyond the Mark — light editorial theme
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  background: #f5f1e8;
  color: #1a1a1a;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 60rem 40rem at 80% -5%, rgba(45, 90, 79, .08), transparent 60%),
    radial-gradient(ellipse 50rem 35rem at 10% 30%, rgba(166, 106, 61, .05), transparent 60%);
  background-attachment: fixed;
}
body[data-bg-grain='1']::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: .55;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.mono { font-family: 'JetBrains Mono', 'Cascadia Code', ui-monospace, SFMono-Regular, monospace; font-feature-settings: 'zero' 1; }

::selection { background: #2d5a4f; color: #f5f1e8; }

.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
@media (max-width: 720px) { .shell { width: calc(100% - 32px); } }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #6c6357;
  margin: 0;
}
.eyebrow .num { color: #2d5a4f; font-weight: 600; margin-right: 4px; }

/* ----- Skip link ----- */
.skip-link {
  position: fixed; top: -100px; left: 24px; z-index: 100;
  padding: 10px 16px; background: #1a1a1a; color: #f5f1e8;
  border-radius: 6px; font-weight: 500; font-size: .85rem;
  transition: top .2s;
}
.skip-link:focus { top: 18px; outline: 2px solid #2d5a4f; outline-offset: 3px; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 232, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(26, 26, 26, .08);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: #2d5a4f; }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong {
  font-family: 'Fraunces', Georgia, 'PingFang SC', serif;
  font-weight: 600; font-size: 1.22rem; line-height: 1;
  letter-spacing: .01em; color: #1a1a1a;
}
.brand-text .dot { color: #a66a3d; }
.brand-text small {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .58rem; letter-spacing: .22em; color: #8a8275; text-transform: uppercase;
}

.nav { display: flex; gap: 28px; }
.nav-link {
  font-size: .9rem; color: #5c5a55; position: relative;
  padding: 4px 0; transition: color .2s;
  font-weight: 450;
}
.nav-link:hover { color: #1a1a1a; }
.nav-link.nav-current { color: #1a1a1a; }
.nav-link.nav-current::after {
  content: ''; position: absolute; bottom: -2px; left: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: #2d5a4f; transform: translateX(-50%);
}

.header-tail { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none;
  padding: 8px 12px; gap: 6px;
  border: 1px solid rgba(26, 26, 26, .12); border-radius: 999px;
  font-size: .82rem; color: #1a1a1a; background: #fbf8f1;
}

/* ----- Language switcher (iOS-style segmented) ----- */
.lang-switch {
  position: relative;
  display: inline-flex; padding: 3px;
  background: #ece5d4;
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 26, .06);
}
.lang-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  background: #fffbf2;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(26, 26, 26, .12), 0 0 0 1px rgba(26, 26, 26, .04);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  touch-action: none;
  cursor: grab;
}
.lang-switch[data-locale='en'] .lang-thumb { transform: translateX(calc(100% + 0px)); }
.lang-switch .lang-thumb.is-dragging { transition: none; cursor: grabbing; }
.lang-switch-sm { transform: scale(.92); transform-origin: left center; }
.lang-btn {
  position: relative; z-index: 1;
  padding: 5px 12px; min-width: 36px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .72rem; font-weight: 500;
  color: #6c6357; border-radius: 999px;
  letter-spacing: .04em;
  transition: color .2s;
}
.lang-btn[aria-pressed='true'] { color: #1a1a1a; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 56px; align-items: center;
  padding-top: 80px; padding-bottom: 88px;
  min-height: 580px;
}
.hero-copy { max-width: 580px; }
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(45, 90, 79, .08);
  border: 1px solid rgba(45, 90, 79, .18);
  border-radius: 999px;
  color: #2d5a4f;
  margin-bottom: 28px;
}
.hero-copy .eyebrow::before {
  content: '+'; font-family: 'JetBrains Mono', monospace; color: #2d5a4f;
}
h1 {
  font-family: 'Fraunces', 'Songti SC', Georgia, serif;
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 24px;
  color: #1a1a1a;
  font-variation-settings: 'opsz' 96;
}
h1 em {
  font-style: italic; font-weight: 400;
  color: #2d5a4f;
}
.hero-lede {
  font-size: 1.05rem; line-height: 1.7;
  color: #4a4842; max-width: 520px;
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s, box-shadow .25s;
}
.btn-primary {
  background: #1a1a1a; color: #f5f1e8;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 20px -8px rgba(26,26,26,.4);
}
.btn-primary:hover { transform: translateY(-2px); background: #2d5a4f; box-shadow: 0 8px 24px -6px rgba(45, 90, 79, .35); }
.btn-primary svg { transition: transform .2s; }
.btn-primary:hover svg { transform: translate(2px, -2px); }
.btn-text { color: #1a1a1a; padding: 10px 0; border-bottom: 1px solid transparent; gap: 8px; }
.btn-text .arrow { transition: transform .2s; display: inline-block; }
.btn-text:hover { color: #2d5a4f; border-bottom-color: rgba(45, 90, 79, .3); }
.btn-text:hover .arrow { transform: translateX(4px); }

.hero-foot {
  display: flex; align-items: center; gap: 12px;
  margin: 56px 0 0; color: #6c6357;
  font-size: .78rem;
}
.hero-foot .rule { width: 20px; height: 1px; background: #b8b1a3; }
.hero-foot .mono { color: #8a8275; letter-spacing: .12em; font-size: .68rem; }

/* =====================================================
   BOAT (interactive figure)
   ===================================================== */
.boat {
  position: relative;
  background: #fbf8f1;
  border: 1px solid rgba(26, 26, 26, .08);
  border-radius: 18px;
  padding: 14px 16px 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 24px 50px -22px rgba(45, 90, 79, .18);
  overflow: hidden;
}
.boat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 6px 12px; font-size: .68rem;
  color: #6c6357; letter-spacing: .14em;
  text-transform: uppercase;
}
.boat-head .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #2d5a4f; margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(45, 90, 79, .15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .7; } 50% { opacity: 1; transform: scale(1.3); } }
.boat-canvas {
  position: relative; margin: 0;
  background: #fffbf2; border: 1px solid rgba(26, 26, 26, .05);
  border-radius: 12px; padding: 14px;
}
.boat-caption {
  position: absolute; top: 14px; left: 14px;
  margin: 0; z-index: 1;
  font-size: .82rem; color: #1a1a1a;
}
.boat-caption strong { display: block; font-weight: 600; }
.boat-caption span { font-size: .68rem; color: #8a8275; letter-spacing: .04em; margin-top: 2px; display: block; }
.boat-svg { width: 100%; height: auto; display: block; margin-top: 4px; }
.boat-controls {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 10px 12px;
  background: #f5f1e8; border: 1px solid rgba(26, 26, 26, .05);
  border-radius: 10px;
}
.ctrl {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; color: #4a4842; flex-shrink: 0;
  background: transparent; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.ctrl:hover { color: #2d5a4f; background: rgba(45, 90, 79, .08); }
.ctrl-play { background: #2d5a4f; color: #f5f1e8; }
.ctrl-play:hover { background: #1a1a1a; color: #f5f1e8; }
.ctrl-play .i-pause { display: none; }
.ctrl-play.is-playing .i-play { display: none; }
.ctrl-play.is-playing .i-pause { display: block; }
.ctrl-time { color: #4a4842; font-size: .72rem; white-space: nowrap; min-width: 110px; }
.ctrl-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 3px; background: rgba(26, 26, 26, .12); border-radius: 999px;
  cursor: pointer; margin: 0 4px;
}
.ctrl-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: #2d5a4f; cursor: grab;
  box-shadow: 0 0 0 3px rgba(45, 90, 79, .15);
  border: 2px solid #fffbf2;
}
.ctrl-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #2d5a4f; cursor: grab; border: 2px solid #fffbf2;
  box-shadow: 0 0 0 3px rgba(45, 90, 79, .15);
}
.boat-foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 10px 4px 0; color: #6c6357;
  font-size: .7rem; line-height: 1.5;
}
.boat-foot .mono { color: #8a8275; font-size: .66rem; letter-spacing: .04em; }

/* =====================================================
   METHOD
   ===================================================== */
.method {
  display: flex; align-items: center; gap: 36px;
  padding: 22px 32px;
  background: #fbf8f1;
  border-top: 1px solid rgba(26, 26, 26, .08);
  border-bottom: 1px solid rgba(26, 26, 26, .08);
}
.method-cap { font-size: .88rem; color: #4a4842; flex-shrink: 0; }
.method-list {
  display: flex; gap: 32px; margin: 0; padding: 0; list-style: none;
  margin-left: auto; align-items: center;
}
.method-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: #1a1a1a; font-weight: 450;
}
.method-list li + li::before {
  content: ''; display: block; width: 5px; height: 5px;
  background: #d4cebd; border-radius: 50%;
  margin-right: 32px; margin-left: -16px;
}
.method-list .mono { color: #8a8275; font-size: .68rem; letter-spacing: .06em; }

/* =====================================================
   TOPIC GRID
   ===================================================== */
.topics { padding-top: 96px; padding-bottom: 96px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; margin-bottom: 44px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: 'Fraunces', 'Songti SC', Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -.022em;
  margin: 12px 0 0; line-height: 1.15;
  color: #1a1a1a;
}
.section-head h2 em { color: #a66a3d; font-style: normal; font-weight: 500; }
.section-lede { font-size: .9rem; color: #6c6357; margin: 0; max-width: 320px; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.topic {
  background: #fbf8f1;
  border: 1px solid rgba(26, 26, 26, .08);
  border-radius: 18px; overflow: hidden;
  scroll-margin-top: 110px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .25s;
}
.topic:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(26, 26, 26, .18); border-color: rgba(45, 90, 79, .25); }
.topic:target { border-color: #2d5a4f; box-shadow: 0 0 0 3px rgba(45, 90, 79, .1); }
.topic-open { display: block; width: 100%; height: 100%; text-align: left; }
.topic-open:focus-visible { outline: 2px solid #2d5a4f; outline-offset: -4px; }
.topic-art {
  position: relative; height: 220px;
  background: #fffbf2;
  border-bottom: 1px solid rgba(26, 26, 26, .06);
  padding: 18px 20px 14px;
  overflow: hidden;
}
.topic-art[data-color='sage'] { background: linear-gradient(180deg, #fffbf2, rgba(45, 90, 79, .06)); }
.topic-art[data-color='steel'] { background: linear-gradient(180deg, #fffbf2, rgba(58, 90, 122, .06)); }
.topic-art[data-color='clay'] { background: linear-gradient(180deg, #fffbf2, rgba(166, 106, 61, .08)); }
.topic-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; font-weight: 500;
}
.topic-art[data-color='sage'] .topic-meta { color: #2d5a4f; }
.topic-art[data-color='steel'] .topic-meta { color: #3a5a7a; }
.topic-art[data-color='clay'] .topic-meta { color: #a66a3d; }
.topic-meta .mono { font-size: .62rem; letter-spacing: .14em; opacity: .7; text-transform: uppercase; }
.topic-num {
  position: absolute; top: 18px; right: 20px;
  font-size: .68rem; color: #8a8275;
}
.topic-fig { width: 100%; height: 140px; margin: 8px 0 4px; }
.topic-cap {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-size: .68rem; color: #8a8275; letter-spacing: .06em;
}
.topic-body { padding: 22px 24px 20px; }
.topic-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #8a8275; margin: 0 0 10px;
}
.topic-body h3 {
  font-family: 'Fraunces', 'Songti SC', Georgia, serif;
  font-size: 1.22rem; font-weight: 500;
  line-height: 1.35; letter-spacing: -.015em;
  color: #1a1a1a; margin: 0 0 10px;
}
.topic-body p { font-size: .92rem; line-height: 1.7; color: #5c5a55; margin: 0; }
.topic-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px; padding-top: 14px;
  border-top: 1px solid rgba(26, 26, 26, .06);
  font-size: .74rem; color: #8a8275;
}
.topic-foot .arrow {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid rgba(26, 26, 26, .12); border-radius: 50%;
  font-size: .9rem; color: #4a4842;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s, border-color .2s;
}
.topic:hover .topic-foot .arrow {
  background: #2d5a4f; color: #f5f1e8; border-color: #2d5a4f; transform: rotate(45deg);
}

/* =====================================================
   ESSAY
   ===================================================== */
.essay {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fbf8f1;
  border: 1px solid rgba(26, 26, 26, .08);
  border-radius: 22px; overflow: hidden;
  margin-bottom: 96px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 60px -30px rgba(26, 26, 26, .12);
}
.essay-art { padding: 32px; border-right: 1px solid rgba(26, 26, 26, .08); }
.essay-fig { width: 100%; height: auto; margin-top: 4px; }
.essay-art-note {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 4px 0; font-size: .76rem; color: #5c5a55;
}
.amber-dot, .green-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.amber-dot { background: #a66a3d; }
.green-dot { background: #2d5a4f; }
.essay-art-note .dotted {
  flex: 1; border-top: 1px dashed rgba(26, 26, 26, .15);
  margin: 0 6px; min-width: 20px;
}
.essay-copy { padding: 44px 48px 40px; }
.essay-copy h2 {
  font-family: 'Fraunces', 'Songti SC', Georgia, serif;
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  font-weight: 500; letter-spacing: -.022em;
  margin: 14px 0 14px; line-height: 1.15;
  color: #1a1a1a;
}
.essay-deck {
  font-family: 'Fraunces', serif;
  font-style: italic; font-size: 1.15rem;
  line-height: 1.55; color: #4a4842;
  margin: 0 0 20px;
}
.essay-lede { font-size: .95rem; line-height: 1.85; color: #4a4842; margin: 0 0 28px; max-width: 480px; }
.essay-tags { display: flex; gap: 8px; padding: 0; margin: 28px 0 0; list-style: none; flex-wrap: wrap; }
.essay-tags li {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgba(26, 26, 26, .12);
  border-radius: 999px; color: #5c5a55;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about {
  display: grid; grid-template-columns: 1fr 2.4fr; gap: 56px;
  padding-top: 56px; padding-bottom: 80px;
  border-top: 1px solid rgba(26, 26, 26, .08);
}
.about-label { display: flex; flex-direction: column; gap: 22px; }
.about-mark { font-family: 'Fraunces', serif; color: #2d5a4f; font-size: 3rem; line-height: 1; margin: 0; font-weight: 300; }
.about-copy h2 {
  font-family: 'Fraunces', 'Songti SC', Georgia, serif;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 500; line-height: 1.35;
  letter-spacing: -.018em;
  color: #1a1a1a; margin: 0 0 18px;
}
.about-copy p { font-size: 1rem; line-height: 1.9; color: #4a4842; margin: 0 0 18px; max-width: 640px; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(26, 26, 26, .08);
}
.foot-tag { font-size: .82rem; color: #6c6357; margin: 0; }
.foot-top {
  font-size: .8rem; color: #4a4842; display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s, gap .2s;
}
.foot-top:hover { color: #2d5a4f; gap: 10px; }
.foot-copy {
  flex-basis: 100%; font-size: .7rem; color: #8a8275; letter-spacing: .04em;
  margin: 0; padding-top: 12px; border-top: 1px solid rgba(26, 26, 26, .04);
}

/* =====================================================
   DIALOG
   ===================================================== */
.dialog { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.dialog[hidden] { display: none; }
.dialog-scrim {
  position: absolute; inset: 0;
  background: rgba(26, 26, 26, .32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .2s ease;
}
.dialog-panel {
  position: relative; z-index: 1;
  width: min(720px, 100%);
  max-height: 90vh; overflow-y: auto;
  background: #fbf8f1; color: #1a1a1a;
  border: 1px solid rgba(26, 26, 26, .1);
  border-radius: 20px;
  padding: 40px 44px 36px;
  box-shadow: 0 30px 80px -20px rgba(26, 26, 26, .25);
  animation: rise .25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.dialog-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #f5f1e8; color: #1a1a1a;
  border: 1px solid rgba(26, 26, 26, .1);
  transition: background .2s, color .2s;
}
.dialog-close:hover { background: #2d5a4f; color: #f5f1e8; border-color: #2d5a4f; }
.dialog-eyebrow { font-size: .68rem; letter-spacing: .14em; color: #6c6357; margin-bottom: 18px; text-transform: uppercase; }
.dialog-eyebrow span { color: #1a1a1a; }
.dialog-title {
  font-family: 'Fraunces', 'Songti SC', Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500; line-height: 1.3; letter-spacing: -.02em;
  margin: 0 0 14px; color: #1a1a1a;
}
.dialog-intro { font-size: 1rem; line-height: 1.75; color: #4a4842; padding-bottom: 24px; border-bottom: 1px solid rgba(26, 26, 26, .08); margin: 0 0 24px; }
.dialog-body section { margin: 28px 0; }
.dialog-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem; font-weight: 500;
  margin: 0 0 12px; color: #1a1a1a;
  letter-spacing: -.01em;
}
.dialog-body p { font-size: 1rem; line-height: 1.9; color: #4a4842; margin: 12px 0; }
.dialog-formula {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .88rem; line-height: 1.7;
  padding: 16px 18px; margin: 18px 0;
  background: #fffbf2; border-left: 3px solid #2d5a4f;
  border-radius: 0 8px 8px 0;
  color: #2d5a4f;
  overflow-wrap: anywhere;
}
.dialog-take {
  background: #fffbf2; border: 1px solid rgba(45, 90, 79, .25);
  border-radius: 12px; padding: 22px 24px;
  margin: 32px 0 0;
}
.dialog-take-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: #2d5a4f; margin: 0 0 8px;
}
.dialog-take p { font-family: 'Fraunces', serif; font-size: 1.05rem; color: #1a1a1a; margin: 0; }
.dialog-note { font-size: .72rem; color: #8a8275; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(26, 26, 26, .06); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .hero { gap: 36px; }
  .nav { gap: 22px; }
  .essay-copy { padding: 36px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .nav.nav-open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fbf8f1; border-bottom: 1px solid rgba(26, 26, 26, .08);
    padding: 12px 24px;
    box-shadow: 0 12px 30px rgba(26, 26, 26, .08);
  }
  .nav.nav-open a { padding: 12px 4px; border-bottom: 1px solid rgba(26, 26, 26, .05); }
  .nav.nav-open a:last-child { border-bottom: 0; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; padding-bottom: 64px; }
  .hero-copy .eyebrow { margin-bottom: 22px; }
  .hero-foot { margin-top: 36px; }
  .method { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 24px; }
  .method-list { flex-wrap: wrap; gap: 14px 24px; margin-left: 0; }
  .method-list li + li::before { display: none; }
  .topic-grid { grid-template-columns: 1fr; gap: 18px; }
  .essay { grid-template-columns: 1fr; }
  .essay-art { border-right: 0; border-bottom: 1px solid rgba(26, 26, 26, .08); padding: 28px; }
  .essay-copy { padding: 32px 28px; }
  .about { grid-template-columns: 1fr; gap: 32px; padding-block: 56px; }
  .about-label { flex-direction: row; align-items: center; justify-content: space-between; }
  .topics { padding-top: 72px; padding-bottom: 72px; }
  .section-head { margin-bottom: 30px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .site-header { background: rgba(245, 241, 232, .94); }
  .header-row { height: 64px; }
  .brand-text strong { font-size: 1.08rem; }
  .brand-text small { font-size: .54rem; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
  h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-lede { font-size: .98rem; }
  .hero-foot .mono { display: none; }
  .boat { padding: 12px; }
  .boat-head { padding: 4px 4px 10px; font-size: .62rem; }
  .boat-caption { font-size: .76rem; }
  .boat-caption strong { font-size: .78rem; }
  .ctrl-time { min-width: 80px; font-size: .66rem; }
  .lang-switch-sm { display: none; }
  .foot-copy { font-size: .66rem; }
  .dialog-panel { padding: 32px 22px 28px; border-radius: 16px; }
  .dialog-close { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
