:root {
  color-scheme: dark;
  --bg: #2b1a22;
  --surface: #3a2530;
  --text: #f6ecee;
  --accent: #f0b429;
  --accent2: #e58fa8;
  --muted: #d0b9c2;
  --rule: #65434f;
  --heading: 'Iowan Old Style', Palatino, 'Palatino Linotype', Georgia, serif;
  --body: 'Avenir Next', 'Segoe UI', Helvetica, Arial, sans-serif;
  --rail: clamp(6rem, 12vw, 10rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.75; overflow-wrap: break-word; }
::selection { background: var(--accent); color: var(--bg); }
.page { min-height: 100vh; }
main { display: block; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 80rem); margin-inline: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0 0 1rem; }
h1 { font-size: clamp(2.75rem, 4.7vw, 5.1rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3vw, 3.1rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.5rem, 2vw, 2rem); }
p { margin: 0 0 1.25rem; }
a { color: var(--accent2); text-decoration-thickness: 1px; text-underline-offset: .25em; transition: color .18s ease, background-color .18s ease; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
ul, ol { padding-left: 1.4rem; }
li { padding-left: .2rem; }
li::marker { color: var(--accent); }
strong, b { font-weight: 650; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 2px solid var(--accent); background: var(--surface); }
code, pre { font-family: monospace; background: var(--surface); }
pre { padding: 1rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--rule); }
button, input, select, textarea { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--rule); padding: .65rem; max-width: 100%; }
.skip-link { position: absolute; top: .75rem; left: var(--gutter); z-index: 10; padding: .7rem 1rem; background: var(--accent); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-top: 4px solid var(--accent); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 6.5rem; padding-block: 1.1rem; }
.brand { color: var(--text); font-family: var(--heading); font-size: 1.9rem; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand::before { content: ''; display: inline-block; width: .7rem; height: 1.45rem; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); margin-right: .85rem; vertical-align: -.1rem; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat; }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.site-nav li, .footer-nav li { padding: 0; }
.site-nav a { display: inline-block; padding-block: .5rem; color: var(--muted); text-decoration: none; font-size: .82rem; }
.site-nav a:hover, .footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.hero { padding-block: clamp(3rem, 6vw, 6rem); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); padding-left: var(--rail); align-items: center; }
.hero-inner::before { content: '01 / BEGIN'; position: absolute; left: 0; top: .4rem; width: calc(var(--rail) - 1.5rem); color: var(--accent); font-size: .7rem; letter-spacing: .14em; }
.hero-text { min-width: 0; }
.eyebrow { color: var(--accent); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; line-height: 1.7; margin-bottom: 1.5rem; }
.hero h1 { max-width: 10ch; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 1.2vw, 1.3rem); line-height: 1.75; }
.hero-actions { margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.4rem; padding: .85rem 1.3rem; border: 1px solid var(--accent); text-decoration: none; font-size: .88rem; font-weight: 600; }
.btn::after { content: '\2197'; font-size: 1.2rem; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.hero-media { position: relative; padding: 0 0 1rem 1rem; border-left: 1px solid var(--accent2); border-bottom: 1px solid var(--accent2); }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-position: 48% center; }
.hero-media::after { content: 'A little progress, every day.'; display: block; padding-top: 1rem; font-family: var(--heading); font-style: italic; color: var(--accent2); font-size: 1rem; }
.section { padding-block: clamp(3rem, 6vw, 6rem); border-top: 1px solid var(--rule); }
.section > .wrap { position: relative; padding-left: var(--rail); }
.section > .wrap::before { position: absolute; left: 0; top: .5rem; width: calc(var(--rail) - 1.5rem); color: var(--accent); font-size: .7rem; line-height: 1.7; letter-spacing: .1em; white-space: pre-line; }
#guides > .wrap::before { content: '02 / THE GUIDES\A Seven ways\A to move forward'; }
.section-title { max-width: 22ch; }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 2.5rem; }
.card-grid { display: block; counter-reset: guide; margin-left: calc(-1 * var(--rail)); }
.card { position: relative; counter-increment: guide; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 2rem; padding: 1.8rem 0 1.8rem var(--rail); border-top: 1px solid var(--rule); transition: background-color .2s ease; }
.card:last-child { border-bottom: 1px solid var(--rule); }
.card::before { content: counter(guide, decimal-leading-zero); position: absolute; left: 0; top: 1.8rem; font: italic 1.8rem / 1.2 var(--heading); color: var(--accent); }
.card-title { margin: 0; max-width: 30ch; }
.card-text { grid-column: 1; margin: 0; font-size: .93rem; color: var(--muted); }
.card-link { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: .8rem; white-space: nowrap; }
.card-link::after { content: ' \2197'; }
.card:hover { background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.section-feature > .wrap::before { content: '03 / PRACTICE\A Make room\A for learning'; }
.section-feature + .section-feature > .wrap::before { content: '04 / PROGRESS\A Put your skills\A to work'; }
.split-text { min-width: 0; }
.split-text p { color: var(--muted); }
.split-text p:last-child { margin-bottom: 0; }
.split-media { border-bottom: 3px solid var(--accent2); padding-bottom: .8rem; }
.split-media img { width: 100%; aspect-ratio: 4 / 4.5; }
.section-feature + .section-feature .split-media img { aspect-ratio: 4 / 3; }
.fact-list { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: fact; }
.fact { position: relative; counter-increment: fact; padding: 1.1rem 0 1.1rem 2.5rem; border-bottom: 1px solid var(--rule); max-width: 70ch; }
.fact::before { content: counter(fact, lower-roman) '.'; position: absolute; left: 0; color: var(--accent); font-family: var(--heading); }
.section:has(.fact-list) > .wrap::before { content: '05 / KEEP IN MIND'; }
.section-partners { background: var(--surface); }
.section-partners > .wrap::before { content: '06 / FURTHER\A READING'; }
.partner-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.partner { min-width: 0; padding: 1.7rem 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; align-items: flex-start; }
.partner-link { overflow-wrap: anywhere; max-width: 100%; font-size: .8rem; line-height: 1.7; }
.partner-phrase { order: -1; font: 1.45rem / 1.3 var(--heading); margin: 0 0 .6rem; }
.partner-phrase::first-letter { text-transform: uppercase; }
.partner-desc { color: var(--muted); font-size: .88rem; line-height: 1.8; margin: .9rem 0 0; }
.article { padding-block: clamp(2rem, 5vw, 5rem) clamp(4rem, 7vw, 7rem); }
.article > .wrap { max-width: 66rem; padding-left: var(--rail); position: relative; }
.article > .wrap::before { content: 'FIELD NOTES'; position: absolute; left: 0; top: 5.5rem; width: calc(var(--rail) - 1rem); font-size: .65rem; letter-spacing: .15em; color: var(--accent); }
.breadcrumb { color: var(--muted); font-size: .8rem; margin-bottom: 2.5rem; }
.breadcrumb a { margin-right: .5rem; }
.breadcrumb span { margin-left: .5rem; }
.page-header { padding-bottom: 2rem; border-bottom: 1px solid var(--rule); margin-bottom: 2.5rem; }
.page-header h1 { font-size: clamp(2.6rem, 4.5vw, 4.5rem); max-width: 20ch; }
.page-header .lead { max-width: 65ch; margin: 1.5rem 0 0; }
.prose { max-width: 70ch; border-left: 1px solid var(--rule); padding-left: 2rem; margin-left: -2rem; counter-reset: chapter; }
.prose > p { color: var(--muted); }
.prose > p:first-child { color: var(--text); font-size: 1.1em; }
.prose h2 { position: relative; counter-increment: chapter; margin-top: 2.75rem; font-size: clamp(1.7rem, 2.5vw, 2.4rem); }
.prose h2::before { content: counter(chapter, decimal-leading-zero); position: absolute; right: calc(100% + 3rem); top: .15rem; color: var(--accent); font: italic 1.5rem / 1.2 var(--heading); }
.prose h3 { margin-top: 2rem; }
.prose li { margin-bottom: .75rem; color: var(--muted); }
.note { position: relative; margin: 3rem 0 0; padding: 1.5rem 1.75rem; border-left: 3px solid var(--accent); background: var(--surface); }
.note::before { content: 'TAKE NOTE'; display: block; color: var(--accent); font-size: .65rem; letter-spacing: .16em; margin-bottom: .75rem; }
.note p { margin: 0; font: 1.25rem / 1.6 var(--heading); }
.site-footer { border-top: 1px solid var(--rule); padding-block: 2.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-note { max-width: 55ch; font-size: .78rem; color: var(--muted); margin: 0; }
.footer-nav a { font-size: .78rem; color: var(--muted); }
@media (min-width: 1450px) { .hero { padding-block: 6rem 7rem; } }
@media (max-width: 1050px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .site-nav ul { gap: .3rem 1.3rem; }
  .hero-inner { gap: 2rem; }
  .hero h1 { font-size: clamp(2.75rem, 5.5vw, 4.5rem); }
  .card { column-gap: 1rem; }
  .footer-inner { flex-direction: column; gap: 1rem; }
}
@media (max-width: 760px) {
  :root { --rail: 4rem; }
  .hero-inner { grid-template-columns: 1fr; padding-left: 0; padding-top: 2.5rem; }
  .hero-inner::before { width: auto; }
  .hero h1 { max-width: 14ch; font-size: clamp(3.2rem, 9vw, 4.5rem); }
  .hero-media { margin-left: var(--rail); }
  .hero-media img { aspect-ratio: 16 / 10; }
  .section > .wrap { padding-left: 0; padding-top: 3.5rem; }
  .section > .wrap::before { width: 100%; white-space: normal; }
  .card-grid { margin-left: 0; }
  .card { padding-left: var(--rail); grid-template-columns: minmax(0, 1fr); }
  .card-link { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .5rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-media { margin-left: var(--rail); }
  .split-media img { aspect-ratio: 4 / 3; max-height: 26rem; }
  .partner-list { column-gap: 1.5rem; }
  .article > .wrap { padding-left: 2rem; }
  .article > .wrap::before { display: none; }
  .prose { padding-left: 1rem; margin-left: -1rem; }
  .prose h2::before { right: calc(100% + 1.4rem); font-size: .85rem; top: .5rem; }
  .page-header h1 { font-size: clamp(2.4rem, 7vw, 3.5rem); }
}
@media (max-width: 500px) {
  .site-nav ul { gap: .15rem 1rem; }
  .site-nav a { font-size: .75rem; }
  .partner-list { grid-template-columns: minmax(0, 1fr); }
  .hero-media, .split-media { margin-left: 1.5rem; }
  .card { padding-left: 2.75rem; }
  .card::before { font-size: 1.4rem; }
  .note { padding: 1.2rem; }
  .breadcrumb { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.page-home main, .page-sub main { min-width: 0; }
