/* ComputeWithPour: Golden Summer Glow palette (navy #0D3B66, cream #FAF0CA, yellow #F4D35E, orange #EE964B, red-orange #F95738).
   Dark = navy background. Light = cream background. Orange/yellow are used as FILLS and borders; on cream, text stays navy. */
/* DEFAULT = tan/cream paper with blue ink (owner: "I do not want the navy in the back"). The navy variant only appears if a visitor
   presses Theme; the system's dark-mode setting is ignored. */
:root {
  --navy: #0D3B66; --cream: #FAF0CA; --yellow: #F4D35E; --orange: #EE964B; --red: #F95738;
  --bg: #FAF0CA; --surface: #FFF8DC; --text: #0D3B66; --muted: #3F5F82; --link: #0D3B66; --border: rgba(13, 59, 102, .35);
  --cta-bg: #EE964B; --cta-text: #0D3B66; --cta-shadow: #0D3B66; --focus: #0D3B66; --code-bg: #F1E4B0;
  --shadow: #0D3B66; --btn-shadow: #0D3B66; --dot: rgba(13, 59, 102, .16);
}
:root[data-theme="dark"] {
  --bg: #0D3B66; --surface: #0A2E50; --text: #FAF0CA; --muted: #D9CFA8; --link: #F4D35E; --border: rgba(250, 240, 202, .28);
  --cta-bg: #EE964B; --cta-text: #0D3B66; --cta-shadow: #F4D35E; --focus: #F4D35E; --code-bg: #082642;
  --shadow: #061B33; --btn-shadow: #F4D35E; --dot: rgba(250, 240, 202, .14);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
h1, h2 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 1.2rem 0 .6rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 2rem 0 0; }
.site-header { border-bottom: 4px solid var(--orange); background: var(--surface); box-shadow: 0 6px 0 var(--shadow); position: relative; z-index: 1; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--yellow); box-shadow: 6px 6px 0 var(--orange); display: inline-block; margin-right: 6px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 6px 2px; }
nav a:hover { text-decoration: underline; }
.btn { box-shadow: 3px 3px 0 var(--btn-shadow); display: inline-block; font: inherit; font-weight: 700; padding: 11px 18px; border-radius: 10px; border: 2px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--cta-bg); color: var(--cta-text); border-color: var(--cta-bg); box-shadow: 4px 4px 0 var(--cta-shadow); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn:hover { filter: brightness(1.06); }
.actions { display: flex; flex-wrap: wrap; gap: 22px 24px; margin: 1.6rem 0; }
.hero { padding: 1rem 0 1.5rem; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 1rem 0 2rem; }
.card { background: var(--surface); border: 2px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: 6px 6px 0 var(--shadow); transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shadow); }
.card h2 { margin-top: 0; font-size: 1.2rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.list a { font-weight: 700; }
.list .muted { display: block; font-size: .95rem; }
.prose { max-width: 42rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 0; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--code-bg); padding: 2px 6px; border-radius: 6px; }
pre { background: var(--code-bg); border: 2px solid var(--border); border-radius: 10px; padding: 14px; overflow-x: auto; box-shadow: 4px 4px 0 var(--shadow); }
pre code { background: none; padding: 0; }
.presets { display: flex; flex-wrap: wrap; gap: 20px 24px; margin: 1.2rem 0 .8rem; }
.out { min-height: 9rem; white-space: pre-wrap; word-break: break-word; }
.next { margin-top: 2rem; }
.site-footer { box-shadow: 0 -6px 0 var(--shadow); flex-shrink: 0; margin-top: 3rem; padding: 1.5rem 0 2.5rem; border-top: 4px solid var(--orange); background: var(--surface); font-size: .95rem; }
.foot p { margin: .3rem 0; }
@media (max-width: 480px) { .btn { width: 100%; text-align: center; } .actions, .presets { flex-direction: column; } nav .btn { width: auto; } }
@media (prefers-reduced-motion: no-preference) { .btn { transition: transform .1s, box-shadow .1s; } .btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--btn-shadow); } }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

/* /learn */
.learn-hero .lead { max-width: 38rem; }
.guide-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 1rem 0 2rem; }
.guide-card { position: relative; display: flex; flex-direction: column; }
.guide-card h3 { margin: .2rem 0 .5rem; font-size: 1.15rem; line-height: 1.25; }
.guide-card h3 a { color: var(--text); text-decoration: none; }
.guide-card h3 a:hover { text-decoration: underline; }
.guide-card .muted { flex-grow: 1; font-size: .95rem; margin-top: 0; }
.guide-card .more { margin-bottom: 0; font-weight: 700; }
.chips { margin: .2rem 0 .4rem; }
.chip { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 9px; margin-right: 6px; border-radius: 999px; background: var(--yellow); color: var(--navy); border: 2px solid var(--navy); box-shadow: 2px 2px 0 var(--shadow); }
.ribbon { position: absolute; top: -12px; right: 14px; background: var(--orange); color: var(--navy); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border: 2px solid var(--navy); box-shadow: 3px 3px 0 var(--shadow); transform: rotate(2deg); }
.roadmap { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 2px solid var(--border); border-radius: 12px; box-shadow: 4px 4px 0 var(--shadow); }
.step .num { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-weight: 900; background: var(--yellow); color: var(--navy); border: 2px solid var(--navy); }
.step.ready .num { background: var(--orange); }
.step-title { font-weight: 700; }
.step-title a { color: var(--text); }
.status { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.step.ready .status { color: var(--text); background: var(--yellow); color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: 1px 9px; }
.try-card { margin: 2rem 0; }
.try-card h2 { margin-top: 0; }
@media (max-width: 480px) { .step { grid-template-columns: 2.2rem 1fr; } .status { grid-column: 2; } }

/* home: first-impression boost */
.hero-split { display: grid; grid-template-columns: 1.15fr .95fr; gap: 36px; align-items: center; padding: 2rem 0 2.5rem; }
.dot-field { background-image: radial-gradient(var(--dot) 1.5px, transparent 1.5px); background-size: 26px 26px; background-position: -8px 0; }
.hero-split h1 { font-size: clamp(2.3rem, 5.6vw, 3.7rem); line-height: 1.08; margin: .6rem 0 1rem; letter-spacing: -.02em; }
.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 .12em; }
:root[data-theme="dark"] .hl { color: var(--yellow); background: none; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .12em; text-underline-offset: .12em; }
.hero-split .lead { font-size: 1.2rem; }
.btn.big { font-size: 1.05rem; padding: 14px 24px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 1.4rem 0 0; padding: 0; }
.trust li { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 12px; border: 2px solid var(--border); border-radius: 999px; background: var(--surface); }
.demo { padding: 0; overflow: hidden; transform: rotate(1.2deg); box-shadow: 8px 8px 0 var(--shadow); }
.demo:hover { transform: rotate(0deg) translate(-2px, -2px); }
.demo-bar { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; background: var(--navy); color: var(--cream); border-bottom: 2px solid var(--border); font-size: .8rem; font-weight: 700; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.r { background: var(--red); } .dot.y { background: var(--yellow); } .dot.g { background: var(--orange); }
.demo-title { margin-left: 8px; letter-spacing: .04em; text-transform: uppercase; }
.demo-code { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--code-bg); font-size: 1rem; line-height: 1.55; }
.c-method { color: var(--link); font-weight: 800; } .c-ok { font-weight: 800; }
:root:not([data-theme="dark"]) .c-ok { color: #0D5C3A; }
:root[data-theme="dark"] .c-ok { color: var(--yellow); }
.demo-note { margin: 0; padding: 12px 16px 0; font-size: .92rem; color: var(--muted); }
.demo .actions { margin: 14px 16px 18px; }
.how { list-style: none; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 1rem 0 2.2rem; padding: 0; }
.how .card { padding-top: 22px; position: relative; }
.how h3 { margin: .4rem 0 .3rem; font-size: 1.1rem; } .how p { margin: 0; color: var(--muted); }
.how-num { position: absolute; top: -16px; left: 16px; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--orange); color: var(--navy); border: 2px solid var(--navy); box-shadow: 3px 3px 0 var(--shadow); font-weight: 900; }
.cta-band { margin: 2.5rem 0 1rem; padding: 26px 28px; background: var(--yellow); color: var(--navy); border: 3px solid var(--navy); border-radius: 16px; box-shadow: 8px 8px 0 var(--shadow); text-align: center; }
.cta-band h2 { margin: 0 0 .3rem; color: var(--navy); } .cta-band p { margin: .2rem 0; }
.cta-band .actions { justify-content: center; }
.cta-band .btn { border-color: var(--navy); color: var(--navy); }
.cta-band .btn.primary { background: var(--navy); color: var(--cream); border-color: var(--navy); box-shadow: 4px 4px 0 var(--orange); }
.cta-band .btn:not(.primary) { background: #FFF8DC; box-shadow: 4px 4px 0 var(--navy); }
@media (max-width: 760px) { .hero-split { grid-template-columns: 1fr; gap: 28px; } .demo { transform: none; } }
@media (prefers-reduced-motion: reduce) { .demo, .demo:hover { transform: none; } }

/* lessons: bar, challenge, pager */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lesson-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: .2rem 0 0; font-size: .95rem; }
.lesson-bar .chip { margin-right: 0; }
.challenge { margin: 2.2rem 0 1.6rem; border-color: var(--orange); border-width: 3px; }
.challenge h2 { margin-top: 0; }
.challenge details { margin-top: 1rem; border: 2px solid var(--border); border-radius: 10px; background: var(--code-bg); padding: 0 14px; }
.challenge summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
.challenge details[open] summary { border-bottom: 2px solid var(--border); margin-bottom: 10px; }
.challenge details pre { margin: 12px 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 1.8rem 0 .8rem; }
.pager-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); }
.pager-link:hover .pager-title { text-decoration: underline; }
.pager-next { text-align: right; }
.pager-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pager-title { font-weight: 800; line-height: 1.25; }
.pager-note { margin: 0 0 1.6rem; font-size: .92rem; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager-next { text-align: left; } .pager-gap { display: none; } }

/* API Lab: the typed request */
.req-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; margin: 1.4rem 0 .6rem; }
.method { display: inline-grid; place-items: center; padding: 0 16px; font-weight: 900; letter-spacing: .06em; background: var(--yellow); color: var(--navy); border: 2px solid var(--navy); border-radius: 10px; box-shadow: 3px 3px 0 var(--shadow); }
.req-input { flex: 1 1 260px; min-width: 0; font: 1.05rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 12px 14px; color: var(--text); background: var(--surface); border: 2px solid var(--border); border-radius: 10px; box-shadow: 4px 4px 0 var(--shadow); }
.req-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.echo { margin: 1rem 0 1.4rem; }
.echo-label { margin: 0 0 .3rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.echo-code { margin: 0 0 .8rem; padding: 10px 14px; font-size: .92rem; }
