/* citizensforgarfieldheights.com: coming soon. Mobile first; system fonts (no downloads); light + dark. */
:root {
  --bg: #f7f5f0;
  --ink: #16181d;
  --muted: #555b66;      /* 6.6:1 on --bg */
  --line: #d9d5cc;
  --accent: #8a4b00;     /* 6.4:1 on --bg */
  --focus: #1f5fd1;
  --btn-bg: #16181d;
  --btn-ink: #f7f5f0;
  --sky-top: #1b2140;
  --sky-bottom: #c9785a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161c;
    --ink: #eceae4;
    --muted: #a7acb6;    /* 7.9:1 on --bg */
    --line: #2c303a;
    --accent: #f2b45c;   /* 9.6:1 on --bg */
    --focus: #8ab4ff;
    --btn-bg: #eceae4;
    --btn-ink: #14161c;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  flex: 1 0 auto;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 9vh, 6rem) 1rem 2rem;
}
.wrap--narrow { max-width: 40rem; }

.title {
  margin: 0 0 clamp(1.75rem, 5vh, 3rem);
  font-weight: 650;
  font-size: clamp(1.9rem, 8.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.domain { display: block; overflow-wrap: anywhere; }
.soon {
  display: block;
  margin-top: 0.35em;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.soon::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.3em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.08em;
}

.lede { font-size: 1.125rem; margin: 0 0 1rem; color: var(--muted); }

a { color: var(--ink); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- the toy ---------- */
.toy { margin: 0; }

.skyline {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  /* what you see before (or without) JavaScript: the same dusk sky the script paints */
  background: linear-gradient(to bottom, var(--sky-top), #4a3a66 55%, var(--sky-bottom) 95%, #080a14 95%);
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 40rem) {
  .skyline { aspect-ratio: 1000 / 420; }
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.875rem;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  visibility: hidden;      /* space reserved (no layout shift); shown when the script runs */
}
.js .controls { visibility: visible; }
.controls p { margin: 0; }
.hint { flex: 1 1 16rem; }
.count { font-variant-numeric: tabular-nums; white-space: nowrap; }

.reset {
  min-height: 2.75rem;     /* 44px target */
  min-width: 2.75rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.reset:hover { opacity: 0.88; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.foot {
  flex: 0 0 auto;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.foot p { margin: 0; border-top: 1px solid var(--line); padding-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
