/* Curamenti — almanac stylesheet. Light theme only, by design.
   Rhythm: everything sits on a 1.75rem line (--line). */

:root {
  color-scheme: light;
  --paper: #f6f1e4;
  --leaf: #eee7d4;
  --card: #fbf8ef;
  --ink: #2a2e25;
  --soft: #595f50;
  --sage: #8d9c7e;
  --mist: #e1e7d5;
  --moss: #465a38;
  --clay: #b4623f;
  --clayd: #94492b;
  --rule: #cdc5ad;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --caps: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --sans: Karla, "Helvetica Neue", Arial, sans-serif;
  --line: 1.75rem;
  --w: 74rem;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --gap: clamp(3.5rem, 8vw, 5.25rem);
  --ease: cubic-bezier(0.25, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 1.0625rem/var(--line) var(--sans);
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.3rem); letter-spacing: -0.014em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.25rem); line-height: 1.17; }
h3 { font-size: 1.5rem; line-height: 1.17; }
h1 em { font-style: italic; color: var(--moss); }

p { margin: 0 0 var(--line); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
i, em { font-style: italic; }
b, strong { font-weight: 700; }
small { font-size: 0.84em; }
code { font: 0.9em ui-monospace, Menlo, Consolas, monospace; background: var(--leaf); padding: 0.05em 0.3em; border-radius: 3px; }
table { font-variant-numeric: lining-nums tabular-nums; }

a { color: var(--moss); text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: var(--clayd); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
:target { scroll-margin-top: 1.5rem; }

::selection { background: #d5dfc6; }

svg { display: block; max-width: 100%; }
img { max-width: 100%; height: auto; }

/* ---- drawings ---- */

.art { width: 100%; height: auto; color: var(--ink); overflow: visible; }
.art .hk { stroke: var(--soft); }
.art .ac { stroke: var(--clay); }
.art .mo { stroke: var(--moss); }
.art .th { stroke-width: 0.9; }
.art .fi { fill: currentColor; }
.art .fa { fill: var(--clay); stroke: var(--clayd); }
.art .pp { fill: var(--card); }
.art text { font: italic 500 10.5px var(--serif); fill: var(--soft); stroke: none; }

.knot { width: 100%; height: auto; background: var(--card); border: 1px solid var(--rule); }
.knot path, .knot circle { fill: none; stroke-width: 2.2; }
.knot .kc { stroke: var(--card); stroke-width: 6.5; }
.knot .sl { stroke: var(--ink); }
.knot .tg { stroke: var(--clay); }
.knot .l2 { stroke: var(--moss); }
.knot .fat { stroke-width: 4; }
.knot .ey { stroke: var(--soft); stroke-width: 2.6; }
.knot .ar, .knot .th { stroke: var(--soft); stroke-width: 1.1; }
.knot text { font: italic 500 11px var(--serif); fill: var(--soft); }

.moon { width: 2.5rem; height: 2.5rem; flex: none; }
.moon .dark { fill: var(--leaf); }
.moon .lit { fill: var(--card); stroke: none; }
.moon .rim { fill: none; stroke: var(--ink); stroke-width: 1; }
.moon .dark { fill: #c9c5b0; }

.fleuron { width: 7.5rem; margin: var(--gap) auto 0; color: var(--sage); }
.rush { width: 4.2rem; color: var(--sage); }
.mark { width: 1em; height: 1em; flex: none; }

/* ---- shared pieces ---- */

.wrap { width: 100%; max-width: calc(var(--w) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: calc(42rem + var(--gut) * 2); }
.center { text-align: center; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 0.5rem; top: -4rem; z-index: 20; background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem; }
.skip:focus { top: 0.5rem; color: var(--paper); }

/* true small capitals for every label */
.over, .tag, .meta, .by, .num, .btn, .menu, .mast nav a, .strip, .lvl, dt, .tab thead th, .chart thead th,
.chips button, .lv button, label, .cols h2, .rail h2, .turn small, .index h2, .go, .az, .jump a {
  font-family: var(--caps);
  font-weight: 600;
  font-style: normal;
  text-transform: lowercase;
  letter-spacing: 0.07em;
  font-variant-numeric: oldstyle-nums;
}

.over { font-size: 1rem; line-height: var(--line); color: var(--clayd); margin: 0 0 0.6rem; }
.over a { color: inherit; }

.btn {
  display: inline-block;
  font-size: 1.02rem;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.82rem 1.25rem 0.92rem;
  min-height: 2.75rem;
  cursor: pointer;
  box-shadow: 0 0 0 var(--sage);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { color: var(--ink); background: var(--card); box-shadow: 3px 3px 0 var(--sage); transform: translate(-1px, -1px); }
.btn:active { box-shadow: 0 0 0 var(--sage); transform: none; }
.btn.solid { background: var(--moss); border-color: var(--moss); color: var(--card); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--clay); }

.link { font: inherit; color: var(--moss); background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 0.22em; cursor: pointer; }
.link:hover { color: var(--clayd); }

.acts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: var(--line) 0 0; }

.more { margin: var(--line) 0 0; font-size: 0.97rem; }
.more a::after { content: " \2192"; display: inline-block; margin-left: 0.2em; transition: transform 0.2s var(--ease); }
.more a:hover::after { transform: translateX(3px); }

.note {
  font-size: 0.9rem;
  line-height: 1.3125rem;
  color: var(--soft);
  border-left: 2px solid var(--clay);
  padding: 0 0 0 1rem;
  margin: var(--line) 0;
}
.note b { display: block; font: italic 500 1.15rem/1.3125rem var(--serif); color: var(--clayd); margin-bottom: 0.3rem; }
.note a { display: block; margin-top: 0.65rem; }

/* ---- masthead ---- */

.mast { padding-top: 0.6rem; text-align: center; }
.strip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.92rem;
  line-height: var(--line);
  color: var(--soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.3rem;
}
.strip p { margin: 0; white-space: nowrap; }
.strip p span { display: none; }
.strip ul { display: flex; gap: 1.1rem; }
.strip a { color: var(--ink); text-decoration: none; padding: 0.4rem 0; }
.strip a:hover, .strip a[aria-current] { color: var(--clayd); }

.name {
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
  font: 500 clamp(2.6rem, 9vw, 4.4rem)/1 var(--serif);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-top: 1.35rem;
}
.name:hover { color: var(--moss); }
.name .mark { width: 0.62em; height: 0.62em; margin-top: 0.1em; }
.name.small { font-size: 2rem; margin: 0 0 0.6rem; }
.motto { font: italic 400 1.2rem/var(--line) var(--serif); color: var(--soft); margin: 0.2rem 0 1.1rem; }

.mast nav { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); position: relative; }
.mast nav::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--ink); pointer-events: none; }
.mast nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(0.9rem, 2.2vw, 2rem); padding: 0.45rem 0 0.3rem; }
.mast nav a {
  display: block;
  padding: 0.5rem 0.1rem 0.45rem;
  font-size: 1.04rem;
  line-height: 1.3125rem;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(var(--clay), var(--clay)) no-repeat 50% 100% / 0 2px;
  transition: background-size 0.25s var(--ease), color 0.2s;
}
.mast nav a:hover { color: var(--clayd); background-size: 100% 2px; }
.mast nav a[aria-current] { color: var(--clayd); background-size: 100% 2px; }

.menu {
  display: none;
  width: 100%;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.3125rem;
  padding: 0.9rem 0 0.7rem;
  cursor: pointer;
}
.menu span::after { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin: 0 0 0.2em 0.6em; border: solid var(--clay); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.menu[aria-expanded="true"] span::after { transform: rotate(-135deg) translate(-2px, -2px); }

@media (max-width: 47.99rem) {
  .js .menu { display: block; }
  .js .mast nav ul { display: none; counter-reset: c; text-align: left; padding: 0 0 0.6rem; }
  .js .mast nav.open ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
  .js .mast nav li { counter-increment: c; border-top: 1px solid var(--rule); }
  .js .mast nav a { padding: 0.7rem 0; background-position: 0 100%; }
  .js .mast nav a::before { content: counter(c, upper-roman) ". "; font: italic 500 1rem var(--serif); color: var(--clay); text-transform: none; }
}

/* ---- page heads ---- */

.head { padding-top: clamp(2.5rem, 7vw, 4.5rem); padding-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: calc(52rem + var(--gut) * 2); margin-inline: auto; text-align: center; }
.head h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); }
.intro { font: 400 clamp(1.22rem, 2.6vw, 1.45rem)/1.42 var(--serif); color: var(--soft); margin: 1.05rem auto 0; max-width: 41rem; }
.intro b { font-weight: 600; color: var(--ink); }
.by { font-size: 0.98rem; color: var(--soft); margin: 1.05rem 0 0; }
.essay > .head, .sheet > .head { padding-inline: 0; }

/* ---- drop cap ---- */

.lead::first-letter {
  font: 500 5.4rem/0.76 var(--serif);
  float: left;
  color: var(--clay);
  padding: 0.38rem 0.5rem 0 0;
}

/* ---- sections ---- */

.sec { margin-top: var(--gap); }
.sec > header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 1rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.85rem;
  margin-bottom: var(--line);
  position: relative;
}
.sec > header::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--rule); }
.num { font: italic 500 1.3rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--clayd); white-space: nowrap; }
.sub { grid-column: 2; font: italic 400 1.15rem/var(--line) var(--serif); color: var(--soft); margin: 0.15rem 0 0; }

.two { display: grid; gap: var(--line); }
.two .note { margin: 0; align-self: start; }

/* ---- plates and figures ---- */

.plate { margin: 0; background: var(--card); border: 1px solid var(--rule); padding: 0.5rem; }
.plate .art { border: 1px solid var(--rule); padding: 8% 6% 4%; }
.plate .art.wide { padding: 6% 4%; }
.plate figcaption { font: italic 400 1.02rem/1.3125rem var(--serif); color: var(--soft); text-align: center; padding: 0.65rem 0.5rem 0.25rem; }
.plate figcaption b, .fig figcaption b { font-style: normal; font-weight: 600; color: var(--clayd); }
.plate.small { max-width: 20rem; margin-inline: auto; }
.plate.colour { margin-top: var(--gap); }
.plate.colour img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); filter: saturate(0.8) sepia(0.14) contrast(0.96); }

.fig { margin: var(--line) 0; padding: var(--line) 0 0.875rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fig .art { max-width: 15rem; margin-inline: auto; }
.fig .art.wide { max-width: 34rem; }
.fig figcaption, .tabf figcaption { font: italic 400 1.02rem/1.3125rem var(--serif); color: var(--soft); text-align: center; margin-top: 0.875rem; }

/* ---- tables ---- */

.scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.tabf { margin: var(--line) 0; }
.tab { width: 100%; border-collapse: collapse; font: 500 1.14rem/1.3125rem var(--serif); }
.tab th, .tab td { text-align: left; vertical-align: top; padding: 0.55rem 0.9rem 0.6rem 0; border-bottom: 1px solid var(--rule); }
.tab tr > :last-child { padding-right: 0; }
.tab tbody tr:last-child > * { border-bottom: 0; }
.tab thead th { font-size: 0.98rem; color: var(--soft); border-bottom-color: var(--ink); white-space: nowrap; vertical-align: bottom; }
.tab tbody th { font-weight: 600; min-width: 5.5rem; }
.tab td b { font-weight: 600; color: var(--moss); white-space: nowrap; }
.tab tbody tr { transition: background-color 0.15s; }
.tab tbody tr:hover { background: var(--leaf); }
.tab.recipe tbody th { width: 6.5rem; font: 600 1rem/1.3125rem var(--caps); text-transform: lowercase; letter-spacing: 0.07em; color: var(--clayd); padding-top: 0.62rem; }

/* ---- home: the game first ---- */

.first { padding-top: clamp(1.25rem, 3vw, 2.25rem); }

.hero { display: grid; gap: 2.5rem; padding-top: var(--gap); align-items: start; }
.hero .lead { max-width: 38rem; }
.hero h1 { margin-bottom: var(--line); }

.index { border-top: 1px solid var(--ink); position: relative; padding-top: 0.9rem; }
.index::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--rule); }
.index h2 { font-size: 1.05rem; line-height: var(--line); color: var(--clayd); margin-bottom: 0.2rem; }
.index ol { counter-reset: i; }
.index li { counter-increment: i; border-bottom: 1px solid var(--rule); }
.index a { display: grid; grid-template-columns: 2.2rem 1fr; column-gap: 0.25rem; padding: 0.6rem 0 0.65rem; text-decoration: none; color: var(--ink); transition: padding-left 0.25s var(--ease), color 0.2s; }
.index a::before { content: counter(i, upper-roman) "."; grid-row: span 2; font: italic 500 1.2rem/1.3125rem var(--serif); color: var(--clay); }
.index b { font: 600 1.32rem/1.3125rem var(--serif); }
.index i { font: italic 400 1rem/1.3125rem var(--serif); color: var(--soft); }
.index a:hover { padding-left: 0.4rem; color: var(--moss); }

.band { display: grid; margin: var(--gap) 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); position: relative; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px solid var(--rule); }
.band::before { top: 3px; }
.band::after { bottom: 3px; }
.band > div { padding: 1.1rem 0 1.15rem; border-bottom: 1px solid var(--rule); }
.band > div:last-child { border-bottom: 0; }
.band dt { font-size: 0.98rem; line-height: 1.3125rem; color: var(--clayd); margin-bottom: 0.25rem; }
.band dd { margin: 0; font: 400 1.25rem/1.3125rem var(--serif); }
.band dd b { font-weight: 600; }
.band small { display: block; font: 400 0.86rem/1.3125rem var(--sans); color: var(--soft); margin-top: 0.3rem; }
.lunar dd { display: flex; gap: 0.8rem; align-items: center; }
.lunar small { margin-top: 0.1rem; }

.now li { position: relative; padding: 0.85rem 0 0.9rem; border-bottom: 1px solid var(--rule); }
.now li:first-child { padding-top: 0; }
.now b { font: 600 1.35rem/var(--line) var(--serif); }
.now a { text-decoration: none; color: var(--ink); }
.now a:hover { color: var(--moss); text-decoration: underline; }
.now i { color: var(--soft); font-size: 0.9rem; margin-left: 0.2rem; }
.now span { display: block; font-size: 0.95rem; line-height: 1.3125rem; color: var(--soft); margin-top: 0.1rem; }
.lvl { display: inline-block; margin-top: 0.5rem; font-size: 0.86rem; line-height: 1; padding: 0.12rem 0.5rem 0.24rem; border: 1px solid var(--sage); color: var(--moss); }
.lvl.l2 { background: var(--moss); border-color: var(--moss); color: var(--card); }

.front2 { display: grid; gap: var(--line); }
.top a { display: block; color: inherit; text-decoration: none; }
.top .plate { margin-bottom: 1.1rem; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.top .plate .art { max-height: 15rem; padding: 5% 6%; }
.top a:hover .plate { box-shadow: 5px 5px 0 var(--mist); transform: translate(-2px, -2px); }
.top h3 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.top a:hover h3 { color: var(--moss); }
.top p { margin: 0.6rem 0 0.4rem; color: var(--soft); font: 400 1.25rem/var(--line) var(--serif); max-width: 34rem; }
.top small, .toc small, .feat small { color: var(--soft); font-size: 0.86rem; }

.toc { counter-reset: toc; border-top: 1px solid var(--rule); }
.toc[start="2"] { counter-reset: toc 1; }
.toc li { border-bottom: 1px solid var(--rule); counter-increment: toc; }
.toc a { display: block; position: relative; padding: 1.05rem 0 1.1rem 3.2rem; color: inherit; text-decoration: none; }
.toc a::before {
  content: counter(toc, upper-roman) ".";
  position: absolute; left: 0; top: 1.05rem;
  font: italic 500 1.35rem/var(--line) var(--serif);
  color: var(--clay);
  transition: transform 0.25s var(--ease);
}
.toc a:hover::before { transform: translateX(3px); }
.toc h2, .toc h3 { font-size: clamp(1.45rem, 3vw, 1.85rem); transition: color 0.2s; }
.toc a:hover h2, .toc a:hover h3 { color: var(--moss); }
.toc p { margin: 0.4rem 0 0.35rem; color: var(--soft); max-width: 40rem; }
.tag { display: block; font-size: 0.95rem; line-height: 1.3125rem; color: var(--clayd); margin-bottom: 0.1rem; }
.toc.long li { display: grid; align-items: center; }
.toc.long .art { display: none; }
.toc.trio { display: grid; gap: 0 2.5rem; }

.feat { display: grid; gap: var(--line); align-items: center; padding-bottom: var(--line); }
.feat .plate .art { max-height: 17rem; }
.feat h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 0.2rem 0 0.7rem; }
.feat h2 a { color: var(--ink); text-decoration: none; }
.feat h2 a:hover { color: var(--moss); }
.feat p { font: 400 1.3rem/var(--line) var(--serif); color: var(--soft); margin-bottom: 0.5rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 1rem; }

.fly { position: relative; display: block; background: var(--card); border: 1px solid var(--rule); padding: 1.25rem 1.25rem 1.3rem; color: var(--ink); text-decoration: none; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.2s; }
a.fly:hover { color: var(--ink); border-color: var(--ink); box-shadow: 5px 5px 0 var(--mist); transform: translate(-2px, -2px); }
a.fly:hover h2, a.fly:hover h3 { color: var(--moss); }
.fly .art { max-width: 13rem; margin: 0 auto 0.5rem; }
.fly h2, .fly h3 { font-size: 1.6rem; transition: color 0.2s; }
.fly p { font-size: 0.93rem; line-height: 1.3125rem; margin: 0.55rem 0 0; color: var(--soft); }
.fly .meta, .meta { font-size: 0.95rem; line-height: 1.3125rem; color: var(--clayd); margin: 0.2rem 0 0; }
.fly .no { position: absolute; top: 0.7rem; left: 1rem; font: italic 500 1.15rem/1 var(--serif); color: var(--sage); }
.go { display: inline-block; margin-top: 0.8rem; font-size: 0.95rem; line-height: 1.3125rem; color: var(--moss); }
.go::after { content: " \2192"; }
.grid.three .fly { padding: 0.9rem; }
.grid.three .fly h3 { font-size: 1.3rem; }

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); border-top: 1px solid var(--rule); }
.shelf li { border-bottom: 1px solid var(--rule); }
.shelf a { display: block; height: 100%; padding: 1.3rem 1rem 1.4rem; color: var(--ink); text-decoration: none; transition: background-color 0.2s; }
.shelf a:hover { background: var(--card); }
.shelf svg { height: 5.25rem; width: auto; max-width: 100%; margin: 0 auto 0.9rem; border: 0; background: none; }
.shelf b { display: block; font: 600 1.45rem/var(--line) var(--serif); }
.shelf a:hover b { color: var(--moss); }
.shelf span { display: block; font-size: 0.92rem; line-height: 1.3125rem; color: var(--soft); }

.rules { counter-reset: r; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.rules li { counter-increment: r; position: relative; padding: 0.85rem 0 0.9rem 3rem; border-bottom: 1px solid var(--rule); color: var(--soft); }
.rules li::before { content: counter(r); position: absolute; left: 0.2rem; top: 0.6rem; font: italic 500 2rem/var(--line) var(--serif); color: var(--clay); }
.rules b { color: var(--ink); }

/* ---- essays ---- */

.page { display: grid; gap: var(--line); }
.rail { display: grid; gap: var(--line); align-content: start; }
.rail .plate { display: none; }
.rail h2 { font-size: 1.02rem; line-height: var(--line); color: var(--clayd); border-top: 1px solid var(--ink); padding-top: 0.4rem; }
.rail nav ol { counter-reset: t; }
.rail nav li { counter-increment: t; border-bottom: 1px solid var(--rule); }
.rail nav a { display: grid; grid-template-columns: 1.6rem 1fr; padding: 0.4rem 0 0.45rem; font: 500 1.14rem/1.3125rem var(--serif); color: var(--ink); text-decoration: none; }
.rail nav a::before { content: counter(t); font-style: italic; color: var(--clay); }
.rail nav a:hover { color: var(--moss); }
.rail nav small { color: var(--soft); }
.kit ul, .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.kit a, .tags a { display: inline-block; font: 500 1.05rem/1.3125rem var(--serif); padding: 0.2rem 0.7rem 0.3rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.kit a:hover, .tags a:hover { border-color: var(--moss); color: var(--moss); }
.tags i { color: var(--soft); font-size: 0.92em; }

.body { max-width: 40rem; margin-inline: auto; hanging-punctuation: first allow-end; }
.body h2 { margin: calc(var(--line) * 1.5) 0 calc(var(--line) * 0.5); font-size: clamp(1.6rem, 3.4vw, 2rem); line-height: var(--line); }
.body h2:first-child { margin-top: 0; }
.body > p, .body li { hyphens: auto; }
.pts, .steps { margin: 0 0 var(--line); border-top: 1px solid var(--rule); }
.pts li, .steps li { padding: 0.65rem 0 0.7rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; }
.pts li::before { content: ""; position: absolute; left: 0.15rem; top: 1.25rem; width: 0.55rem; height: 0.55rem; border: 1px solid var(--clay); border-radius: 50% 0 50% 50%; transform: rotate(-45deg); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; padding-left: 2.4rem; }
.steps li::before { content: counter(s) "."; position: absolute; left: 0; top: 0.55rem; font: italic 500 1.55rem/var(--line) var(--serif); color: var(--clay); }
.steps.card { background: var(--card); border: 1px solid var(--ink); padding: 0.4rem 1.1rem; box-shadow: 5px 5px 0 var(--mist); }
.steps.card li:last-child { border-bottom: 0; }
.steps.card li { font: 500 1.2rem/var(--line) var(--serif); }

.pull { margin: calc(var(--line) * 1.5) 0; padding: var(--line) 0; border-top: 1px solid var(--clay); border-bottom: 1px solid var(--clay); position: relative; text-align: center; }
.pull::before { content: "\201C"; position: absolute; top: -0.95rem; left: 50%; transform: translateX(-50%); background: var(--paper); padding: 0 0.6rem; font: 500 3rem/1.75rem var(--serif); height: 1.75rem; overflow: hidden; color: var(--clay); padding-top: 0.55rem; }
.pull p { font: italic 500 clamp(1.5rem, 3.6vw, 1.95rem)/1.25 var(--serif); color: var(--moss); margin: 0; text-wrap: balance; }

.end { text-align: center; color: var(--clay); font-size: 1.5rem; margin: var(--line) 0 0; }

.turn { display: grid; gap: 1rem; margin: calc(var(--line) * 2) 0 0; border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.turn a { font: 500 1.4rem/1.3125rem var(--serif); text-decoration: none; }
.turn small { display: block; font-size: 0.95rem; line-height: 1.3125rem; color: var(--soft); margin-bottom: 0.2rem; }
.turn [rel="next"] { text-align: right; }

.cols2 { max-width: none; }

/* etiquette */
.code { counter-reset: c; max-width: 44rem; }
.code li { counter-increment: c; position: relative; padding: 0 0 var(--line) 3.4rem; margin-bottom: var(--line); border-bottom: 1px solid var(--rule); }
.code li::before { content: counter(c, upper-roman); position: absolute; left: 0; top: 0; width: 2.6rem; text-align: right; font: italic 500 1.6rem/var(--line) var(--serif); color: var(--clay); }
.code h2 { font-size: 1.6rem; line-height: var(--line); margin-bottom: 0.4rem; }
.code p { margin: 0; color: var(--soft); }

/* questions */
.asks { max-width: 46rem; }
.asks section + section { margin-top: calc(var(--line) * 1.5); }
.asks h2 { font-size: 1.05rem; line-height: var(--line); font-family: var(--caps); font-weight: 600; text-transform: lowercase; letter-spacing: 0.07em; color: var(--clayd); border-bottom: 1px solid var(--ink); padding-bottom: 0.3rem; }
details { border-bottom: 1px solid var(--rule); }
summary { display: grid; grid-template-columns: 2.6rem 1fr 1.2rem; align-items: baseline; gap: 0 0.3rem; padding: 0.85rem 0 0.9rem; cursor: pointer; list-style: none; font: 500 1.4rem/var(--line) var(--serif); transition: color 0.2s; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.5rem/1 var(--serif); color: var(--clay); text-align: right; transition: transform 0.25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--moss); }
summary .num { font-size: 1.1rem; }
details > div { padding: 0 1.5rem 0.4rem 2.9rem; color: var(--soft); }

/* glossary */
.lookup { display: grid; gap: 1rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.find { max-width: 22rem; }
.az { display: flex; flex-wrap: wrap; gap: 0.1rem 0.15rem; font-size: 1.25rem; line-height: 1; align-items: center; }
.az a, .az span { display: grid; place-items: center; min-width: 1.9rem; height: 2.2rem; text-decoration: none; text-transform: uppercase; }
.az a { color: var(--ink); border-bottom: 1px solid transparent; }
.az a:hover { color: var(--clayd); border-bottom-color: var(--clay); }
.az span { color: var(--rule); }
.lex section { display: grid; gap: 0 2rem; padding: var(--line) 0; border-bottom: 1px solid var(--rule); }
.lex h2 { font: italic 500 3.4rem/1 var(--serif); color: var(--clay); margin-bottom: 0.5rem; }
.lex dl { margin: 0; display: grid; gap: 1.3125rem 2.5rem; }
.lex dt { font: 600 1.4rem/var(--line) var(--serif); text-transform: none; letter-spacing: 0; }
.lex dd { margin: 0; color: var(--soft); }

/* ---- fly and insect sheets ---- */

.spread { display: grid; gap: calc(var(--line) * 1.5); }
.left { display: grid; gap: var(--line); align-content: start; }
.left .plate { max-width: 30rem; width: 100%; margin-inline: auto; }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.42rem 0 0.48rem; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.98rem; line-height: var(--line); color: var(--clayd); }
.facts dd { margin: 0; font: 500 1.2rem/var(--line) var(--serif); }
.right section { margin-bottom: calc(var(--line) * 1.5); }
.right h2 { font-size: 1.75rem; line-height: var(--line); margin-bottom: 0.6rem; }
.right .tab { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.right .note { margin: 0 0 calc(var(--line) * 1.5); }
.right p { max-width: 40rem; }

.year { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.year li { display: grid; justify-items: center; gap: 0.55rem; padding: 0.55rem 0 0.85rem; position: relative; }
.year li + li { border-left: 1px solid var(--rule); }
.year abbr { font: 600 1rem/1 var(--caps); color: var(--soft); text-decoration: none; }
.year .now { background: var(--mist); box-shadow: inset 0 3px 0 var(--clay); }
.year .dot { align-self: center; }

/* ---- filters ---- */

.filt { display: grid; gap: 1rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 1.05rem 0; }
.filt.slim { margin-bottom: 0; border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips button, .lv button {
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.55rem 0.95rem 0.7rem;
  min-height: 2.5rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chips button:hover, .lv button:hover { border-color: var(--moss); background: var(--card); }
.chips button[aria-pressed="true"], .lv button[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: var(--card); }
.picks { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }

label { display: block; font-size: 0.98rem; line-height: 1.3125rem; color: var(--soft); }
label small { font: italic 400 0.85rem var(--sans); text-transform: none; letter-spacing: 0; margin-left: 0.3rem; }

input[type="search"], select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  font: 400 1rem/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-bottom-color: var(--soft);
  border-radius: 0;
  padding: 0.7rem 0.75rem;
  min-height: 2.9rem;
  transition: border-color 0.2s, background-color 0.2s;
}
input:hover, select:hover { border-color: var(--sage); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--moss); outline-offset: 0; border-color: var(--moss); background: #fff; }

.count { font: italic 400 1.15rem/var(--line) var(--serif); color: var(--soft); margin: 0.9rem 0; }
.none { text-align: center; padding: 2.5rem 0; color: var(--soft); }

/* ---- hatch chart ---- */

.above { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; margin-bottom: 0.9rem; }
.key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.86rem; color: var(--soft); }
.key li { display: flex; align-items: center; gap: 0.45rem; }
.dot { display: inline-block; width: 0.72rem; height: 0.72rem; border-radius: 50%; border: 1px solid transparent; }
.dot.l2 { background: var(--moss); border-color: var(--moss); }
.dot.l1 { border-color: var(--moss); background: var(--mist); width: 0.56rem; height: 0.56rem; }
.dot.l0 { width: 0.25rem; height: 0.25rem; background: var(--rule); }
.swatch { display: inline-block; width: 1rem; height: 0.8rem; background: var(--mist); border-top: 2px solid var(--clay); }

.chart { border-collapse: collapse; width: 100%; min-width: 52rem; font-size: 0.88rem; }
.chart caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chart th, .chart td { padding: 0.5rem 0.3rem; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.chart tbody tr:last-child > * { border-bottom: 0; }
.chart thead th { font-size: 0.98rem; line-height: 1; color: var(--soft); padding-block: 0.8rem 0.9rem; border-bottom-color: var(--ink); }
.chart abbr { text-decoration: none; }
.chart th[scope="row"], .chart thead th:first-child {
  text-align: left; position: sticky; left: 0; z-index: 1;
  background: var(--paper); padding-left: 0; padding-right: 0.8rem;
  min-width: 9.5rem; max-width: 12rem;
  box-shadow: 1px 0 0 var(--rule);
}
.chart th[scope="row"] { font: 600 1.18rem/1.2 var(--serif); }
.chart th[scope="row"] a { color: var(--ink); text-decoration: none; }
.chart th[scope="row"] a:hover { color: var(--moss); text-decoration: underline; }
.chart th[scope="row"] i { display: block; font: italic 400 0.76rem/1.3 var(--sans); color: var(--soft); }
.chart .try { text-align: left; padding-left: 0.9rem; color: var(--soft); min-width: 13rem; font-variant-numeric: oldstyle-nums; }
.chart .now { background: var(--mist); }
.chart thead .now { color: var(--clayd); box-shadow: inset 0 3px 0 var(--clay); }
.chart tbody tr:hover td:not(.now), .chart tbody tr:hover th { background: var(--leaf); }
.now.wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); column-gap: 2.5rem; }
.now.wide li:first-child { padding-top: 0.85rem; }

.bugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 27rem), 1fr)); gap: 0 3rem; border-top: 1px solid var(--rule); }
.bugs li { display: grid; grid-template-columns: 6rem 1fr; gap: 1.1rem; padding: 1.2rem 0 1.25rem; border-bottom: 1px solid var(--rule); align-items: start; }
.bugs .pic { background: var(--card); border: 1px solid var(--rule); padding: 0.4rem; transition: border-color 0.2s; }
.bugs li:hover .pic { border-color: var(--ink); }
.bugs h3 { font-size: 1.5rem; line-height: var(--line); }
.bugs h3 a { color: var(--ink); text-decoration: none; }
.bugs h3 a:hover { color: var(--moss); }
.bugs h3 i { font: italic 400 0.85rem var(--sans); color: var(--soft); margin-left: 0.2rem; }
.bugs p { font-size: 0.95rem; line-height: 1.3125rem; color: var(--soft); margin: 0.2rem 0 0.5rem; }
.bugs .match { margin: 0; color: var(--ink); }
.bugs .match span { display: block; font: 600 0.95rem/1.3125rem var(--caps); text-transform: lowercase; letter-spacing: 0.07em; color: var(--clayd); }

/* ---- leaders and knots ---- */

.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.4rem; font-size: 1rem; }
.jump a { text-decoration: none; padding: 0.3rem 0; color: var(--ink); border-bottom: 1px solid var(--rule); }
.jump a:hover { color: var(--clayd); border-bottom-color: var(--clay); }
.fig.wide { max-width: 44rem; margin-inline: auto; margin-top: 0; }
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 0 3rem; border-top: 1px solid var(--rule); }
.rig { padding: 1.2rem 0 1.3rem; border-bottom: 1px solid var(--rule); }
.rig h3 { font-size: 1.6rem; line-height: var(--line); }
.rig p { font-size: 0.95rem; line-height: 1.3125rem; color: var(--soft); margin: 0.8rem 0 0; }
.bar { display: flex; align-items: flex-end; gap: 2px; margin-top: 0.9rem; }
.bar li { flex: 1 1 0; min-width: 2.1rem; text-align: center; border-bottom: 3px solid var(--moss); padding-bottom: 0.3rem; }
.bar li:last-child { border-bottom-color: var(--clay); }
.bar b { display: block; font: 600 1.1rem/1.2 var(--serif); font-variant-numeric: lining-nums; }
.bar i { display: block; font: italic 400 0.92rem/1.2 var(--serif); color: var(--soft); font-variant-numeric: lining-nums; }
.hint { font: italic 400 1.05rem/var(--line) var(--serif); color: var(--soft); margin: 1rem 0 0; }

.tie { padding: calc(var(--line) * 1.25) 0; border-bottom: 1px solid var(--rule); }
.tie:first-of-type { padding-top: 0; }
.tie > header { display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; align-items: baseline; margin-bottom: 1rem; }
.tie h3 { font-size: 1.9rem; line-height: var(--line); }
.tie header p { grid-column: 2; margin: 0.2rem 0 0; max-width: 44rem; color: var(--soft); }
.tie header .meta { color: var(--clayd); }
.frames { display: grid; gap: 1.25rem; }
.frames p { font-size: 0.95rem; line-height: 1.3125rem; margin: 0.6rem 0 0; }
.frames b { font: italic 600 1.2rem var(--serif); color: var(--clay); margin-right: 0.15rem; }

/* ---- write: the address card ---- */

.split { display: grid; gap: 2.5rem; }
.post { background: var(--card); border: 1px solid var(--ink); outline: 1px solid var(--rule); outline-offset: 3px; padding: clamp(1.25rem, 4vw, 2.5rem); }
.post h2 { font-size: 1.05rem; line-height: var(--line); font-family: var(--caps); font-weight: 600; text-transform: lowercase; letter-spacing: 0.07em; color: var(--clayd); }
.post .mail { display: inline-block; font: 500 clamp(1.5rem, 5.4vw, 2.4rem)/1.2 var(--serif); margin: 0.2rem 0 var(--line); overflow-wrap: anywhere; }
.post address { font: 500 1.3rem/var(--line) var(--serif); font-style: normal; margin-bottom: var(--line); }
.post p:last-child { margin-bottom: 0; color: var(--soft); }
.side { font-size: 0.95rem; line-height: 1.3125rem; color: var(--soft); border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.side .rush { float: right; margin: -0.5rem 0 0.5rem 1rem; }
.side h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 0.8rem; }
.side li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.side b { color: var(--ink); }

/* "illustrative account" flag on scene-setting essays */
.flag { display: inline-block; margin: 1.05rem 0 0; padding: 0.25rem 0.8rem 0.35rem; border: 1px solid var(--clay); font: italic 500 1.05rem/1.3125rem var(--serif); color: var(--clayd); background: var(--card); }
.flag b { font: 600 0.95rem var(--caps); font-style: normal; text-transform: lowercase; letter-spacing: 0.07em; margin-right: 0.35rem; }

.imprint { font-style: normal; margin-top: 1.1rem; font: 500 1.08rem/1.3125rem var(--serif); color: var(--ink); }
.imprint b { display: block; font: 600 0.95rem/1.3125rem var(--caps); text-transform: lowercase; letter-spacing: 0.07em; color: var(--clayd); }
.imprint a { color: var(--ink); }

/* ---- 404 ---- */

.lost { text-align: center; padding-top: clamp(2.5rem, 8vw, 5rem); }
.lost .art { max-width: 12rem; margin: 0 auto 1.25rem; }
.ways { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--rule); }
.ways li { border-bottom: 1px solid var(--rule); }
.ways a { display: block; padding: 0.85rem 0; font: 500 1.35rem/1.3125rem var(--serif); text-decoration: none; }

/* ---- footer ---- */

.foot { margin-top: var(--gap); background: var(--leaf); border-top: 1px solid var(--ink); position: relative; font-size: 0.93rem; line-height: 1.3125rem; color: var(--soft); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--rule); }
.foot .wrap { padding-top: 0.5rem; padding-bottom: 2rem; }
.foot .fleuron { margin: 1.75rem auto 2rem; }
.cols { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.cols .col { grid-column: 1 / -1; }
.cols h2 { font-size: 1rem; line-height: var(--line); color: var(--clayd); margin-bottom: 0.35rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.2rem; }
.cols p { max-width: 24rem; margin: 0; }
.cols li a { display: inline-block; padding: 0.3rem 0; font: 500 1.14rem/1.3125rem var(--serif); color: var(--ink); text-decoration: none; }
.cols li a:hover { color: var(--clayd); text-decoration: underline; }
.tonight { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.1rem !important; font: italic 400 1.05rem/1.3125rem var(--serif); }
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 2rem; margin: 2.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.8rem; }

/* ---- storage notice ---- */

.slip {
  position: fixed; z-index: 30;
  left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  max-width: 34rem; margin-left: auto;
  display: grid; gap: 0.8rem;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--sage);
  padding: 0.9rem 1.1rem 1rem;
  font-size: 0.86rem; line-height: 1.3125rem;
  animation: rise 0.5s var(--ease) both;
}
.slip p { margin: 0; }
.slip .btn { justify-self: start; padding: 0.6rem 1rem 0.7rem; min-height: 2.5rem; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* single-column grids must never grow past the page */
.page, .spread, .two, .front2, .hero, .feat, .split { grid-template-columns: minmax(0, 1fr); }
.page > *, .spread > * { width: 100%; min-width: 0; }

/* ---- wider screens ---- */

@media (min-width: 36rem) {
  .strip p span { display: inline; }
  .frames { grid-template-columns: repeat(3, 1fr); }
  .lex dl { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr 1fr; }
  .band > div { padding-inline: 1.25rem; }
  .band > div:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--rule); }
  .band > div:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (min-width: 40rem) {
  .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .cols .col { grid-column: auto; }
  .slip { grid-template-columns: 1fr auto; align-items: center; }
  .turn { grid-template-columns: 1fr 1fr; }
  .toc.long li { grid-template-columns: 1fr 9rem; gap: 1.5rem; }
  .toc.long .art { display: block; color: var(--soft); }
  .toc.trio { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .toc.trio li { border-top: 1px solid var(--rule); }
  .cols2 { column-count: 2; column-gap: 2.5rem; }
  .cols2 p { break-inside: avoid; }
  .feat { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; }
  .lookup { grid-template-columns: 20rem 1fr; align-items: end; }
  .az { justify-content: flex-end; }
  .lex section { grid-template-columns: 4.5rem 1fr; }
}

@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
  .two { grid-template-columns: 1fr 17rem; gap: 3.5rem; }
  .split { grid-template-columns: 1fr 19rem; gap: 4rem; }
  .front2 { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: start; }
  .band { grid-template-columns: 0.9fr 1fr 1.5fr 0.9fr; }
  .band > div { border-bottom: 0; padding-inline: 1.4rem; border-right: 1px solid var(--rule); }
  .band > div:first-child { padding-left: 0; }
  .band > div:last-child { border-right: 0; padding-right: 0; }
  .essay .body { max-width: 57rem; padding-right: 17rem; margin-inline: 0; }
  .essay .note { float: right; clear: right; width: 14rem; margin: 0.3rem -17rem var(--line) 0; }
  .essay .pull { margin-right: -8rem; }
  .spread { grid-template-columns: 22rem minmax(0, 1fr); gap: 4rem; }
  .left { position: sticky; top: 1.5rem; }
  .rail nav ol { columns: 2; column-gap: 2rem; }
  .rail nav li { break-inside: avoid; }
}

@media (min-width: 75rem) {
  .page { grid-template-columns: 13.5rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .rail { position: sticky; top: 1.5rem; }
  .rail .plate { display: block; }
  .rail nav ol { columns: auto; }
  .essay .body { max-width: 57rem; }
  .lex dl { grid-template-columns: 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover, a.fly:hover, .top a:hover .plate { transform: none; }
}

/* ---- print: recipes, the hatch chart, the care guide ---- */

@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.45; }
  .mast nav, .strip ul, .slip, .skip, .acts, .filt, .noprint, .foot .cols, .foot .fleuron, .rail nav, .rail .kit, .jump, .turn, .more { display: none !important; }
  .mast { padding: 0; }
  .name { font-size: 22pt; margin-top: 0; }
  .motto { margin-bottom: 4mm; }
  .head { padding: 4mm 0; }
  .head h1 { font-size: 24pt; }
  .foot { background: none; margin-top: 8mm; }
  .wrap { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
  .scroll { overflow: visible; }
  .chart { min-width: 0; font-size: 8pt; }
  .chart th[scope="row"], .chart thead th:first-child { position: static; box-shadow: none; background: none; }
  .chart .now, .year .now { background: none; box-shadow: none; }
  .spread { grid-template-columns: 62mm 1fr; gap: 8mm; }
  .left { position: static; }
  .page { display: block; }
  .rail .plate { display: none; }
  .essay .body { max-width: none; padding-right: 0; }
  .essay .note { float: none; width: auto; margin: 4mm 0; }
  .essay .pull { margin-right: 0; }
  h2, h3, .tie > header { break-after: avoid; }
  .tie, .rig, .fig, .tabf, li, tr, details { break-inside: avoid; }
  details > div { display: block; }
  .frames { grid-template-columns: repeat(3, 1fr); }
  .dot.l2, .lvl.l2, .bar li { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* legal pages: one quiet column */
.body.solo { max-width: 40rem; margin-inline: auto; padding-right: 0; }
.body.solo .pts li::before { top: 1.2rem; }

@media (min-width: 56rem) {
  .body > p, .body li { hyphens: manual; }
}
