/* Kigo — a small saijiki.
   Paper, ink, hairline rules, one vermilion seal. Flat colour only. */

/* ---------- tokens ---------- */
:root {
  --bg: #f3ecdc;
  --surface: #e8dfca;
  --fg: #1f1d1a;
  --muted: #675f51;
  --accent: #b3342a;
  --accent-fg: #fbf6ea;

  --rule: color-mix(in srgb, var(--fg) 22%, transparent);
  --rule-strong: color-mix(in srgb, var(--fg) 68%, transparent);
  --wash: color-mix(in srgb, var(--surface) 62%, transparent);

  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-text: "EB Garamond", "Shippori Mincho", "Iowan Old Style", Georgia, serif;

  --text-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --text-sm: clamp(0.9rem, 0.87rem + 0.15vw, 0.98rem);
  --text-base: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --text-lg: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --text-xl: clamp(1.6rem, 1.4rem + 1vw, 2.3rem);
  --text-2xl: clamp(2.1rem, 1.7rem + 2vw, 3.4rem);
  --text-verse: clamp(2.5rem, min(9.2vh, 5.4vw), 4.4rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --gutter: clamp(1rem, 2.5vw, 2rem);
  --measure: 34rem;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }

[lang="ja"] { font-family: var(--font-display); }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms ease-out;
}
a:hover { color: var(--accent); }
a:focus-visible,
input:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--accent-fg); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: var(--text-sm);
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 160ms ease-out;
  z-index: 2;
}
.skip-link:focus { transform: translateY(0); color: var(--accent-fg); }

/* ---------- running head ---------- */
.running-head {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) calc(var(--gutter) + 6px) var(--space-2);
}
.brand {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}
.brand [lang="ja"] { margin-right: 0.5em; letter-spacing: 0.3em; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a {
  display: inline-block;
  padding-block: 0.55rem;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.site-nav a:hover { color: var(--accent); }

/* ---------- the block frame (kyokaku): one firm line, one hairline inside ---------- */
.frame {
  position: relative;
  margin-inline: var(--gutter);
  padding: 5px;
  border: 1px solid var(--rule-strong);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

/* ---------- vertical verse: three ruled columns, right to left ---------- */
.verse {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  width: 100%;
  height: 100%;
}
.verse .line {
  display: flex;
  align-items: center;
  width: calc(100% / 3);
  padding-top: 1.9rem;
  white-space: nowrap;
}
.verse .line + .line { border-right: 1px solid var(--rule); }
.verse .line:nth-child(2) { padding-top: calc(1.9rem + 0.95em); }
.verse .line:nth-child(3) { padding-top: calc(1.9rem + 1.9em); }

.seal {
  flex: none;
  width: 1.02em;
  height: 1.02em;
  margin-top: 0.5em;
  overflow: visible;
}
.seal-block { fill: var(--accent); }
.seal-glyph {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 47px;
}

/* ---------- home: the spread ---------- */
.spread {
  display: grid;
  grid-template-columns: auto minmax(14rem, 1fr) auto auto;
  grid-template-areas: "spines gloss plate slip";
  grid-template-rows: minmax(0, 1fr);
  block-size: clamp(33rem, calc(100vh - 7.25rem), 39rem);
}
.spread > * { min-block-size: 0; }
.slip { grid-area: slip; }
.plate { grid-area: plate; }
.gloss { grid-area: gloss; }
.spread > .spines { grid-area: spines; }

.slip {
  writing-mode: vertical-rl;
  display: flex;
  justify-content: space-between;
  align-items: center;
  inline-size: 100%;
  padding: 1.9rem 1.25rem 1.6rem;
  border-left: 1px solid var(--rule);
  background-color: var(--wash);
}
.slip h1 {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
}
.slip-ja { font-size: var(--text-xl); letter-spacing: 0.28em; }
.slip-en { font-size: var(--text-lg); letter-spacing: 0.22em; }
.slip-sub { font-size: var(--text-xs); letter-spacing: 0.34em; color: var(--muted); line-height: 1; }

.plate {
  inline-size: calc(var(--text-verse) * 5.25);
  font-size: var(--text-verse);
  border-left: 1px solid var(--rule);
}

.gloss {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-4);
  padding: var(--space-5) clamp(1.5rem, 3vw, 2.75rem) 2.1rem;
  border-left: 1px solid var(--rule);
}
.romaji { font-style: italic; }
.gloss .romaji { font-size: var(--text-lg); line-height: 1.45; color: var(--muted); }
.gloss .english { font-size: var(--text-lg); line-height: 1.45; }
.gloss .source { font-size: var(--text-sm); color: var(--muted); }

/* ---------- season spines ---------- */
.spines ol { display: flex; flex-direction: row-reverse; block-size: 100%; }
.spines li { display: flex; }
.spines li + li { border-right: 1px solid var(--rule); }
.spine {
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  block-size: 4.9rem;
  padding: 1.9rem 0 1.6rem;
  text-decoration: none;
  line-height: 1;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.spine-no { font-size: var(--text-sm); color: var(--muted); transition: color 180ms ease-out; }
.spine-kanji { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 400; letter-spacing: 0.18em; white-space: nowrap; }
.spine-kigo { font-size: var(--text-sm); letter-spacing: 0.3em; white-space: nowrap; color: var(--muted); }
.spine-en {
  margin-top: auto;
  font-family: var(--font-text);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.spine:hover,
.spine[aria-current="page"] { background-color: var(--wash); color: var(--fg); }
.spine:hover .spine-no,
.spine[aria-current="page"] .spine-no { color: var(--accent); }
.spine:focus-visible { outline-offset: -5px; }

/* ---------- home: preface, set as the next opening ---------- */
.preface {
  max-width: 70rem;
  margin: var(--space-7) auto 0;
  padding-inline: var(--gutter);
  columns: 2;
  column-gap: clamp(3rem, 8vw, 7rem);
  column-rule: 1px solid var(--rule);
  direction: rtl;
}
.preface > * { direction: ltr; }
.preface h2 {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: var(--space-4);
  font-family: var(--font-text);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.2;
  color: var(--muted);
}
.preface h2 [lang="ja"] {
  font-style: normal;
  font-weight: 500;
  font-size: var(--text-2xl);
  letter-spacing: 0.12em;
  color: var(--fg);
}
.preface h2 ~ h2 { break-before: column; }
.preface p + p { margin-top: var(--space-3); }
.preface ul { break-inside: avoid; }
.preface li {
  padding-block: var(--space-3);
  border-top: 1px solid var(--rule);
}
.preface li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- colophon line (footer) ---------- */
.colophon-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: var(--space-3);
  margin: var(--space-7) calc(var(--gutter) + 6px) 0;
  padding-block: var(--space-4) var(--space-5);
  border-top: 1px solid var(--rule);
  font-size: var(--text-sm);
  color: var(--muted);
}
.colophon-line .folio {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--text-base);
  color: var(--fg);
}
.colophon-line p:not(.folio) { grid-column: 3; grid-row: 1; text-align: right; }
.colophon-line nav { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.colophon-line a { display: inline-block; padding-block: 0.5rem; text-decoration-color: var(--rule); }
.colophon-line a:hover { text-decoration-color: var(--accent); }

/* ---------- season page: chapter opener ---------- */
.opener {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "text kigo kanji";
  block-size: clamp(25rem, 66vh, 31rem);
}
.opener-kanji {
  grid-area: kanji;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  padding: 2.2rem clamp(1.5rem, 4vw, 3.5rem);
  border-left: 1px solid var(--rule);
  font-size: clamp(7rem, 26vh, 12rem);
  font-weight: 400;
  line-height: 1;
}
.opener-kigo {
  grid-area: kigo;
  writing-mode: vertical-rl;
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  padding: 2.2rem 1.4rem;
  border-left: 1px solid var(--rule);
  line-height: 1;
}
.opener-part { font-size: var(--text-sm); letter-spacing: 0.3em; color: var(--muted); }
.opener-word { font-size: var(--text-2xl); font-weight: 500; letter-spacing: 0.18em; line-height: 1.7; }
rt { font-size: 0.3em; font-weight: 400; letter-spacing: 0.12em; color: var(--muted); }
.opener-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-5) clamp(1.5rem, 3vw, 2.75rem) 2.1rem;
}
.opener-text h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.reading {
  margin-left: 0.4em;
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-lg);
  letter-spacing: 0;
  color: var(--muted);
}
.opener-gloss { max-width: 30rem; font-size: var(--text-lg); line-height: 1.45; text-wrap: balance; }

/* ---------- season page: specimens and commentary ---------- */
.chapter-body { margin: var(--space-6) var(--gutter) 0; }
.haiku {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "cap verse";
  max-width: 46rem;
  margin-inline: auto;
  border-top: 1px solid var(--rule);
}
.haiku:last-of-type { border-bottom: 1px solid var(--rule); }
.haiku .verse {
  grid-area: verse;
  inline-size: 21.5rem;
  block-size: 13.2rem;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.haiku .verse .line { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.haiku .verse .line:nth-child(2) { padding-top: calc(1.6rem + 0.95em); }
.haiku .verse .line:nth-child(3) { padding-top: calc(1.6rem + 1.9em); }
.haiku figcaption {
  grid-area: cap;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 1.6rem var(--space-5) 1.5rem 0.25rem;
}
.haiku-no { margin-bottom: auto; font-size: var(--text-lg); color: var(--muted); line-height: 1; }
.haiku .romaji { color: var(--muted); line-height: 1.5; }
.haiku .english { font-size: var(--text-lg); line-height: 1.45; }

.chapter-body > h2,
.chapter-body > p { max-width: var(--measure); margin-inline: auto; }
.chapter-body > h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1.2;
}
.chapter-body > p + p { margin-top: var(--space-3); text-indent: 0; }

.chapter-foot {
  max-width: 46rem;
  margin: var(--space-6) auto 0;
  padding-inline: var(--gutter);
}
.chapter-foot .spines { border: 1px solid var(--rule); border-inline: 0; }
.chapter-foot .spines ol { justify-content: center; }
.chapter-foot .spines li { border-right: 1px solid var(--rule); }
.chapter-foot .spines li:last-child { border-left: 1px solid var(--rule); }
.chapter-foot .spine { min-inline-size: 21rem; padding-block: 1.4rem 1.2rem; }
.chapter-foot .spine-en { padding-top: 1.1rem; }

/* ---------- contents (section) ---------- */
.contents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "list slip";
  block-size: clamp(31rem, calc(100vh - 12rem), 37rem);
}
.contents-list { grid-area: list; display: flex; flex-direction: row-reverse; }
.contents-list li { flex: 1 1 0; min-width: 0; }
.contents-list li + li { border-right: 1px solid var(--rule); }
.contents-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  block-size: 100%;
  padding: 1.9rem clamp(0.9rem, 1.6vw, 1.5rem) 1.6rem;
  text-decoration: none;
  transition: background-color 180ms ease-out;
}
.contents-head {
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  align-self: flex-end;
  line-height: 1;
}
.contents-no { font-size: var(--text-sm); color: var(--muted); transition: color 180ms ease-out; }
.contents-kanji { font-size: clamp(2.6rem, 2rem + 2.6vw, 4.2rem); letter-spacing: 0.12em; }
.contents-kigo { font-size: var(--text-lg); letter-spacing: 0.2em; line-height: 1.8; color: var(--muted); }
.contents-kigo rt { font-size: 0.42em; }
.contents-text { display: flex; flex-direction: column; gap: var(--space-1); min-block-size: 6.75rem; }
.contents-title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.2; }
.contents-gloss { font-size: var(--text-sm); line-height: 1.45; color: var(--muted); }
.contents-col:hover { background-color: var(--wash); color: var(--fg); }
.contents-col:hover .contents-no { color: var(--accent); }
.contents-col:focus-visible { outline-offset: -5px; }
.contents-note {
  max-width: var(--measure);
  margin: var(--space-6) auto 0;
  padding-inline: var(--gutter);
}

/* ---------- leaf pages: author's note, search ---------- */
.leaf { margin-top: var(--space-5); padding-inline: var(--gutter); }
.prose { position: relative; max-width: var(--measure); margin-inline: auto; }
.leaf-head {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}
.leaf-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.15;
}
.leaf-kanji {
  position: absolute;
  top: 0;
  left: calc(100% + clamp(2rem, 6vw, 6rem));
  writing-mode: vertical-rl;
  padding-left: 1.2rem;
  border-left: 1px solid var(--rule);
  font-size: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}
.prose > p + p { margin-top: var(--space-3); }
.prose h2 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.25;
}
.prose > p:last-child:not(:only-child) { margin-top: var(--space-5); font-style: italic; color: var(--muted); text-align: right; }

/* ---------- search ---------- */
.search-form { margin-top: var(--space-5); }
.search-form label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-form input {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-2) 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: var(--text-lg);
  -webkit-appearance: none;
  appearance: none;
}
.search-form input:focus-visible { outline: 0; border-bottom: 2px solid var(--accent); margin-bottom: -1px; }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
#search-status { min-height: 1.65em; margin-block: var(--space-3); font-size: var(--text-sm); font-style: italic; color: var(--muted); }
#search-results li { border-top: 1px solid var(--rule); }
#search-results li:last-child { border-bottom: 1px solid var(--rule); }
#search-results a {
  display: block;
  padding-block: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-decoration: none;
}

/* ---------- 404 ---------- */
.missing-leaf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "text kanji";
  block-size: clamp(25rem, 66vh, 31rem);
}
.missing-kanji {
  grid-area: kanji;
  writing-mode: vertical-rl;
  padding: 2.2rem clamp(1.5rem, 4vw, 3.5rem);
  border-left: 1px solid var(--rule);
  font-size: clamp(6rem, 24vh, 11rem);
  line-height: 1;
  color: color-mix(in srgb, var(--fg) 30%, transparent);
}
.missing-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-5) clamp(1.5rem, 3vw, 2.75rem) 2.1rem;
}
.missing-text h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl); line-height: 1.15; }
.missing-text p { max-width: var(--measure); }

/* ---------- ink: the columns come up once, right to left ---------- */
@media (prefers-reduced-motion: no-preference) {
  .spread .verse .line { animation: ink 440ms ease-out both; }
  .spread .verse .line:nth-child(2) { animation-delay: 110ms; }
  .spread .verse .line:nth-child(3) { animation-delay: 220ms; }
  @keyframes ink {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- narrow: the spread stacks, the columns stay upright ---------- */
@media (max-width: 60rem) {
  .spread {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "slip" "plate" "gloss" "spines";
    block-size: auto;
  }
  .slip {
    writing-mode: horizontal-tb;
    align-items: baseline;
    padding: var(--space-3) var(--space-3);
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }
  .slip h1 { align-items: baseline; gap: 0.8rem; }
  .slip-ja { letter-spacing: 0.2em; }
  .plate {
    --text-verse: clamp(2.3rem, 11.5vw, 3.6rem);
    inline-size: auto;
    block-size: calc(var(--text-verse) * 8.6 + 3.2rem);
    border-left: 0;
  }
  .gloss { padding: var(--space-4) var(--space-3); border-left: 0; border-top: 1px solid var(--rule); }
  .spread > .spines { border-top: 1px solid var(--rule); }
  .spine { flex: 1; block-size: auto; min-inline-size: 11rem; padding-block: 1.1rem 1rem; gap: 0.8rem; }
  .spines li { flex: 1 1 0; min-width: 0; }
  .spine-kigo { display: none; }
  .spine-en { padding-top: 0.8rem; }
  .slip-en { font-size: var(--text-base); letter-spacing: 0.14em; }

  .preface { columns: auto; direction: ltr; margin-top: var(--space-6); }
  .preface h2 ~ h2 { break-before: auto; margin-top: var(--space-6); }

  .colophon-line { grid-template-columns: 1fr; text-align: center; }
  .colophon-line .folio,
  .colophon-line p:not(.folio),
  .colophon-line nav { grid-column: 1; grid-row: auto; text-align: center; justify-content: center; }

  .opener {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: ". kigo kanji" "text text text";
    block-size: auto;
  }
  .opener-kanji { font-size: clamp(5.5rem, 26vw, 9rem); padding: 1.6rem 1.3rem; min-height: 15rem; }
  .opener-kigo { padding: 1.6rem 1rem; }
  .opener-text { border-top: 1px solid var(--rule); padding: var(--space-4) var(--space-3); }

  .haiku { grid-template-columns: minmax(0, 1fr); grid-template-areas: "verse" "cap"; }
  .haiku .verse { inline-size: 16.5rem; block-size: auto; border-left: 0; }
  .haiku figcaption { padding: var(--space-3) 0 1.6rem; border-top: 1px solid var(--rule); }
  .haiku-no { margin-bottom: 0; }
  .chapter-foot .spine { min-inline-size: 11rem; }

  .contents { grid-template-columns: minmax(0, 1fr); grid-template-areas: "slip" "list"; block-size: auto; }
  .contents-list { flex-direction: column; }
  .contents-list li + li { border-right: 0; border-top: 1px solid var(--rule); }
  .contents-col { flex-direction: row-reverse; align-items: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-3); }
  .contents-head { align-self: flex-start; }
  .contents-kanji { font-size: 2.6rem; }
  .contents-text { flex: 1; min-block-size: 0; }

  .leaf-kanji {
    position: static;
    writing-mode: horizontal-tb;
    padding: 0;
    border: 0;
    margin-bottom: var(--space-2);
    font-size: var(--text-xl);
    color: var(--muted);
  }

  .missing-leaf { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kanji" "text"; block-size: auto; }
  .missing-kanji { justify-self: end; font-size: 5.5rem; border-left: 0; padding: 1.6rem 1.4rem; }
  .missing-text { border-top: 1px solid var(--rule); padding: var(--space-4) var(--space-3); }
}

@media (max-width: 40rem) {
  .brand-home { display: none; }
  .running-head { flex-direction: row; }
}
