/* The generated /jlpt/ pages' one stylesheet (scripts/seo/pages.mjs writes the pages).
   The precinct's paper and ink. No webfont: the app's fonts are subsets cut to the characters
   the app draws, and these pages print every kanji of the course, so the system's Japanese
   faces draw them. */
:root {
  --paper: #f5efe6;
  --card: #fffdf8;
  --ink: #1d2d44;
  --soft: #55627a;
  --stamp: #b23a2e;
  --rule: #d9cfbf;
  --mark: #f6e3a1;
  --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --ja: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", "Meiryo", sans-serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0 auto; max-width: 960px; padding: 0 16px 32px; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
[lang="ja"] { font-family: var(--ja); }
a { color: var(--ink); text-decoration-color: var(--stamp); text-underline-offset: 3px; }
a:hover { color: var(--stamp); }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 0 8px; border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; min-height: 44px; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 600; text-decoration: none; }
.trail { font-size: 14px; color: var(--soft); padding: 10px 0 0; }
.trail a { color: var(--soft); }
h1 { font: 700 clamp(28px, 5vw, 40px)/1.15 Georgia, "Times New Roman", var(--mincho); margin: 18px 0 8px; }
h2 { font: 700 22px/1.3 var(--sans); margin: 32px 0 10px; }
h2 small { font-size: 15px; font-weight: 400; color: var(--soft); margin-left: 6px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
.lead { font-size: 18px; max-width: 42em; }
.meta, .parts { color: var(--soft); font-size: 15px; }
.levels a { display: inline-block; padding: 8px 2px; }
.lists { padding-left: 20px; }
.lists li { margin: 6px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0 8px; }
.toc a { display: inline-block; padding: 4px 10px; min-height: 32px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; }
table { display: block; overflow-x: auto; border-collapse: collapse; margin: 10px 0 18px; background: var(--card); max-width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--rule); }
th { font-size: 14px; color: var(--soft); font-weight: 600; background: var(--paper); }
.words td:first-child, .kanji .big { font-size: 20px; white-space: nowrap; }
.kanji .big { font: 28px/1.1 var(--mincho); }
section { border-top: 1px solid var(--rule); }
figure { margin: 10px 0 16px; padding: 12px 14px; background: var(--card); border-left: 4px solid var(--stamp); }
figure p { margin: 0; font-size: 18px; line-height: 2; }
figcaption { color: var(--soft); font-size: 15px; margin-top: 4px; }
mark { background: var(--mark); color: inherit; padding: 0 2px; }
rt { font-size: 0.55em; }
ol { padding-left: 32px; }
footer { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; padding-top: 16px; border-top: 2px solid var(--ink); font-size: 14px; color: var(--soft); }
footer .app { align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; background: var(--ink); color: var(--paper); border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 16px; }
footer a { color: var(--soft); }
footer .app:hover { color: #fff; }
