:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --ink: #293e37;
  --muted: #53665d;
  --line: #cdd2c5;
  --wash: #e9eddf;
  --accent: #8b562f;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
a { color: #285a47; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(22px, 4vw, 50px); }
.skip { position: absolute; top: -90px; left: 20px; padding: 12px; z-index: 2; background: var(--ink); color: white; }
.skip:focus { top: 12px; }
.masthead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 30px; padding-top: 23px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font-weight: 650; }
nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .9rem; }
nav a { text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; line-height: 1.13; }
h1 { font-size: clamp(2.8rem, 5.2vw, 4.6rem); margin-bottom: 24px; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); margin-bottom: 20px; }
h3 { font-size: 1.05rem; line-height: 1.4; margin-bottom: 12px; }
p { margin-bottom: 17px; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 650; color: var(--muted); margin-bottom: 18px; }
.scenario { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(25px, 4vw, 52px); align-items: center; padding: clamp(42px, 6vw, 72px) 0 48px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.question { font-weight: 600; }
figure { margin: 0; min-width: 0; }
figure img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #eeede4; }
figcaption { margin-top: 12px; font-size: .77rem; color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 12px 18px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: .94rem; border-radius: 4px; }
.button:hover { background: #3b554a; }
.button.secondary { background: #fffdf7; color: var(--ink); border: 1px solid #9eac9b; }
.button.secondary:hover { background: var(--paper); }
.route-note { color: var(--muted); font-size: .82rem; margin: 12px 0 0; }
.first-route, .latest { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 50px); padding: 32px; border: 1px solid var(--line); border-radius: 6px; }
.first-route { background: var(--wash); align-items: center; }
.first-route p:last-child { margin-bottom: 0; }
.first-route h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); }
.latest { margin: 34px 0 0; background: #f0e9dd; }
.latest-guide { padding-left: 28px; border-left: 1px solid #c9c9b8; }
.latest-guide h3 { margin-top: 4px; }
.muted { color: var(--muted); }
.construction { padding: 64px 0 44px; }
.concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 28px 0; }
.concepts article { border-top: 1px solid var(--line); padding-top: 20px; font-size: .93rem; }
.concepts p { color: var(--muted); }
.concepts .notation { color: var(--ink); font-family: Georgia, serif; font-size: 1.1rem; }
.reading-links { font-size: .9rem; }
details { border-block: 1px solid var(--line); padding: 17px 0; }
summary { cursor: pointer; font-weight: 600; }
details p:first-of-type { margin-top: 16px; }
details p:last-child { margin-bottom: 0; }
.scope { font-size: .93rem; }
.scope p { max-width: 900px; color: var(--muted); }
.collection { padding: 18px 0 55px; }
.collection-heading { display: grid; grid-template-columns: 1.4fr 1fr; gap: 35px; margin-bottom: 20px; align-items: end; }
.collection-heading p { color: var(--muted); }
.controls { display: flex; flex-direction: column; gap: 12px; padding-bottom: 17px; min-width: 0; }
.search span, .sort span { display: block; font-size: .85rem; margin-bottom: 6px; }
.search-input { display: flex; gap: 8px; align-items: center; }
.search input, .sort select { width: 100%; min-width: 0; padding: 11px 12px; border-radius: 4px; border: 1px solid #a9b7a8; font: inherit; font-size: .9rem; background: #fffdf8; color: var(--ink); }
.clear { border: 1px solid #a9b7a8; background: #fffdf8; color: var(--ink); border-radius: 4px; padding: 11px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.clear:disabled { cursor: default; opacity: .55; }
.clear:not(:disabled):hover { background: var(--wash); }
.status { margin-bottom: 18px; font-size: .85rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { min-width: 0; background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; flex-direction: column; gap: 8px; }
.card .index { font-size: .75rem; color: var(--accent); letter-spacing: .1em; }
.card .name { margin: 0; font-size: 1.15rem; }
.description { margin: 0; color: var(--muted); line-height: 1.6; font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: #e9ede1; color: #465d4d; padding: 3px 9px; border-radius: 4px; font-size: .7rem; }
.link { margin-top: auto; font-weight: 600; font-size: .9rem; }
.plain-list { margin-top: 25px; font-size: .9rem; }
.plain-list li { margin-bottom: 10px; }
footer.container { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 28px; border-top: 1px solid var(--line); padding-top: 25px; padding-bottom: 30px; color: var(--muted); font-size: .82rem; }
footer p { margin: 0; }
footer nav { font-size: .82rem; }
@media (max-width: 760px) {
  .scenario, .first-route, .latest, .collection-heading { grid-template-columns: 1fr; }
  .scenario { gap: 25px; padding-bottom: 30px; }
  .scenario figure { max-width: 470px; }
  figure img { aspect-ratio: 4 / 3; }
  .first-route, .latest { padding: 24px; gap: 16px; }
  .latest-guide { border-left: 0; border-top: 1px solid #c9c9b8; padding: 22px 0 0; }
  .concepts { grid-template-columns: 1fr; gap: 8px; }
  .concepts p:last-child { margin-bottom: 12px; }
  .construction { padding-top: 44px; }
  .collection-heading { gap: 6px; }
  .grid { grid-template-columns: 1fr; }
  .button { gap: 12px; }
}
