/* SUTRA — book library
   A dark, editorial surface for long-form work. */

:root {
  color-scheme: dark;

  --bg: #0a0b0e;
  --bg-2: #0d0f14;
  --panel: #12151c;
  --panel-2: #171b24;
  --ink: #f3f0e9;
  --ink-2: #cbc6ba;
  --muted: #908b7f;
  --line: rgba(243, 240, 233, 0.10);
  --line-2: rgba(243, 240, 233, 0.17);
  --gold: #d9a441;
  --gold-2: #f0c979;
  --gold-soft: rgba(217, 164, 65, 0.13);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: min(1180px, calc(100% - 48px));
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(217, 164, 65, 0.10), transparent 62%),
    radial-gradient(900px 520px at 6% 12%, rgba(90, 169, 255, 0.07), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; }

a { color: inherit; }

::selection { background: var(--gold); color: #14100a; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #14100a;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 14px; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 14, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand__mark img {
  display: block;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 10px rgba(217, 164, 65, 0.18));
}

.brand__word {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.28em;
  padding-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--ink); }
.nav__ext { color: var(--muted) !important; }
.nav__ext:hover { color: var(--gold) !important; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow__rule {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(64px, 9vw, 118px) 0 clamp(40px, 6vw, 64px);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #fffdf8 0%, #d8d1c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 62ch;
  margin: 28px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--ink-2);
}
.hero__lede strong { color: var(--ink); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: clamp(40px, 6vw, 64px) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 22px 24px 22px 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }

.stat dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  color: var(--ink);
}

.stat:last-child dd {
  font-size: clamp(20px, 2.1vw, 26px);
  letter-spacing: 0.01em;
}

/* ---------- Method ---------- */

.method {
  padding: clamp(56px, 8vw, 92px) 0 clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  border-top: 1px solid var(--line);
}

.method h2,
.library h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.method__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.method__steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  font-size: 14px;
  color: var(--ink-2);
}

.method__steps span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* ---------- Library ---------- */

.library {
  padding: clamp(48px, 7vw, 84px) 0 24px;
  border-top: 1px solid var(--line);
}

.library__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.library__count {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(360px, 100%);
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.search:focus-within {
  border-color: rgba(217, 164, 65, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: invert(0.6); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.is-on {
  background: var(--gold-soft);
  border-color: rgba(217, 164, 65, 0.5);
  color: var(--gold-2);
}

/* ---------- Book plates ---------- */

.books {
  display: grid;
  gap: 30px;
}

.book {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 40%),
    var(--panel);
  overflow: hidden;
  animation: book-in 0.55s var(--ease) both;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.book:nth-child(2) { animation-delay: 0.06s; }
.book:nth-child(3) { animation-delay: 0.12s; }
.book:nth-child(4) { animation-delay: 0.18s; }
.book:nth-child(5) { animation-delay: 0.24s; }

@keyframes book-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* An expanded series list makes the body tall; stack that card so the
   landscape wrap keeps its full width instead of floating in a tall mat. */
.book:has(.volumes[open]) { grid-template-columns: 1fr; }
.book:has(.volumes[open]) .book__cover {
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.book::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.book:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  box-shadow:
    0 30px 70px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent);
}
.book:hover::before { opacity: 1; }

.book__cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(255, 255, 255, 0.05), transparent 60%),
    #07080b;
  cursor: zoom-in;
  overflow: hidden;
}

.book__wrap {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  transition: transform 0.7s var(--ease), filter 0.4s ease;
}
.book:hover .book__wrap { transform: scale(1.018); filter: saturate(1.05); }

.book__cover-cta {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 11, 14, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.book:hover .book__cover-cta,
.book__cover:focus-visible .book__cover-cta {
  opacity: 1;
  transform: none;
}

.book__body {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
}

.book__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.book__cat {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--st, var(--ink-2));
  white-space: nowrap;
}
.status--writing { --st: #e8b45a; }
.status--edit { --st: #7db8ff; }
.status--development { --st: #b8a1ff; }
.status--forthcoming { --st: #b8a1ff; }

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--st, var(--ink-2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--st, #fff) 16%, transparent);
}

.book__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.book__sub {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.35;
  color: var(--gold-2);
}

.book__desc {
  margin: 18px 0 0;
  max-width: 48ch;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.68;
}

.book__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
}

.book__meta li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
}

.book__sample {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(217, 164, 65, 0.38);
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.06);
  color: var(--gold-2);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.book__sample:hover {
  background: rgba(217, 164, 65, 0.14);
  border-color: rgba(217, 164, 65, 0.65);
}

.book__by {
  margin: auto 0 0;
  padding-top: 20px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.book__by span { color: var(--ink-2); }
.book__by .book__imprint {
  color: var(--gold-2);
  letter-spacing: 0.1em;
}

/* Volumes */

.volumes {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.volumes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.volumes summary::-webkit-details-marker { display: none; }
.volumes summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--gold);
  font-size: 15px;
}
.volumes[open] summary::after { content: "−"; }
.volumes__hint { color: var(--muted); font-size: 11.5px; }
.volumes[open] .volumes__hint { display: none; }

.volumes__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  max-height: 248px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.volumes__list::-webkit-scrollbar { width: 6px; }
.volumes__list::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
}

.volumes__list li {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
}

.volumes__num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gold);
  padding-top: 2px;
}

/* Empty / noscript */

.empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
}

.noscript {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */

.site-foot {
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
}

.site-foot__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-foot__brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.site-foot__lock {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-foot__lock img {
  display: block;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 14px rgba(217, 164, 65, 0.18));
}

.install {
  appearance: none;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.08);
  color: var(--gold-2);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.install:hover {
  background: rgba(217, 164, 65, 0.16);
  border-color: rgba(217, 164, 65, 0.7);
}
.install[hidden] { display: none; }

.site-foot__meta {
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}
.site-foot__meta p { margin: 0 0 4px; }
.site-foot__meta a { text-decoration: none; color: var(--ink-2); }
.site-foot__meta a:hover { color: var(--gold); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(217, 164, 65, 0.06), transparent 65%),
    #06070a;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__figure {
  margin: 0;
  max-width: min(1500px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  transform: scale(0.985);
  transition: transform 0.2s var(--ease);
}
.lightbox.is-open .lightbox__figure { transform: none; }

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.95);
  background: #07080b;
}

.lightbox__figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.lightbox__eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.lightbox__title {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 21px);
  color: var(--ink);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 21, 28, 0.72);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(217, 164, 65, 0.16);
  border-color: rgba(217, 164, 65, 0.5);
}

.lightbox__close {
  top: clamp(12px, 2.5vw, 28px);
  right: clamp(12px, 2.5vw, 28px);
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 28px;
  line-height: 1;
}
.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); }
.lightbox__nav[hidden] { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .method { grid-template-columns: 1fr; }
  .method__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .book { grid-template-columns: 1fr; }
  .book__cover { border-right: 0; border-bottom: 1px solid var(--line); }
  .book__cover-cta { opacity: 1; transform: none; }
  .book__body { padding: 28px; }
  .book__desc { max-width: 62ch; }
}

@media (max-width: 760px) {
  :root { --wrap: calc(100% - 32px); }

  .nav { gap: 18px; font-size: 13px; }
  .nav a[href="#method"] { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .method__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .library__head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .chips { flex-wrap: wrap; }

  .volumes__list { grid-template-columns: 1fr; }

  .site-foot__meta { text-align: left; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand__word { font-size: 18px; letter-spacing: 0.22em; }
  .nav { gap: 14px; }
  .nav__ext { display: none; }
  .book__top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .book__body { padding: 22px; }
  .lightbox__nav { width: 42px; height: 42px; }
}

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

/* ---------- Sample reader ---------- */

.sample {
  padding: clamp(44px, 7vw, 84px) 0 24px;
}

.sample__crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto 30px;
  font-size: 12px;
  color: var(--muted);
}

.sample__crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}
.sample__crumbs a:hover { color: var(--gold); }

.sample__head {
  max-width: 820px;
  margin: 0 auto 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.sample__book {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.sample__title {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.sample__sub {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--gold-2);
}

.sample__meta {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sample__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(184, 161, 255, 0.4);
  border-radius: 999px;
  color: #b8a1ff;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.prose {
  max-width: 68ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(18px, 1.55vw, 20px);
  line-height: 1.78;
  color: var(--ink-2);
}

.prose p { margin: 0 0 1.25em; }

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.prose h2 {
  margin: 2.1em 0 0.55em;
  font-size: 1.55em;
}
.prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.22em;
}
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }

.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink); }

.prose blockquote {
  margin: 1.6em 0;
  padding-left: 1.1em;
  border-left: 2px solid var(--gold);
  color: var(--ink);
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose ul,
.prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}
.prose li { margin: 0 0 0.4em; }

.prose table {
  width: 100%;
  margin: 1.9em 0;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.92em;
  line-height: 1.5;
}

.prose .table-wrap {
  margin: 1.9em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose .table-wrap table { margin: 0; min-width: 420px; }

.prose th,
.prose td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-size: 0.76em;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-2);
}

.prose td:first-child { color: var(--ink); }

.prose hr {
  margin: 2.2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose a {
  color: var(--gold-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.prose code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 0.85em;
}

.prose pre {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0d12;
}
.prose pre code { background: none; padding: 0; }

.prose .footnote {
  margin-top: 2.4em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.prose .footnote hr { display: none; }
.prose .footnote ol { padding-left: 1.2em; }
.prose sup { font-size: 0.7em; }

.sample__nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 68ch;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.sample__nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.sample__nav a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .sample__head { margin-bottom: 32px; }
  .sample__nav { flex-direction: column; gap: 14px; }
}
