/* =============================================================
   ESUNOS — Landing page styles
   Grounded in: ESUNOS Website Sketch (page 1), build audit
   (2026-09-21), brand notes. Colours sampled directly from the
   sketch render. See README.md and CONTENT.md.
   ============================================================= */

/* ---- Design tokens ---------------------------------------- */
:root {
  /* Neutrals (the ~90% base) */
  --ink:            #1a1a1a;   /* text, utility bar, footer      */
  --paper:          #ffffff;   /* main background                */
  --paper-warm:     #f9f8f4;   /* alternating band background    */
  --paper-place:    #f4f1ea;   /* image placeholder fill         */
  --meta:           #5b5a55;   /* secondary / meta text (>=4.5:1) */
  --hairline:       #e6e4dd;   /* rules on light backgrounds     */
  --hairline-ink:   rgba(255,255,255,.16); /* rules on dark      */

  /* Accents (the ~10%) — used sparingly, never as large fills */
  --orange:         #f26b1c;   /* BRAND orange: logo + CTA fills */
  --orange-deep:    #b8560d;   /* orange TEXT on light bg (~4.8:1)*/
  --blue:           #191ed0;   /* secondary accent, sparingly    */

  --on-orange:      #1a1a1a;   /* ink text on orange (~6.9:1)    */
  --on-ink:         #ffffff;   /* text on ink                    */

  /* Type */
  --serif: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  --sans:  "Helvetica Neue", Arial, "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --rule: 1px solid var(--hairline);
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---- Helpers ----------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {                     /* small uppercase UI label */
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label {                       /* medium uppercase label */
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--meta);
}
.accent-orange { color: var(--orange-deep); }
.accent-blue   { color: var(--blue); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--on-ink);
  padding: .6rem 1rem; font-family: var(--sans); font-size: .85rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.4rem;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--orange { background: var(--orange); color: var(--on-orange); }
.btn--orange:hover { background: #e05f11; }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: #000; }

/* ---- Utility bar ------------------------------------------- */
.utilitybar {
  background: var(--ink);
  color: var(--on-ink);
}
.utilitybar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; min-height: 34px;
  font-family: var(--sans); font-size: .68rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.utilitybar__issue { color: var(--orange); }  /* orange on ink = ~5.7:1 */

/* ---- Header / nav ------------------------------------------ */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo {                          /* the ESUNOS mark (raster, transparent) */
  height: 34px; width: auto; display: block;
}
@media (max-width: 640px) { .logo { height: 30px; } }
.mainnav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.mainnav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
.mainnav a.navlink {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); padding: .3rem 0; border-bottom: 2px solid transparent;
}
.mainnav a.navlink:hover { border-bottom-color: var(--orange); }

/* ---- Section rhythm ---------------------------------------- */
main > section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-rule { border: 0; border-top: var(--rule); margin: 0; }

/* ---- Hero -------------------------------------------------- */
.hero__eyebrow { color: var(--orange-deep); margin-bottom: 1.4rem; }
.hero__title {
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  max-width: 14ch;
  margin-bottom: 1.6rem;
}
.hero__deck {
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.4;
  color: #333;
  max-width: 42ch;
  margin-bottom: 2.2rem;
}

/* ---- Subscribe form (hero + closing band) ------------------ */
.signup { max-width: 34rem; }
.signup__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.signup__input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
}
.signup__input::placeholder { color: #8a897f; }
.signup__note {
  font-family: var(--sans); font-size: .78rem; color: var(--meta);
  margin-top: .7rem;
}
.signup__success {
  display: none;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  color: var(--ink);
  border-left: 3px solid var(--orange);
  padding: .4rem 0 .4rem .9rem;
}
.signup.is-success .signup__row,
.signup.is-success .signup__note { display: none; }
.signup.is-success .signup__success { display: block; }

/* ---- Featured issue --------------------------------------- */
.featured__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.featured__label { color: var(--meta); margin-bottom: 1.2rem; }
.figure {
  border: 1px solid var(--hairline);
  background: var(--paper-place);
  aspect-ratio: 16 / 10;
  display: flex; align-items: flex-end;
  padding: 1rem 1.2rem;
}
.figure__caption {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--meta);
}
.featured__headline {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  margin: 1.6rem 0 1rem;
}
.featured__body { max-width: 52ch; margin-bottom: 1.8rem; }
.featured__foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.featured__byline { font-style: italic; color: var(--meta); font-size: .95rem; }

/* In this issue (right rail) */
.rail__heading {
  color: var(--ink); padding-bottom: .9rem;
  border-bottom: 1px solid var(--ink); margin-bottom: .2rem;
}
.rail__list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.rail__item {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: .4rem;
  padding: .85rem 0; border-bottom: var(--rule);
  align-items: baseline;
}
.rail__num {
  font-family: var(--sans); font-weight: 700; font-size: .82rem;
  color: var(--orange-deep); letter-spacing: .04em;
}
.rail__title { font-size: 1.02rem; line-height: 1.3; }

/* Blue stat box (the only solid accent fill) */
.statbox { background: var(--blue); color: #fff; padding: 1.5rem 1.6rem; }
.statbox__label {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; opacity: .85;
}
.statbox__number {
  font-family: var(--serif); font-weight: 700; font-size: 3rem;
  line-height: 1; margin: .3rem 0 .6rem;
}
.statbox__caption { font-size: .98rem; line-height: 1.4; opacity: .92; }

/* ---- Recent dispatches ------------------------------------ */
.dispatches__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; border-bottom: 1px solid var(--ink);
  margin-bottom: 2rem;
}
.dispatches__title { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.dispatches__more {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); text-decoration: none;
}
.dispatches__more:hover { text-decoration: underline; }
.dispatch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem) clamp(1.6rem, 3.5vw, 3rem);
}
.dispatch { border-top: 1px solid var(--ink); padding-top: 1rem; }
.dispatch__kicker { margin-bottom: .7rem; }
.dispatch__kicker.is-orange { color: var(--orange-deep); }
.dispatch__kicker.is-blue   { color: var(--blue); }
.dispatch__title {
  font-weight: 700; font-size: 1.3rem; line-height: 1.14; margin-bottom: .8rem;
}
.dispatch__title a { text-decoration: none; }
.dispatch__title a:hover { text-decoration: underline; }
.dispatch__meta { font-family: var(--sans); font-size: .76rem; color: var(--meta); letter-spacing: .03em; }

/* ---- Network band ----------------------------------------- */
.network { background: var(--paper-warm); }
.network__label { color: var(--meta); margin-bottom: 1rem; }
.network__heading {
  font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.1; max-width: 22ch; margin-bottom: 2.4rem;
}
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.guide {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 1.4rem 1.5rem 1.6rem;
  min-height: 8.5rem;
}
.guide--live { border-color: var(--ink); }
.guide__status {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: 1rem;
}
.guide__status .eyebrow { color: var(--meta); }
.guide--live .guide__status .eyebrow { color: var(--orange-deep); }
.guide__dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--orange); }
.guide__title { font-weight: 700; font-size: 1.4rem; line-height: 1.1; margin-bottom: .5rem; }
.guide--coming .guide__title { color: var(--meta); }
.guide__desc { font-size: .98rem; color: var(--meta); }

/* ---- Closing subscribe band ------------------------------- */
.closing { border-top: 1px solid var(--ink); }
.closing__grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.closing__eyebrow { color: var(--orange-deep); margin-bottom: .9rem; }
.closing__heading {
  font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.12; max-width: 20ch;
}

/* ---- Footer ------------------------------------------------ */
.sitefooter { background: var(--ink); color: var(--on-ink); }
.sitefooter .wrap { padding-block: clamp(2.6rem, 5vw, 3.6rem); }
.footer__top {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem;
  padding-bottom: 2.2rem; border-bottom: 1px solid var(--hairline-ink);
}
.footer__brand .logo--footer { height: 42px; margin-bottom: 1.1rem; }
.footer__tagline { font-style: italic; max-width: 34ch; color: rgba(255,255,255,.8); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer__colhead {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 1rem;
}
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: .6rem; }
.footer__links a { text-decoration: none; color: rgba(255,255,255,.9); }
.footer__links a:hover { color: var(--orange); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.4rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5);
}

/* ---- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .featured__grid { grid-template-columns: 1fr; }
  .closing__grid { grid-template-columns: 1fr; }
  .dispatch-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .mainnav__links { display: none; }          /* keep logo + Subscribe */
  .utilitybar__issue { display: none; }
  .dispatch-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .statbox__number { font-size: 2.5rem; }
}
