/* Underbook blog. Layout: a bookseller's broadside — one parchment column of short leaves, each a heading, two lines and a gilt-framed plate from the game */
:root {
  --parchment: #ede1c6;
  --parchment-deep: #dfcda5;
  --ink: #2b1e15;
  --ink-soft: #5d4936;
  --oxblood: #7d2420;
  --gilt: #a67a2e;
  --plate: #1d1620;
  --font-display: 'IM Fell English', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-caps: 'IM Fell English SC', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'Literata', 'Palatino Linotype', Palatino, Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--parchment); }
body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,250,235,.55), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(150,110,60,.18), transparent 55%),
    var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 72px;
  min-height: 100vh;
  margin: 0;
}
.page { max-width: 760px; margin: 0 auto; }

header.hero { text-align: center; padding-block: 56px 28px; }
.kicker {
  font-family: var(--font-caps); font-size: 15px; letter-spacing: .18em;
  color: var(--oxblood); margin: 0 0 10px;
}
h1 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 7vw, 64px);
  line-height: 1.02; margin: 0; text-wrap: balance;
}
.dek {
  font-size: 19px; color: var(--ink-soft); max-width: 34ch; margin: 18px auto 0; text-wrap: balance;
}
.dek strong { color: var(--ink); }
.lead { max-width: 60ch; margin: 0 auto 36px; display: grid; gap: 14px; font-size: 18.5px; }
.lead p { margin: 0; }
.lead p:first-child { font-family: var(--font-display); font-size: clamp(24px, 3.6vw, 30px); line-height: 1.25; color: var(--oxblood); text-wrap: balance; }
.lead .bridge { color: var(--ink-soft); }
.lead strong { color: var(--ink); font-weight: 600; }

.rule {
  display: flex; align-items: center; gap: 14px; color: var(--gilt);
  margin: 44px auto; max-width: 420px;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.rule span { font-family: var(--font-display); font-size: 20px; line-height: 1; }

figure { margin: 0; }
.plate {
  background: var(--plate); padding: 6px; border: 1px solid var(--gilt);
  outline: 1px solid rgba(166,122,46,.35); outline-offset: 4px;
  box-shadow: 0 14px 30px -18px rgba(40,20,5,.7);
}
.plate img { display: block; width: 100%; height: auto; }
figcaption {
  font-style: italic; font-size: 14.5px; color: var(--ink-soft);
  text-align: center; margin-top: 12px; text-wrap: balance;
}

section.leaf { display: grid; gap: 22px; }
section.leaf h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.4vw, 36px);
  line-height: 1.1; margin: 0; text-wrap: balance;
}
section.leaf p { margin: 0; max-width: 60ch; }
section.leaf p + p { margin-top: 10px; }
.copy { min-width: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pair figcaption { font-size: 13.5px; }


.rhythms {
  background: rgba(255,250,236,.45); border: 1px solid rgba(166,122,46,.5);
  outline: 1px solid rgba(166,122,46,.25); outline-offset: 4px;
  padding: 18px 20px 16px;
}
.rh-head, .rh-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); align-items: center; gap: 8px; }
.rh-head { font-family: var(--font-caps); font-size: 14px; letter-spacing: .1em; color: var(--ink-soft); text-align: center; padding-bottom: 10px; border-bottom: 1px solid rgba(166,122,46,.55); }
.rh-row { padding-block: 12px; border-bottom: 1px solid rgba(166,122,46,.28); }
.rh-row:last-of-type { border-bottom: 0; }
.rh-name { display: grid; line-height: 1.25; min-width: 0; }
.rh-name b { font-family: var(--font-display); font-weight: 400; font-size: 21px; color: var(--ink); }
.rh-name span { font-size: 13.5px; font-style: italic; color: var(--ink-soft); }
.rh-turn { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
.rh-turn i {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b0443a, var(--oxblood) 65%);
  box-shadow: 0 0 0 2px var(--parchment), 0 0 0 3px var(--gilt);
}
.rh-turn i.maybe { background: transparent; box-shadow: inset 0 0 0 2px var(--oxblood), 0 0 0 2px var(--parchment), 0 0 0 3px var(--gilt); }
.rh-none::before { content: ""; width: 16px; height: 1px; background: var(--ink-soft); opacity: .45; align-self: center; }
.rhythms figcaption { margin-top: 14px; }
@media (max-width: 640px) {
  .rhythms { padding: 14px 12px; }
  .rh-head { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rh-head span:first-child { display: none; }
  .rh-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; }
  .rh-name { grid-column: 1 / -1; }
  .rh-turn i { width: 13px; height: 13px; }
}
.keyword {
  font-family: var(--font-caps); letter-spacing: .06em; color: var(--oxblood);
}

.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.notes li {
  background: rgba(255,250,236,.5); border: 1px solid rgba(166,122,46,.45);
  padding: 14px 18px; border-radius: 2px;
}
.notes b { font-weight: 600; }

footer { text-align: center; margin-top: 56px; color: var(--ink-soft); font-family: var(--font-caps); letter-spacing: .14em; font-size: 14px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .split, .pair { grid-template-columns: 1fr; }
  header.hero { padding-block: 36px 20px; }
}

/* Site chrome: masthead, post list, back link */
.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px 14px; border-bottom: 1px solid rgba(166,122,46,.55); }
.masthead a { color: inherit; text-decoration: none; }
.brand { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.brand-sub { font-family: var(--font-caps); font-size: 14px; letter-spacing: .14em; color: var(--ink-soft); }
.masthead nav { display: flex; gap: 18px; font-family: var(--font-caps); font-size: 15px; letter-spacing: .1em; }
.masthead nav a { color: var(--oxblood); }
.masthead nav a:hover, .masthead nav a:focus-visible { text-decoration: underline; }
a { color: var(--oxblood); }
a:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
.date { font-family: var(--font-caps); font-size: 14px; letter-spacing: .14em; color: var(--ink-soft); margin: 14px 0 0; }
.index-intro { text-align: center; padding-block: 48px 30px; }
.index-intro h1 { font-size: clamp(36px, 6vw, 54px); }
.index-intro p { color: var(--ink-soft); margin: 14px auto 0; max-width: 40ch; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.post-card a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center;
  color: inherit; text-decoration: none; }
.post-card h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1.1; margin: 6px 0 10px; text-wrap: balance; }
.post-card p { margin: 0; color: var(--ink-soft); }
.post-card .more { margin-top: 12px; color: var(--oxblood); font-family: var(--font-caps); letter-spacing: .1em; font-size: 15px; }
.post-card a:hover h2, .post-card a:focus-visible h2 { color: var(--oxblood); }
@media (max-width: 640px) { .post-card a { grid-template-columns: 1fr; gap: 16px; } }
