/* One-page listing. Static HTML + CSS only. */
:root {
  --paper: #eef1f4;
  --paper-2: #e0e5eb;
  --ink: #14181e;
  --muted: #5a6570;
  --rule: #c5ced8;
  --accent: #2c4a6e;
  --gold: #c48a2a;
  --banner-bg: #12161c;
  --banner-ink: #f0f3f6;
  --link: #1e3f66;
  --link-hover: #0f2744;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

.sale-banner {
  margin: 0;
  padding: 0.55rem 1.25rem;
  background: var(--banner-bg);
  color: var(--banner-ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.4;
}

.sale-banner a {
  color: var(--banner-ink);
  text-underline-offset: 0.16em;
}

.sale-banner a:hover { opacity: 0.85; }

.wrap {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

header.mast { padding: 2.4rem 0 0.4rem; }

.brand {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.rule {
  width: 3.2rem;
  height: 2px;
  margin: 1.15rem 0 0;
  background: var(--gold);
  border: 0;
}

figure.hero { margin: 1.6rem 0 0; }

figure.hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  background: var(--paper-2);
}

figcaption {
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.intro {
  margin: 1.6rem 0 0;
  font-size: 1.18rem;
  line-height: 1.6;
}

section {
  margin: 2rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
}

p { margin: 0 0 0.85rem; }
p:last-child { margin-bottom: 0; }

.close {
  margin: 2.25rem 0 0;
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

footer {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 2.5rem auto 0;
  padding: 1.2rem 0 2.6rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.5;
}

footer p { margin: 0 0 0.3rem; }
footer p:last-child { margin-bottom: 0; }

@media (max-width: 40rem) {
  body { font-size: 1.05rem; }
  .wrap { width: calc(100% - 2rem); }
  footer { width: calc(100% - 2rem); }
  header.mast { padding-top: 1.7rem; }
  .intro { font-size: 1.08rem; }
}

/* Shared mobile — phones first. Do not remove. */
/* Same rules as /workspace/people-sites/MOBILE.css. Phones 375-430px:
   no horizontal scroll, single column below 720px, full-width X rail
   below 980px, title cap 1.65rem. Desktop >=980px unchanged. */

/* 1. No horizontal scroll; media and rails cannot blow the viewport. */
html, body { overflow-x: hidden; }
img, video, iframe, .x-media, .x-rail, table { max-width: 100%; }
body, main, .wrap, .article-body { overflow-wrap: anywhere; }

/* 7. Wide tables / pre scroll inside themselves instead of the page. */
table, pre, .table-wrap { max-width: 100%; overflow-x: auto; }

/* 8. Sticky mast must not cover in-page headings. */
h1, h2, h3, .post-title, .lead-copy .post-title, .section-head {
  scroll-margin-top: 4.5rem;
}

.home-body > *,
.lead,
.x-rail,
.card,
.home-grid { min-width: 0; }

/* 3 + 4. Below 980px: home-body is lead → x-rail → rest, full-width rail.
   Some sites never received this block. Harmless if those classes are absent. */
@media (max-width: 979px) {
  .home-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "lead"
      "x"
      "rest";
  }
  .home-body .lead { grid-area: lead; }
  .x-rail {
    grid-area: x;
    width: 100%;
    max-width: 100%;
    position: static;
  }
  .home-rest { grid-area: rest; }

  .x-rail, .x-card-link, .x-text { max-width: 100%; }

  /* Clamp tweet copy to 4–5 lines — no tweet walls. */
  .x-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
  }

  .x-media { grid-template-columns: 1fr; }
  .x-media img {
    width: 100%;
    max-height: 10rem;
    object-fit: cover;
  }
}

/* 3 + 5 + 6 + 8. Phones (and small tablets under 720px): one column, readable type. */
@media (max-width: 719px) {
  .wrap { padding: 1rem 1rem 3rem; }
  .mast-inner {
    padding: 0.7rem 1rem 0.65rem;
    flex-wrap: wrap;
  }
  .brand { font-size: 1.1rem; }

  .lead,
  .home-grid,
  .card { grid-template-columns: 1fr; }

  .card img,
  .card-media img,
  .lead-media img,
  .hero img {
    max-width: 100%;
    height: auto;
  }
  .credit, figcaption { overflow-wrap: anywhere; }

  /* Cap titles. Lieber’s clamp(2rem, 4.2vw, 2.95rem) is too big on a 390px phone. */
  .post-title,
  .lead-copy .post-title {
    font-size: 1.65rem;
    line-height: 1.18;
  }

  nav.top a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.45rem 0.2rem;
  }
  .x-open {
    display: inline-block;
    min-height: 2.75rem;
    padding: 0.55rem 0 0.2rem;
  }
}

/* Desktop ≥980px is owned by each site’s existing min-width: 980px rules.
   This file must not override that two-column lead + sticky 20rem X rail. */


/* CSS-only highway hero (no photo). */
figure.hero-css { margin: 1.6rem 0 0; }
.hero-art {
  position: relative;
  overflow: hidden;
  height: clamp(11rem, 36vw, 16rem);
  border-radius: 2px;
  background: #2a3340;
}
.hero-art .sky {
  position: absolute;
  inset: 0 0 42% 0;
  background: linear-gradient(180deg, #5a7a9a 0%, #8aa0b4 55%, #c4a574 100%);
}
.hero-art .horizon {
  position: absolute;
  left: 0; right: 0;
  top: 52%;
  height: 8%;
  background: linear-gradient(180deg, #3d4652, #2a3038);
}
.hero-art .road {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, #2a2f36 0%, #1a1d22 100%);
}
.hero-art .lane {
  position: absolute;
  top: 48%;
  width: 2.4rem;
  height: 0.28rem;
  background: #d4a017;
  border-radius: 1px;
  opacity: 0.9;
}
.hero-art .lane:nth-child(1) { left: 12%; }
.hero-art .lane:nth-child(2) { left: 42%; }
.hero-art .lane:nth-child(3) { left: 72%; }
.hero-art .truck {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: clamp(7.5rem, 28vw, 11rem);
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}
