:root {
  color-scheme: dark;
  --bg: #101616;
  --surface: #182121;
  --text: #f8f2e7;
  --muted: #c3ccbf;
  --accent: #f1ce88;
  --line: #394644;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 68% 0, #26352f 0, transparent 48rem), var(--bg); color: var(--text); }
a { color: inherit; text-decoration-thickness: .075em; text-underline-offset: .23em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; z-index: 4; left: .5rem; top: .5rem; background: var(--text); color: var(--bg); padding: .5rem .85rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(74rem, calc(100% - 3rem)); margin-inline: auto; }
.bar, .actions, .section-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; }
.bar, .section-head { justify-content: space-between; }
.bar { padding-block: 1.05rem; }
.mast, .foot { border-block: 1px solid var(--line); }
.mast nav, .foot nav { display: flex; flex-wrap: wrap; gap: .2rem 1.35rem; }
.mast nav a, .foot nav a { display: inline-block; padding-block: .4rem; color: var(--muted); text-decoration: none; }
.mast nav a:hover, .foot nav a:hover, nav a[aria-current] { color: var(--accent); }
.wordmark { font-weight: 720; display: inline-flex; gap: .7rem; align-items: center; text-decoration: none; }
.monogram { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid #aa956a; color: var(--accent); font: 1.32rem var(--serif); border-radius: .65rem; }
.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(2rem, 5vw, 5.2rem); padding-block: clamp(3rem, 8vw, 7rem); }
.hero h1, .page-head h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.05; letter-spacing: -.046em; margin: 0; }
.hero h1 { font-size: clamp(3.35rem, 7.3vw, 6.7rem); }
.hero-art { position: relative; margin: 0; border-radius: 1.2rem; border: 1px solid #677b6c; overflow: hidden; box-shadow: 0 1.55rem 4rem #05090791; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 1.24; object-fit: cover; }
.hero-art figcaption { position: absolute; bottom: .8rem; left: .8rem; border-radius: .4rem; background: #101616e8; color: var(--text); padding: .3rem .6rem; font-size: .875rem; }
.ink-hero .hero-art { border-color: #866674; }
.app-icon { display: block; margin-bottom: 1.2rem; border-radius: 1rem; }
.eyebrow { margin: 0 0 .65rem; font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.intro, .page-head > p:last-child { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 46ch; margin-block: 1.15rem 1.55rem; }
.button { display: inline-flex; align-items: center; border-radius: .55rem; padding: .65rem 1rem; min-height: 2.8rem; background: var(--accent); color: #141816; font-weight: 750; text-decoration: none; }
.button:hover { background: #ffe4aa; color: #141816; }
.quiet { color: var(--accent); font-weight: 650; }
.band { padding-block: clamp(2.5rem, 6vw, 4.65rem); border-top: 1px solid var(--line); }
.section-head { margin: 0 0 1.35rem; }
h2 { font-size: clamp(2rem, 4.6vw, 3.65rem); }
h3 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
.projects, .guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project, .guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; }
.project-art { display: block; width: 100%; aspect-ratio: 2.12; object-fit: cover; }
.project-body, .guide-card { padding: clamp(1.15rem, 3vw, 1.75rem); }
.project-body > p:not(.eyebrow), .guide-card > p:not(.eyebrow) { color: var(--muted); margin: .75rem 0 1.15rem; }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a:hover { text-decoration: underline; }
.guide-card > p:last-child { margin-bottom: 0; }
.foot { border-bottom: 0; color: var(--muted); }
.page-head { padding-block: clamp(2.7rem, 7vw, 5.5rem) 2rem; }
.page-head h1 { font-size: clamp(2.85rem, 6.8vw, 5.5rem); max-width: 16ch; }
.page-head > p:last-child { margin-bottom: .15rem; }
.article-head > .quiet { display: inline-block; margin-bottom: 1.15rem; }
.reading { padding-block: 1.6rem 3.5rem; border-top: 1px solid var(--line); }
.article-layout { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 46rem); gap: clamp(1.1rem, 5vw, 5rem); }
.toc { align-self: start; position: sticky; top: 1rem; padding-left: 1rem; border-left: 1px solid #739383; }
.toc p { margin: 0 0 .6rem; font-weight: 650; }
.toc a { display: block; color: var(--muted); padding-block: .28rem; }
.prose { max-width: 46rem; font-size: 1.075rem; }
.prose h2 { font-size: clamp(1.7rem, 3.8vw, 2.45rem); }
.prose h2:not(:first-child) { margin-top: 1.55rem; }
.prose section + section { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--accent); overflow-wrap: anywhere; }
@media (max-width: 50rem) {
  .hero, .article-layout { grid-template-columns: 1fr; }
  .hero-art img { aspect-ratio: 1.65; }
  .toc { position: static; }
}
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
  .projects, .guide-grid { grid-template-columns: 1fr; }
  .bar, .mast nav, .foot nav { column-gap: .85rem; }
}
