/* Live Stream Playbook: calm sage, sand, off-white. System fonts only. */
:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --sand: #efe8da;
  --sand-deep: #e3d8c3;
  --sage: #8aa592;
  --sage-soft: #e3ebe2;
  --sage-deep: #4a6653;
  --ink: #26302a;
  --muted: #5a645d;
  --line: rgba(38, 48, 42, 0.12);
  --shadow: 0 1px 2px rgba(38, 48, 42, 0.05), 0 8px 24px rgba(38, 48, 42, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --btn-text: #ffffff;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #151916;
  --surface: #1d231f;
  --sand: #24261f;
  --sand-deep: #33342b;
  --sage: #8fb09a;
  --sage-soft: #223029;
  --sage-deep: #a9c9b3;
  --ink: #e8ece6;
  --muted: #b1bbb3;
  --line: rgba(232, 236, 230, 0.13);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --btn-text: #132018;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}
a { color: var(--sage-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--sage-deep) url("/playbook/favicon.svg") center / cover no-repeat; flex: none; }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.theme-switch button[aria-checked="true"] { background: var(--sage-soft); color: var(--sage-deep); }
.theme-ico svg { width: 16px; height: 16px; display: block; }

/* Type */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: .2rem 0 .8rem; font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin: 2.6rem 0 .8rem; font-weight: 680; }
h3 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; font-weight: 650; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 650; color: var(--sage-deep); margin: 0; }
.lede { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 40rem; }
.back { margin: 2.2rem 0 1.4rem; font-size: .95rem; }
.back a { text-decoration: none; font-weight: 600; }
.back a:hover { text-decoration: underline; }
.back-bottom { margin: 1.5rem 0 0; }

/* Prose */
.prose { padding-bottom: 1rem; }
.prose p, .prose li { max-width: 42rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose strong { font-weight: 650; }
.note { background: var(--sage-soft); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.note p { margin: .3rem 0; }
.note-strong { background: var(--sand); border: 1px solid var(--sand-deep); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 1.6rem 0; }
.note-strong h3 { margin-top: 0; }
.pull-quote { margin: 1.8rem 0; padding: 0; border: 0; max-width: 42rem; }
.pull-quote blockquote {
  margin: 0;
  padding: 1.15rem 1.35rem 1.15rem 1.45rem;
  border-left: 4px solid var(--sage-deep);
  background: var(--sage-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pull-quote p {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: none;
}
.source { font-size: .9rem; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin: 1rem 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: .1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { margin: .45rem 0; }
.checklist label { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.checklist input { width: 1.15rem; height: 1.15rem; margin-top: .35rem; accent-color: var(--sage-deep); flex: none; }
.two-col { display: grid; gap: 1rem; margin: 1.2rem 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.panel h3 { margin-top: 0; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Home */
.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 2.5rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); max-width: 16ch; }
.hero .lede { font-size: 1.25rem; }
.hero-actions, .invite-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.intro { display: grid; gap: 1.2rem; padding: 0 0 1rem; }
.intro p { margin: 0; max-width: 44rem; }
.cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.35rem 1.2rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--sage); }
.card-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--sage-soft); color: var(--sage-deep); font-weight: 700; font-size: .9rem; }
.card h3 { margin: .9rem 0 .35rem; font-size: 1.15rem; }
.card p { margin: 0 0 1rem; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.card .go { margin-top: auto; font-weight: 600; color: var(--sage-deep); font-size: .95rem; }
.section-band { background: var(--sand); border-block: 1px solid var(--sand-deep); padding: 3rem 0; margin-top: 3rem; }
.section-band h2 { margin-top: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.15rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-solid { background: var(--sage-deep); color: var(--btn-text); }
.btn-solid:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--sage-deep); border-color: color-mix(in srgb, var(--sage-deep) 45%, transparent); }
.btn-ghost:hover { background: var(--sage-soft); }

/* Invite, V4V */
.invite, .v4v { border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem; margin: 2.2rem 0 0; }
.invite { background: var(--sage-soft); }
.v4v { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.invite h2, .v4v h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.invite p, .v4v p { margin: 0 0 1rem; }

/* Pager */
.pager { display: grid; gap: .8rem; grid-template-columns: 1fr; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; text-decoration: none; font-weight: 600; color: var(--ink); }
.pager a:hover { border-color: var(--sage); }
.pager span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.pager-next { text-align: right; }

/* Contact */
.contact { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: grid; gap: .9rem; }
.form label { font-weight: 600; font-size: .95rem; display: grid; gap: .35rem; }
.form input, .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; width: 100%; }
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.flash { border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 0; font-weight: 600; }
.flash-ok { background: var(--sage-soft); color: var(--sage-deep); }
.flash-err { background: var(--sand); color: var(--ink); border: 1px solid var(--sand-deep); }

/* Footer */
.site-foot { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--surface); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 2rem 0 2.4rem; }
.foot-row p { margin: 0; max-width: 46rem; color: var(--muted); font-size: .95rem; }

/* Dialog */
dialog { width: min(640px, 100% - 2rem); max-height: 85vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.3rem; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20, 26, 22, .45); }
dialog h2 { margin-top: 0; }
dialog h3 { margin-top: 1.3rem; font-size: 1.05rem; }
dialog p { margin: .4rem 0; font-size: .98rem; }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 1.2rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Pager buttons: dark green with light text, both themes */
.pager a, html[data-theme="dark"] .pager a { background: #4a6653; border-color: #4a6653; color: #f7f5ef; }
.pager a:hover, html[data-theme="dark"] .pager a:hover { background: #3f5a48; border-color: #3f5a48; color: #f7f5ef; }
.pager a span, html[data-theme="dark"] .pager a span { color: #dfe8de; }

/* How this works button: dark green with light text, both themes */
.how-btn, html[data-theme="dark"] .how-btn { background: #4a6653; border-color: #4a6653; color: #f7f5ef; }
.how-btn:hover, html[data-theme="dark"] .how-btn:hover { background: #3f5a48; border-color: #3f5a48; color: #f7f5ef; }

/* Give Value for Value button: dark green with light text, both themes */
.v4v .btn, html[data-theme="dark"] .v4v .btn { background: #4a6653; border-color: #4a6653; color: #f7f5ef; }
.v4v .btn:hover, html[data-theme="dark"] .v4v .btn:hover { background: #3f5a48; border-color: #3f5a48; color: #f7f5ef; }
