/* TalkHere palette: one core (indigo night + cream) plus one accent (amber lamp).
   Light is the default theme; the dark theme is the same system inverted, softened
   so late-night reading does not glare. */
:root {
  --bg: #faf6ee;
  --panel: #f1e8d8;
  --active: #ffffff;
  --text: #2a2740;
  --muted: #5c5677;
  --link: #8a5410;
  --fill: #c98a3f;
  --ink: #1a1728;
  --warn: #a1552f;
  --warn-ink: #7a3e1e;
  --warn-soft: rgba(161, 85, 47, 0.1);
  --border: #e2d6c0;
  --glow: rgba(201, 138, 63, 0.22);
  --shadow: 0 1px 2px rgba(42, 39, 64, 0.06);
  --float: 0 8px 24px rgba(42, 39, 64, 0.1);
  --radius-card: 14px;
  --radius-ctl: 999px;
  --measure: 46rem;
  --serif: "Fraunces", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #20222f;
  --panel: #292c3d;
  --active: #333756;
  --text: #ded7c8;
  --muted: #aea9bd;
  --link: #dca75a;
  --fill: #dca75a;
  --ink: #20222f;
  --warn: #cb8b64;
  --warn-ink: #e7bf9c;
  --warn-soft: rgba(203, 139, 100, 0.14);
  --border: #353a50;
  --glow: rgba(226, 178, 106, 0.13);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  --float: 0 10px 28px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--link);
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.15em;
}
.skip-link {
  position: absolute;
  left: -100vw;
  top: 0;
  background: var(--panel);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 0;
  z-index: 20;
}
.skip-link:focus {
  left: 0;
}

/* Topbar centers a deck that hugs its content, so there is no stretched empty gap. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.7rem clamp(0.7rem, 2.5vw, 1.4rem);
}
.deck {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.4rem 0.55rem 0.4rem 1.05rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  box-shadow: var(--float);
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}
.wordmark .lamp {
  color: var(--link);
}

.nav-deck {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-deck a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-ctl);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-deck a:hover {
  color: var(--text);
}
.nav-deck a[aria-current="page"] {
  background: var(--active);
  color: var(--text);
  box-shadow: var(--shadow);
}

.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--active);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}
.js .theme-toggle {
  display: inline-flex;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--link);
}
.theme-toggle .swap {
  display: inline-flex;
}
.theme-toggle .swap.sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .swap.sun {
  display: inline-flex;
}
:root[data-theme="dark"] .theme-toggle .swap.moon {
  display: none;
}

@media (max-width: 760px) {
  .deck {
    gap: 0.5rem;
    padding-left: 0.9rem;
    border-radius: 1.1rem;
  }
  .nav-deck a {
    padding: 0.5rem;
  }
  .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(2.2rem, 6vw, 4.2rem) clamp(1rem, 4vw, 2rem) clamp(1.8rem, 4vw, 3rem);
}
/* The one lamp: a single warm glow behind the headline, the brand's whole motif. */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4rem;
  width: min(52rem, 120vw);
  height: 30rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
}
.hero > * {
  position: relative;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 auto;
  max-width: 20ch;
}
.lede {
  max-width: 38rem;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 1.12rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.9rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-ctl);
  padding: 0.8rem 1.5rem;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--fill);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--link);
}
.btn-ghost {
  color: var(--link);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--link);
}
.fineprint {
  max-width: 34rem;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 4vw, 2rem);
}
.section.wide {
  max-width: 58rem;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.section p {
  margin: 0 0 0.9rem;
}
.section p:last-child {
  margin-bottom: 0;
}
/* Justified reading text. Hyphenation keeps the word gaps from opening up. */
.section p,
.prose p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.closing {
  margin-top: 1.2rem;
  font-weight: 600;
}

.wholist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.wholist li {
  position: relative;
  padding-left: 1.4rem;
}
.wholist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--link);
}

/* A plain numbered sequence, not the round-icon card grid. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.steps li {
  position: relative;
  padding-left: 2.8rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--link);
}
.steps strong {
  display: block;
}
.note {
  margin-top: 1.2rem;
  padding: 0.85rem 1.05rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  color: var(--muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.2rem 1.3rem;
}
.panel h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.7rem;
}
.panel ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.quote {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  line-height: 1.4;
}
.quote cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-size: 1rem;
  color: var(--muted);
}
.quote .more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.cta {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  padding: clamp(1.8rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
}
.cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin: 0 0 0.3rem;
}
.cta .lede {
  margin-top: 0;
}
.cta .actions {
  margin-top: 1.5rem;
}

/* Compact footer: less height, tighter rows, smaller type. */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding: 1.1rem clamp(1rem, 4vw, 2rem) 0.8rem;
}
.footer-grid {
  display: grid;
  gap: 0.6rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  max-width: 56rem;
  margin: 0 auto;
}
.footer-grid h3 {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}
.footer-grid a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
}
.footer-grid a:hover {
  color: var(--text);
}
.safety {
  display: flex;
  gap: 0.5rem;
  max-width: 56rem;
  margin: 0.9rem auto 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--warn);
  background: var(--warn-soft);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}
.safety .icon {
  margin-top: 0.1rem;
  color: var(--warn-ink);
}
.safety strong {
  display: block;
  color: var(--warn-ink);
}
.safety p {
  margin: 0.15rem 0 0;
}
.copyright {
  max-width: 56rem;
  margin: 0.7rem auto 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.8rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem) 2.2rem;
}
.prose h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
}
.prose .subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.8rem;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  margin: 1.8rem 0 0.45rem;
}
.prose p {
  margin: 0 0 1rem;
}
.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}
.prose .signature {
  margin-top: 1.8rem;
  font-family: var(--serif);
  font-size: 1.18rem;
}
.help-note {
  border: 1px solid var(--warn);
  background: var(--warn-soft);
  border-radius: var(--radius-card);
  padding: 0.9rem 1.1rem;
  margin: 1.3rem 0;
}
.help-note p {
  margin: 0.35rem 0 0;
}
.help-note a {
  font-weight: 700;
}

.help-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.help-list li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1rem 1.15rem;
}
.help-list .service {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}
.help-list .service .icon {
  color: var(--link);
}
.help-list .num {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--link);
}

/* Entrance motion only, and only when JS runs and the visitor allows motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
