/*
 *  THE ONE IDEA
 *  A numbered government bulletin rendered in HTML. Each section is an article
 *  in a legal code. Rules do the work of hierarchy. Type does the work of authority.
 *
 *  TYPEFACE RATIONALE
 *  Georgia carries the institutional register — it is the only web-safe serif with
 *  real authority and it prints beautifully. System-ui for body creates a deliberate
 *  contrast: headlines are editorial, body is neutral, like a newspaper front page.
 *  Courier New for country tags reads as field dispatch, primary-source material.
 *
 *  SCALE
 *  Hero: clamp(2.8rem, 7vw, 6rem) all-caps Georgia, tracking -0.025em, leading 0.92.
 *  Body: clamp(0.95rem, 1vw + 0.5rem, 1.1rem) system-ui, leading 1.65.
 *  Rules: 1px body, 1px section, 4px hero — a system of three weights.
 *
 *  THE DECISION I WOULD DEFEND HARDEST
 *  All-caps Georgia at nearly 6rem with negative tracking. Conventional wisdom says
 *  all-caps at display size is illegible. But the headline is not here to be read
 *  quickly — it is here to establish register before a single word is processed.
 *  The subhead beneath it, in restrained body text, provides every bit of readability
 *  anyone needs. The tension between the monumental and the legible is the page's
 *  entire argument.
 */

/* ---------------------------------------------------------------------------
   Custom properties
   ------------------------------------------------------------------------- */

:root {
  --bg: #f4f0e9;
  --text: #1c1815;
  --copper: #8b4d17;
  --copper-hover: #6e3d12;
  --copper-light: #c47a3b;
  --rule-light: #d5cec3;
  --rule-strong: #b0a695;
  --field-bg: #ede7de;
  --field-border: #c8c0b4;
  --muted: #6b6560;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', 'DejaVu Serif', serif;
  --mono: 'Courier New', Courier, 'DejaVu Sans Mono', monospace;
}

/* ---------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.1rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

hr {
  margin: 0;
}

ul {
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--copper-hover);
}

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

/* ---------------------------------------------------------------------------
   Focus states
   ------------------------------------------------------------------------- */

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

input:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 0;
  border-color: var(--copper);
}

button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Utilities
   ------------------------------------------------------------------------- */

.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;
}

.honeypot {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.honeypot label,
.honeypot input {
  display: block;
  height: 0;
}

/* ---------------------------------------------------------------------------
   Masthead
   ------------------------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule-light);
  padding: 1.25rem 0;
}

.masthead-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.masthead-logo {
  display: block;
  text-decoration: none;
  color: inherit;
}

.masthead-logo img {
  display: block;
  height: 24px;
  width: auto;
}

.masthead-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   Main container
   ------------------------------------------------------------------------- */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0 0;
}

.hero-rule {
  border: none;
  height: 4px;
  background: var(--copper);
  width: 40%;
  max-width: 200px;
  margin: clamp(1.25rem, 3vw, 2rem) auto;
}

.hero-subhead {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
}

/* ---------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */

.section {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule-strong);
}

.section:first-of-type {
  border-top-color: var(--copper);
  border-top-width: 2px;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

.section-num {
  color: var(--copper);
  margin-right: 0.35em;
}

.section-rule {
  border: none;
  height: 1px;
  background: var(--rule-light);
  margin: 0.5rem 0 clamp(1.5rem, 3vw, 2rem);
}

.section-body {
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   Feature list
   ------------------------------------------------------------------------- */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--copper);
}

/* ---------------------------------------------------------------------------
   Country tag (Courier New dispatch marker)
   ------------------------------------------------------------------------- */

.country-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.country-tag--large {
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.45rem;
}

/* ---------------------------------------------------------------------------
   Sample issue: lead piece
   ------------------------------------------------------------------------- */

.lead-piece {
  margin-bottom: 2.5rem;
}

.lead-headline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin: 0.35rem 0 0.75rem;
}

.lead-piece p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   Sample issue: roundup
   ------------------------------------------------------------------------- */

.roundup-heading {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-light);
}

.roundup-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.roundup-list li {
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   Country grid
   ------------------------------------------------------------------------- */

.country-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
}

.country-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */

.faq-list {
  margin: 0;
}

.faq-list dt {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   Subscribe callout
   ------------------------------------------------------------------------- */

.subscribe-callout {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------------------
   Subscribe form
   ------------------------------------------------------------------------- */

.subscribe-form {
  position: relative;
}

.subscribe-form-row {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.subscribe-input {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--field-border);
  border-right: none;
  background: var(--field-bg);
  color: var(--text);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.subscribe-input::placeholder {
  color: #857b70;
  font-family: var(--sans);
}

.subscribe-button {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.7rem 1.35rem;
  background: var(--copper);
  color: var(--bg);
  border: none;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.subscribe-button:hover {
  background: var(--copper-hover);
}

.subscribe-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  margin-top: 0.7rem;
}

/* ---------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  padding: 2.5rem 0 3rem;
}

.footer-rule {
  border: none;
  height: 1px;
  background: var(--rule-light);
  margin-bottom: 2rem;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-logo {
  height: 18px;
  width: auto;
  opacity: 0.65;
}

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

.footer-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 600px) {
  .subscribe-form-row {
    flex-direction: column;
    max-width: 100%;
  }

  .subscribe-input {
    border-right: 1px solid var(--field-border);
    border-bottom: none;
  }

  .subscribe-button {
    width: 100%;
    text-align: center;
  }

  .country-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .masthead-inner {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
  }
}
