/* Endo & Iron — site styles
   One light "printed journal" look by design, matching the guides (single theme on purpose).
   Layout: a 1200px column, generous white space, hairline rules between sections;
   each guide carries its own accent (bordeaux for Muscle, Not Fat, rose and plum for Built Different). */

@font-face { font-family: "Heros"; src: url("../fonts/heros-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Heros"; src: url("../fonts/heros-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("../fonts/pagella-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("../fonts/pagella-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("../fonts/pagella-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  /* color */
  --paper: #FAF8F5;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --text: #2E2B29;
  --muted: #5E5955;
  --rule: #E4DFD9;
  --rule-soft: #ECE8E3;
  --mnf: #9E1B32;
  --mnf-soft: #F7EEEF;
  --mnf-line: #E3C9CE;
  --bd: #B3336C;
  --bd-ink: #3A1832;
  --bd-soft: #FBF0F4;
  --bd-line: #F0D3DF;
  --night: #141213;
  --night-text: #E9E4E0;
  --night-muted: #A8A19B;
  --night-rule: #34302F;
  --night-accent: #E8708F;
  /* page accent: bordeaux by default, rose on the Built Different page */
  --accent: var(--mnf);
  --accent-soft: var(--mnf-soft);
  --accent-line: var(--mnf-line);
  --head: var(--ink);
  /* type */
  --sans: "Heros", "Helvetica Neue", Helvetica, "Nimbus Sans", sans-serif;
  --serif: "Pagella", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --italic-accent: var(--serif);
  /* layout */
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 32px);
  color-scheme: light;
}
body.bd { --accent: var(--bd); --accent-soft: var(--bd-soft); --accent-line: var(--bd-line); --head: var(--bd-ink); --italic-accent: "Lora", var(--serif); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
@media (max-width: 640px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
b, strong { font-weight: 700; color: var(--ink); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; color: var(--head); text-wrap: balance; margin: 0; }
p { margin: 0; }
.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: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 16px; font-family: var(--sans); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: var(--white); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 104px); }
.section-tight { padding-block: clamp(40px, 6vw, 64px); }
.band { background: var(--white); border-block: 1px solid var(--rule); }
.band-soft { background: var(--accent-soft); border-block: 1px solid var(--accent-line); }
.stack { display: flex; flex-direction: column; }

/* ---------- type helpers ---------- */
.eyebrow { font-family: var(--serif); font-size: 17px; font-variant-caps: small-caps; letter-spacing: 0.08em; color: var(--accent); line-height: 1.3; }
body.bd .eyebrow { font-family: var(--italic-accent); font-style: italic; font-weight: 600; font-variant-caps: normal; letter-spacing: 0; font-size: 18px; }
.h-display { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -0.035em; }
.h-section { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
.h-card { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -0.025em; }
.h-small { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.lede { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.55; color: #3A3734; }
.muted { color: var(--muted); }
.subtitle { font-family: var(--italic-accent); font-style: italic; color: #3A3734; }
.meta { font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { max-width: 540px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  text-decoration: none; border-radius: 2px; border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #000000; color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--head); color: var(--white); }
body:not(.bd) .btn-accent:hover { background: #7A1426; }
.btn-mnf { background: var(--mnf); color: var(--white); }
.btn-mnf:hover { background: #7A1426; color: var(--white); }
.btn-bd { background: var(--bd); color: var(--white); }
.btn-bd:hover { background: var(--bd-ink); color: var(--white); }
.btn.is-soon { background: transparent; color: var(--muted); border-color: #CFC8C1; border-style: dashed; cursor: default; }
.btn.is-soon:hover { background: transparent; color: var(--muted); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding-block: 16px; }
.wordmark { font-family: var(--sans); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--mnf); }
body.bd .wordmark span { color: var(--bd); }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px 26px; font-family: var(--sans); font-size: 15px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding-block: 12px; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { margin-left: 4px; padding-block: 0; }
@media (max-width: 760px) {
  .site-header .wrap { padding-block: 12px 4px; }
  .nav { width: 100%; gap: 0 18px; font-size: 14px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .nav .btn { display: none; }
}

/* ---------- home hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; padding-block: clamp(56px, 8vw, 88px) clamp(48px, 7vw, 72px); }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-text .h-display { max-width: 660px; }
.hero-text .lede { max-width: 590px; }
.hero-covers { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; align-items: flex-start; padding-bottom: 36px; }
.hero-covers img { width: 46%; max-width: 250px; box-shadow: 0 28px 50px -18px rgba(20, 10, 12, 0.45); }
.hero-covers img + img { position: relative; z-index: 2; }
.hero-covers img + img { margin-left: -9%; margin-top: 56px; }
.stats { display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--sans); }
.stat-n { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 14px; color: var(--muted); }

/* ---------- findings ---------- */
.findings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 36px; }
@media (max-width: 1040px) { .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .findings { grid-template-columns: minmax(0, 1fr); } }
.finding { border-top: 1.5px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.finding-n { font-family: var(--sans); font-weight: 700; font-size: clamp(42px, 4vw, 52px); line-height: 1; letter-spacing: -0.03em; color: var(--accent); white-space: nowrap; }
.finding-n.mnf { color: var(--mnf); }
.finding-n.bd { color: var(--bd); }
.finding p { font-size: 17px; line-height: 1.5; }
.finding .src { margin-top: auto; font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--muted); }
.finding .src b { display: block; font-weight: 700; }
.src .mnf { color: var(--mnf); }
.src .bd { color: var(--bd); }

/* ---------- guide cards (home) ---------- */
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 32px; }
.guide { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--mnf); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.guide.bd { border-top-color: var(--bd); }
.guide-top { display: flex; flex-wrap: wrap; gap: 24px 28px; }
.guide-top img { width: 140px; flex: none; box-shadow: 0 16px 30px -14px rgba(20, 10, 12, 0.45); }
.guide-top > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.guide .eyebrow { color: var(--mnf); font-size: 16px; }
.guide.bd .eyebrow { color: var(--bd); font-family: "Lora", var(--serif); font-style: italic; font-weight: 600; font-variant-caps: normal; letter-spacing: 0; }
.guide.bd .h-card { color: var(--bd-ink); }
.guide.bd .subtitle { font-family: "Lora", var(--serif); }
.guide ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 17px; }
.guide li::marker { color: var(--mnf); }
.guide.bd li::marker { color: var(--bd); }
.guide-note { padding: 14px 16px; background: var(--bd-soft); font-size: 16px; line-height: 1.5; color: var(--bd-ink); }
.guide-note b { color: var(--bd); }
.guide-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--rule-soft); }
.price { font-family: var(--sans); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
@media (max-width: 900px) { .why { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.why > div { border-top: 1.5px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.why-n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--mnf); margin-bottom: 6px; }
.why p { color: #3A3734; }

/* ---------- excerpt (a real page) ---------- */
.excerpt { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: flex-start; }
.excerpt-main { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.excerpt-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sci { font-size: 16px; font-variant-caps: small-caps; letter-spacing: 0.06em; color: var(--mnf); }
.excerpt-main p { font-size: 18px; line-height: 1.62; max-width: 66ch; }
sup.ref { font-family: var(--sans); font-size: 12px; font-weight: 700; line-height: 0; }
sup.ref a { color: var(--mnf); text-decoration: none; padding: 0 2px; }
.bars { display: flex; flex-direction: column; gap: 12px; max-width: 560px; font-family: var(--sans); font-size: 14px; margin: 0; }
.bar { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); align-items: center; gap: 14px; }
.bar > span { text-align: right; color: #333333; }
.bar > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar i { display: block; height: 20px; background: var(--ink); flex: none; width: calc(var(--v) * (100% - 116px)); }
.bar i.hi { background: var(--mnf); }
.bar b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.figcap { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; line-height: 1.5; color: #4A4643; max-width: 560px; }
.figcap .fig-n { color: var(--mnf); }
.pe { background: var(--mnf-soft); border-top: 3px solid var(--mnf); padding: 24px 26px; font-family: var(--sans); display: flex; flex-direction: column; gap: 10px; }
.pe-h { font-weight: 700; font-size: 16px; color: var(--mnf); }
.pe-key { font-weight: 700; font-size: 18px; line-height: 1.38; color: var(--ink); }
.pe-body { font-size: 16px; line-height: 1.5; color: #2A2A2A; }
.pe-do { padding-top: 12px; border-top: 1px solid var(--mnf-line); font-size: 16px; line-height: 1.45; color: var(--ink); }
.pe-do b { color: var(--mnf); }
.refnote { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: #4A4643; border-top: 1px solid var(--rule); padding-top: 12px; }
.refnote a { color: var(--mnf); font-weight: 700; }

/* ---------- about ---------- */
.about { display: flex; flex-wrap: wrap; gap: 28px 80px; }
.about-head { flex: 0 1 260px; display: flex; flex-direction: column; gap: 10px; }
.about-body { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about-quote { font-style: italic; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.5; color: var(--ink); max-width: 760px; }
body.bd .about-quote { font-family: "Lora", var(--serif); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 36px 64px; }
.faq > div { border-top: 1px solid #D9D3CC; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.faq h3 { font-size: 19px; line-height: 1.3; color: var(--ink); }
.faq p { color: #3A3734; }

/* ---------- product page ---------- */
.p-hero { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; padding-block: clamp(48px, 7vw, 80px) clamp(56px, 7vw, 88px); }
.p-hero-text { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.p-hero-text .subtitle { font-size: clamp(21px, 2vw, 26px); line-height: 1.35; max-width: 600px; }
.p-hero-text .lede { max-width: 620px; }
.p-cover { flex: 0 1 360px; min-width: 0; margin-inline: auto; }
.p-cover img { width: 100%; max-width: 360px; box-shadow: 0 34px 60px -22px rgba(20, 10, 12, 0.5); }
@media (max-width: 900px) { .p-cover { order: -1; flex-basis: 100%; } .p-cover img { max-width: 230px; margin-inline: auto; } }
.buybox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 22px 0 0; border-top: 1px solid var(--rule); margin-top: 6px; }
.buybox .price { font-size: 34px; }
.buybox-meta { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.buybox-meta span { display: inline-flex; align-items: center; gap: 7px; }
.buybox-meta svg { width: 16px; height: 16px; flex: none; stroke: var(--accent); }
.textlink { font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--ink); }

.split { display: flex; flex-wrap: wrap; gap: 28px 80px; }
.split-head { flex: 0 1 320px; display: flex; flex-direction: column; gap: 12px; }
.split-body { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-body p { max-width: 68ch; }
.callout { font-family: var(--sans); font-size: 17px; line-height: 1.5; color: var(--head); background: var(--accent-soft); border-top: 3px solid var(--accent); padding: 20px 24px; max-width: 68ch; }
.callout b { color: var(--accent); }

.chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 44px; }
@media (max-width: 960px) { .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .chapters { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.chapter > p:last-child { font-size: 17px; line-height: 1.55; color: #3A3734; }
.chapter { border-top: 1.5px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.chapter-n { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
body.bd .chapter-n { font-family: "Lora", var(--serif); font-style: italic; font-weight: 600; font-size: 16px; letter-spacing: 0; }
.chapter h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.chapter ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.5; }
.chapter li::marker { color: var(--accent); }

.previews { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 20px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.preview { margin: 0; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; min-width: 0; }
.preview a { padding: 0; border: 1px solid var(--rule); background: var(--white); cursor: zoom-in; display: block; width: 100%; box-shadow: 0 14px 28px -18px rgba(20, 10, 12, 0.4); transition: transform .2s ease, box-shadow .2s ease; }
.preview a:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -20px rgba(20, 10, 12, 0.5); }
@media (prefers-reduced-motion: reduce) { .preview a, .preview a:hover { transition: none; transform: none; } }
.preview img { width: 100%; aspect-ratio: 1200 / 1698; object-fit: cover; }
.preview figcaption { font-family: var(--sans); font-size: 13px; line-height: 1.4; color: var(--muted); }
.preview figcaption b { color: var(--ink); display: block; }
@media (max-width: 760px) { .previews { grid-template-columns: repeat(5, 62%); } }
.sample-row { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 32px; }
.fit > div { background: var(--white); border: 1px solid var(--rule); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.fit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fit li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 17px; line-height: 1.5; }
.fit li svg { width: 20px; height: 20px; margin-top: 3px; }
.fit .yes svg { stroke: var(--accent); }
.fit .no svg { stroke: #8A837D; }

.specs { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 16px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule-soft); line-height: 1.45; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 34%; font-weight: 700; color: var(--ink); padding-right: 24px; }
.specs td { color: #3A3734; }
@media (max-width: 560px) { .specs th, .specs td { display: block; width: auto; padding: 0; border: 0; } .specs tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); } .specs th { margin-bottom: 4px; } }

.final { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.final img { width: 170px; flex: none; box-shadow: 0 24px 40px -18px rgba(20, 10, 12, 0.45); }
.final > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cross { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; background: var(--white); border: 1px solid var(--rule); padding: clamp(20px, 3vw, 28px); }
.cross img { width: 86px; flex: none; box-shadow: 0 12px 24px -14px rgba(20, 10, 12, 0.45); }
.cross > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

/* sticky buy bar on phones */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--rule); box-shadow: 0 -10px 30px -18px rgba(20, 10, 12, 0.35); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); display: none; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--sans); }
.buybar.show { display: flex; }
.buybar .t { font-weight: 700; font-size: 15px; color: var(--head); line-height: 1.2; }
.buybar .m { font-size: 13px; color: var(--muted); }
@media (min-width: 761px) { .buybar, .buybar.show { display: none; } }
@media (max-width: 760px) { body.has-buybar { padding-bottom: 72px; } }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 860px); width: 100%; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 18, 19, 0.86); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.lightbox img { width: auto; max-width: 100%; max-height: calc(94vh - 70px); margin-inline: auto; background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox figcaption { color: var(--night-text); font-family: var(--sans); font-size: 14px; text-align: center; }
.lb-bar { display: flex; justify-content: center; gap: 10px; }
.lb-btn { min-width: 44px; min-height: 44px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(20, 18, 19, 0.6); color: var(--white); font-family: var(--sans); font-size: 15px; font-weight: 700; cursor: pointer; padding: 0 14px; }
.lb-btn:hover { background: var(--white); color: var(--ink); }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(48px, 7vw, 80px); }
.legal-inner { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.025em; line-height: 1.08; }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; margin-top: 22px; }
.legal h3 { font-size: 18px; margin-top: 8px; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal .updated { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.legal .fr { margin-top: 30px; padding-top: 26px; border-top: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.ph { background: #FFF4C2; color: #5A4A00; font-family: var(--sans); font-size: 0.9em; padding: 1px 6px; border-radius: 2px; white-space: nowrap; }
.legal dl { margin: 0; display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 10px 20px; font-family: var(--sans); font-size: 16px; }
.legal dt { font-weight: 700; color: var(--ink); }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); font-family: var(--sans); }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-block: 60px 36px; }
.footer-brand { max-width: 400px; display: flex; flex-direction: column; gap: 10px; }
.footer-brand .wordmark { color: var(--white); }
.footer-brand .wordmark span { color: var(--night-accent); }
.footer-brand p { font-family: var(--serif); font-size: 17px; color: #C2BBB5; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.footer-cols h2 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 8px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer-cols li a { display: inline-block; padding-block: 7px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 36px; border-top: 1px solid var(--night-rule); font-size: 13px; color: var(--night-muted); }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(80px, 12vw, 140px); display: flex; flex-direction: column; gap: 22px; max-width: 680px; }
.notfound .code { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent); }
