:root {
  --paper: #f4efe1;
  --sheet: #fffdf5;
  --ink: #293d39;
  --muted: #546055;
  --teal: #326260;
  --teal-pale: #e0e8de;
  --rust: #8a432e;
  --rust-pale: #f1dfcc;
  --ochre: #d4b575;
  --rule: #c6c3b1;
  --focus: #8a432e;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --r1: 1.1rem;
  --r2: 2rem;
  --read: 43rem;
  --site: 75rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s3); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.65 var(--body); }
body, input, button { font-family: var(--body); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.8vw, 4.4rem); font-weight: 650; line-height: 1.07; letter-spacing: -.045em; }
h2, .part h3, .ask h3 { font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.23; font-weight: 650; letter-spacing: -.025em; }
h3 { font-size: 1.45rem; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
p { max-width: 70ch; }
p + p { margin-top: 1rem; }
a { color: inherit; text-decoration-thickness: .09em; text-underline-offset: .2em; }
a:hover { color: var(--rust); }
button, input, summary, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button, input { font-size: 1.125rem; line-height: 1.4; }
button { min-height: 48px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: var(--ochre); color: var(--ink); }
.wrap { width: min(var(--site), calc(100% - 5rem)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -7rem; z-index: 5; padding: .8rem 1.2rem; border-radius: var(--r1); background: var(--sheet); }
.skip:focus { top: 1rem; }
.head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s4); min-height: 124px; border-bottom: 2px solid var(--rule); }
.nav { display: flex; align-items: center; gap: var(--s3); }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding-block: .6rem; text-decoration: none; font-size: 1rem; line-height: 1.35; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; }
.n-right { justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: .85rem; padding: .6rem .3rem; min-height: 64px; text-decoration: none; font-size: 1.3rem; font-weight: 650; line-height: 1.15; letter-spacing: -.03em; }
.brand-sub { display: block; margin-top: .2rem; font-size: 1rem; font-weight: 450; letter-spacing: 0; }
.mark { display: flex; align-items: flex-end; gap: 4px; padding: 9px; width: 49px; height: 49px; border: 2px solid var(--teal); border-radius: 15px; }
.mark i { display: block; width: 6px; height: 15px; background: var(--teal); border-radius: 3px; }
.mark i:nth-child(2) { height: 24px; background: var(--rust); }
.mark i:nth-child(3) { height: 19px; }
.tag { color: var(--muted); font-size: 1rem; font-weight: 550; line-height: 1.5; }
.deck { font-size: 1.3rem; line-height: 1.55; max-width: 49ch; color: var(--muted); }
.go { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 52px; font-size: 1rem; line-height: 1.4; padding-block: .7rem; font-weight: 550; }
.go > span, .btn > span { flex-shrink: 0; font-size: 1.3rem; }
.btn { display: inline-flex; align-items: center; gap: var(--s4); min-height: 58px; padding: .85rem 1.3rem; margin-top: 1.8rem; background: var(--teal); color: var(--sheet); text-decoration: none; font-weight: 550; border-radius: 1rem; box-shadow: 0 4px 0 #c6ccbc; font-size: 1rem; }
.btn:hover { background: #274e4d; color: var(--sheet); }
.hero { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, .9fr); align-items: start; gap: 5%; padding-top: var(--s6); padding-bottom: var(--s6); }
.hero h1 { margin-top: 1.2rem; }
.hero h1 span { display: block; color: var(--teal); margin-top: .25rem; }
.hero .deck { margin-top: var(--s3); font-size: 1.2rem; }
.hero .intro { margin-top: var(--s4); max-width: 60ch; }
.window { background: var(--teal-pale); border-radius: var(--r2); padding: var(--s4); margin-top: .3rem; border: 3px solid #c1cbbd; box-shadow: 0 8px 0 #d9dacc; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 50px; background: var(--paper); border: 2px solid #b6bda9; height: 47px; padding: 7px 11px; margin-bottom: var(--s4); }
.slot span { width: 27px; height: 27px; background: var(--ochre); border: 6px solid var(--sheet); border-radius: 50%; }
.slot i { width: 58%; height: 8px; background: #b6bda9; border-radius: 6px; }
.window h2 { margin-top: .7rem; font-size: 2rem; }
.flow { margin: var(--s3) 0; padding: var(--s3); border-radius: var(--r1); background: var(--sheet); text-align: center; }
.flow p { font-size: 1.125rem; font-weight: 550; margin: 0; }
.flow > span { display: block; font-size: 1.2rem; line-height: 1.6; color: var(--rust); }
figcaption { font-size: 1rem; line-height: 1.6; color: var(--muted); }
.window .go { margin-top: 1rem; border-top: 2px solid #b6bda9; }
.ask { position: relative; padding: 2rem 2.3rem; background: var(--rust-pale); border-radius: var(--r2); border-left: 9px solid var(--ochre); margin-block: var(--s5); }
.ask .tag { color: #6c4d39; margin-bottom: .65rem; font-size: 1rem; font-weight: 550; line-height: 1.5; letter-spacing: normal; }
.ask h3 { font-size: 1.55rem; margin-bottom: 1rem; }
.home > main > .ask { max-width: 57rem; margin-top: 0; }
.home .part { max-width: 45rem; }
.part { margin-top: 2.7rem; }
.part :is(h2, h3) { margin-bottom: 1.1rem; }
.words { margin-top: var(--s5); padding-top: var(--s5); border-top: 7px solid var(--teal); scroll-margin-top: 2rem; }
.word-top { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); }
.word-top h2 { font-size: 2.5rem; margin-top: .5rem; }
.word-top .go { min-width: 10rem; }
.filter { margin-block: var(--s4); padding: 1.5rem 1.8rem; background: #e7e6d6; border-radius: var(--r1); }
.filter label { display: block; font-size: 1.125rem; font-weight: 550; margin-bottom: .65rem; }
.find-row { display: flex; gap: .7rem; max-width: 45rem; }
.find-row input { width: 100%; min-width: 0; min-height: 54px; border: 2px solid var(--teal); border-radius: .8rem; background: var(--sheet); color: var(--ink); padding: .8rem 1rem; appearance: none; }
.find-row input::placeholder { color: #5d655c; opacity: 1; }
.find-row button { background: var(--paper); color: var(--ink); border: 2px solid var(--teal); border-radius: .8rem; padding: .8rem 1rem; }
.find-row button:hover { background: var(--sheet); }
.hint { color: var(--muted); font-size: 1rem; margin-top: .65rem; }
.term-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; margin-top: var(--s4); }
.term { display: flex; flex-direction: column; min-width: 0; padding: 1.65rem; background: var(--sheet); border-radius: var(--r1); text-decoration: none; border-top: 7px solid var(--teal); box-shadow: 0 3px 0 #d7d2c0; }
.term:nth-child(3n + 2) { border-color: var(--ochre); }
.term:nth-child(3n) { border-color: #a7664d; }
.term p { margin-top: .85rem; font-size: 1rem; line-height: 1.6; }
.term:hover { background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--ochre); }
.term:hover h3 { color: var(--rust); text-decoration: underline; text-underline-offset: .2em; }
.term-foot { display: flex; justify-content: space-between; gap: .75rem; font-size: 1rem; margin-top: auto; padding-top: 1.5rem; color: var(--teal); }
.empty { padding: var(--s4); background: var(--sheet); border-radius: var(--r1); margin-top: var(--s3); }
.route-strip { margin-block: var(--s6); padding: var(--s4); border-radius: var(--r2); background: var(--ochre); }
.route-strip > p { margin-top: 1rem; }
.route-strip > div { display: flex; flex-wrap: wrap; gap: 0 3rem; margin-top: 1rem; }
.route-strip .go { min-width: 15rem; }
.route-strip a:hover { color: var(--ink); text-decoration-thickness: .16em; }
.src { margin-block: var(--s5); background: var(--sheet); border: 2px solid var(--rule); border-radius: var(--r1); overflow: hidden; }
.home > main > .src { max-width: 57rem; }
.src summary { display: flex; align-items: center; gap: 1rem; min-height: 70px; padding: 1.1rem 1.5rem; font-size: 1.125rem; font-weight: 550; line-height: 1.45; list-style: none; }
.src summary::-webkit-details-marker { display: none; }
.src summary:hover { background: var(--teal-pale); }
.src-dot { width: 13px; height: 13px; flex-shrink: 0; background: var(--rust); border-radius: 50%; }
.src-sign { font-size: 1.6rem; line-height: 1; margin-left: auto; }
.src[open] .src-sign { transform: rotate(45deg); }
.src-in { padding: .4rem 1.5rem 1.5rem; font-size: 1rem; }
.src-in p { font-size: 1rem; }
.src-list { padding: 0; margin: 1.1rem 0; list-style: none; }
.src-list a { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: .8rem 0; min-height: 52px; font-size: 1rem; line-height: 1.5; }
.src-list li + li { border-top: 2px solid #e6e3d6; }
.src-list a span { flex-shrink: 0; }
.foot { margin-top: var(--s6); border-top: 9px solid var(--teal); background: #e1e5d7; }
.foot-in { padding-block: var(--s5) var(--s4); }
.foot-note { max-width: 47rem; font-size: 1.125rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .4rem var(--s4); margin-top: 1.3rem; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 48px; padding-block: .7rem; font-size: 1rem; line-height: 1.4; }
.foot-domain { margin-top: 1.2rem; font-size: 1rem; color: var(--muted); overflow-wrap: anywhere; }
.page-top { padding-top: var(--s4); padding-bottom: var(--s5); max-width: 65rem; }
.back { display: inline-flex; align-items: center; min-height: 48px; font-size: 1rem; line-height: 1.5; padding-block: .7rem; }
.page-top > .tag { margin-top: 2.4rem; }
.page-top h1 { margin-top: .8rem; font-size: clamp(2.3rem, 4.2vw, 3.9rem); max-width: 24ch; }
.page-top .deck { margin-top: var(--s3); }
.read-grid { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(0, 15.5rem); justify-content: space-between; column-gap: 4rem; align-items: start; }
.read { min-width: 0; }
.intro { font-size: 1.125rem; }
.read .intro { padding-top: var(--s3); border-top: 7px solid var(--teal); }
.read .intro > p:first-child { font-size: 1.25rem; line-height: 1.6; }
.side { background: #e7e5d6; border-radius: var(--r1); padding: 1.2rem 1.1rem; }
.side > p { padding: .3rem .6rem 1rem; border-bottom: 2px solid var(--rule); }
.side nav { display: flex; flex-direction: column; margin-top: .7rem; }
.side a { display: flex; align-items: center; min-height: 46px; padding: .65rem .7rem; font-size: 1rem; line-height: 1.45; border-radius: .65rem; text-decoration: none; }
.side a:hover { background: var(--sheet); }
.side a[aria-current] { background: var(--teal); color: var(--sheet); }
.related { display: flex; flex-direction: column; padding: .5rem 0; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); gap: .3rem; }
.related a { font-size: 1rem; }
.next { padding: var(--s3) 0 var(--s2); border-top: 7px solid var(--ochre); margin-top: var(--s4); }
.next .go { font-size: 1.15rem; }
.graphic { border-radius: var(--r1); background: var(--sheet); padding: var(--s3); margin-block: var(--s4); border: 2px solid var(--rule); }
.plot-key { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: 1rem; }
.key { display: inline-flex; gap: .5rem; align-items: center; }
.dot { display: inline-block; width: 15px; height: 15px; border-radius: 50%; }
.teal { background: var(--teal); }
.rust { background: var(--rust); }
.plot { margin-block: 1.5rem; }
.plot-label { font-size: 1rem; color: var(--muted); }
.plot-l { height: 75px; position: relative; border-right: 0; }
.plot-l::before { content: ""; position: absolute; left: 50%; height: 100%; width: 2px; background: var(--muted); }
.bar { position: absolute; display: block; height: 18px; border-radius: 6px; }
.t-a { top: 8px; right: 50%; width: 45%; background: var(--teal); }
.p-a { top: 34px; left: 50%; width: 14.803%; background: var(--rust); }
.t-b { top: 8px; right: 50%; width: 32.27%; background: var(--teal); }
.p-b { top: 34px; right: 50%; width: 1.776%; background: var(--rust); }
.plot-axis { display: flex; justify-content: space-between; font-size: 1rem; color: var(--muted); line-height: 1.4; border-top: 2px solid var(--rule); padding-top: .7rem; }
@media (min-width: 1200px) { .side { position: sticky; top: var(--s3); } }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 3rem); }
  .head { gap: 1.5rem; }
  .nav { gap: 1rem; }
  .hero { gap: 2rem; }
  .window { padding: 1.5rem; }
  .read-grid { grid-template-columns: minmax(0, 1fr) 14rem; gap: 2.5rem; }
  .term { padding: 1.3rem; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .head { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "left right"; gap: .5rem 1rem; padding-top: 1rem; padding-bottom: .5rem; min-height: 0; }
  .brand { grid-area: brand; justify-self: start; }
  .n-left { grid-area: left; }
  .n-right { grid-area: right; }
  .nav { gap: .85rem; }
  .nav a { font-size: 1rem; }
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: var(--s5); gap: 2.5rem; }
  .hero h1 { font-size: clamp(2.8rem, 7vw, 3.9rem); }
  .hero .intro { margin-top: 1.5rem; }
  .window { max-width: 34rem; padding: 1.5rem; }
  .window h2 { max-width: 18ch; }
  .window .slot { margin-bottom: 1.5rem; }
  .flow { padding: 1.3rem; }
  .home > main > .ask { margin-top: 0; }
  .ask { padding: 1.5rem; border-left-width: 7px; }
  .words { padding-top: 2rem; }
  .word-top { display: block; }
  .word-top h2 { font-size: 2rem; }
  .word-top .go { width: fit-content; gap: 2rem; margin-top: .6rem; }
  .filter { padding: 1.2rem; }
  .term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term { padding: 1.4rem; }
  .route-strip { padding: 1.6rem; margin-block: 3rem; }
  .route-strip .go { min-width: 0; width: 100%; }
  .page-top { padding-top: 1rem; padding-bottom: 2.5rem; }
  .page-top > .tag { margin-top: 1.5rem; }
  .page-top h1 { font-size: clamp(2.25rem, 7vw, 3.4rem); line-height: 1.12; }
  .deck { font-size: 1.2rem; }
  .read-grid { grid-template-columns: 1fr; gap: 3rem; }
  .read { max-width: 100%; }
  .side { position: static; }
  .side nav { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .5rem; }
  .side > p { padding-bottom: .8rem; }
  .part { margin-top: 2.3rem; }
  .src summary { padding: 1.1rem; }
  .src-in { padding: .3rem 1.1rem 1.2rem; }
  .foot { margin-top: 3rem; }
  .foot-in { padding-block: 2.4rem 1.8rem; }
  .foot-nav { flex-direction: column; gap: .2rem; }
}
@media (max-width: 440px) {
  .nav { gap: .7rem; }
  .head { column-gap: .75rem; }
  .n-right { gap: .7rem; }
  .hero h1 { font-size: 2.8rem; }
  .term-grid { grid-template-columns: 1fr; }
  .term { padding: 1.5rem; }
  .term p { max-width: 35ch; }
  .term-foot { padding-top: 1.1rem; }
  .find-row { flex-wrap: wrap; }
  .find-row input { flex-basis: 100%; }
  .find-row button { min-width: 88px; }
  .plot-key { gap: .7rem; }
  .graphic { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .head, .side, .foot, .filter, .related, .next, .back, .skip { display: none; }
  body { background: white; color: black; }
  .wrap { width: 100%; }
  .read-grid { display: block; }
  .page-top { padding-top: 0; }
  .ask, .src, .graphic { break-inside: avoid; }
}
