/* Palo Alto Minute — shared design tokens and components
   Palette derived from the Peninsula at 7am: live-oak green, dry-hills gold,
   bay fog, warm paper. Not decorative — these are the colors of the place. */

:root {
  --ink:      #141A16;   /* redwood shade — near-black with green in it */
  --ink-2:    #3C4A42;
  --paper:    #FCFAF6;
  --white:    #FFFFFF;
  --oak:      #1F5E3F;   /* coast live oak, the primary */
  --oak-deep: #143F2A;
  --gold:     #D99A2B;   /* the hills, June through October */
  --fog:      #7C8B86;
  --rule:     #E4DED2;
  --rule-soft:#EFEAE0;

  /* One family, everywhere. Inter — the default across local newsletters
     (6AM City uses it for body); neutral and legible from 11px to 80px. */
  --display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --measure: 34rem;
  --gutter: 1.375rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
}

img { max-width: 100%; display: block; }

/* ── Masthead ─────────────────────────────────────────────── */
.masthead {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1.125rem var(--gutter);
}

.mark {
  width: 1.5rem; height: 1.5rem;
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

/* ── Type ─────────────────────────────────────────────────── */
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 8.5vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -0.031em;
  text-wrap: balance;
}

.deck {
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 26rem;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--oak);
}

/* ── Subscribe form ───────────────────────────────────────── */
.signup { max-width: 25rem; }

.field-row {
  display: flex;
  gap: .4375rem;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.signup input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;              /* 16px — anything smaller zooms on iOS */
  padding: .875rem .9375rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: .5rem;
  transition: border-color .14s ease;
}

.signup input[type="email"]::placeholder { color: var(--fog); }
.signup input[type="email"]:focus { outline: none; border-color: var(--oak); }
.signup input[type="email"]:focus-visible { outline: 2px solid var(--oak); outline-offset: 1px; }

.signup button {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: .875rem 1.25rem;
  color: var(--white);
  background: var(--oak);
  border: 1.5px solid var(--oak);
  border-radius: .5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .14s ease;
}

.signup button:hover { background: var(--oak-deep); border-color: var(--oak-deep); }
.signup button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.signup button[disabled] { opacity: .55; cursor: progress; }

.proof {
  margin-top: .6875rem;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--fog);
}

.form-msg {
  margin-top: .625rem;
  font-size: .875rem;
  line-height: 1.4;
  min-height: 1.25rem;
}
.form-msg[data-state="ok"]  { color: var(--oak); font-weight: 500; }
.form-msg[data-state="err"] { color: #A6341F; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--fog);
}

footer a { color: var(--fog); }

.towns { max-width: 38rem; margin-inline: auto; padding-inline: var(--gutter); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
