@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,600&family=Figtree:wght@400;600&display=swap');
:root {
  --surface: #FCFAF7; --raised: #EFEAE2; --ink: #16202B; --muted: #5E6977; --accent: #8A6A2F;
  --font-display: 'Newsreader', Georgia, serif; --font-body: 'Figtree', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 1.0625rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 24%, var(--surface)); color: var(--ink); }
html { scrollbar-color: color-mix(in srgb, var(--ink) 28%, var(--surface)) var(--surface); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -100px; padding: .5rem 1rem; background: var(--ink); color: var(--surface); border-radius: 8px; }
.skip:focus { top: .5rem; }
header, main, footer { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); max-width: none; }
header.top { position: sticky; top: 0; z-index: 20; background: var(--surface); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 .9375rem/1 var(--font-body); text-decoration: none; }
.btn:hover { background: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--surface); }
.nav, .top-book { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); font: 600 .9375rem/1 var(--font-body); cursor: pointer; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 5rem); overflow-y: auto; padding: .5rem 1rem 1.5rem;
  background: var(--surface); border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); box-shadow: 0 12px 24px color-mix(in srgb, var(--ink) 12%, transparent); }
.menu-panel[hidden] { display: none; }
.menu-panel nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); text-decoration: none; font-size: 1.05rem; }
.menu-actions { display: grid; gap: .75rem; margin-top: 1rem; }
@media (min-width: 720px) { .top-book { display: inline-flex; } }
@media (min-width: 1240px) {
  .nav { display: flex; gap: 1.5rem; }
  .nav a { white-space: nowrap; }
  .menu-btn, .menu-panel { display: none !important; }
}
.brand { text-decoration: none; font: 600 1.4rem/1 var(--font-display); letter-spacing: .14em; }
.brand span { display: block; margin-top: .3rem; font: 500 .62rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 2.5rem 0 .5rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 .5rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .25rem; }
p, li { max-width: 68ch; }
.updated { color: var(--muted); font-size: .9375rem; }
.ph { display: inline-block; padding: .05rem .5rem; border: 1px dashed var(--muted); border-radius: 6px; color: var(--muted); font-size: .9375rem; }
.draft { margin-top: 1.5rem; padding: .75rem 1rem; border: 1px dashed var(--accent); border-radius: 8px; background: var(--raised); font-size: .9375rem; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .5rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
th { font-weight: 600; }
.table-wrap { overflow-x: auto; }
.form-text { padding: 1rem; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 8px; background: #fff; }
footer { margin-top: 3.5rem; padding-top: 1.5rem; padding-bottom: 3rem; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); color: var(--muted); font-size: .875rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: .75rem; }
footer nav a { padding: .3rem 0; }
