/* Way Out of Now — warm cream, deep teal, amber accents */
:root {
  --cream: #f7f1e8;
  --cream-dark: #ebe3d6;
  --paper: #fffbf5;
  --teal: #0d4f4f;
  --teal-mid: #1a6b6b;
  --teal-soft: #d4e8e8;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --amber-deep: #b45309;
  --ink: #1c1917;
  --ink-muted: #57534e;
  --border: #e7e0d4;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(13, 79, 79, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--amber-deep); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--teal); margin-top: 0; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal); color: #fff; padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0; }

/* Header / nav */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--teal); font-weight: 700;
  font-size: 1.05rem; white-space: nowrap; min-width: 0;
}
.site-logo {
  height: 44px;
  width: auto;
  max-width: min(160px, 42vw);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 600px) {
  .site-logo { height: 52px; max-width: 200px; }
}
@media (min-width: 900px) {
  .site-logo { height: 64px; max-width: 240px; }
}
.logo-wordmark {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
}
@media (max-width: 379px) {
  .logo-wordmark { display: none; } /* img alt remains for a11y */
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-mid));
  display: grid; place-items: center; color: var(--amber-soft);
  font-size: 0.85rem; flex-shrink: 0;
}
.promise-chip {
  display: none;
  font-size: 0.75rem; color: var(--ink-muted);
  background: var(--amber-soft); padding: 0.25rem 0.6rem;
  border-radius: 999px; white-space: nowrap;
}
@media (min-width: 900px) { .promise-chip { display: inline-block; } }

.nav-toggle {
  display: flex; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.4rem 0.6rem;
  cursor: pointer; color: var(--teal); font-size: 0.9rem;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem 1rem;
  flex-direction: column; gap: 0.15rem;
}
.site-nav.open { display: flex; }
@media (min-width: 900px) {
  .site-nav {
    display: flex; position: static; flex-direction: row;
    flex-wrap: wrap; border: none; padding: 0; gap: 0.15rem;
    justify-content: flex-end;
  }
}
.site-nav a {
  text-decoration: none; color: var(--ink);
  padding: 0.45rem 0.7rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: var(--teal-soft); color: var(--teal);
}

/* Layout */
main { flex: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.section { margin-bottom: 2.5rem; }
.section-label {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--amber-deep); font-weight: 600; margin-bottom: 0.35rem;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--teal) 0%, #0a3d3d 100%);
  color: #f5f0e8; padding: 2.5rem 1rem 3rem;
}
.hero .wrap { padding-top: 0; padding-bottom: 0; }
.hero h1 { color: #fff; margin-bottom: 0.75rem; }
.hero .lede { font-size: 1.1rem; opacity: 0.92; max-width: 36rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.7rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: 0.15s ease;
}
.btn-primary {
  background: var(--amber); color: #fff; border-color: var(--amber);
}
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #fff; }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-teal {
  background: var(--teal); color: #fff; border-color: var(--teal);
}
.btn-teal:hover { background: var(--teal-mid); color: #fff; }
.btn-outline {
  background: var(--paper); color: var(--teal); border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal-soft); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }
.card a.card-link {
  display: block; text-decoration: none; color: inherit; height: 100%;
}
.card a.card-link:hover h3 { color: var(--amber-deep); }
.card .tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--teal-soft); color: var(--teal);
  padding: 0.15rem 0.5rem; border-radius: 999px; margin-bottom: 0.5rem;
}

/* ZIP module */
.zip-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 420px;
}
.zip-box label { display: block; font-weight: 600; color: var(--teal); margin-bottom: 0.4rem; }
.zip-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.zip-row input {
  flex: 1; min-width: 120px; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; background: var(--cream);
}
.zip-row input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.zip-result {
  margin-top: 1rem; padding: 1rem;
  background: var(--teal-soft); border-radius: var(--radius-sm);
  display: none;
}
.zip-result.visible { display: block; }
.zip-result h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.zip-result ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--ink-muted); }
.zip-error { color: #9f1239; font-size: 0.9rem; margin-top: 0.5rem; display: none; }

/* Ad slots */
.ad-slot {
  background: var(--cream-dark);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  min-height: 90px;
  display: grid; place-items: center;
  color: var(--ink-muted); font-size: 0.8rem;
  margin: 1.5rem 0; padding: 1rem; text-align: center;
}
.ad-slot.leaderboard { min-height: 90px; }
.ad-slot.rectangle { min-height: 250px; max-width: 336px; margin-left: auto; margin-right: auto; }
.ad-slot.sidebar { min-height: 250px; }

/* Article / prose */
.prose { max-width: 720px; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { color: var(--ink-muted); }
.article-meta {
  font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 1rem;
}
.article-card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.article-card h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.sources { font-size: 0.85rem; color: var(--ink-muted); margin-top: 1rem; }
.sources a { word-break: break-word; }
.editorial-note {
  background: var(--amber-soft); border-left: 4px solid var(--amber);
  padding: 0.85rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem; margin-bottom: 1.5rem;
}

/* Tables / lists */
.simple-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.simple-table th, .simple-table td {
  text-align: left; padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.simple-table th { background: var(--teal-soft); color: var(--teal); font-weight: 600; }
.dir-list { list-style: none; padding: 0; margin: 0; }
.dir-list li {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin-bottom: 0.75rem;
}
.dir-list strong { color: var(--teal); display: block; margin-bottom: 0.2rem; }

/* Footer */
.site-footer {
  background: var(--teal); color: rgba(255,255,255,0.85);
  padding: 2rem 1rem 1.5rem; margin-top: auto;
  font-size: 0.9rem;
}
.site-footer a { color: var(--amber-soft); }
.site-footer .wrap { padding-top: 0; padding-bottom: 0; }
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: 0.35rem; }
.footer-disclaimer {
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem; opacity: 0.85; line-height: 1.5;
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.35rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* Stack teaser */
.stack-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
}
.stack-item:last-child { border-bottom: none; }
.stack-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--amber); color: #fff; font-weight: 700;
  font-size: 0.85rem; display: grid; place-items: center; flex-shrink: 0;
}

/* Utility */
.muted { color: var(--ink-muted); }
.mt-0 { margin-top: 0; }
.mb-1 { margin-bottom: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Homepage help picker — "What do you need help with today?" */
.help-picker { margin-top: 0.5rem; }
.help-picker h2 { margin-bottom: 0.35rem; }
.help-picker-lede { color: var(--ink-muted); font-size: 1.05rem; margin: 0 0 1.25rem; max-width: 40rem; }
.help-picker-note { font-size: 0.9rem; margin: 1rem 0 0; }
.help-doors {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 600px) { .help-doors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .help-doors { grid-template-columns: repeat(3, 1fr); } }
.help-door {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.help-door:hover, .help-door:focus-within {
  border-color: var(--teal-mid);
  box-shadow: 0 4px 18px rgba(13, 79, 79, 0.14);
}
.help-door h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.help-door > p { margin: 0 0 0.85rem; color: var(--ink-muted); font-size: 0.95rem; }
.help-door--urgent {
  border: 2px solid var(--teal);
  border-top: 6px solid var(--amber);
  background: linear-gradient(180deg, var(--amber-soft) 0%, var(--paper) 55%);
}
.help-door--urgent:hover, .help-door--urgent:focus-within { border-color: var(--teal); border-top-color: var(--amber-deep); }
.help-door-badge {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--teal); color: #fff;
  padding: 0.18rem 0.6rem; border-radius: 999px; margin-bottom: 0.55rem;
}
.help-door-links { list-style: none; margin: auto 0 0; padding: 0; }
.help-door-links li + li { border-top: 1px solid var(--border); }
.help-door-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  min-height: 44px; padding: 0.55rem 0.4rem;
  font-weight: 600; color: var(--teal); text-decoration: none;
  border-radius: var(--radius-sm);
}
.help-door-links a:hover { background: var(--teal-soft); color: var(--teal); }
.help-door-links a:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px;
  background: var(--teal-soft); color: var(--teal);
}
.help-door-arrow { flex-shrink: 0; color: var(--amber-deep); transition: transform 0.15s ease; }
.help-door-links a:hover .help-door-arrow,
.help-door-links a:focus-visible .help-door-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .help-door, .help-door-arrow { transition: none; }
  .help-door-links a:hover .help-door-arrow,
  .help-door-links a:focus-visible .help-door-arrow { transform: none; }
}

/* Hero trust strip — only claims true of the static site */
.trust-strip {
  list-style: none; margin: 1.75rem 0 0; padding: 1rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.9rem; color: rgba(255,255,255,0.88);
}
.trust-strip li { display: flex; align-items: center; gap: 0.45rem; }
.trust-tick {
  display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem;
  border-radius: 50%; background: rgba(254,243,199,0.18); color: var(--amber-soft);
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.trust-strip a { color: var(--amber-soft); }
.trust-strip a:hover { color: #fff; }
@media (max-width: 599px) {
  .trust-strip { flex-direction: column; gap: 0.4rem; }
}

/* Mobile jump link to the picker */
.hero-jump {
  display: none; margin-top: 1rem; color: var(--amber-soft);
  font-weight: 600; text-underline-offset: 3px;
}
.hero-jump:hover { color: #fff; }
@media (max-width: 899px) { .hero-jump { display: inline-block; } }
#help-picker { scroll-margin-top: 90px; }

/* Newest playbooks (auto from GUIDES) */
.fresh-list {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 760px) { .fresh-list { grid-template-columns: repeat(3, 1fr); } }
.fresh-card a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.fresh-card a:hover { border-color: var(--teal-mid); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,79,79,0.14); }
.fresh-card a:hover h3 { color: var(--amber-deep); }
.fresh-card .tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; background: var(--teal-soft); color: var(--teal);
  padding: 0.15rem 0.5rem; border-radius: 999px; margin-bottom: 0.5rem;
}
.fresh-new {
  align-self: flex-start; margin: -0.2rem 0 0.5rem; font-size: 0.72rem; font-weight: 700;
  color: var(--amber-deep); text-transform: uppercase; letter-spacing: 0.05em;
}
.fresh-card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.fresh-card p { margin: 0 0 0.85rem; color: var(--ink-muted); font-size: 0.93rem; }
.fresh-cta { margin-top: auto; font-weight: 600; color: var(--teal-mid); }
.fresh-more { margin: 1rem 0 0; font-weight: 600; }

/* Brand moment */
.brand-moment {
  margin: 0 0 2.5rem; padding: 2.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--teal-soft);
  border-left: 6px solid var(--amber);
  text-align: left;
}
.brand-line {
  margin: 0 0 0.6rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.8rem, 5vw, 2.9rem); line-height: 1.1;
  font-weight: 700; color: var(--teal); letter-spacing: -0.01em;
}
.brand-sub { margin: 0 0 1.25rem; color: var(--ink-muted); font-size: 1.05rem; max-width: 36rem; }
.brand-cta { margin: 0; }

/* Shared focus + motion polish */
.btn:focus-visible,
.card a.card-link:focus-visible,
.fresh-card a:focus-visible,
.hero-jump:focus-visible,
.fresh-more a:focus-visible,
.trust-strip a:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px;
}
.card { transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.card:has(a.card-link):hover, .card:has(a.card-link:focus-visible) {
  border-color: var(--teal-mid); box-shadow: 0 4px 18px rgba(13,79,79,0.14);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .fresh-card a { transition: none; }
  .fresh-card a:hover { transform: none; }
}

/* Header fit fix (2026-10-08): brand never truncates; nav fits one line at 1280 */
.logo { flex-shrink: 0; }
.promise-chip { display: none !important; } /* promise already lives in hero + footer */
@media (min-width: 900px) {
  .header-inner { gap: 1.25rem; }
  .site-logo { height: 56px; max-width: 200px; }
  .logo-wordmark { font-size: 1.05rem; }
  .site-nav { flex: 1 1 auto; min-width: 0; gap: 0.1rem; }
  .site-nav a { padding: 0.4rem 0.5rem; font-size: 0.88rem; white-space: nowrap; }
}
@media (min-width: 1200px) {
  .site-nav { flex-wrap: nowrap; }
  .site-nav a { padding: 0.4rem 0.6rem; }
}
.site-nav a:focus-visible, .nav-toggle:focus-visible, .logo:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px;
}

/* Privacy policy page */
.policy-toc {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 0 0 1.75rem; max-width: 720px; box-shadow: var(--shadow);
}
.policy-toc strong { color: var(--teal); display: block; margin-bottom: 0.4rem; }
.policy-toc ul { margin: 0; padding-left: 1.2rem; columns: 2 16rem; column-gap: 2rem; }
.policy-toc li { margin-bottom: 0.25rem; break-inside: avoid; }
.policy-toc a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.policy h2 { margin-top: 2rem; scroll-margin-top: 90px; }
.policy ul { padding-left: 1.2rem; }
.policy li { margin-bottom: 0.4rem; }
.policy code { background: var(--cream-dark); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.9em; }

/* Newsletter signup (homepage) */
.newsletter-card {
  background: linear-gradient(160deg, var(--teal) 0%, #0a3d3d 100%);
  color: #f5f0e8; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem 1.5rem; text-align: center;
}
.newsletter-card .section-label { color: var(--amber-soft); }
.newsletter-card h2 { color: #fff; margin: 0.25rem 0 0.4rem; }
.newsletter-sub { color: var(--teal-soft); margin: 0 0 1.25rem; font-size: 1.05rem; }
.newsletter-form { max-width: 520px; margin: 0 auto; text-align: left; }
.newsletter-form label { display: block; font-weight: 600; color: #fff; margin-bottom: 0.4rem; }
.newsletter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.newsletter-row input {
  flex: 1 1 240px; min-width: 0; padding: 0.75rem 0.95rem; font: inherit; font-size: 1rem;
  border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
}
.newsletter-row input:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-color: var(--amber); }
.newsletter-row .btn { flex: 0 0 auto; }
.newsletter-row .btn:disabled { opacity: 0.7; cursor: progress; }
@media (max-width: 479px) { .newsletter-row .btn { flex: 1 1 100%; } }
.newsletter-status { margin: 0.75rem auto 0; max-width: 520px; font-weight: 600; min-height: 1px; }
.newsletter-status:empty { margin: 0; }
.newsletter-status:focus { outline: none; }
.newsletter-status.is-ok { color: var(--amber-soft); font-size: 1.05rem; }
.newsletter-status.is-error { color: #fde2e2; }
.newsletter-fine { font-size: 0.85rem; color: var(--teal-soft); margin: 1rem 0 0; }
.newsletter-fine a { color: var(--amber-soft); }
.newsletter-fine a:hover { color: #fff; }
.newsletter-fine a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
