:root {
  color-scheme: light;
  --paper: #f6f5ee;
  --ink: #202722;
  --soft: #505a51;
  --line: #aeb7aa;
  --green: #215e3b;
  --pale: #e5ebdf;
  --deep: #173a28;
  --lime: #d5e992;
  --white: #fbfbf6;
  --serif: Georgia, Cambria, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(calc(100% - 3rem), 76rem); margin-inline: auto; }
.skip { position: absolute; inset: .5rem auto auto .5rem; padding: .55rem .9rem; background: var(--white); transform: translateY(-180%); z-index: 2; }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.masthead { min-height: 4.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font: 700 1.3rem/1.2 var(--sans); letter-spacing: -.055em; }
.brand img { width: 1.8rem; height: 1.8rem; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(.9rem, 2.7vw, 2rem); }
.nav a { color: var(--ink); font-weight: 650; display: inline-block; padding: .5rem 0; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"], .nav a[aria-current="location"] { color: var(--green); text-decoration: underline; text-decoration-thickness: .12rem; }
h1, h2, h3 { margin: 0; font: 400 2rem/1.12 var(--serif); letter-spacing: -.032em; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); }
.label, .meta, .kind, .caption { font: 500 .875rem/1.5 var(--mono); }
.label, .kind { color: var(--green); }
.label { margin-bottom: .9rem; font-weight: 700; }
.meta, .caption { color: var(--soft); }
.lede { max-width: 43rem; font-size: clamp(1.0625rem, 2vw, 1.28rem); line-height: 1.5; color: var(--soft); margin: 1.1rem 0 0; }
.hero { padding-block: clamp(2.25rem, 6vw, 5.4rem); display: grid; grid-template-columns: 1.22fr 1fr; gap: clamp(1.75rem, 5vw, 4.6rem); align-items: center; }
.hero h1 { max-width: 10ch; line-height: .99; }
.actions { display: flex; gap: .75rem 1.2rem; flex-wrap: wrap; align-items: center; margin-top: 1.55rem; }
.button { display: inline-block; padding: .65rem 1rem; color: var(--white); background: var(--deep); border: 2px solid var(--deep); font-weight: 650; text-decoration: none; }
.button:hover { background: var(--green); }
.button:focus-visible { outline-color: var(--green); }
.action { font-weight: 650; }
.hero-figure { margin: 0; border: 1px solid var(--deep); background: var(--deep); color: var(--white); }
.hero-figure img { width: 100%; }
.hero-figure figcaption { padding: .75rem 1rem; border-top: 1px solid #72917d; color: var(--white); }
.collection { border-top: 1px solid var(--line); padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 5vw, 4.6rem); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .46fr); gap: 1.6rem clamp(1.5rem, 5vw, 4rem); align-items: start; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; column-gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-heading h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.section-heading a { font-weight: 600; }
.note-list, .file-list { list-style: none; padding: 0; margin: 0; }
.note-list li { border-top: 1px solid var(--line); }
.note-list li:last-child { border-bottom: 1px solid var(--line); }
.note-entry { padding: 1rem 0 1.25rem; display: grid; grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr); gap: .4rem 1rem; }
.note-entry h3 { font-size: clamp(1.46rem, 2.75vw, 2rem); }
.note-entry a { color: var(--ink); }
.note-entry p { margin: .3rem 0 0; color: var(--soft); }
.note-entry .kind { margin-top: .25rem; }
.workbench { padding: clamp(1.25rem, 3vw, 1.8rem); background: var(--pale); border-top: .25rem solid var(--green); }
.workbench h2, .workbench h3 { margin-bottom: .6rem; }
.workbench .file-list li { margin-bottom: .65rem; }
.workbench .file-list li:last-child { margin-bottom: 0; }
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) 2rem; }
.page-head .label { margin-bottom: .75rem; }
.page-head h1 { max-width: 15ch; }
.page-head .meta { margin: 1rem 0 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 45rem) minmax(12rem, 1fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; border-top: 1px solid var(--line); padding-block: 2rem 4rem; }
.article-body { min-width: 0; max-width: 45rem; }
.article-body h2 { margin: 1.55em 0 .48em; }
.article-body h2:first-child { margin-top: 0; }
.article-body ul, .article-body ol { padding-inline-start: 1.4rem; }
.article-body li + li { margin-top: .42rem; }
.article-body p { overflow-wrap: break-word; }
.article-body figure { padding: 0; margin: 1.6rem 0; }
.article-body figure img { width: 100%; background: var(--pale); border: 1px solid var(--line); }
.article-body figcaption { margin-top: .5rem; }
.sidebar { padding: 1rem 0 0; border-top: .25rem solid var(--green); }
.sidebar h2 { font-size: 1.64rem; }
.sidebar ul { padding-inline-start: 1rem; margin-top: .6rem; }
.sidebar li + li { margin-top: .55rem; }
.source-list { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1rem; }
.source-list h2:first-child { font-size: 1.6rem; }
code { font-family: var(--mono); font-size: .94em; overflow-wrap: anywhere; }
p code, li code { background: var(--pale); padding: .1em .22em; }
pre { background: var(--deep); color: var(--white); margin: 0 0 1rem; padding: .95rem 1rem; font-size: .9375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-panel { margin-bottom: 1rem; }
.code-panel pre { margin: 0; }
.copy-controls { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.copy-controls button { background: var(--pale); border: 1px solid var(--green); color: var(--deep); min-height: 2.75rem; padding: .45rem .7rem; font: inherit; cursor: pointer; }
.copy-controls button:hover { background: var(--lime); }
.download-group { border-top: 1px solid var(--line); padding: 1.55rem 0 1.75rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem 2rem; }
.download-group h2 { margin-bottom: .55rem; }
.download-group p { color: var(--soft); margin-bottom: .55rem; }
.download-group .file-list li { display: flex; align-items: baseline; gap: .2rem .75rem; flex-wrap: wrap; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.download-group .file-list a { font-weight: 650; }
.site-footer { background: var(--pale); border-top: 1px solid var(--line); padding-block: 1.4rem; }
.footer-row { display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
.footer-row p { color: var(--soft); margin: .2rem 0 0; }
.footer-row .nav a { color: var(--green); }
@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
  .hero-figure { max-width: 38rem; }
  .home-grid, .article-layout { grid-template-columns: 1fr; }
}
@media (max-width: 32rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { flex-direction: column; align-items: flex-start; padding-block: .9rem .45rem; }
  .note-entry { grid-template-columns: 1fr; }
  .download-group { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; gap: .5rem; }
}
