/* 100 Years Too Late — local static site, no build step */

:root {
  --forest: #12281e;
  --forest-deep: #0c1c16;
  --forest-mid: #1a3a2c;
  --cream: #f4ead8;
  --cream-dark: #e8d9c2;
  --ink: #2a1c12;
  --ink-soft: #5c4a38;
  --gold: #c4a06a;
  --gold-dark: #6e5228;
  --cream-text: #f4e8ce;
  --header-h: 4.25rem;
  --measure: 38rem;
  --page-pad: clamp(1.25rem, 4vw, 2.5rem);
  --font-display: "Cinzel", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
  --font-body: "Newsreader", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
}

@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.6rem var(--page-pad);
  background: var(--forest);
  color: var(--cream-text);
  border-bottom: 1px solid rgba(196, 160, 106, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(244, 232, 206, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.72rem, 2.6vw, 0.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-cream {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

.btn-cream:hover,
.btn-cream:focus-visible {
  background: transparent;
  color: var(--cream-text);
  border-color: var(--cream-text);
}

.btn-forest {
  background: var(--forest);
  color: var(--cream-text);
  border-color: var(--forest);
}

.btn-forest:hover,
.btn-forest:focus-visible {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: var(--cream-text);
}

.btn-outline-cream {
  background: transparent;
  color: var(--cream-text);
  border-color: rgba(244, 232, 206, 0.7);
}

.btn-outline-cream:hover,
.btn-outline-cream:focus-visible {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 0.78rem;
}

.hero-copy .btn-lg {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.header-subscribe {
  flex-shrink: 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  color: var(--cream-text);
  overflow: hidden;
  background: var(--forest-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Default (mobile): the typography sits on a solid forest panel
     below a text-free crop, so the scrim is only a soft blend. */
  background: linear-gradient(to bottom, transparent 55%, var(--forest) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 3.5rem var(--page-pad) 3.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-emblem {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 1px rgba(244, 232, 206, 0.35), 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 7.2vw, 3.1rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(12, 28, 22, 0.55);
}

.hero-rule {
  width: 5.5rem;
  height: 1px;
  margin: 1rem 0 0.9rem;
  background: var(--gold);
  border: 0;
}

.hero .tagline {
  margin: 0 0 1.75rem;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 3.4vw, 1.55rem);
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--cream-text);
  text-shadow: 0 1px 12px rgba(12, 28, 22, 0.5);
}

/* Mobile: a text-free crop of the porch shelf and lantern sits
   above a forest panel, so the channel name is never cropped. */
@media (max-width: 699px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-media {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 42vh;
  }

  .hero-media img {
    object-position: center center;
  }

  .hero-copy {
    flex: 1 1 auto;
    justify-content: center;
    background: var(--forest);
    padding: 2.1rem var(--page-pad) 2.6rem;
  }
}

/* Desktop and large tablets: the banner typography is fully
   visible in a 16:9 frame, so the HTML wordmark steps back and
   the subscribe button sits on the porch floor. */
@media (min-width: 700px) {
  .hero {
    /* Full-bleed: always span the viewport width. Height follows a
       16:9 ratio but never exceeds the viewport; the image covers. */
    width: 100%;
    min-height: 0;
    height: min(56.25vw, calc(100vh - var(--header-h)));
    height: min(56.25vw, calc(100svh - var(--header-h)));
  }

  .hero-media,
  .hero-media picture,
  .hero-media img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
  }

  .hero-media img {
    object-position: center center;
    filter: none;
  }

  .hero-scrim {
    background: linear-gradient(
      to top,
      rgba(12, 28, 22, 0.62) 0%,
      rgba(12, 28, 22, 0.18) 32%,
      rgba(12, 28, 22, 0.04) 55%,
      transparent 70%
    );
  }

  .hero-copy {
    padding: 0 2rem 7%;
  }

  .hero-emblem,
  .hero h1,
  .hero-rule,
  .hero .tagline {
    /* Keep the heading in the document for accessibility and SEO,
       but let the artwork's own lettering be what you see. */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* ---------- main sections ---------- */

.section {
  padding: 4.25rem var(--page-pad);
}

.section-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-wrap: balance;
}

.lede,
.about p {
  margin: 0 0 1.15rem;
  font-size: clamp(1.15rem, 2.2vw, 1.28rem);
  line-height: 1.7;
  font-optical-sizing: auto;
}

.about p:last-child {
  margin-bottom: 0;
}

.about-close {
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  color: var(--ink);
}

/* Coming first: deep forest panel */
.coming {
  background: var(--forest);
  color: var(--cream-text);
}

.coming .kicker {
  color: var(--gold);
}

.coming h2 {
  color: var(--cream-text);
}

.coming .hook {
  margin: 0 0 2rem;
  font-size: clamp(1.15rem, 2.2vw, 1.28rem);
  line-height: 1.7;
}

.coming .section-inner {
  text-align: left;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--forest-deep);
  color: var(--cream-text);
  text-align: center;
  padding: 2.5rem var(--page-pad) 2.25rem;
  border-top: 1px solid rgba(196, 160, 106, 0.22);
}

.site-footer img {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
}

.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-year {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--cream-dark);
}

/* ---------- 404 ---------- */

.page-404 {
  min-height: calc(100svh - var(--header-h) - 8rem);
  display: flex;
  align-items: center;
  text-align: center;
}

.page-404 .section-inner {
  padding: 3rem 0;
}

.page-404 img {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
}

/* ---------- a11y ---------- */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 40;
  padding: 0.6rem 1rem;
  background: var(--cream);
  color: var(--forest);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

@media (max-width: 399px) {
  .header-subscribe .btn-label-full {
    display: none;
  }
  .header-subscribe .btn-label-short {
    display: inline;
  }
}

@media (min-width: 400px) {
  .header-subscribe .btn-label-short {
    display: none;
  }
}
