:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.62 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .23em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.frame { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: absolute; inset: .8rem auto auto .8rem; padding: .6rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; z-index: 2; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 4.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font: 700 1.13rem/1.1 var(--title); color: inherit; text-decoration: none; }
.masthead nav a, .footer a { font-size: .92rem; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: stretch; margin-block: 3rem; overflow: hidden; background: var(--panel); min-height: 19rem; }
.hero-text { padding: clamp(2rem, 5.8vw, 5rem); align-content: center; }
.hero h1, .article h1, .missing h1 { font: 600 clamp(2.4rem, 6vw, 5.4rem)/.98 var(--title); letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.hero p { max-width: 31ch; margin: 1.2rem 0 0; font-size: 1.13rem; color: var(--muted); }
.pattern { background: var(--pattern); min-height: 7rem; }
.catalog { margin-bottom: 4rem; }
.catalog h2 { border-bottom: 1px solid var(--line); padding-bottom: .55rem; font: 600 1.6rem/1.2 var(--title); }
.catalog ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; list-style: none; padding: 0; margin: 0; }
.catalog li { border-bottom: 1px solid var(--line); }
.catalog li a { display: grid; gap: .45rem; padding: 1.2rem 0; color: inherit; text-decoration: none; }
.catalog li a:hover strong { text-decoration: underline; text-underline-offset: .23em; }
.catalog strong { color: var(--accent); font: 700 1.25rem/1.2 var(--title); }
.catalog span, .footer span { color: var(--muted); }
.article { max-width: 47rem; margin-inline: auto; margin-top: 3rem; font-size: 1.07rem; }
.article header { border-bottom: 1px solid var(--line); padding: 0 0 2rem; margin-bottom: 2rem; }
.article header a { display: inline-block; margin-bottom: 1rem; }
.article h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.article h2, .article h3 { font-family: var(--title); line-height: 1.2; margin-block: 1.9rem .55rem; }
.article p { margin-block: .65rem 1rem; }
.article li { margin-bottom: .33rem; }
.next { display: block; max-width: 47rem; margin: 3rem auto; padding: 1rem 0; border-top: 1px solid var(--line); }
.next strong { display: block; }
.footer { display: flex; border-top: 1px solid var(--line); padding-block: 1rem 2rem; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .9rem; }
.missing { padding-block: 4rem; }
.missing a { display: inline-block; margin-top: 1.2rem; }

.fieldline { --paper: #f4f4ed; --ink: #253229; --muted: #445748; --accent: #315843; --panel: #dfe9db; --line: #a8b6a8; --title: Georgia, serif; --pattern: repeating-radial-gradient(ellipse at 74% 70%, #d6e5cc 0 14px, #647c61 15px, #d6e5cc 16px 30px); }
.inkbench { --paper: #fbf3e7; --ink: #302b27; --muted: #584a41; --accent: #982e2e; --panel: #f2dbcc; --line: #d2a79c; --title: system-ui, sans-serif; --pattern: repeating-linear-gradient(62deg, #9f3431 0 20px, #eecc96 20px 37px, #f3e5d5 37px 57px); }
.inkbench .hero { grid-template-columns: .7fr 1.3fr; }
.inkbench .pattern { grid-column: 1; grid-row: 1; }
.inkbench .hero-text { grid-column: 2; grid-row: 1; }
.shelfmarks { --paper: #f9f6f0; --ink: #302a2e; --muted: #5b4e56; --accent: #69416a; --panel: #eee5ed; --line: #c5b9c6; --title: Georgia, serif; --pattern: repeating-linear-gradient(90deg, #68436a 0 15%, #c3a4bb 15% 18%, #8c7394 18% 32%, #e6d2da 32% 34%); }
.shelfmarks .hero { grid-template-columns: 1fr; }
.shelfmarks .pattern { min-height: 4rem; }
.shelfmarks .catalog ul { grid-template-columns: 1fr; max-width: 48rem; }
.north-window { --paper: #f4f7fb; --ink: #24334a; --muted: #4c5a6e; --accent: #2a597e; --panel: #dce7f4; --line: #aebdd3; --title: system-ui, sans-serif; --pattern: linear-gradient(136deg, #d7e7f6 16%, #f8fbfe 16% 37%, #b9cfe3 37% 47%, #768fa9 47% 55%, #e6eef7 55% 80%, #c3d6e8 80%); }
.north-window .hero { min-height: 23rem; }
.north-window .catalog ul { grid-template-columns: repeat(3, 1fr); }
.still-kettle { --paper: #faf4e6; --ink: #402e21; --muted: #604a34; --accent: #87440f; --panel: #efe1ca; --line: #cbb490; --title: Georgia, serif; --pattern: repeating-radial-gradient(circle at 110% 0, #ae6e37 0 4%, #e8c092 4% 8%, #f7e5c8 8% 11%); }
.still-kettle .hero-text { border-left: .7rem solid #ae6e37; }

@media (max-width: 46rem) {
  .hero, .inkbench .hero { grid-template-columns: 1fr; margin-block: 1.5rem 2.3rem; }
  .inkbench .hero-text, .inkbench .pattern { grid-column: 1; grid-row: auto; }
  .catalog ul, .north-window .catalog ul { grid-template-columns: 1fr; }
  .frame { width: min(100% - 2rem, 72rem); }
  .article { margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
