:root {
  color-scheme: light;
  --paper: #eff4f5;
  --white: #fafcfc;
  --ink: #153b46;
  --muted: #4e6871;
  --sage: #c5dad4;
  --blue: #c1d8e7;
  --line: #cad7da;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "DejaVu Sans Mono", "Liberation Mono", monospace;
  font-family: var(--sans);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 20rem; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.65; }
a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, pre:focus-visible { outline: 3px solid #256684; outline-offset: 5px; }
::selection { color: var(--ink); background: var(--sage); }
.wrap { width: min(74rem, calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 7.5rem; }
.wordmark { font: 600 3rem/1 var(--serif); letter-spacing: -.09em; text-decoration: none; }
.wordmark-dot { padding-left: .05em; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 2rem; font-size: .88rem; }
.site-head nav a { text-decoration: none; }
.site-head nav a:hover, .site-head [aria-current="page"] { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; padding-block: 4.5rem 7.5rem; }
.intro-line { margin: 0 0 1.8rem; color: var(--muted); font-size: .96rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.hero h1 { margin: 0 0 2rem; font-size: clamp(3.8rem, 6.4vw, 6.25rem); line-height: 1.03; letter-spacing: -.055em; }
.hero-description { max-width: 29rem; margin: 0 0 2rem; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.button { display: inline-block; padding: .85rem 1.4rem; border-radius: .2rem; color: var(--white); background: var(--ink); text-decoration: none; font-size: .92rem; }
.button:hover { background: #245664; }
.quiet-link { margin: 1.25rem 0 0; color: var(--muted); font-size: .83rem; }
.folio { position: relative; width: 100%; height: 29rem; isolation: isolate; }
.folio-back { position: absolute; inset: 4rem 0 0 1rem; background: var(--sage); border-radius: 1rem 2.8rem .8rem .8rem; transform: rotate(4deg); }
.folio-back > span { position: absolute; top: -2.2rem; left: 1.4rem; padding: .6rem 1.4rem; border-radius: .65rem .65rem 0 0; color: var(--ink); background: var(--sage); font-size: .74rem; }
.paper { position: absolute; top: .7rem; width: 67%; height: 23rem; padding: 1.8rem; border: 1px solid #c3d3d7; border-radius: .15rem; box-shadow: 0 .8rem 1.2rem rgb(21 59 70 / 7%); }
.paper span { display: block; font-size: .78rem; }
.paper strong { display: block; margin: 1rem 0 1.5rem; font: 400 3rem/1.1 var(--serif); letter-spacing: -.04em; }
.paper i { display: block; width: 90%; height: 1px; margin-bottom: .85rem; background: rgb(21 59 70 / 20%); }
.paper i:last-of-type { width: 58%; }
.paper small { display: block; margin-top: 1.8rem; font-size: .72rem; }
.paper-back { right: 0; background: var(--blue); transform: rotate(11deg); }
.paper-middle { right: 13%; top: 2.1rem; background: #dfebe7; transform: rotate(-1deg); }
.paper-front { left: 3%; top: 4rem; background: var(--white); transform: rotate(-10deg); }
.folio-pocket { position: absolute; inset: 17rem 0 0 1rem; display: flex; align-items: end; padding: 1.7rem 2rem; background: #a8c6bd; border-radius: .2rem .2rem .8rem .8rem; clip-path: polygon(0 0, 48% 0, 56% 14%, 100% 14%, 100% 100%, 0 100%); transform: rotate(4deg); }
.folio-pocket span { font-size: .8rem; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(16rem, .85fr); gap: 4.5rem; padding-bottom: 7rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1.3rem; }
.section-heading h2 { margin: 0; font-size: 2.25rem; letter-spacing: -.035em; }
.section-heading > a { font-size: .82rem; }
.note-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.7rem; padding-block: 1.9rem; border-top: 1px solid var(--line); }
.topic { padding-top: .3rem; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.note-row :is(h2, h3) { margin: 0 0 .8rem; font-size: 1.9rem; line-height: 1.2; letter-spacing: -.025em; }
.note-row :is(h2, h3) a { text-decoration: none; }
.note-row :is(h2, h3) a:hover { text-decoration: underline; }
.note-row p { margin: 0; color: var(--muted); font-size: .93rem; }
.shelf-panel { align-self: start; padding: 2.2rem; border-radius: .4rem 3.5rem .4rem .4rem; background: #dce9ed; }
.shelf-panel h2 { margin: 1.7rem 0 1rem; font-size: 2.45rem; line-height: 1.08; letter-spacing: -.04em; }
.shelf-panel > p { color: var(--muted); font-size: .91rem; }
.shelf-mark { display: flex; align-items: end; gap: 5px; height: 2.4rem; }
.shelf-mark span { display: block; width: 9px; height: 100%; background: var(--ink); border-radius: 1px; }
.shelf-mark span:nth-child(2) { height: 80%; }
.shelf-mark span:nth-child(3) { height: 90%; }
.shelf-mark span:nth-child(4) { height: 80%; margin-left: 4px; transform: rotate(-14deg); }
.shelf-shortlist { list-style: none; padding: 0; margin: 1.8rem 0; }
.shelf-shortlist li + li { margin-top: 1.1rem; }
.shelf-shortlist a { display: block; text-decoration: none; }
.shelf-shortlist a:hover strong { text-decoration: underline; }
.shelf-shortlist strong { display: block; font: 500 .86rem/1.6 var(--mono); }
.shelf-shortlist span { display: block; color: var(--muted); font-size: .8rem; }
.shelf-all { font-size: .84rem; }
.about-band { color: var(--white); background: var(--ink); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding-block: 4.8rem; }
.about-layout h2 { margin: 0; font-size: clamp(2.9rem, 4.8vw, 4.6rem); line-height: 1.08; letter-spacing: -.04em; }
.about-layout p { max-width: 35rem; margin: 0 0 1.2rem; color: #d6e3e6; font-size: .95rem; }
.about-layout a { display: inline-block; margin-top: .5rem; font-size: .87rem; }
.site-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 2rem; color: var(--muted); font-size: .75rem; }
.footer-brand { color: var(--ink); }
.page-heading { max-width: 48rem; padding-block: 3.7rem 3rem; }
.breadcrumb { margin: 0 0 1.6rem; color: var(--muted); font-size: .84rem; }
.page-heading h1 { margin: 0 0 1.2rem; font-size: clamp(3rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -.045em; }
.page-heading > p:last-child { max-width: 40rem; margin: 0; color: var(--muted); font-size: 1.05rem; }
.note-index { max-width: 54rem; padding-bottom: 5rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; align-items: start; gap: 6rem; padding-bottom: 6rem; }
.article-body { min-width: 0; max-width: 43rem; font: 1.2rem/1.85 var(--serif); }
.article-body p { margin: 0 0 1.5rem; }
.article-body h2 { margin: 2.4rem 0 1rem; font-size: 2rem; line-height: 1.2; letter-spacing: -.025em; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li { margin-bottom: .65rem; }
code { font-family: var(--mono); font-size: .82em; overflow-wrap: anywhere; }
.article-body pre { padding: 1.4rem; overflow: auto; color: var(--white); background: var(--ink); border-radius: .2rem; font: .84rem/1.7 var(--mono); }
.article-body pre code { font: inherit; overflow-wrap: normal; }
.article-aside { padding: 1.7rem; border-radius: .2rem 2rem .2rem .2rem; background: #dce9ed; font-size: .88rem; }
.article-aside h2 { margin: 0 0 1rem; font-size: 1.55rem; line-height: 1.2; }
.article-aside ul { list-style: none; margin: 0; padding: 0; }
.article-aside li + li { margin-top: .8rem; }
.article-aside p { color: var(--muted); font-size: .8rem; }
.note-end { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font: .9rem/1.7 var(--sans); }
.reference-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; padding-bottom: 5rem; }
.reference-group { padding: 1.5rem 0; }
.reference-group h2 { margin: 0 0 .7rem; font-size: 1.8rem; }
.reference-group > p { color: var(--muted); font-size: .9rem; }
.manual-links { margin: 1.3rem 0 0; padding: 0; list-style: none; }
.manual-links li + li { margin-top: .9rem; }
.manual-links a { display: grid; grid-template-columns: minmax(7.5rem, .8fr) minmax(0, 1fr); gap: 1rem; text-decoration: none; }
.manual-links a:hover span { text-decoration: underline; }
.manual-links span { font: .86rem/1.65 var(--mono); }
.manual-links small { color: var(--muted); font: .86rem/1.65 var(--sans); }
.reference-caution { max-width: 46rem; margin-bottom: 4rem; padding: 1.5rem 1.8rem; border-left: 3px solid #7a9ca4; color: var(--muted); background: #e2ecee; font-size: .88rem; }
.manual { width: min(80rem, calc(100% - 4rem)); margin: 0 auto; padding-block: 1.5rem 2rem; }
.manual-head, .manual-foot { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8rem; }
.manual-head { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.manual-head a { color: var(--ink); }
.man-page article { margin-top: 3.5rem; }
.page-intro h1 { margin: 0 0 .5rem; font-size: 3rem; line-height: 1.1; }
.page-intro p { margin: 0 0 2rem; color: var(--muted); }
.man-output { margin: 0; padding: 2rem; overflow-x: auto; color: var(--ink); background: var(--white); border: 1px solid var(--line); font: .8rem/1.6 var(--mono); tab-size: 8; white-space: pre; }
.source-note { margin-top: 1rem; color: var(--muted); font-size: .78rem; }
.manual-foot { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.error-page { min-height: 65vh; display: grid; align-content: center; padding-block: 4rem; }
.error-code { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.error-page h1 { max-width: 43rem; margin: 0 0 1.5rem; font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: 1.05; letter-spacing: -.045em; }
.error-page > p:not(.error-code) { max-width: 32rem; margin: 0 0 2rem; color: var(--muted); }
.error-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
@media (max-width: 62rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero { gap: 1rem; padding-block: 3rem 5rem; }
  .folio { height: 25rem; transform: scale(.9); transform-origin: center; }
  .reading-layout { grid-template-columns: minmax(0, 1.5fr) minmax(14rem, .85fr); gap: 2rem; }
  .note-row { grid-template-columns: 1fr; gap: .65rem; }
  .shelf-panel { padding: 1.7rem; }
  .article-layout { gap: 3rem; grid-template-columns: minmax(0, 1fr) 13rem; }
}
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-head { min-height: 6rem; gap: 1rem; }
  .wordmark { font-size: 2.6rem; }
  .site-head nav { gap: .9rem; font-size: .76rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.5rem 3rem; }
  .hero h1 { font-size: clamp(3.5rem, 11vw, 5rem); }
  .intro-line { margin-bottom: 1.4rem; }
  .folio { width: min(100%, 25rem); height: 25rem; margin: 2rem auto 0; transform: scale(.88); }
  .paper { height: 20rem; padding: 1.4rem; }
  .paper strong { font-size: 2.6rem; }
  .folio-pocket { top: 16rem; }
  .reading-layout, .about-layout, .article-layout, .reference-groups { grid-template-columns: 1fr; }
  .reading-layout { gap: 2rem; padding-bottom: 3rem; }
  .section-heading h2 { font-size: 2rem; }
  .note-row { padding-block: 1.5rem; }
  .note-row :is(h2, h3) { font-size: 1.75rem; }
  .shelf-panel { max-width: 32rem; }
  .about-layout { gap: 2rem; padding-block: 3rem; }
  .about-layout h2 br { display: none; }
  .site-foot { display: grid; gap: .65rem; padding-block: 1.6rem; }
  .page-heading { padding-block: 2.5rem 2rem; }
  .article-layout { gap: 2rem; padding-bottom: 3rem; }
  .article-body { font-size: 1.13rem; }
  .article-aside { max-width: 30rem; }
  .reference-groups { gap: 0; padding-bottom: 2rem; }
  .reference-group { padding-block: 1.1rem; }
  .manual { width: calc(100% - 2rem); }
  .manual-head > :last-child, .manual-foot > :last-child { display: none; }
  .man-page article { margin-top: 2.2rem; }
  .man-output { padding: 1.2rem; font-size: .74rem; }
  .error-page { min-height: 62vh; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .folio, .site-head nav, .skip-link, .button, .article-aside, .site-foot { display: none; }
  body, .about-band { color: #000; background: #fff; }
  .wrap, .manual { width: 100%; }
  .hero, .reading-layout, .article-layout, .about-layout { display: block; padding-block: 1rem; }
  .man-output { white-space: pre-wrap; border: 0; padding: 0; }
}
