/* Layout concept: a sticky tab rail over one reading column. Weather-report calm: cream ground, black type, teal for action and "done", rust for eyebrows, indigo for subheads and links. */
:root {
  --bg: #FAF5EA;
  --surface: #FFFDF8;
  --nav: #FAF5EA;
  --ink: #1E1B18;
  --muted: #6A625A;
  --line: #E4DAC8;
  --storm: #5a639b;
  --gold-ink: #a94f26;
  --lav: #E3E5F1;
  --sun: #35807c;
  --sun-soft: #E1EEEB;
  --rust: #be5b2f;
  --rust-soft: #F6E3D8;
  --rust-deep: #8f401c;
  --teal-text: #2b6a66;
  --on-sun: #FFFDF8;
  --ok: #2E7D5B;
  --font-display: "Antonio", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-ui: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17151C;
    --surface: #201D27;
    --nav: #1B1922;
    --ink: #F3ECDD;
    --muted: #B2A99B;
    --line: #34303D;
    --storm: #A3ABDD;
  --gold-ink: #E59A70;
  --lav: #262A3F;
    --sun: #4FA39E;
    --sun-soft: #1F3331;
    --rust: #E08A5E;
    --rust-soft: #3A2A22;
    --rust-deep: #F2B08E;
    --teal-text: #6FC1BB;
    --on-sun: #10201F;
    --ok: #6CC59A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17151C;
  --surface: #201D27;
  --nav: #1B1922;
  --ink: #F3ECDD;
  --muted: #B2A99B;
  --line: #34303D;
  --storm: #A3ABDD;
  --gold-ink: #E59A70;
  --lav: #262A3F;
  --sun: #4FA39E;
  --sun-soft: #1F3331;
  --rust: #E08A5E;
  --rust-soft: #3A2A22;
  --rust-deep: #F2B08E;
  --teal-text: #6FC1BB;
  --on-sun: #10201F;
  --ok: #6CC59A;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 48px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--nav);
  z-index: 10;
}
a { color: var(--storm); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; font-weight: 700; line-height: 1; }
h3 { font-family: var(--font-ui); font-weight: 700; color: var(--teal-text); }
p { margin: 0 0 1em; }
.wrap { max-width: 960px; margin: 0 auto; }
.prose { max-width: none; }

/* top rail */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.top-in { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 4px; flex-wrap: wrap; }
.brand { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ctl { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill {
  font: 600 13px/1 var(--font-ui);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.pill[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }
.pill.dim { opacity: 0.55; cursor: default; }
.tabs { max-width: 960px; margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  font: 600 14px/1 var(--font-ui);
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 12px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--storm); }

/* hero */
.hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); text-align: center; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 8.75vw, 92px); text-wrap: balance; }
.hero .sub { font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; margin: 22px auto 0; max-width: 56ch; }
.rule { width: 48px; height: 2px; background: var(--rust); margin: 24px auto 12px; }
.by { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-text); margin: 0; }

/* panels */
.panel { padding: 36px 0 24px; }
.panel h2 { font-size: clamp(38px, 7vw, 64px); font-weight: 700; margin-bottom: 6px; }
.panel .tag { font-family: var(--font-ui); font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: 0; color: var(--gold-ink); margin: 10px 0 18px; }
.prog { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.bar { flex: 0 0 140px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--sun); transition: width .25s; }

/* steps */
.steps { margin: 26px 0 0; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step h3 { font-size: clamp(20px, 3vw, 24px); font-weight: 700; margin-bottom: 10px; }
.step-body { min-width: 0; }
.step-body p:last-child { margin-bottom: 0; }
.tick {
  width: 30px; height: 30px; margin-top: 2px; border-radius: 50%;
  border: 2px solid var(--storm); background: var(--surface); cursor: pointer; padding: 0; position: relative;
}
.tick[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); }
.tick[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 9px; top: 4px; width: 7px; height: 13px;
  border: solid var(--on-sun); border-width: 0 3px 3px 0; transform: rotate(40deg);
}
.step.done h3 { color: var(--muted); }
.ask { margin: 0 0 1em; padding: 0 0 0 1.2em; }
.ask li { margin-bottom: 4px; }

/* essentials + slips */
.ess { background: var(--sun-soft); border-radius: 12px; padding: 22px 24px; margin: 30px 0 20px; max-width: none; }
.ess h3 { font-size: 20px; margin-bottom: 8px; }
.ess ul { margin: 0 0 .6em; padding-left: 1.2em; }
.ess p:last-child { margin-bottom: 0; }
.slip { border: 2px dashed var(--storm); border-radius: 6px; padding: 20px 24px; margin: 20px 0; max-width: none; background: var(--lav); }
.label { font-family: var(--font-ui); font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-transform: none; color: var(--gold-ink); margin: 0 0 10px; }
.slip p:last-child { margin-bottom: 0; }
.slip .label { color: var(--storm); }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin: 20px 0; max-width: none; }
.note p:last-child { margin-bottom: 0; }
.ph { border: 1.5px dashed var(--muted); border-radius: 10px; padding: 14px 18px; margin: 18px 0; max-width: none; color: var(--muted); font-size: 15px; }
.ph b { color: var(--ink); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--muted); border-radius: 99px; padding: 2px 8px; color: var(--muted); margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.btn { font: 700 15px/1 var(--font-ui); background: var(--storm); color: var(--on-sun); border: 0; border-radius: 8px; padding: 13px 18px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.alt { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.nextrow { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }

/* picker */
.picker { margin: 34px 0 10px; }
.callout { background: var(--rust-soft); border: 1px solid var(--line); border-radius: 14px; padding: 32px 18px 28px; margin: 40px 0 10px; }
.picker { text-align: center; }
.picker h2 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 18px; }
.q { margin-bottom: 16px; }
.q .label { margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.opt { font: 700 15px/1.2 var(--font-ui); background: var(--rust); color: var(--on-sun); border: 2px solid var(--rust); border-radius: 8px; padding: 11px 12px; cursor: pointer; white-space: nowrap; }
.opt:hover { background: var(--rust-deep); border-color: var(--rust-deep); }
.opt[aria-pressed="true"] { background: var(--rust-deep); border-color: var(--ink); color: var(--on-sun); box-shadow: 0 0 0 2px var(--surface) inset; }
.out { background: var(--lav); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-top: 8px; max-width: none; }
.out { text-align: left; }
.out h3 { font-size: 24px; margin-bottom: 12px; color: var(--storm); }
.out ul { margin: 0 0 1em; padding-left: 1.2em; }
.out li { margin-bottom: 6px; }
.out .quote { font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: 21px; border-top: 1px solid var(--line); padding-top: 14px; margin: 14px 0 16px; }

/* tools */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 16px 0 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-family: var(--font-ui); font-size: 14px; font-weight: 600; }
.fld input[type=text], .fld input[type=number], .search {
  font: 400 16px var(--font-ui); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0;
}
.tool h4 { font-family: var(--font-ui); font-size: 18px; margin: 0 0 10px; }
.tool .sub2 { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.preview { white-space: pre-wrap; background: var(--bg); border-radius: 8px; padding: 14px 16px; margin: 14px 0 12px; font-size: 16px; }
.blank { background: var(--sun-soft); border-radius: 4px; padding: 0 3px; }
.rlive { position: sticky; top: var(--hdr, 96px); z-index: 4; margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: var(--bg); border: 1.5px solid var(--line); font: 600 14px/1.5 var(--font-ui); color: var(--ink); box-shadow: 0 4px 10px -8px rgba(0,0,0,.35); }
.rlive { overflow-wrap: anywhere; }
.rlive .dot { color: var(--muted); margin: 0 6px; }
.runout { margin-top: 14px; padding: 14px 16px; border-radius: 8px; background: var(--bg); font-size: 16px; }
.runout strong { font-family: var(--font-ui); font-size: 22px; }
.runout .big { font-weight: 800; font-size: 28px; color: var(--gold-ink); line-height: 1.2; }
.rchart { display: grid; gap: 16px; margin-top: 8px; }
.rtop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rlabel { font-family: var(--font-ui); font-weight: 700; font-size: 15px; }
.rsub { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.rtrack { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rtrack i { display: block; height: 100%; border-radius: 99px; background: var(--sun); }
.rrow:first-child .rtrack i { background: var(--gold-ink); }
.extras { margin-top: 12px; display: grid; gap: 10px; }
.xrow { display: grid; grid-template-columns: 1fr 140px auto; gap: 10px; align-items: center; }
.xname { font: 400 16px var(--font-ui); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0; }
.xrow .rin { font: 400 16px var(--font-ui); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0; }
.xrm { font: 600 13px/1 var(--font-ui); color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 8px; }
.addrow { margin-top: 12px; font-size: 14px; padding: 10px 14px; }
@media (max-width: 520px) { .xrow { grid-template-columns: 1fr 1fr; } .xrm { grid-column: 1 / -1; justify-self: start; padding-left: 0; } }

/* library */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.chip { font: 600 14px/1.2 var(--font-ui); background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 99px; padding: 9px 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cat { margin-top: 40px; }
.cat h3 { font-size: clamp(22px, 3.4vw, 28px); margin-bottom: 4px; }
.cat .lead { color: var(--muted); margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card .nm { font-family: var(--font-ui); font-weight: 700; font-size: 18px; line-height: 1.2; }
.card .nm a { text-decoration: none; color: var(--ink); }
.card .nm a:hover { text-decoration: underline; color: var(--storm); }
.card p { margin: 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.card.soon { border-style: dashed; }
.ptag { display: inline-block; margin-left: 8px; font: 700 11px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; border-radius: 99px; padding: 3px 8px; vertical-align: 2px; border: 1px solid var(--line); color: var(--muted); }
.ptag.free { color: var(--teal-text); border-color: var(--teal-text); }
.ptag.paid { color: var(--gold-ink); border-color: var(--gold-ink); }
.grps { display: block; }
.grp { margin-top: 26px; }
.grp:first-child { margin-top: 8px; }
.grp h4 { font-family: var(--font-ui); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.morebtn { margin-top: 12px; font: 600 14px var(--font-ui); background: none; border: 0; color: var(--storm); text-decoration: underline; cursor: pointer; padding: 6px 0; }
.cards[hidden] { display: none; }
.empty { color: var(--muted); padding: 24px 0; }
.connect { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; margin-top: 44px; }
.connect { scroll-margin-top: calc(var(--hdr, 96px) + 8px); }
.connect .rin { font: 400 16px var(--font-ui); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.connect h3 { font-size: 26px; margin-bottom: 10px; }
.connect p { margin: 0 0 .9em; color: var(--muted); max-width: none; }
.connect .hang { color: var(--ink); font-size: 19px; margin: 1.2em 0 .3em; }
.connect .socials { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.connect .loop { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.connect .loop h4 { font-family: var(--font-ui); font-size: 18px; margin: 0 0 8px; }
.connect .loop .btn { margin-top: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

footer { max-width: 960px; margin: 56px auto 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer p { margin-bottom: 8px; }
.foot-row { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot-row > div { min-width: 0; max-width: 60ch; }
.btn.dim { opacity: 0.55; cursor: default; }
.mobnote { display: none; font: 500 14px/1.5 var(--font-ui); color: var(--muted); max-width: 40ch; margin: 18px auto 0; }
@media (max-width: 720px) { .mobnote { display: block; } }
.card .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.bmtip { font: 600 13px/1.3 var(--font-ui); color: var(--muted); margin-left: 10px; }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .step { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .bar { flex-basis: 100px; }
}
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }

/* site additions */
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font: 700 14px var(--font-ui); }
.skip:focus { left: 8px; }
a.tab { text-decoration: none; display: block; }
a.btn { color: var(--on-sun); }
a.btn.alt { color: var(--ink); }
.linkbtn { font: 600 14px var(--font-ui); color: var(--storm); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; margin-right: 14px; }
main:focus, h1:focus, h2:focus { outline: none; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .top, .nextrow, .picker, .skip, footer .linkbtn, .addrow, .xrm { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .panel[hidden] { display: none !important; }
}
