/* ============================================================
   STAN — Southern Tier Airport Network
   Single shared stylesheet.

   >>> ALL DESIGN TOKENS LIVE IN :root BELOW. <<<
   To match the live Wix site, replace the values in :root with
   the computed styles you pull from DevTools. Nothing else in
   this file needs to be touched to restyle the whole site.
   ============================================================ */

/* ============================================================
   Design tokens are generated from assets/data/theme.json into
   assets/css/tokens.css by build.py. Edit the theme in the Studio
   (tools/studio.html), in the CMS under Design, or in theme.json —
   not here.
   ============================================================ */
@import url("tokens.css");

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  color: var(--c-ink);
  background: var(--c-surface);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); }

/* Visible keyboard focus everywhere. */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-ink);
  color: #fff;
  padding: 0.65rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Shell ------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* --- Header / nav ------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--c-accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 2vw, 1.85rem);
  align-items: center;
}
.nav a {
  font-size: var(--t-body);
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--c-nav);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--c-accent); }
.nav a[aria-current="page"] {
  color: var(--c-ink);
  border-bottom-color: var(--c-accent);
}

/* --- Hero -------------------------------------------------- */
.hero { border-bottom: 1px solid var(--c-line); }
.hero-media {
  aspect-ratio: 21 / 8;
  background: var(--c-surface-2);
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-body { padding-block: clamp(2rem, 5vw, 3.25rem); }
.hero-lede {
  max-width: var(--w-prose);
  font-size: var(--t-lede);
  line-height: var(--lh-body);
  color: var(--c-ink-soft);
  margin: 0;
}

/* --- Sections ---------------------------------------------- */
.section { padding-block: var(--pad-section); }
.section--alt {
  background: var(--c-surface-2);
  border-block: 1px solid var(--c-line);
}
.section > .wrap > * { max-width: var(--w-prose); }
.section > .wrap > .figure,
.section > .wrap > .grid { max-width: none; }

h1, h2, h3 {
  font-family: var(--f-display);
  line-height: var(--lh-tight);
  color: var(--c-ink);
  margin: 0 0 0.75em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.0; letter-spacing: -0.01em; }
h2 { font-size: var(--t-h2); font-weight: 700; letter-spacing: -0.005em; }
h3 { font-size: var(--t-h3); font-weight: 700; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

.eyebrow--lg { font-size: var(--t-eyebrow); margin-bottom: 1.5rem; text-transform: none; letter-spacing: normal; }

.eyebrow {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
  color: var(--c-ink);
  margin: 0 0 0.6em;
}

.list { margin: 0 0 1.5em; padding-left: 0; list-style: none; }
.list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--c-accent);
}

.figure { margin: 2.5rem 0 0; }
.figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--c-surface-2);
}
.figure figcaption {
  font-size: var(--t-small);
  color: var(--c-ink-soft);
  padding-top: 0.65rem;
}

/* --- Contact form ------------------------------------------ */
.form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: var(--t-small);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--t-body);
  color: var(--c-ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}
.field input:focus,
.field textarea:focus { border-color: var(--c-accent); }
.field textarea { min-height: 9rem; resize: vertical; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  font-size: var(--t-body);
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 0.75rem 1.6rem;
  cursor: pointer;
}
.btn:hover { background: var(--c-ink); border-color: var(--c-ink); }

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: var(--t-small);
}
.site-footer a {
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line);
}
.site-footer a:hover { border-bottom-color: var(--c-ink); }
.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}
.site-footer p { margin: 0; }

/* --- Placeholder marker (delete once content is pasted in) -- */
.todo {
  border-left: 3px solid #c9822b;
  background: #fdf6ec;
  padding: 1rem 1.25rem;
  font-size: var(--t-small);
  color: #6b4a17;
  margin-bottom: 2rem;
}
.todo strong { color: #4a3410; }

/* --- Motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Small screens ----------------------------------------- */
@media (max-width: 720px) {
  .site-header > .wrap { padding-block: 0.85rem; min-height: 0; }
  .nav { gap: 0.85rem 1.1rem; }
  .hero-media { aspect-ratio: 4 / 3; }
}


/* ============================================================
   HOME PAGE COMPONENTS
   ============================================================ */

/* --- Masthead (home hero) ---------------------------------- */
.masthead {
  background: var(--c-surface);
  color: var(--c-ink);
  padding-block: clamp(4rem, 10vw, 7.5rem);
  border-bottom: 1px solid var(--c-line);
}
.masthead-inner { max-width: 46rem; }
.masthead h1 {
  color: var(--c-ink);
  font-size: var(--t-h1);
  margin-bottom: 0.45em;
}
.masthead-sub {
  font-size: var(--t-lede);
  line-height: var(--lh-snug);
  color: var(--c-ink-soft);
  margin-bottom: 2rem;
  max-width: 40rem;
}
.masthead .btn {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
  text-decoration: none;
}
.masthead .btn:hover { background: var(--c-ink-soft); border-color: var(--c-ink-soft); }

/* --- Card grid (The Problem) -------------------------------- */
.grid { display: grid; gap: clamp(1.75rem, 3vw, 2.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.card {
  border-top: 2px solid var(--c-accent);
  padding-top: 1.35rem;
}
.card h3 { margin-bottom: 0.6em; }
.card p { font-size: var(--t-body); line-height: var(--lh-snug); }

.cite {
  font-size: var(--t-small);
  color: var(--c-ink-soft);
  line-height: 1.5;
}

/* --- Utility ------------------------------------------------ */
.sr-only-visually {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .press.is-enhanced .press-track { transition: none; }
}


/* ============================================================
   ADDED FOR SUBPAGES
   ============================================================ */

/* .statement — long body blocks that the Wix site marks up as <h2>.
   Same visual weight, but not a heading, so screen readers and search
   engines don't read a 150-word paragraph as a section title. */
.statement {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0 0 1.25em;
}
.statement + .statement { margin-top: 1.75em; }

/* --- Contact ------------------------------------------------ */
.contact-email {
  font-size: var(--t-body);
  margin-bottom: 2.5rem;
}
.contact-email a {
  font-weight: 600;
  word-break: break-word;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}


/* ============ layout: image-behind ============ */
.layout-image-behind .press-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(20rem, 38vw, 27rem);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-card-fallback);  /* readable with no image */
}
.layout-image-behind .press-thumb {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: none;
}
.layout-image-behind .press-thumb img {
  aspect-ratio: auto;
  height: 100%;
}
/* Scrim. Without it, light photos make white type unreadable. */
.layout-image-behind .press-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(8, 18, 26, 0.90) 0%,
    rgba(8, 18, 26, 0.72) 34%,
    rgba(8, 18, 26, 0.30) 68%,
    rgba(8, 18, 26, 0.12) 100%
  );
}
.layout-image-behind .press-body {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  max-width: 44rem;
}
.layout-image-behind .press-body h3 { color: #fff; }
.layout-image-behind .press-link { color: #fff; }
.layout-image-behind .press-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.layout-image-behind .press-excerpt { color: rgba(255, 255, 255, 0.86); }
.layout-image-behind .press-source  { color: rgba(255, 255, 255, 0.92); }
.layout-image-behind .press-item:hover .press-source { color: #fff; }
.press-link { color: var(--c-card-text); }

/* Link overlay must clear the scrim to stay clickable. */
.layout-image-behind .press-link::after { z-index: 3; }

/* Focus ring sits inside the card, where it is visible against a photo. */
.layout-image-behind .press-item:has(.press-link:focus-visible) {
  outline: none;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--c-accent);
}

/* ============ layout: image-top ============ */
.layout-image-top .press-item.has-thumb { max-width: 34rem; }
.layout-image-top .press-thumb { margin-bottom: 1.35rem; }

/* ============ layout: image-left ============ */
.layout-image-left .press-item.has-thumb {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0 1.75rem;
  align-items: start;
  max-width: 52rem;
}

@media (max-width: 640px) {
  .layout-image-left .press-item.has-thumb { grid-template-columns: 1fr; gap: 1.15rem 0; }
  .layout-image-behind .press-item { min-height: 22rem; }
}

@media (prefers-reduced-motion: reduce) {
  .press-thumb img { transition: none; }
  .press-item.has-thumb:hover .press-thumb img { transform: none; }
}


/* ============================================================
   NEWS CAROUSEL
   Card layouts are per item, set in assets/data/news.json:
     is-image-top     photo above the text
     is-image-behind  photo fills the card, text overlaid
     is-image-left    photo beside the text
   ============================================================ */

.press { position: relative; }
.press-viewport { overflow: hidden; border-radius: var(--radius-card); }

.press-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.press.is-enhanced .press-track {
  display: flex;
  gap: 0;
  transition: transform 400ms cubic-bezier(.4, 0, .2, 1);
}

.press-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: clamp(26rem, 42vw, 34rem);
}
.press.is-enhanced .press-item {
  flex: 0 0 100%;
  min-width: 100%;
}
.press.is-enhanced .press-item[aria-hidden="true"] { visibility: hidden; }

.press-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 5.5rem;          /* clears the controls bar */
  max-width: 44rem;
}
.press-body h3 {
  color: var(--c-card-text);
  font-size: var(--t-press-title);
  font-weight: 400;
  line-height: 1.10;
  letter-spacing: normal;
  margin-bottom: 0.7em;
}
.press-link { color: inherit; text-decoration: none; }
.press-link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Stretched link: whole card clickable, accessible name stays the headline. */
.press-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }

.press-excerpt {
  color: var(--c-card-text);
  font-size: var(--t-press-excerpt);
  line-height: var(--lh-snug);
  letter-spacing: 0.35px;
  margin-bottom: 1.1em;
}
.press-source {
  color: var(--c-card-text);
  font-size: var(--t-press-excerpt);
  margin: 0;
}
.press-source::before { content: "-\00a0"; }

.press-thumb { overflow: hidden; background: rgba(0, 0, 0, 0.2); }
.press-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

/* ---- is-image-top ---- */
.press-item.is-image-top .press-thumb { flex: 0 0 auto; aspect-ratio: 16 / 9; }

/* ---- is-image-behind ---- */
.press-item.is-image-behind { justify-content: center; }
.press-item.is-image-behind .press-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  aspect-ratio: auto;
}
/* Scrim — without it, white type over a bright sky is unreadable. */
.press-item.is-image-behind::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg,
    rgba(28, 42, 54, 0.80) 0%,
    rgba(28, 42, 54, 0.62) 45%,
    rgba(28, 42, 54, 0.34) 100%);
}
.press-item.is-image-behind .press-body { position: relative; z-index: 2; }

/* ---- is-image-left ---- */
.press-item.is-image-left { flex-direction: row; align-items: stretch; }
.press-item.is-image-left .press-thumb { flex: 0 0 42%; }
.press-item.is-image-left .press-body { flex: 1 1 auto; align-self: center; }

/* ---- controls ---- */
.press-controls { display: none; }
.press.is-enhanced .press-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.25rem, 3vw, 2.25rem);
  pointer-events: none;
}
.press.is-enhanced.is-single .press-controls { display: none; }

.press-arrow, .press-dots { pointer-events: auto; }

.press-arrow {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
}
.press-arrow:hover { opacity: 1; }
.press-arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;   /* live glyph is a filled path, not a stroke */
  stroke: none;
}
.press-arrow svg.flip { transform: scaleX(-1); }

.press-dots { display: flex; align-items: center; gap: 0.55rem; }
.press-dot {
  width: 0.4rem;
  height: 0.4rem;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 220ms ease;
}
.press-dot:hover { background: rgba(255, 255, 255, 0.8); }
.press-dot.is-active {
  width: 0.7rem;
  height: 0.7rem;
  background: #fff;
}

/* Focus rings must read against a photograph, so they sit inside. */
.press-item:has(.press-link:focus-visible) {
  outline: none;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--c-accent);
}
.press-arrow:focus-visible, .press-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .press-item { min-height: 24rem; }
  .press-item.is-image-left { flex-direction: column; }
  .press-item.is-image-left .press-thumb { flex: 0 0 auto; aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .press.is-enhanced .press-track { transition: none; }
  .press-thumb img { transition: none; }
  .press-dot { transition: none; }
}
