:root {
  color-scheme: dark;
  --bg: #0f0e0d;
  --surface: #181614;
  --surface-raised: #211e1b;
  --border: #3b342d;
  --bone: #f6efe4;
  --muted: #c5bbb0;
  --amber: #ffad57;
  --amber-deep: #3b2719;
  --cool: #a4caff;
  --warm: #ffaea5;
  --good: #aaedcb;
  --radius: 14px;
  background: var(--bg);
  color: var(--bone);
  font: 16px/1.6 "DM Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: var(--amber); text-underline-offset: .25em; }
a:hover { color: #ffd09b; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.3rem; }

.wrap { width: min(1184px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: absolute; top: 10px; left: 10px; z-index: 2; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 79px; }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; color: var(--bone); text-decoration: none; font-size: 1rem; font-weight: 900; letter-spacing: .15em; line-height: 1; }
.brand:hover { color: var(--bone); }
.brand img { border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.brand small { display: block; margin-top: 6px; color: var(--muted); font-size: .58rem; letter-spacing: .14em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(13px, 2vw, 29px); }
.main-nav a { display: block; padding-block: 25px; color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--bone); }
.main-nav a[aria-current] { box-shadow: inset 0 -2px var(--amber); }
.header-cta { justify-self: end; white-space: nowrap; }

h1, h2, h3 { color: var(--bone); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.2vw, 5.3rem); letter-spacing: -.065em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.048em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.52rem); }
h1 span { color: var(--amber); }
.kicker { color: var(--amber); margin-bottom: 12px; font-size: .72rem; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; }
.lead { color: var(--muted); max-width: 55ch; font-size: clamp(1.04rem, 2vw, 1.23rem); line-height: 1.55; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 7px; border: 1px solid var(--border); text-align: center; background: var(--surface-raised); color: var(--bone); text-decoration: none; font-weight: 720; font-size: .92rem; line-height: 1.3; }
.action:hover { color: var(--bone); border-color: var(--amber); }
.primary { background: var(--amber); border-color: var(--amber); color: #1b110b; }
.primary:hover { color: #1b110b; background: #ffd09b; border-color: #ffd09b; }
.text-link { display: inline-block; margin-top: 17px; font-weight: 700; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); }
.section-intro { margin-top: 11px; color: var(--muted); }
.section-block { padding-block: clamp(37px, 6.2vw, 77px); }
.section-divider { margin-top: clamp(30px, 5vw, 65px); border-top: 1px solid var(--border); padding-bottom: 0; }
.section-head { margin-bottom: 23px; }
.section-head p { margin-top: 9px; color: var(--muted); }

.hero, .page-intro { background: radial-gradient(ellipse at 82% 90%, #4326159c 0%, transparent 62%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(26px, 6vw, 84px); padding-block: clamp(42px, 6.2vw, 83px); }
.hero h1 { max-width: 20ch; font-size: clamp(2.6rem, 4.7vw, 4.1rem); text-wrap: wrap; }
.hero .lead, .page-intro .lead { margin-top: 19px; }
.hero-actions { margin-top: 28px; }
.hero-art { align-self: center; justify-self: end; width: min(100%, 480px); border: 1px solid #765032; border-radius: 13px; overflow: hidden; box-shadow: 0 24px 56px #080605a3; }
.hero-art img { display: block; width: 100%; height: auto; }
.audience-band { border-block: 1px solid var(--border); background: var(--surface); color: var(--muted); text-align: center; }
.audience-band p { padding-block: 15px; margin-inline: auto; max-width: 98ch; font-size: .93rem; }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.path-card { min-width: 0; display: flex; flex-direction: column; padding: clamp(19px, 3vw, 31px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--bone); text-decoration: none; }
.path-card:hover { border-color: var(--amber); color: var(--bone); }
.path-card p { margin-top: 10px; margin-bottom: 24px; color: var(--muted); }
.path-card .card-link { margin-top: auto; color: var(--amber); font-size: .92rem; font-weight: 720; }
.path-card .card-link span { margin-left: .25em; }
.difference { border-block: 1px solid var(--border); background: var(--surface); }
.difference-grid, .content-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(23px, 6vw, 80px); }
.detail-list { margin: 0; padding: 0; list-style: none; }
.detail-list > * { border-top: 1px solid var(--border); padding-block: 14px; }
.detail-list > :first-child { border-top: 0; padding-top: 0; }
.detail-list > :last-child { padding-bottom: 0; }
.detail-list dt, .detail-list strong { display: block; font-size: 1.05rem; font-weight: 740; }
.detail-list dd, .detail-list li span { display: block; margin-top: 3px; color: var(--muted); }
.newsletter-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 21px; padding: clamp(21px, 4.5vw, 45px); background: linear-gradient(106deg, #38261a, #201b16 68%); border: 1px solid #6c4a30; border-radius: var(--radius); }
.newsletter-panel p:not(.kicker) { margin-top: 10px; color: var(--muted); max-width: 55ch; }
.support-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 17px; margin-top: 24px; padding: 20px 0; border-top: 1px solid var(--border); }
.support-strip p { margin-top: 5px; color: var(--muted); }

.page-intro { border-bottom: 1px solid var(--border); }
.page-intro > .wrap { padding-block: clamp(31px, 5.9vw, 74px); }
.page-intro h1 { max-width: 20ch; }
.narrative-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: clamp(25px, 6vw, 80px); align-items: start; }
.prose p { color: var(--muted); margin-top: 15px; }
.prose h2:not(:first-child) { margin-top: 32px; }
.prose .detail-list, .prose .row, .goals .row { margin-top: 21px; }
.prose .signature { color: var(--amber); font-weight: 740; margin-top: 19px; }
.goals h2 { font-size: clamp(1.45rem, 2.8vw, 2.2rem); }
.goals p:not(.kicker) { color: var(--muted); margin-top: 13px; }
.goals .fine-print { font-size: .89rem; }
.plain-list { color: var(--muted); padding-left: 19px; margin-bottom: 14px; }
.plain-list li + li { margin-top: 8px; }
.sample, .pledge { border-color: #6c4a30; background: linear-gradient(125deg, #302218, var(--surface) 80%); }
.support-grid .detail-list { margin-top: 24px; }
.number-list { margin: 0; padding-left: 23px; }
.number-list li { padding-left: 6px; }
.number-list li + li { margin-top: 13px; }
.number-list li::marker { color: var(--amber); font-weight: 740; }
.number-list span { display: block; color: var(--muted); }
.two-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }

.feature-panel { display: grid; grid-template-columns: 1.1fr .9fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.feature-copy { padding: clamp(21px, 4vw, 43px); }
.feature-copy p:not(.kicker) { color: var(--muted); margin-top: 10px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 7px 14px; list-style: none; margin: 14px 0 20px; padding: 0; color: var(--muted); font-size: .85rem; }
.feature-tags li::before { content: '·'; margin-right: 6px; color: var(--amber); }
.feature-illustration { display: grid; align-content: center; justify-items: center; gap: 4px; min-height: 230px; padding: 22px; border-left: 1px solid var(--border); background: radial-gradient(ellipse, #492d1c, #1e1916 83%); }
.feature-illustration span { width: min(100%, 170px); padding: 4px 12px; text-align: center; background: #181412; color: var(--bone); border: 1px solid #8a5d3b; border-radius: 6px; font-weight: 720; }
.feature-illustration b { transform: rotate(90deg); color: var(--amber); line-height: 1; }

.community-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(120deg, #302218, var(--surface) 78%); border-color: #6c4a30; }
.community-prompt h3 { max-width: 48ch; text-wrap: wrap; }
.community-note { font-size: .91rem; }
.community-log-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.log-form { display: grid; gap: 7px; margin-top: 16px; }
.log-form label { font-weight: 700; }
.log-form label span { color: var(--muted); font-weight: 400; }
.log-form input, .log-form textarea { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #695849; border-radius: 7px; background: var(--bg); color: var(--bone); font: inherit; }
.log-form textarea { resize: vertical; }
.log-form label:not(:first-child), .log-form .row { margin-top: 9px; }
.log-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.log-heading button:disabled { opacity: .55; cursor: default; }
#learning-log-status:empty, .learning-log-entries:empty { margin: 0; }
.learning-log-entries { list-style: none; padding: 0; }
.learning-log-entry { border-top: 1px solid var(--border); padding-block: 17px; overflow-wrap: anywhere; }
.learning-log-entry:last-child { padding-bottom: 0; }
.learning-log-entry h3 { font-size: 1.15rem; }
.learning-log-entry time { color: var(--muted); font-size: .86rem; }
.learning-log-note { color: var(--muted); white-space: pre-wrap; margin-top: 8px; }
.learning-log-remove { margin-top: 12px; }

.site-footer { border-top: 1px solid var(--border); padding-block: 25px; background: var(--surface); color: var(--muted); font-size: .87rem; }
.footer-content { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 13px 25px; }
.footer-content strong { color: var(--bone); }
.footer-content nav { display: flex; flex-wrap: wrap; gap: 7px 18px; }
.footer-education { max-width: 32ch; }

@media (max-width: 990px) {
  .topbar { gap: 12px; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: .84rem; }
  .header-cta { padding-inline: 10px; }
}

@media (max-width: 830px) {
  .topbar { grid-template-columns: 1fr auto; min-height: auto; padding-top: 12px; gap: 6px 10px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; gap: 0 17px; }
  .main-nav a { padding-block: 10px; }
  .hero-inner { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
}

@media (max-width: 670px) {
  .wrap { width: calc(100% - 36px); }
  .hero-inner, .difference-grid, .content-grid, .narrative-grid, .feature-panel, .community-log-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 350px); justify-self: start; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card p { margin-bottom: 12px; }
  .feature-illustration { border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 485px) {
  .two-grid { grid-template-columns: 1fr; }
  .brand img { width: 37px; height: 37px; }
  .main-nav { gap: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
