/* ============================================================
   Hoes of America — styles.css
   Self-contained, no external fonts/assets/CDNs.
   ============================================================ */

:root {
  --forest: #10271E;
  --gold: #D3A447;
  --paper: #F5F0E5;
  --rust: #AE5E3A;
  --ink: #15231E;

  --gold-dim: #b78d3c;
  --forest-light: #17352A;
  --paper-dim: #e9e1cf;
  --rule: rgba(21, 35, 30, 0.14);
  --rule-on-dark: rgba(245, 240, 229, 0.22);

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max-width: 1140px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;

  color-scheme: dark light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.1em;
}

ul, ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

/* ---------- Accessibility helpers ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75em 1.25em;
  font-weight: 600;
  z-index: 1000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  color: var(--paper);
  border-bottom: 1px solid var(--rule-on-dark);
}

.masthead__bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--paper);
}

.masthead__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.masthead__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.masthead__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.masthead__tagline {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  border-bottom: 2px solid transparent;
  padding: 0.25rem 0;
}

.primary-nav a:hover {
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--rule-on-dark);
  border-radius: 4px;
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.nav-toggle__box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
}

.nav-toggle__label {
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest);
    border-bottom: 1px solid var(--rule-on-dark);
    padding: 1rem 1.25rem 1.5rem;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0.9rem;
  }

  .masthead__bar {
    position: relative;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--forest);
  color: var(--paper);
  overflow: hidden;
  padding: var(--space-5) 1.25rem var(--space-5);
}

.hero__field {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  opacity: 0.5;
}

.hero__contours {
  width: 100%;
  height: 100%;
}

.hero__contours path {
  fill: none;
  stroke: var(--gold-dim);
  stroke-width: 2;
}

.hero__content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}

.hero__headline {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  margin-bottom: 0.7em;
}

.hero__lede {
  font-size: 1.2rem;
  max-width: 42ch;
  color: var(--paper-dim);
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 1.6em;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85em 1.6em;
  border-radius: 3px;
  border: 2px solid transparent;
}

.button--primary {
  background: var(--gold);
  color: var(--ink);
}

.button--primary:hover {
  background: #e0b45b;
}

.button--ghost {
  border-color: var(--gold);
  color: var(--paper);
}

.button--ghost:hover {
  background: rgba(211, 164, 71, 0.12);
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-5) 1.25rem;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--forest {
  background: var(--forest);
  color: var(--paper);
}

.section--forest a {
  color: var(--gold);
}

.section--forest h2,
.section--forest h3 {
  color: var(--paper);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.6em;
  font-weight: 600;
}

.section--forest .section__kicker {
  color: var(--gold);
}

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  max-width: 28ch;
}

.section__lede {
  font-size: 1.1rem;
  max-width: 62ch;
}

.callout {
  border-left: 4px solid var(--gold);
  background: rgba(211, 164, 71, 0.12);
  padding: 1em 1.25em;
  max-width: 62ch;
}

/* ---------- Principles grid ---------- */

.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: var(--space-4);
}

@media (min-width: 640px) {
  .principles {
    grid-template-columns: 1fr 1fr;
  }
}

.principle {
  border-top: 3px solid var(--rust);
  padding-top: 1em;
}

.principle h3 {
  font-size: 1.15rem;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

.steps li {
  position: relative;
  padding-left: 2.6em;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8em;
  height: 1.8em;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
}

.steps h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3em;
}

/* ---------- Priorities grid ---------- */

.priorities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: var(--space-4);
}

@media (min-width: 540px) {
  .priorities-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .priorities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.priority-card {
  background: var(--forest);
  color: var(--paper);
  padding: 1.5em 1.25em;
  border-radius: 2px;
  border-top: 4px solid var(--gold);
}

.priority-card h3 {
  color: var(--gold);
  font-size: 1.1rem;
}

.priority-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
  color: var(--paper-dim);
}

/* ---------- Status list ---------- */

.status-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: grid;
  gap: 1rem;
  max-width: 68ch;
}

.status-list li {
  padding-left: 1.6em;
  position: relative;
  border-bottom: 1px solid var(--rule-on-dark);
  padding-bottom: 1rem;
}

.status-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: var(--space-4);
  max-width: 68ch;
  border-top: 1px solid var(--rule);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
  padding: 1em 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 1.8em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  color: var(--rust);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list p {
  margin: 0.9em 0 0;
}

/* ---------- Resources ---------- */

.resource-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-4);
  display: grid;
  gap: 0.75rem;
}

.resource-list a {
  display: inline-block;
  color: var(--gold);
  text-decoration: underline;
  font-size: 1.05rem;
}

/* ---------- Error page ---------- */

.error-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper-dim);
  padding: var(--space-4) 1.25rem var(--space-3);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.site-footer__mark {
  width: 32px;
  height: 32px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-on-dark);
}

.site-footer__nav a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer__nav a:hover {
  color: var(--gold);
}

.site-footer__notice {
  font-size: 0.85rem;
  max-width: 68ch;
}

.site-footer__copyright {
  font-size: 0.82rem;
  color: var(--paper-dim);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Launch emblem: cinematic desktop hero; single-column layout remains unchanged on phones. */
.hero__inner { position: relative; max-width: var(--max-width); margin: 0 auto; }
.hero__emblem { display: none; }
@media (min-width: 1020px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(2rem, 4vw, 5rem);
    align-items: center;
  }
  .hero__content { max-width: none; margin: 0; }
  .hero__headline { font-size: clamp(2.9rem, 4.1vw, 4.2rem); }
  .hero__emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 52%, #204733 0%, rgba(32, 71, 51, 0) 73%);
  }
  .hero__emblem img { width: 100%; max-width: 430px; height: auto; object-fit: contain; }
}
