:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --ink: #21342a;
  --green: #213d32;
  --muted: #506255;
  --line: #d5dcd0;
  --white: #fffefa;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #a45429; outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.site-header, footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; text-decoration: none; }
.hero { text-align: center; padding-block: clamp(3.4rem, 8vw, 6.5rem) 3.5rem; }
.eyebrow, .source { color: var(--muted); font-weight: 700; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, .article h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h1 { margin: .25em auto; max-width: 10em; font-size: clamp(3.4rem, 9vw, 7rem); letter-spacing: -.06em; }
h1 em { color: #426550; }
.intro { max-width: 35rem; margin: 1.25rem auto 1.65rem; font-size: 1.15rem; color: var(--muted); }
.button { display: inline-block; padding: .65rem 1.2rem; border-radius: .4rem; background: var(--green); color: var(--white); text-decoration: none; font-weight: 650; }
.button:hover { background: #365746; }
.showcase { background: var(--green); color: var(--white); border-radius: 1.15rem; padding: clamp(1rem, 4vw, 2.5rem); scroll-margin-top: 1rem; }
.demo-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.demo-heading h2 { font-size: clamp(1.65rem, 4vw, 2.6rem); margin: 0; }
.demo-heading p, .demo-note { color: #d7e3d8; margin: 0; }
.demo-note { margin-top: .9rem; }
.reader { display: grid; grid-template-columns: minmax(10rem, .8fr) minmax(12rem, 1fr) minmax(0, 1.65fr); border-radius: .7rem; background: var(--white); color: var(--ink); overflow: hidden; }
.shelf, .entries, .article { padding: 1.15rem; min-width: 0; }
.shelf { background: #e8eee5; }
.shelf-label { display: block; color: var(--muted); font-size: .875rem; font-weight: 700; margin-bottom: .35rem; }
.topic-label { margin-top: 1rem; }
.shelf button, .entry { display: flex; text-align: left; width: 100%; border: 0; border-radius: .35rem; padding: .45rem .55rem; background: transparent; }
.shelf button { justify-content: space-between; gap: .45rem; font-size: .925rem; }
.shelf button:hover, .shelf button[aria-pressed=true], .entry:hover, .entry[aria-pressed=true] { background: #d8e5d9; }
.entries { border-right: 1px solid var(--line); }
.entries h3 { margin: 0 0 .65rem; font-size: 1.1rem; }
.entry { gap: .45rem; align-items: baseline; line-height: 1.35; margin-bottom: .25rem; }
.entry small { display: block; color: var(--muted); font-size: .875rem; }
.dot { display: inline-block; width: .48rem; height: .48rem; border-radius: 50%; background: #426550; flex: none; }
.dot.read { visibility: hidden; }
.article { padding: clamp(1rem, 4vw, 2.2rem); }
.article h3 { font-size: clamp(1.9rem, 4vw, 3rem); margin: .2em 0; }
.article p { margin-top: 0; }
.read-button { background: transparent; border: 1px solid #718678; border-radius: .35rem; padding: .4rem .75rem; }
.read-button:hover { background: #e8eee5; }
.features { padding-block: clamp(3rem, 7vw, 6rem); }
.features h2, .launch h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 1.5rem; }
.feature-grid section { border-top: 1px solid #82968a; }
.feature-grid h3 { margin-bottom: .4rem; }
.feature-grid p, .launch p { margin-top: 0; color: var(--muted); }
.launch { border-block: 1px solid var(--line); padding-block: 2rem; }
.launch p { margin: .7rem 0 0; }
footer { color: var(--muted); flex-wrap: wrap; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { display: inline-block; margin: .5rem; }
@media (max-width: 780px) {
  .reader { grid-template-columns: minmax(9rem, 1fr) minmax(0, 2fr); }
  .entries { border-right: 0; }
  .article { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 1.5rem); }
  .site-header { flex-wrap: wrap; }
  .reader, .feature-grid { grid-template-columns: 1fr; }
  .article { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.entry[hidden] { display: none; }
