
:root {
  --paper: #0b0c0e;
  --paper-2: #14161a;
  --ink: #f3efe6;
  --ink-soft: #c7c0b4;
  --muted: #8a847a;
  --forest: #1a1c20;
  --forest-2: #2a2d33;
  --cinnabar: #c6a36a;
  --brass: #d4bc96;
  --line: rgba(243, 239, 230, 0.14);
  --rule: rgba(212, 188, 150, 0.7);
  --max: 1120px;
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif SC", "Source Han Serif SC", PMingLiU, serif;
  --display: "Fraunces", "Iowan Old Style", "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", "Segoe UI Mono", ui-monospace, monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", "Nirmala UI", "Leelawadee UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html {
  min-height: 100%;
  background: #0b0c0e;
}
html::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 3, 6, 0.5), rgba(2, 3, 6, 0.62)),
    url("img/image-1.jpg") center 62% / cover no-repeat;
}
body {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.7;
  font-optical-sizing: auto;
}
html[lang^="zh"] body { font-size: 1.08rem; font-weight: 700; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brass); text-underline-offset: 0.18em; }
a:hover { color: #f6efe2; }
::selection { background: #d4bc96; color: #11110e; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper-2);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--brass);
  z-index: 40;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 28px;
  background: #0b0c0e;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.mark small {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  font-weight: 700;
}
.mast nav {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
}
.mast nav a {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  padding: 4px 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.mast nav a[aria-current="page"],
.mast nav a[aria-expanded="true"] {
  background: transparent;
  color: var(--ink);
  border: 0;
  box-shadow: inset 0 -1px 0 var(--brass);
}
.mast nav a:hover { color: var(--brass); }
.mast nav a[aria-current="page"]:hover,
.mast nav a[aria-expanded="true"]:hover { color: var(--ink); }
#nav-reply {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 28px 16px;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
#nav-reply p { margin: 0 0 10px; line-height: 1.65; }
#nav-reply a {
  display: inline-block;
  color: #16140f;
  background: var(--brass);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 2px;
}
.tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.clock {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 9.2em;
  text-align: right;
}
.lang, .menu-btn {
  font-family: var(--sans);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 2px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}
select.lang {
  letter-spacing: 0;
  font-weight: 700;
  color: #f3efe6;
  background: #0b0c0e;
  max-width: 11.5rem;
  padding: 6px 8px;
}
select.lang option { color: #16140f; background: #fff; }
html[dir="rtl"] .tools { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .clock { text-align: left; }
.sheet[hidden] { display: none !important; }
.lang:hover, .menu-btn:hover { background: var(--brass); color: #16140f; border-color: var(--brass); }
.menu-btn { display: none; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.wrap-wide { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }

.hero { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 0; }
.hero-frame {
  margin: 0;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.hero-frame img,
.hero-frame video {
  width: 100%;
  height: min(62vh, 640px);
  object-fit: cover;
  object-position: center 42%;
  display: block;
  background: #111;
}
.hero-frame figcaption {
  position: absolute;
  top: 16px;
  left: 16px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 10, 12, 0.62);
  color: #f6f1e7;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 120px 48px 36px;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0) 0%, rgba(8, 9, 11, 0.55) 42%, rgba(8, 9, 11, 0.92) 100%);
  color: #f7f3ea;
}
.hero-copy .dek { max-width: 34rem; color: #e6dfd2; font-size: 1.08rem; line-height: 1.55; }
.photo.walk video {
  width: 100%;
  height: min(42vh, 420px);
  object-fit: cover;
  background: #111;
}
.kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cinnabar);
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3,
html[lang^="zh"] .pull,
html[lang^="zh"] .mark,
html[lang^="zh"] .next a {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.8rem, 5.4vw, 4.8rem); margin: 0 0 16px; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); margin: 0 0 14px; }
h3 { font-size: 1.45rem; margin: 0 0 8px; }
.dek { font-size: 1.28rem; line-height: 1.5; margin: 0; color: var(--ink-soft); }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  box-shadow: none;
}
.ledger .stat {
  padding: 26px 22px 22px;
  border-right: 1px solid var(--line);
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.ledger .stat:last-child { border-right: 0; }
.ledger .stat:hover, .ledger .stat[aria-expanded="true"] { background: rgba(243, 239, 230, 0.06); }
main.prose, article.prose {
  background: transparent;
  padding: 36px 40px 28px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  color: var(--ink);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9), 0 6px 22px rgba(0, 0, 0, 0.75);
}
.ledger + .reply + .wrap.prose,
.ledger + .wrap.prose {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 0;
}
.wrap.prose, article.wrap.prose { width: min(1120px, calc(100% - 40px)); margin-top: 0; }
.reply {
  margin: 8px 0 18px;
  padding: 16px 18px;
  background: #12141a;
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--brass);
  color: var(--ink);
}
#stat-reply.reply {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  border-radius: 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom: 0;
  border-left: 1px solid var(--brass);
  background: transparent;
  padding: 16px 40px;
}
.lang-note {
  margin: 0;
  padding: 12px 22px;
  background: #12141a;
  color: #f6f1e7;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}
.menu-note {
  display: none;
  margin: 4px 8px 10px;
  padding: 12px 14px;
  background: rgba(14, 18, 16, 0.94);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
}
.mast nav.open .menu-note { display: block; }
.tick-note { margin: 0 0 10px 1.8em; }
button.band {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
button.band[aria-expanded="true"] { outline: 2px solid #f3ead8; outline-offset: 2px; }
.ledger .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 3.6vw, 3.3rem);
  letter-spacing: -0.045em;
  color: var(--ink);
  display: block;
  line-height: 0.95;
}
.ledger .num::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 12px;
  background: var(--brass);
}
.ledger p, .ledger .blurb {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: #f3efe6;
}

.chapter, .place { scroll-margin-top: 88px; }
.chapter { padding: 42px 0 8px; border-top: 1px solid var(--line); }
.chapter-no {
  font-family: var(--mono);
  color: var(--brass);
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  margin: 0 0 6px;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 28px;
}
.mosaic article {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 8px 8px 0;
  min-height: 0;
}
.mosaic b {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--brass);
  line-height: 1.15;
}
html[lang^="zh"] .mosaic b { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.mosaic p { margin: 8px 0 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 22px; }
.duo article {
  background: transparent;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 16px 8px 4px 0;
}
.prose p { margin: 0 0 1em; font-weight: 700; }
.prose .drop::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 3.4rem;
  line-height: 0.8;
  padding: 8px 10px 0 0;
  color: var(--cinnabar);
  font-weight: 560;
}
html[lang^="zh"] .prose .drop::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }

.pull {
  margin: 28px 0;
  padding: 8px 0 8px 22px;
  border-left: 3px solid var(--cinnabar);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.toc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 28px;
  border-top: 0;
}
.toc a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 0.98rem;
  min-height: 0;
}
.toc a { color: #fff; font-weight: 700; font-size: 1.05rem; }
.toc a:hover { color: #fff; }
.toc a span:first-child { font-family: var(--mono); color: #fff; font-size: 0.9rem; font-weight: 700; }
.toc a em { font-style: normal; font-family: var(--mono); font-size: 0.95rem; color: #fff; font-weight: 700; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 26px;
}
.gallery figure {
  margin: 0;
  background: #12141a;
  border-radius: 2px;
  overflow: hidden;
}
.gallery img { width: 100%; height: 260px; object-fit: cover; }
.gallery figcaption {
  margin: 0;
  padding: 8px 10px 10px;
  color: #f4efe6;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.4;
}
.photo {
  margin: 22px 0 28px;
  background: #12141a;
  border-radius: 2px;
  overflow: hidden;
}
.photo img { width: 100%; max-height: 520px; object-fit: cover; }
.photo.portrait { max-width: 420px; }
.photo.portrait img { max-height: 560px; object-fit: cover; }
.photo figcaption, .pair figcaption {
  margin: 0;
  padding: 10px 14px 12px;
  color: #f4efe6;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.45;
}
.pair {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 12px;
  margin: 22px 0 28px;
}
.pair:has(> :only-child) { grid-template-columns: 1fr; }
.pair figure { margin: 0; background: #12141a; border-radius: 2px; overflow: hidden; }
.pair img { width: 100%; height: 360px; object-fit: cover; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0 36px;
}
.card {
  display: grid;
  grid-template-rows: 240px auto;
  background: transparent;
  text-decoration: none;
  color: inherit;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  min-height: 100%;
}
.card img { width: 100%; height: 240px; object-fit: cover; }
.card div { padding: 14px 2px 8px; }
.card h3 { margin-bottom: 6px; color: #fff; font-weight: 700; }
.card p { margin: 0; color: #fff; font-size: 1rem; font-weight: 700; }
.card:hover h3 { color: #fff; }

.place { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; padding: 22px 0 28px; border-top: 1px solid var(--line); margin-top: 8px; }
.place.reverse { grid-template-columns: 1.1fr 0.9fr; }
.place.reverse .place-photo { order: 2; }
.place-photo { margin: 0; background: #12141a; border-radius: 2px; overflow: hidden; }
.place-photo img { width: 100%; height: 420px; object-fit: cover; }
.place-kicker { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); margin: 0 0 6px; }

.bars { display: grid; gap: 12px; margin: 18px 0 28px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; font-size: 0.95rem; }
.track { height: 14px; background: rgba(244, 239, 230, 0.12); border-radius: 99px; overflow: hidden; }
.fill { height: 100%; background: var(--brass); min-width: 3px; }
.fill.alt { background: var(--cinnabar); }
.bar-row b { font-family: var(--mono); font-weight: 500; font-size: 0.82rem; }

.switch {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
}
.switch button {
  font-family: var(--sans);
  border: 1px solid var(--line);
  background: rgba(224, 196, 138, 0.06);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--ink); color: #12110e; border-color: var(--ink); }

.pyramid { display: grid; gap: 8px; margin: 16px 0 8px; }
.band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  color: #f6f1e7;
  background: #1c1f26;
  min-height: 74px;
  padding: 12px 16px;
  border-left: 1px solid var(--brass);
}
.band:nth-child(2) { background: #23262e; width: 88%; }
.band:nth-child(3) { background: #2c3038; width: 70%; }
.band:nth-child(4) { background: #3a342c; width: 54%; }
.band-copy { display: block; }
.band strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 560; }
.band span { font-family: var(--sans); font-size: 0.85rem; }

table.ledger-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 28px;
  font-size: 0.98rem;
}
table.ledger-table th, table.ledger-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.ledger-table th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
table.ledger-table td.num, table.ledger-table th.num { text-align: right; font-family: var(--mono); font-size: 0.92rem; }

.calc {
  background: #12141a;
  color: #f6f1e7;
  border: 1px solid var(--line);
  border-top: 1px solid var(--brass);
  padding: 28px 28px 24px;
  margin: 18px 0 28px;
  border-radius: 0;
}
.calc h2, .calc p { color: #f6f1e7; }
.calc .note { color: #d7e3dc; font-size: 0.95rem; }
.sliders { display: grid; gap: 14px; margin: 16px 0; }
.sliders label { display: grid; gap: 6px; font-family: var(--sans); font-size: 0.92rem; }
.sliders input[type="range"] { width: 100%; accent-color: #e7b39a; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.presets button {
  font-family: var(--sans);
  background: transparent;
  color: #f6f1e7;
  border: 1px solid rgba(246, 241, 231, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.presets button:hover, .presets button[aria-pressed="true"] { background: var(--brass); color: #16140f; border-color: var(--brass); }
.result {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.result div { border-top: 1px solid rgba(246,241,231,.3); padding-top: 10px; }
.result b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 560;
  letter-spacing: -0.03em;
}
.result span { font-family: var(--sans); font-size: 0.85rem; color: #d7e3dc; }

.watch { list-style: none; padding: 0; margin: 10px 0 28px; }
.watch li { border-bottom: 1px solid var(--line); }
.watch label { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 4px; cursor: pointer; align-items: start; }
.watch input { margin-top: 0.4em; width: 1.05em; height: 1.05em; accent-color: var(--forest); }

.timeline { list-style: none; padding: 0; margin: 10px 0 28px; border-left: 2px solid var(--brass); }
.timeline li { padding: 0 0 18px 16px; }
.timeline .yr { font-family: var(--mono); color: var(--cinnabar); font-size: 0.8rem; letter-spacing: 0.08em; }

.sources { font-size: 1rem; }
.sources li { margin: 0 0 0.7em; }
.next {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 22px 0 10px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.next a {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
  max-width: min(72%, 38rem);
  text-align: right;
  line-height: 1.25;
}
.next p { margin: 0; color: #fff; font-weight: 700; font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }

.asks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
  margin: 8px 0 12px;
}
button.ask {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-items: baseline;
  min-height: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0 14px;
  cursor: pointer;
  font: inherit;
}
button.ask .q {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--brass);
}
button.ask strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
html[lang^="zh"] button.ask strong {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}
button.ask .hint { color: #f3efe6; font-size: 0.98rem; font-weight: 700; line-height: 1.4; }
button.ask[aria-expanded="true"] {
  border-bottom-color: var(--brass);
  background: transparent;
}
button.ask[aria-expanded="true"] strong { color: var(--brass); }
.dossier {
  margin: 16px 0 8px;
  padding: 2px 0 4px 20px;
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--brass);
  background: transparent;
}
.dossier h3 { margin: 0 0 10px; }

.foot {
  margin-top: 0;
  padding: 0 0 36px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.foot .wrap {
  display: grid;
  gap: 8px;
  width: min(1120px, calc(100% - 40px));
  background: transparent;
  padding: 8px 40px 32px;
  border-radius: 0;
  border: 0;
}
.foot strong { color: #fff; font-weight: 700; }
.reach {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px 18px;
  align-items: end;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.reach-title { grid-column: 1 / -1; margin: 0; color: #fff; font-weight: 700; }
.reach label { display: grid; gap: 6px; color: #fff; font-weight: 700; }
.reach input {
  width: 100%;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
}
.reach input:focus { outline: none; border-bottom-color: #fff; }
.reach input::placeholder { color: rgba(255, 255, 255, 0.62); font-weight: 700; }
.reach button {
  margin: 0;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.reach button:hover { border-color: #fff; }
.reach-note { grid-column: 1 / -1; margin: 0; color: #fff; font-weight: 700; }

body.safari-lock { overflow: hidden; }
.safari-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(7, 8, 12, 0.38);
  backdrop-filter: blur(18px) saturate(0.85);
  -webkit-backdrop-filter: blur(18px) saturate(0.85);
}
.safari-gate-panel {
  width: min(320px, 100%);
  max-height: min(78vh, 520px);
  overflow: auto;
  padding: 20px 18px 16px;
  background: rgba(243, 239, 230, 0.94);
  color: #2a261f;
  border-radius: 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  text-align: center;
}
.safari-mark {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
}
.safari-mark svg { display: block; width: 100%; height: 100%; }
.safari-name {
  margin: 0 0 12px;
  color: #2a261f;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}
.safari-gate-panel p {
  margin: 0 0 14px;
  color: #2a261f;
  font-weight: 700;
  line-height: 1.6;
}
.safari-gate-panel button {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 11px 14px;
  border: 0;
  background: #2a261f;
  color: #f3efe6;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.safari-gate-panel button:hover { background: #1c1a16; }

@media (max-width: 900px) {
  .ledger, .cards, .place, .place.reverse, .pair, .result, .toc, .duo { grid-template-columns: 1fr; }
  .mosaic, .gallery { grid-template-columns: 1fr 1fr; }
  .asks, .reach { grid-template-columns: 1fr; }
  .place.reverse .place-photo { order: 0; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .band, .band:nth-child(2), .band:nth-child(3), .band:nth-child(4) { width: 100%; }
  .menu-btn { display: inline-block; }
  .mast nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 8px;
  }
  .mast nav.open { display: flex; }
  main.prose, article.prose { padding: 22px 18px; border-radius: 0; }
  .hero, .wrap.prose, article.wrap.prose, .ledger.wrap, .foot .wrap, #stat-reply.reply, #nav-reply { width: min(1120px, calc(100% - 20px)); }
  .foot .wrap { border-radius: 0; padding-left: 18px; padding-right: 18px; }
  .hero-frame img, .hero-frame video { height: 70vh; }
  .hero-copy { padding: 64px 18px 18px; }
  .hero-copy .dek { font-size: 1rem; }
  .place-photo img, .pair img, .gallery img { height: 240px; }
}
@media (max-width: 640px) {
  .clock { display: none; }
  .mosaic, .asks, .gallery { grid-template-columns: 1fr; }
  h1 { font-size: 2.3rem; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
}

