:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --white: #fffdf8;
  --ink: #171d29;
  --muted: #565862;
  --accent: #aa3824;
  --orange: #ff8868;
  --rule: #d7d0c3;
  --serif: Georgia, "Times New Roman", serif;
  font: 100%/1.55 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; z-index: 1; top: .5rem; left: 1rem; padding: .5rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }
.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rule); }
.masthead, .foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4.65rem; }
.brand { display: inline-flex; gap: .55rem; align-items: center; text-decoration: none; font: bold clamp(1.05rem, 2.4vw, 1.38rem)/1.15 var(--serif); min-height: 44px; }
.brand-mark { display: inline-block; flex: none; width: 1.24rem; height: 1.24rem; background: var(--accent); position: relative; }
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; height: 2px; left: 4px; background: var(--white); }
.brand-mark::before { width: .73rem; top: 6px; }
.brand-mark::after { width: .46rem; top: 11px; }
nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; font-weight: 650; text-decoration: none; }
nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3rem, 8vw, 7rem); }
.eyebrow { color: var(--accent); font-size: .875rem; line-height: 1.4; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; margin: 0 0 .85rem; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.033em; line-height: 1.07; margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(2.65rem, 6.4vw, 5.85rem); }
h1 em { color: var(--accent); font-weight: inherit; }
h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
p { margin: .85rem 0 0; }
.lede { max-width: 39rem; color: var(--muted); font-size: clamp(1.13rem, 2.2vw, 1.33rem); line-height: 1.5; margin-top: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; min-height: 48px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); padding: .7rem 1.1rem; font: inherit; font-weight: 680; text-decoration: none; cursor: pointer; }
.button:hover { color: var(--white); background: var(--accent); border-color: var(--accent); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--rule); }
.button.secondary:hover { color: var(--accent); border-color: var(--accent); }
.folio { color: var(--white); background: var(--ink); padding: clamp(1.2rem, 3.5vw, 2.25rem); box-shadow: .48rem .48rem 0 #e7d8cb; }
.folio-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem .75rem; padding: 0 0 .88rem; margin-bottom: 1.2rem; color: var(--orange); font-size: .875rem; border-bottom: 1px solid #535660; }
.folio h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
.layers { padding: 0; list-style: none; margin-block: 1.05rem 0; }
.layers li { border-top: 1px solid #535660; }
.layers li:first-child { border-top: none; }
.layers li > :is(a, div) { display: grid; grid-template-columns: 2rem 1fr; gap: .72rem; align-items: start; padding: .7rem 0; min-height: 44px; text-decoration: none; }
.layers li a:hover { color: var(--orange); }
.layers li a:focus-visible { outline-color: var(--orange); }
.layers strong, .layers small { display: block; }
.layers small { color: #d6d3d5; font-size: .88rem; }
.layer-number { color: var(--orange); font: italic 1.45rem/1.1 var(--serif); }
.field-notes { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); gap: clamp(1rem, 5vw, 4rem); padding-block: clamp(2.2rem, 6vw, 4rem); border-top: 1px solid var(--rule); }
.guide-card { display: block; background: var(--white); border: 1px solid var(--rule); padding: clamp(1.1rem, 3vw, 1.75rem); text-decoration: none; }
.guide-card:hover { border-color: var(--accent); }
.guide-card .eyebrow { display: block; margin-bottom: .65rem; }
.guide-card p { color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; margin-block: 2rem; }
.guide-grid h2 { font-size: clamp(1.42rem, 3vw, 2rem); }
.inline-link { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: 750; text-decoration: underline; }
.collection { padding-top: clamp(2rem, 6vw, 5rem); }
.collection .field-notes { border: 0; }
.purchase-card h2 { font-size: clamp(2.8rem, 7vw, 5rem); }
.purchase-card h2 small { margin-left: .35rem; font: 600 1rem/1.3 system-ui, sans-serif; letter-spacing: 0; }
.purchase-card p { max-width: 30rem; }
.small-print { font-size: .92rem; color: #d6d3d5; }
.deliverables { margin: 0; }
.deliverables div { border-bottom: 1px solid var(--rule); padding: .85rem 0; }
.deliverables dt { font-weight: 750; }
.deliverables dd { margin: .25rem 0 0; color: var(--muted); }
.prose { width: min(100% - 3rem, 47rem); margin-inline: auto; padding-block: clamp(2.4rem, 7vw, 5rem); font-size: 1.08rem; }
.prose h1 { font-size: clamp(2.55rem, 6.1vw, 4.65rem); }
.prose :is(h2,h3) { margin-top: 2.1rem; scroll-margin-top: 1rem; }
.prose h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
.prose p, .prose ul, .prose ol { margin-block: .9rem; }
.prose li { margin-block: .35rem; }
.prose a:not(.button) { color: var(--accent); }
.prose .callout { margin-top: 1.75rem; padding: 1.2rem; background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--accent); }
.prose .callout p:last-child { margin-bottom: 0; }
.reviewed { font-size: .9rem; color: var(--muted); }
.chapter-nav { display: flex; flex-wrap: wrap; gap: .1rem 1rem; padding-block: .2rem; margin-block: 1.4rem; border-block: 1px solid var(--rule); }
.chapter-nav a { font-size: .94rem; text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { padding: .5rem .35rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.sample-layers li { border-color: var(--rule); }
.sample-layers small { color: var(--muted); }
.sample-layers .layer-number { color: var(--accent); }
.site-footer { border-top: 1px solid var(--rule); margin-top: clamp(1rem, 4vw, 3rem); color: var(--muted); }
.foot p { margin: 0; }
.foot > span { font-size: .875rem; }
.foot .brand { color: var(--ink); }
@media (max-width: 46rem) {
  .hero, .field-notes { grid-template-columns: 1fr; }
  .hero { gap: 2rem; }
  .foot { flex-wrap: wrap; padding-block: .55rem; }
}
@media (max-width: 28rem) {
  .shell, .prose { width: calc(100% - 2rem); }
  .masthead { min-height: 3.9rem; }
  nav a { font-size: .875rem; }
  .foot { justify-content: start; column-gap: 1.1rem; }
}
