/* Reset · Centre Self Collective — brand tokens from the 2026 guidelines */
:root {
  --csc-sand: #FBF7EE;
  --csc-dune: #FFFEFB;
  --csc-compost: #2E2E1D;
  --csc-moss: #424224;
  --csc-grass: #696935;
  --csc-muted-green: #8F8F45;
  --csc-earth: #5C472F;
  --csc-growth: #E8E891;
  --csc-glow: #FFCB83;
  --csc-text: #2E2E2E;
  --csc-line: #E3DFD2;
  --ok: #2F6F6A;
  --bad: #A0432F;

  --font: "Satoshi", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 720px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(46, 46, 29, 0.06), 0 8px 24px rgba(46, 46, 29, 0.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--csc-sand);
  color: var(--csc-text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--csc-grass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--csc-moss); }
h1, h2, h3, h4 { color: var(--csc-moss); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 44px); }
h2 { font-size: clamp(24px, 3.4vw, 30px); margin-top: 1.6em; }
h3 { font-size: 20px; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }
strong { font-weight: 700; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--csc-moss); color: var(--csc-dune); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: var(--csc-dune);
  border-bottom: 1px solid var(--csc-line);
  position: sticky; top: 0; z-index: 10;
}
.brand img { width: 155px; height: auto; }
.top-nav { display: flex; gap: 18px; }
.top-nav a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--csc-grass); }
.top-nav a:hover { text-decoration: underline; }

/* Layout */
.shell { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
.rail, .main { min-width: 0; }
.main { padding: 0 0 48px; }
.main:focus { outline: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Progress rail */
.rail { background: var(--csc-dune); border-bottom: 1px solid var(--csc-line); }
.rail ol {
  list-style: none; margin: 0; padding: 10px var(--gutter);
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.rail ol::-webkit-scrollbar { display: none; }
.rail li { margin: 0; flex: 0 0 auto; }
.rail a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 700; color: var(--csc-grass);
  border: 1px solid var(--csc-line); background: var(--csc-dune); white-space: nowrap;
}
.rail a .n {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--csc-sand); color: var(--csc-grass); font-size: 12px; border: 1px solid var(--csc-line);
}
.rail a[aria-current="page"] { background: var(--csc-moss); color: var(--csc-dune); border-color: var(--csc-moss); }
.rail a[aria-current="page"] .n { background: var(--csc-dune); color: var(--csc-moss); border-color: var(--csc-dune); }
.rail a.done .n { background: var(--csc-grass); color: var(--csc-dune); border-color: var(--csc-grass); }
.rail a.done .n::before { content: "✓"; }
.rail a.done .n span { display: none; }
.rail .mins { font-weight: 500; color: var(--csc-grass); opacity: 0.85; }
.rail a[aria-current="page"] .mins { color: var(--csc-dune); }

@media (min-width: 960px) {
  .shell { grid-template-columns: 260px minmax(0, 1fr); }
  .rail { border-bottom: 0; border-right: 1px solid var(--csc-line); }
  .rail ol { flex-direction: column; gap: 4px; padding: 20px 16px; position: sticky; top: 87px; }
  .rail a { width: 100%; justify-content: flex-start; border-color: transparent; background: transparent; }
  .rail a:hover { background: var(--csc-sand); }
  .rail a[aria-current="page"] { background: var(--csc-moss); }
  .rail .mins { margin-left: auto; }
  .wrap { padding: 0 40px; }
  .main { padding-bottom: 72px; }
}

/* Hero (home) */
.hero { padding: 48px 0 32px; }
.hero .eyebrow { color: var(--csc-grass); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.hero h1 { font-size: clamp(44px, 8vw, 76px); color: var(--csc-muted-green); letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.hero .lede { font-size: 20px; max-width: 560px; color: var(--csc-moss); }
.hero .meta { color: var(--csc-grass); font-weight: 700; margin-bottom: 20px; }

/* Part cover band */
.cover { background: var(--csc-muted-green); color: var(--csc-dune); padding: 36px 0 32px; }
.cover .eyebrow { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; opacity: 0.95; margin-bottom: 6px; }
.cover h1 { color: var(--csc-dune); margin-bottom: 4px; }
.cover p { margin: 0; opacity: 0.95; }
.cover.dark { background: var(--csc-moss); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--csc-grass);
  background: var(--csc-grass); color: var(--csc-dune); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; line-height: 1.2; min-height: 48px;
}
.btn:hover { background: var(--csc-moss); border-color: var(--csc-moss); color: var(--csc-dune); }
.btn.secondary { background: transparent; color: var(--csc-grass); }
.btn.secondary:hover { background: var(--csc-dune); color: var(--csc-moss); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: var(--csc-dune); }
.btn:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid var(--csc-growth); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 32px 0 0; }
.actions .spacer { flex: 1; }

/* Cards and panels */
.card {
  background: var(--csc-dune); border: 1px solid var(--csc-line); border-radius: var(--radius);
  padding: 20px; margin: 20px 0; box-shadow: var(--shadow);
}
.panel-growth { background: var(--csc-growth); color: var(--csc-moss); border-radius: var(--radius); padding: 22px; margin: 28px 0; }
.panel-growth h2, .panel-growth h3 { margin-top: 0; color: var(--csc-moss); }
.panel-growth p:last-child { margin-bottom: 0; }
.panel-dark { background: var(--csc-moss); color: var(--csc-dune); border-radius: var(--radius); padding: 24px; margin: 28px 0; }
.panel-dark h2, .panel-dark h3 { color: var(--csc-dune); margin-top: 0; }
.panel-dark a { color: var(--csc-dune); }
.notice { border-left: 3px solid var(--csc-grass); padding: 4px 0 4px 16px; color: var(--csc-moss); margin: 20px 0; font-size: 15px; }

blockquote.quote {
  margin: 32px 0; padding: 0;
  font-size: clamp(22px, 3vw, 28px); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--csc-earth); font-weight: 500;
}
blockquote.quote footer { font-size: 15px; letter-spacing: 0; line-height: 1.5; margin-top: 12px; color: var(--csc-grass); font-weight: 700; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.chips li { margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--csc-dune); border: 1px solid var(--csc-line); color: var(--csc-moss); font-size: 15px; font-weight: 700; }

.benefits { list-style: none; padding: 0; }
.benefits li { padding: 12px 0; border-bottom: 1px solid var(--csc-line); margin: 0; }
.benefits li:last-child { border-bottom: 0; }
.benefits strong { color: var(--csc-moss); display: block; }

.principles { list-style: none; padding: 0; counter-reset: pr; }
.principles li { margin: 0 0 10px; padding-left: 38px; position: relative; }
.principles li::before {
  counter-increment: pr; content: counter(pr);
  position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--csc-moss); color: var(--csc-dune); font-size: 13px; font-weight: 700;
}

/* Overview list on home */
.overview { list-style: none; padding: 0; margin: 0; }
.overview li { margin: 0; }
.overview a {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; text-decoration: none; color: var(--csc-moss);
  background: var(--csc-dune); border: 1px solid var(--csc-line); border-radius: var(--radius-sm); margin-bottom: 8px;
}
.overview a:hover { border-color: var(--csc-grass); }
.overview .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--csc-sand); border: 1px solid var(--csc-line); color: var(--csc-grass); font-weight: 700; }
.overview a.done .n { background: var(--csc-grass); color: var(--csc-dune); border-color: var(--csc-grass); }
.overview .t { font-weight: 700; }
.overview .k { display: block; font-size: 14px; font-weight: 500; color: var(--csc-grass); }
.overview .m { color: var(--csc-grass); font-weight: 700; font-size: 15px; }

/* Facilitators */
.people { display: grid; gap: 14px; }
.person { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.person .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--csc-grass); color: var(--csc-dune); display: grid; place-items: center; font-weight: 700; letter-spacing: 0.02em; }
.person strong { display: block; color: var(--csc-moss); }
.person p { margin: 2px 0 0; font-size: 15px; }

/* Media */
.media { margin: 0 0 4px; }
.media video, .media audio { width: 100%; display: block; border-radius: var(--radius-sm); }
.media video { background: #000; aspect-ratio: 16 / 9; }
.media audio { margin-top: 6px; }
.media .label { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--csc-moss); margin-bottom: 10px; }
.media .label span:last-child { font-weight: 500; }
.media-note { font-size: 14px; margin: 10px 0 0; color: var(--csc-moss); }

/* Journal */
.journal { margin-top: 36px; }
.prompt { margin: 0 0 22px; }
.prompt label { display: block; font-weight: 700; color: var(--csc-moss); margin-bottom: 8px; }
.prompt textarea {
  width: 100%; min-height: 120px; resize: vertical;
  font: inherit; font-size: 16px; line-height: 1.55; color: var(--csc-text);
  background: var(--csc-dune); border: 1px solid var(--csc-line); border-radius: var(--radius-sm); padding: 12px 14px;
}
.prompt textarea:focus { border-color: var(--csc-grass); }
.prompt .hint { font-size: 13px; color: var(--csc-grass); margin: 6px 0 0; min-height: 1.2em; }

/* Reflections page */
.entry { margin-bottom: 18px; }
.entry .q { font-weight: 700; color: var(--csc-moss); margin: 0 0 4px; }
.entry .a { white-space: pre-wrap; margin: 0; background: var(--csc-dune); border: 1px solid var(--csc-line); border-radius: var(--radius-sm); padding: 10px 14px; }
.entry .a.empty { color: var(--csc-grass); font-style: italic; }

/* Resources */
.books { columns: 2; column-gap: 24px; list-style: none; padding: 0; }
.books li { break-inside: avoid; font-size: 15px; }
.books span { color: var(--csc-grass); }
@media (max-width: 600px) { .books { columns: 1; } }

/* Done */
.done-hero { text-align: center; padding: 64px 0 24px; }
.done-hero h1 { color: var(--csc-muted-green); font-size: clamp(40px, 8vw, 72px); letter-spacing: -0.03em; margin-bottom: 4px; }
.done-hero .sub { font-size: 22px; color: var(--csc-moss); font-weight: 700; }

/* Footer */
.foot { background: var(--csc-compost); color: var(--csc-dune); padding: 32px var(--gutter); margin-top: auto; }
.foot-inner { max-width: 960px; margin: 0 auto; font-size: 15px; }
.foot a { color: var(--csc-dune); }
.foot p { margin: 0 0 6px; }
.foot .fine { opacity: 0.8; font-size: 13px; margin-top: 14px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: 0.25s; background: var(--csc-moss); color: var(--csc-dune); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; pointer-events: none; z-index: 30; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Print: only the reflections */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .top, .rail, .foot, .toast, .no-print { display: none !important; }
  .shell { display: block; }
  .wrap { max-width: none; padding: 0; }
  .entry .a { border: 1px solid #999; background: #fff; }
  h1, h2, h3 { color: #000; }
  a { color: #000; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
