/* News presentation adapted from HighSpeedRail.TV's teal, coral and cream palette.
   Loaded by the shared HTML shell; depends on local assets and system fonts. */
:root {
  color-scheme: light dark;
  --paper: #fffbf7;
  --card: #fff;
  --ink: #2d3436;
  --muted: #536066;
  --link: #994228;
  --border: #d6c9bd;
  --teal: #1b4d4a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    1rem/1.7 Inter,
    system-ui,
    sans-serif;
}
a {
  color: var(--link);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
  border-radius: 2px;
}
.container {
  max-width: 1040px;
  margin: auto;
  padding: 0 24px;
}
.site-header {
  background: var(--teal);
  color: #fff;
  padding: 24px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-header a {
  color: #fff;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.05em;
}
.logo span {
  color: #f4a58e;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
main {
  padding-bottom: 64px !important;
  min-height: 40vh;
}
h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
  /* "HighSpeedRail.News" is one long word; let it wrap at 320px (WCAG 1.4.10 reflow). */
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}
h2 {
  font-size: 1.65rem;
}
.hero {
  padding: 56px 0 32px;
  max-width: 800px;
}
.hero h1 {
  margin: 12px 0 20px;
}
.hero p,
.intro {
  font-size: 1.15rem;
}
.eyebrow {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.disclosure {
  color: var(--muted);
  max-width: 75ch;
  font-size: 0.95rem;
}
.stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
.story {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px #00000008;
}
.story h2 {
  margin: 10px 0 16px;
}
.story h2 a {
  color: var(--ink);
}
.story p {
  overflow-wrap: anywhere;
}
.prose {
  max-width: 75ch;
}
.archive {
  list-style: none;
  padding: 0;
}
.archive li {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.archive a {
  font-size: 1.4rem;
  font-family: Georgia, serif;
}
.empty {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.subscribe-cta {
  background:
    linear-gradient(#1b4d4aeb, #1b4d4af5),
    url("/images/subscribe-bg.jpg") center/cover;
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.subscribe-cta a {
  color: #fff;
}
.button {
  display: inline-block;
  border: 2px solid #fff;
  border-radius: 100px;
  padding: 12px 24px;
  font-weight: 600;
}
.site-footer {
  background: var(--teal);
  color: #fff;
  padding: 40px 0;
}
.site-footer a {
  color: #fff;
}
.site-footer nav {
  margin: 24px 0;
}
.footer-logo {
  font-weight: 700;
  font-size: 1.25rem;
}
.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateY(-150%);
  padding: 12px;
  background: var(--paper);
  z-index: 2;
}
.skip-link:focus {
  transform: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #152523;
    --card: #203431;
    --ink: #f7f2ec;
    --muted: #c3cdca;
    --link: #f4a58e;
    --border: #60736c;
  }
}
@media (max-width: 640px) {
  .stories {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 20px;
  }
  .story {
    padding: 24px;
  }
  .hero {
    padding-top: 32px;
  }
  .logo {
    font-size: 1.35rem;
  }
  nav {
    gap: 12px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
