/* KYMRCH — Kentucky Mountain Ridge Coal Heritage
   Dark coal-tunnel style: Anton headlines, Barlow Condensed body,
   yellow / orange / white / blue on dark panels with gold borders. */

@font-face {
  font-family: "Anton";
  src: url("../fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080a14;
  --panel: rgba(8, 10, 20, 0.9);
  --panel-solid: #0c0e18;
  --orange: #ff8c00;
  --gold: #ffb000;
  --yellow: #ffc828;
  --white: #f5f5f0;
  --blue: #5aaaff;
  --muted: #c4c0b4;
  --line: rgba(255, 176, 0, 0.45);
  --radius: 18px;
  --max: 1080px;
  --nav-h: 4.4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(4, 5, 10, 0.70) 0%, rgba(4, 5, 10, 0.80) 45%, rgba(4, 5, 10, 0.86) 100%),
    url("../assets/warning-bg.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  min-height: 100vh;
}

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

a { color: var(--yellow); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold); }
a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  background: var(--yellow);
  color: #111;
  padding: 0.4rem 0.8rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { top: 0.6rem; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 14, 0.94);
  border-bottom: 2px solid var(--gold);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.55rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--yellow);
  line-height: 1;
}
.brand:hover { color: var(--gold); }
.brand-mark {
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  font-weight: 400;
}
.brand-sub {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
}
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--yellow);
  font-family: "Anton", Impact, sans-serif;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  border-radius: 8px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}
.site-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.98rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.site-nav a:hover {
  color: var(--yellow);
  border-color: var(--line);
}
.site-nav a[aria-current="page"] {
  color: var(--yellow);
  border-color: var(--gold);
  background: rgba(255, 176, 0, 0.08);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}
.page-hero, .panel, .card, .sources, .notice, .legend-callout {
  background: var(--panel);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 12px 40px rgba(0,0,0,0.45);
}

.page-hero {
  padding: 2.2rem 1.8rem 2rem;
  margin-bottom: 1.8rem;
  text-align: center;
}
.kicker {
  font-family: "Anton", Impact, sans-serif;
  color: var(--yellow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  margin: 0 0 0.6rem;
}
h1, h2, h3, .hook {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0;
}
h1 {
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  color: var(--white);
}
h1 .accent, .hook-accent {
  color: var(--orange);
  display: block;
}
h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  color: var(--yellow);
  margin: 0 0 0.8rem;
}
h3 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: var(--gold);
  margin: 0 0 0.55rem;
}
.lede {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 500;
  color: var(--white);
  max-width: 38rem;
  margin: 1rem auto 0;
}
.meta {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.7rem;
}

.panel {
  padding: 1.6rem 1.6rem 1.5rem;
  margin-bottom: 1.4rem;
}
.panel p, .card p { margin: 0 0 0.9rem; }
.panel p:last-child, .card p:last-child { margin-bottom: 0; }

/* Home hook */
.home-hero {
  padding: 3rem 1.6rem 2.6rem;
  margin: 1.6rem auto 1.8rem;
  text-align: center;
}
.hook {
  font-size: clamp(2.4rem, 8.5vw, 5.2rem);
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 3px 0 #000, 0 8px 24px rgba(0,0,0,0.7);
}
.hook-accent {
  margin-top: 0.12em;
}
.tagline {
  margin: 1.1rem auto 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 1.2rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-towns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}
.grid-towns > .card {
  flex: 0 0 calc((100% - 2.4rem) / 3);
  max-width: calc((100% - 2.4rem) / 3);
  box-sizing: border-box;
}
@media (max-width: 800px) {
  .grid-towns > .card {
    flex: 0 0 calc((100% - 1.2rem) / 2);
    max-width: calc((100% - 1.2rem) / 2);
  }
}
@media (max-width: 600px) {
  .grid-towns > .card {
    flex: 0 0 100%;
    max-width: none;
  }
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 1.35rem 1.35rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.card h3 { margin: 0; }
.card .place-type {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0;
}
.card .official {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Town teaser dates */
.year {
  color: var(--orange);
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

/* Socials */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 0.4rem 0 0;
}
.socials a {
  display: inline-block;
  background: rgba(8, 10, 20, 0.92);
  border: 2px solid var(--gold);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 1rem;
}
.socials a:hover {
  color: #111;
  background: var(--yellow);
  border-color: var(--yellow);
}

/* Buttons / CTA */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.3rem;
}
.btn {
  display: inline-block;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1.15rem 0.55rem;
  border-radius: 10px;
  border: 3px solid var(--gold);
  color: var(--yellow);
  background: rgba(8, 10, 20, 0.9);
}
.btn:hover { background: var(--yellow); color: #111; border-color: var(--yellow); }
.btn-solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #111;
}
.btn-solid:hover { background: var(--yellow); border-color: var(--yellow); color: #111; }

/* History town blocks */
.town-block + .town-block { margin-top: 1.4rem; }
.town-block header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-bottom: 0.7rem;
}
.town-block h2 { margin: 0; }
sup {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0;
}
sup + sup::before {
  content: ",";
  margin: 0 0.12em 0 0.02em;
  color: var(--blue);
  font-weight: 700;
}
sup a { text-decoration: none; color: var(--blue); }
sup a:hover { color: var(--yellow); }

/* Legend */
.legend-callout {
  border-color: var(--blue);
  padding: 0.85rem 1.1rem;
  margin: 0 auto 1.4rem;
  max-width: var(--max);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.05rem;
}
.legend-callout strong { color: var(--blue); }
.lore-steps { counter-reset: lore; }
.lore-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.lore-num {
  font-family: "Anton", Impact, sans-serif;
  color: var(--orange);
  font-size: 2.2rem;
  line-height: 1;
  min-width: 2rem;
}
.meme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 720px) {
  .meme-grid { grid-template-columns: 1fr 1fr; }
  .meme-grid figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }
}
.meme-grid figure {
  margin: 0;
  background: var(--panel);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.meme-grid img { width: 100%; }
.meme-grid figcaption {
  padding: 0.8rem 1rem 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.meme-grid figcaption strong {
  display: block;
  color: var(--yellow);
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  font-weight: 400;
}

.legend-intro {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}
@media (min-width: 800px) {
  .legend-intro {
    grid-template-columns: 220px 1fr;
  }
}
.cat-frame {
  margin: 0 auto;
  width: min(220px, 70vw);
  border: 3px solid var(--gold);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.cat-frame img { width: 100%; }

/* Token / warning page */
.notice {
  padding: 2rem 1.4rem 1.8rem;
  text-align: center;
  margin-bottom: 1.6rem;
}
.notice .warn-icon {
  display: inline-block;
  width: 3.2rem;
  height: 2.8rem;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--yellow);
  color: #111;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.8rem;
  line-height: 3.15rem;
  text-align: center;
  margin-bottom: 0.6rem;
}
.notice h1 {
  font-size: clamp(2rem, 6.5vw, 3.8rem);
}
.notice .big {
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(1.8rem, 5.5vw, 3.2rem);
  color: var(--orange);
  letter-spacing: 0.03em;
  margin: 0.4rem auto 1rem;
  max-width: none;
  text-align: center;
  line-height: 1.05;
}
.notice p { max-width: 36rem; margin: 0 auto 0.85rem; font-size: 1.3rem; font-weight: 500; }
.fake {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.35rem;
}
.still {
  font-family: "Anton", Impact, sans-serif;
  color: var(--yellow);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: 0.06em;
  margin-top: 1.1rem;
}

/* Sources */
.sources {
  padding: 1.4rem 1.5rem 1.3rem;
  margin-top: 1.6rem;
}
.sources h2 { font-size: 1.5rem; }
.sources ol {
  margin: 0;
  padding-left: 1.4rem;
}
.sources li {
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.sources li a { word-break: break-word; }

.fineprint {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--gold);
  background: rgba(6, 7, 14, 0.96);
  padding: 1.6rem 1.2rem 2rem;
  text-align: center;
}
.site-footer p { margin: 0.35rem 0; color: var(--muted); font-size: 1.05rem; }
.site-footer .domains {
  font-family: "Anton", Impact, sans-serif;
  color: var(--yellow);
  letter-spacing: 0.08em;
  font-size: 1.2rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: center;
  margin: 0.6rem 0 0.8rem;
}
.footer-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-warn {
  color: var(--orange) !important;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle-btn { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(6, 7, 14, 0.98);
    border-bottom: 2px solid var(--gold);
    padding: 0.6rem 1rem 1rem;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .header-inner { position: relative; flex-wrap: wrap; }
  body { background-attachment: scroll; } /* iOS-friendly */
}

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

/* Home hero: holler creek scene */
.home-hero {
  background:
    linear-gradient(180deg, rgba(10,9,8,0.38) 0%, rgba(10,9,8,0.16) 40%, rgba(10,9,8,0.62) 100%),
    url("../assets/home-hero-creek.jpg") center 60% / cover no-repeat;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-hero .lede { color: #f3efe6; text-shadow: 0 2px 6px rgba(0,0,0,0.85); }
.home-hero .kicker, .home-hero .tagline { text-shadow: 0 2px 6px rgba(0,0,0,0.9); }

/* From the Hollers to the Mills (hollers-to-mills.html only) */
body.page-hollers .page-hero .lede {
  max-width: 44rem;
}
body.page-hollers .archive-figure {
  margin: 0 0 1.4rem;
  background: var(--panel);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 12px 40px rgba(0,0,0,0.45);
  overflow: hidden;
}
body.page-hollers .archive-figure img {
  width: 100%;
  height: auto;
  background: #111;
}
body.page-hollers .archive-figure figcaption {
  padding: 0.85rem 1.1rem 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}
body.page-hollers .archive-figure figcaption strong {
  display: block;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
body.page-hollers .archive-figure figcaption a {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.98rem;
}
body.page-hollers .photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}
body.page-hollers .photo-pair .archive-figure {
  margin-bottom: 0;
}
body.page-hollers .closing-line {
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--yellow);
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  margin: 1.3rem 0 0.35rem;
}
body.page-hollers .closing-line.closing-grit {
  color: var(--orange);
  margin-top: 0.2rem;
  margin-bottom: 0;
}
body.page-hollers .claim-list {
  margin: 0;
  padding-left: 1.3rem;
}
body.page-hollers .claim-list li {
  margin: 0 0 0.7rem;
}
body.page-hollers .claim-list li:last-child {
  margin-bottom: 0;
}
body.page-hollers .sources ul {
  margin: 0;
  padding-left: 1.3rem;
}
body.page-hollers .sources li {
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: 1.05rem;
}
body.page-hollers .sources li a { word-break: break-word; }

body.page-hollers .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
body.page-hollers .page-hero .lede,
body.page-hollers .panel p {
  text-wrap: pretty;
}
body.page-hollers .page-hero .lede {
  text-wrap: balance;
}
body.page-hollers .town-block header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
@media (max-width: 700px) {
  body.page-hollers .photo-pair {
    grid-template-columns: 1fr;
  }
}
