:root {
  --ink: #000;
  --bone: #edebe6;
  --dim: rgba(237, 235, 230, 0.7);
  --faint: rgba(237, 235, 230, 0.5);
  --ghost: rgba(237, 235, 230, 0.22);
  --line: rgba(237, 235, 230, 0.13);
  --line2: rgba(237, 235, 230, 0.3);
  --serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #000; color: var(--bone); }
body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  -webkit-font-smoothing: antialiased;
}
body > * { min-width: 0; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.9) 100%),
    radial-gradient(60% 50% at 50% 30%, rgba(237, 235, 230, 0.045), transparent 70%);
}
body::after {
  content: '';
  position: fixed;
  inset: -40%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.085;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-4%, 3%); }
  33% { transform: translate(3%, -2%); }
  50% { transform: translate(-2%, -4%); }
  67% { transform: translate(4%, 2%); }
  83% { transform: translate(-3%, 4%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

a { color: var(--bone); text-decoration-color: var(--ghost); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--bone); }
code { font-family: var(--mono); font-size: 0.8em; color: var(--bone); background: rgba(237, 235, 230, 0.07); padding: 0.05em 0.35em; }
.k { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.s { color: var(--faint); font-size: 14px; }
.num { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.4em; color: var(--faint); }

/* -- buttons, fields --------------------------------------------------------------------------- */
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--bone);
  background: var(--bone);
  color: #000;
  padding: 12px 16px;
  min-height: 46px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s;
}
.btn:hover:not(:disabled) { box-shadow: 0 0 0 1px var(--bone), 0 0 28px rgba(237, 235, 230, 0.25); }
.btn.ghost { background: transparent; color: var(--bone); border-color: var(--line2); }
.btn.ghost:hover:not(:disabled) { border-color: var(--bone); }
.btn.small { width: auto; min-height: 36px; padding: 8px 12px; font-size: 11px; letter-spacing: 0.16em; }
.btn:disabled { background: transparent; color: var(--faint); border-color: var(--ghost); cursor: not-allowed; }
.field { display: flex; align-items: stretch; border: 1px solid var(--line2); }
.field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 17px;
  padding: 10px 12px;
  outline: none;
}
.field input:disabled { color: var(--faint); }
.field:focus-within { border-color: var(--bone); }
.field .btn { border: 0; border-left: 1px solid var(--line2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--line2);
  padding: 8px 12px;
  min-height: 36px;
  cursor: pointer;
}
.chip.on { background: var(--bone); color: #000; border-color: var(--bone); }

/* -- header ------------------------------------------------------------------------------------ */
.top {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.7);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand .hands { height: 40px; width: auto; }
.wordmark {
  display: block;
  width: 178px;
  aspect-ratio: 3339 / 810;
  background: linear-gradient(176deg, #fff 0%, #e9e9e9 30%, #7d7d7d 48%, #f7f7f7 58%, #a9a9a9 80%, #efefef 100%);
  background-size: 100% 220%;
  -webkit-mask: url(/img/wordmark.svg) center / contain no-repeat;
  mask: url(/img/wordmark.svg) center / contain no-repeat;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0 0; } 50% { background-position: 0 100%; } }
.index { display: flex; gap: 2px; }
.index a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 16px 6px;
  text-decoration: none;
  color: var(--faint);
  border-bottom: 1px solid transparent;
}
.index i { font-style: normal; font-size: 22px; line-height: 1.05; color: var(--dim); letter-spacing: 0.04em; }
.index b { font-weight: 400; font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; }
.index a:hover i, .index a.on i { color: #fff; }
.index a.on { color: var(--bone); border-bottom-color: var(--bone); }
.tools { justify-self: end; display: flex; align-items: center; gap: 10px; }
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--faint); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ghost); }
.pill.ok .dot { background: var(--bone); box-shadow: 0 0 8px var(--bone); }

/* -- stage ------------------------------------------------------------------------------------- */
.stage { position: relative; z-index: 1; min-height: 0; padding: 16px 20px 18px; }
.view { height: 100%; }

.triptych {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr) minmax(0, 1fr);
  max-width: 1680px;
  margin: 0 auto;
}
.panel {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(237, 235, 230, 0.03), rgba(237, 235, 230, 0) 30%);
  scrollbar-width: thin;
  scrollbar-color: var(--ghost) transparent;
  transition: border-color 0.4s, background 0.4s;
}
.panel.center { border-left: 0; border-right: 0; }
.panel.focus { border-color: rgba(237, 235, 230, 0.6); background: linear-gradient(180deg, rgba(237, 235, 230, 0.06), rgba(237, 235, 230, 0) 40%); }
.hinges { position: absolute; inset: 0; pointer-events: none; }
.hinge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9px;
  margin-left: -4px;
  background:
    linear-gradient(var(--bone), var(--bone)) center 16% / 9px 30px no-repeat,
    linear-gradient(var(--bone), var(--bone)) center 50% / 9px 30px no-repeat,
    linear-gradient(var(--bone), var(--bone)) center 84% / 9px 30px no-repeat,
    linear-gradient(var(--line2), var(--line2)) center / 1px 100% no-repeat;
  opacity: 0.55;
}
.hinge.l { left: calc(100% / 3.42); }
.hinge.r { left: calc(100% * 2.42 / 3.42); }

.phead { position: relative; text-align: center; padding: 34px 26px 14px; }
.phead.tall { padding-top: 40px; padding-bottom: 6px; }
.phead .arch { position: absolute; left: 14px; right: 14px; top: 10px; width: calc(100% - 28px); height: 58px; overflow: visible; }
.phead.tall .arch { height: 76px; top: 8px; }
.phead .arch path { fill: none; stroke: var(--line2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.phead h2 { position: relative; font-weight: 400; font-size: 31px; line-height: 1.1; margin: 4px 0 6px; letter-spacing: 0.01em; }
.phead p { position: relative; margin: 0 auto; max-width: 34ch; color: var(--dim); font-style: italic; font-size: 16px; }
.foot { color: var(--faint); font-size: 13px; padding: 12px 22px 22px; margin: 0; border-top: 1px solid var(--line); }

/* -- I relics ---------------------------------------------------------------------------------- */
.relic {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 15px 20px 15px 14px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  outline: none;
  transition: background 0.25s;
}
.relic:hover, .relic:focus-visible { background: rgba(237, 235, 230, 0.035); }
.relic.sel { background: rgba(237, 235, 230, 0.06); box-shadow: inset 2px 0 0 var(--bone); }
.relic .rn { font-size: 19px; color: var(--faint); text-align: center; line-height: 1.5; }
.relic h3 { margin: 0; font-weight: 500; font-size: 22px; line-height: 1.2; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.relic h3 small { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); white-space: nowrap; }
.relic .nm { margin: 1px 0 9px; color: var(--dim); font-size: 14.5px; font-style: italic; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; margin: 0; }
.kv div { min-width: 0; }
.kv dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.kv dd { margin: 1px 0 0; font-family: var(--mono); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv dd em { font-style: normal; color: var(--faint); font-size: 11px; }
.stairs { margin-top: 9px; display: flex; align-items: center; gap: 10px; }
.stairs svg { flex: 1; min-width: 0; height: 30px; overflow: visible; }
.stairs svg path { fill: none; stroke: var(--bone); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.stairs svg .base { stroke: var(--ghost); stroke-dasharray: 2 3; }
.stairs svg circle { fill: #000; stroke: var(--bone); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.stairs span { font-family: var(--mono); font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.rise {
  margin-top: 10px;
  border: 1px solid var(--bone);
  padding: 7px 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 rgba(237, 235, 230, 0); } 50% { box-shadow: 0 0 22px rgba(237, 235, 230, 0.35); } }

/* -- II altar ---------------------------------------------------------------------------------- */
.ribbon {
  margin: 10px 26px 0;
  padding: 8px 12px;
  border: 1px solid var(--line2);
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--dim);
}
.ribbon b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone); white-space: nowrap; }
.plate { position: relative; margin: 6px 18px 0; }
.plate img { display: block; width: 100%; height: auto; }
.glows { position: absolute; inset: 0 0 22px 0; pointer-events: none; }
.glow {
  position: absolute;
  width: 9.5%;
  aspect-ratio: 1 / 1.7;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.18) 55%, rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s;
}
.glow.sel { opacity: 0.5; }
.glow.pending { opacity: 1; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.niches { position: relative; height: 32px; margin-top: -10px; }
.niches button {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: none;
  border: 0;
  min-height: 32px;
  padding: 2px 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  cursor: pointer;
}
.niches button.sel, .niches button:hover { color: #fff; }
.niches button.pending { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.band {
  margin: 14px 26px 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
  display: grid;
  gap: 3px;
}
.band .v { font-size: 17px; }
.band.live { border-color: var(--bone); box-shadow: 0 0 34px rgba(237, 235, 230, 0.12) inset; }
.band .v b { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.vow { text-align: center; padding: 24px 26px 10px; }
.vow .big { display: block; font-family: var(--mono); font-size: 44px; line-height: 1.1; margin: 6px 0 2px; letter-spacing: -0.01em; }
.vow .sub { color: var(--dim); font-style: italic; }
.vowlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trio > div { padding: 14px 10px; text-align: center; min-width: 0; }
.trio > div + div { border-left: 1px solid var(--line); }
.trio .v { display: block; font-family: var(--mono); font-size: 18px; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trio .s { display: block; font-size: 13px; }
.weights { margin: 18px 26px 0; }
.wbar { display: flex; height: 34px; margin: 8px 0 6px; border: 1px solid var(--line2); }
.wbar > div { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; font-family: var(--mono); font-size: 10.5px; color: var(--dim); border-right: 1px solid var(--line2); cursor: pointer; }
.wbar > div:last-child { border-right: 0; }
.wbar > div.sel { background: rgba(237, 235, 230, 0.1); color: #fff; }
.wbar > div i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--bone); }
.weights p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 18px 26px 26px; border: 1px solid var(--line); }
.stats > div { padding: 12px; text-align: center; min-width: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats .v { display: block; font-family: var(--mono); font-size: 20px; margin-top: 3px; }
.stats .s { display: block; font-size: 13px; }

/* -- III rites --------------------------------------------------------------------------------- */
.rplate { display: block; width: 44%; max-width: 190px; height: auto; aspect-ratio: 1000 / 1080; object-fit: cover; object-position: 50% 100%; margin: 0 auto 8px; }
.rite { padding: 18px 22px 20px; border-top: 1px solid var(--line); }
.rite h3 { margin: 0 0 4px; font-weight: 500; font-size: 23px; }
.rite h3 i { font-style: italic; font-weight: 400; color: var(--faint); margin-right: 6px; }
.rite p { margin: 0 0 12px; color: var(--dim); font-size: 15.5px; }
.rows { margin: 0 0 14px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dotted var(--line2); }
.rows dt { color: var(--faint); font-size: 14.5px; }
.rows dd { margin: 0; font-family: var(--mono); font-size: 13px; text-align: right; }
.lbl { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.lbl span { letter-spacing: 0.04em; text-transform: none; }
.outs { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
.outs li { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 12.5px; padding: 3px 0; border-bottom: 1px dotted var(--line); }
.outs li span:first-child { color: var(--faint); }
.outs li.toll { grid-column: 1 / -1; color: var(--faint); border-bottom: 0; }
.rite.early { padding-bottom: 28px; }

/* -- pages ------------------------------------------------------------------------------------- */
.page { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--ghost) transparent; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 6px 40px; }
.hero { position: relative; max-width: 1280px; margin: 0 auto 10px; }
.hero img {
  position: relative;
  display: block;
  width: 74%;
  height: auto;
  margin-left: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.herotext { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); max-width: 440px; }
.hero h1, .lhead h1 { font-weight: 400; font-size: 64px; line-height: 1; margin: 8px 0 14px; letter-spacing: -0.005em; }
.lede { font-size: 21px; color: var(--dim); margin: 0; }
.lede em { color: var(--bone); }
.chap { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.chap .cn { font-size: 40px; line-height: 1; color: var(--faint); text-align: right; }
.prose { max-width: 70ch; }
.prose h2 { font-weight: 500; font-size: 30px; line-height: 1.15; margin: 0 0 12px; }
.prose p { margin: 0 0 12px; color: var(--dim); font-size: 18px; }
.prose ul { margin: 0; padding-left: 20px; color: var(--dim); font-size: 18px; }
.prose li { margin-bottom: 8px; }
blockquote { margin: 4px 0 18px; padding: 16px 20px; border: 1px solid var(--line2); font-size: 26px; font-style: italic; line-height: 1.25; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details summary { cursor: pointer; font-size: 19px; list-style: none; }
details summary::before { content: '+'; font-family: var(--mono); color: var(--faint); margin-right: 10px; }
details[open] summary::before { content: '\2212'; }
details p { margin: 8px 0 4px 22px; }
.tablewrap { overflow-x: auto; margin: 6px 0 12px; }
table.grid { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
table.grid th { text-align: left; font-weight: 400; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
table.grid td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--dim); }
table.grid td.b { color: var(--bone); }
table.grid tr.relicrow td:first-child { color: var(--bone); }
.tag { display: inline-block; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--line2); padding: 1px 5px; margin-left: 6px; color: var(--faint); }
.tag.on { border-color: var(--bone); color: var(--bone); }
.pfoot { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 14px; padding: 30px 0 10px; border-top: 1px solid var(--line); margin-top: 20px; }
.pfoot a { display: inline-block; padding: 7px 0; }
.lhead { text-align: center; padding: 36px 0 20px; }
.lhead .lede { max-width: 56ch; margin: 0 auto; }
.lstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line2); margin-bottom: 14px; }
.lstats > div { padding: 14px; text-align: center; min-width: 0; }
.lstats > div + div { border-left: 1px solid var(--line); }
.lstats .v { display: block; font-family: var(--mono); font-size: 24px; margin-top: 4px; white-space: nowrap; }
@media (max-width: 900px) { .lstats .v { font-size: 19px; } }
.watch { border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 16px; color: var(--dim); }
.watch.live { border-color: var(--bone); color: var(--bone); animation: breathe 2.4s ease-in-out infinite; }
.watch ul { margin: 6px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 13px; }
#lFilter { margin-bottom: 8px; }

/* -- dialog, toast ----------------------------------------------------------------------------- */
dialog { background: #000; color: var(--bone); border: 1px solid var(--line2); padding: 0; width: calc(100% - 32px); max-width: 540px; max-height: calc(100dvh - 32px); }
dialog::backdrop { background: rgba(0, 0, 0, 0.82); }
.sheet header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sheet header h3 { flex: 1; margin: 0; font-weight: 500; font-size: 22px; }
.sheet .x { background: none; border: 1px solid var(--line2); color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 10px; min-height: 36px; cursor: pointer; }
.sheet ol { list-style: none; margin: 0; padding: 6px 18px; counter-reset: s; }
.sheet li { padding: 12px 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.sheet li > label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.sheet li > label::before { content: counter(s, upper-roman) '. '; }
.hint { margin: 6px 0 0; font-size: 14px; color: var(--faint); }
.hint.bad { color: #d9a3a3; }
.tweet { white-space: pre-wrap; word-break: break-all; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; margin: 0; padding: 12px; border: 1px solid var(--line); color: var(--dim); }
.sheet footer { padding: 14px 18px 18px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--bone); color: #000; font-family: var(--mono); font-size: 12.5px; padding: 10px 14px; }
.toast.bad { background: #000; color: var(--bone); border: 1px solid var(--bone); }

/* -- mid widths -------------------------------------------------------------------------------- */
@media (max-width: 1280px) and (min-width: 901px) {
  .index a { padding: 4px 9px 6px; }
  .pill { display: none; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .trio .v { font-size: 15px; }
  .outs { grid-template-columns: minmax(0, 1fr); }
}

/* -- phone: the panels become pages you swipe -------------------------------------------------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .top { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding: 8px 16px 0; }
  .brand .hands { height: 30px; }
  .wordmark { width: 136px; }
  .index { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .index a { flex: 1; padding: 3px 0 7px; }
  .index i { font-size: 18px; }
  .index b { font-size: 8.5px; letter-spacing: 0.12em; }
  .pill { display: none; }
  .stage { padding: 0; }
  .triptych { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .triptych::-webkit-scrollbar { display: none; }
  .panel { flex: 0 0 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; border: 0; }
  .panel.focus { background: linear-gradient(180deg, rgba(237, 235, 230, 0.03), rgba(237, 235, 230, 0) 30%); }
  .hinges { display: none; }
  .phead { padding: 30px 18px 10px; }
  .phead .arch { left: 10px; right: 10px; width: calc(100% - 20px); }
  .phead h2 { font-size: 28px; }
  .relic { padding: 14px 16px 14px 8px; }
  .ribbon { margin: 8px 16px 0; flex-direction: column; gap: 2px; font-size: 14px; }
  .plate { margin: 6px 8px 0; }
  .band, .trio, .weights { margin-left: 16px; margin-right: 16px; }
  .stats { margin: 16px 16px 24px; grid-template-columns: minmax(0, 1fr); }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .vow .big { font-size: 36px; }
  .trio .v { font-size: 14px; }
  .trio .s { font-size: 12px; }
  .wbar > div { font-size: 8.5px; }
  .rite { padding: 16px 16px 18px; }
  .outs { grid-template-columns: minmax(0, 1fr); }
  .page { padding: 0 16px; }
  .hero img { width: 100%; margin-top: 8px; }
  .herotext { position: relative; left: 0; top: 0; transform: none; padding: 0 0 20px; max-width: none; }
  .hero h1, .lhead h1 { font-size: 44px; }
  .lede { font-size: 18px; }
  .chap { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 24px 0; }
  .chap .cn { text-align: left; font-size: 26px; }
  .prose h2 { font-size: 25px; }
  .prose p, .prose ul { font-size: 16.5px; }
  blockquote { font-size: 21px; }
  .lstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lstats > div:nth-child(3) { border-left: 0; }
  .lstats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
