:root {
  color-scheme: light;
  --bg: #f3efe6;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: #e3dacb;
  --card: #fffdf8;
  --green: #1b4332;
  --on-green: #f7f4ee;
  --green-hover: #143528;
  --copper: #8d4324;
  --pill-bg: #e6f2eb;
  --pill-ink: #1b4332;
  --soft: #f7f3eb;
  --banner-bg: #f3e2c8;
  --banner-ink: #5c3416;
  --shadow: 0 16px 40px rgba(70, 48, 16, 0.06);
  --skeleton-a: #efe8dc;
  --skeleton-b: #f7f3eb;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12110f;
    --ink: #f4f0e6;
    --muted: #c9c0b3;
    --line: #3a342c;
    --card: #1c1915;
    --green: #d7efe2;
    --on-green: #10241b;
    --green-hover: #edf8f2;
    --copper: #e0a58a;
    --pill-bg: #1e3329;
    --pill-ink: #d7efe2;
    --soft: #26221c;
    --banner-bg: #3a2a1c;
    --banner-ink: #f3e2c8;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    --skeleton-a: #26221c;
    --skeleton-b: #322c25;
  }

  body {
    background:
      radial-gradient(900px 280px at 0% -10%, rgba(215, 239, 226, 0.08), transparent 55%),
      var(--bg);
  }

  .mark rect { fill: #d7efe2; }
  .mark circle,
  .mark path { stroke: #10241b; }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 280px at 0% -10%, rgba(226, 206, 168, 0.45), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.5;
}

body,
.skip {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

::selection {
  background: #d7efe2;
  color: #10241b;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--green);
  color: var(--on-green);
  text-decoration: none;
}

.skip:focus { top: calc(0.75rem + env(safe-area-inset-top)); }

.wrap {
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(1.4rem + env(safe-area-inset-top)) 0 calc(2.5rem + env(safe-area-inset-bottom));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mark {
  width: 48px;
  height: 48px;
  flex: none;
}

.eyebrow,
.city {
  margin: 0;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 { font-size: clamp(2rem, 6vw, 2.7rem); }

.lede {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: 1.06rem;
  text-wrap: pretty;
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  min-height: 1.8rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.updated { font-size: 0.92rem; }

.note {
  flex-basis: 100%;
  color: var(--copper);
  font-size: 0.92rem;
}

.note:empty { display: none; }

.board {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.15rem;
}

.banner {
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: var(--banner-bg);
  color: var(--banner-ink);
}

.leads {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card,
.panel {
  padding: 1.15rem 1.15rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card { border-top: 3px solid var(--green); }

.card h2 { margin-top: 0.2rem; font-size: 1.85rem; }

.problem {
  display: -webkit-box;
  margin: 0.85rem 0 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.45;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.when {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.action { margin-top: 1.05rem; }

.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--on-green);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.buy:hover { background: var(--green-hover); }

.buy:focus-visible,
.skip:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.buy.is-disabled {
  border: 1px dashed var(--line);
  background: var(--soft);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}

.panel h2 { font-size: 1.7rem; }

.panel p { margin: 0.75rem 0 0; text-wrap: pretty; }

.panel .buy { margin-top: 1.1rem; }

.columns {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--soft);
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.steps {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
}

.steps li { margin: 0.4rem 0; }

.privacy { color: var(--muted); font-size: 0.95rem; }

.skeleton {
  height: 9.5rem;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--skeleton-a) 25%, var(--skeleton-b) 50%, var(--skeleton-a) 75%);
  background-size: 200% 100%;
  animation: shine 1.2s ease infinite;
}

.site-footer {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.problem,
.city,
h1,
h2 { overflow-wrap: anywhere; }

@media (min-width: 640px) {
  .buy { width: auto; min-width: 220px; }
  .card, .panel { padding: 1.3rem 1.35rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

@keyframes shine {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
