/* neighbornature landing — news-magazine direction (variant B from design-shotgun).
 *
 * Palette
 *   #FAFAF7  warm neutral background
 *   #1A1A1A  deep charcoal text
 *   #B7361A  oxidized red, single editorial accent
 *   #E5E3DC  hairline rules
 *   #6B6B66  muted secondary text
 *
 * Type
 *   DM Serif Display  display serif headlines (didone-style)
 *   Inter             humanist sans body
 *   JetBrains Mono    monospace stat numerals
 */

:root {
  --bg: #fafaf7;
  --ink: #1a1a1a;
  --accent: #b7361a;
  --rule: #e5e3dc;
  --muted: #6b6b66;
  --max: 1140px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- ISSUE GRID ---------- */

.issue {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 40px 80px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "masthead   masthead"
    "lead       stats"
    "pullquote  subscribe";
  column-gap: 56px;
  row-gap: 48px;
}

.masthead {
  grid-area: masthead;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__brand {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
}

/* ---------- LEAD STORY ---------- */

.lead {
  grid-area: lead;
  min-width: 0;
}

.lead__headline {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 28px 0;
}

.lead__headline--accent {
  color: var(--accent);
  font-style: italic;
}

.lead__byline {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px 0;
}

.lead__body {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  max-width: 56ch;
}

.dropcap {
  float: left;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 78px;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--ink);
}

/* ---------- STAT COLUMN ---------- */

.stats {
  grid-area: stats;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 1px solid var(--rule);
  padding-left: 32px;
}

.stat__num {
  display: block;
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  font-weight: 700;
  font-size: clamp(48px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.stat__num small {
  font-size: 0.4em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 2px;
  color: var(--muted);
}

.stat__label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}

/* ---------- PULL QUOTE ---------- */

.pullquote {
  grid-area: pullquote;
  margin: 0;
  padding: 32px 0 0 0;
  border-top: 1px solid var(--rule);
  font-family: "DM Serif Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  align-self: end;
}

/* ---------- SUBSCRIBE PANEL ---------- */

.subscribe {
  grid-area: subscribe;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  align-self: end;
}

.subscribe__label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.subscribe__form {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "email zip"
    "cta   cta"
    "note  note"
    "fine  fine";
  column-gap: 16px;
  row-gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field:first-of-type {
  grid-area: email;
}

.field--zip {
  grid-area: zip;
  width: 84px;
}

.field label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 6px 0 8px 0;
  font-family: "Inter", sans-serif;
  font-size: 16px; /* ≥16px prevents iOS zoom on focus */
  line-height: 1.2;
  color: var(--ink);
  outline: none;
  transition: border-color 120ms ease;
}

.field input:focus {
  border-bottom-color: var(--accent);
  border-bottom-width: 2px;
  padding-bottom: 7px;
}

.field input:invalid:not(:placeholder-shown) {
  border-bottom-color: var(--accent);
}

.subscribe__cta {
  grid-area: cta;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--bg);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.subscribe__cta:hover {
  background: #962a13;
}

.subscribe__cta:active {
  transform: translateY(1px);
}

.subscribe__cta:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

.subscribe__note {
  grid-area: note;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  min-height: 1em;
  color: var(--ink);
}

.subscribe__note[data-state="error"] {
  color: var(--accent);
}

.subscribe__note[data-state="success"] {
  color: #2c5a1f;
}

.subscribe__fineprint {
  grid-area: fine;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- COLOPHON ---------- */

.colophon {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 40px 40px;
  border-top: 1px solid var(--rule);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.colophon a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 820px) {
  .issue {
    grid-template-columns: 1fr;
    grid-template-areas:
      "masthead"
      "lead"
      "stats"
      "pullquote"
      "subscribe";
    padding: 40px 24px 64px;
    column-gap: 0;
    row-gap: 40px;
  }

  .stats {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 32px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 40px;
  }

  .stat {
    flex: 1 1 30%;
    min-width: 120px;
  }

  .stat__num {
    font-size: 44px;
  }

  .lead__headline {
    font-size: clamp(36px, 9vw, 56px);
  }

  .pullquote {
    font-size: 22px;
  }

  .subscribe__form {
    grid-template-columns: 1fr 84px;
  }
}

@media (max-width: 440px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
  }
}
