/*
Theme Name: This Month in '90s Country
Theme URI: https://musicmvpstaging.projectbrain.dev
Author: Music Memories MVP
Description: Radio chart cue-card theme for monthly '90s country newsletter issues. Matches the HTML mockup design (Fraunces + Libre Franklin, manila paper palette).
Version: 1.1.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: twinc
License: GNU General Public License v2 or later
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..900&family=Libre+Franklin:wght@400;500;600;700&display=swap');

:root {
  --paper: #EFE3C3;
  --card: #FAF3DE;
  --ink: #1F2A3C;
  --ink-soft: #5C6478;
  --rust: #C1462A;
  --rust-dark: #A23A22;
  --gold: #A9791E;
  --teal: #2F5D62;
  --dusk: #3D3350;
  --line: rgba(31, 42, 60, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Libre Franklin', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 36px 20px 56px; }

header.masthead { text-align: center; margin-bottom: 34px; }

.issue-tag {
  display: inline-block;
  font-size: 12.5px;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

h1.wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(28px, 7.5vw, 42px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.wordmark a {
  color: inherit;
  text-decoration: none;
}

.rule-thick { border: none; border-top: 3px solid var(--ink); width: 92px; margin: 0 auto 6px; }
.rule-thin { border: none; border-top: 1px solid var(--ink); opacity: 0.35; width: 92px; margin: 0 auto 20px; }

.issue-when {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(22px, 5.5vw, 32px);
  line-height: 1.15;
  color: var(--rust);
  margin: 0 0 12px;
}

.dek { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; max-width: 44ch; margin: 0 auto; }

.story {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 5px 5px 0 rgba(31, 42, 60, 0.09);
  padding: 28px 26px 26px;
  margin-bottom: 38px;
}

.story::after,
.forgotten::after {
  content: "";
  display: table;
  clear: both;
}

.album-art {
  float: right;
  width: 118px;
  margin: 0 0 14px 16px;
}

.album-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 4px 4px 0 rgba(31, 42, 60, 0.12);
  background: var(--paper);
}

@media (min-width: 480px) {
  .album-art { width: 140px; }
}

.year-badge {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--rust);
  margin-bottom: 4px;
}

.date-line {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

h2.headline {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 16px;
}

.story p, .forgotten p { font-size: 16px; line-height: 1.65; margin: 0 0 14px; }

blockquote {
  margin: 18px 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--gold);
  font-family: 'Fraunces', serif;
  font-size: 17px;
  line-height: 1.5;
  font-style: italic;
}

.forgotten blockquote { border-left-color: var(--dusk); }

blockquote cite {
  display: block;
  margin-top: 8px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 13px;
  font-style: normal;
  color: var(--ink-soft);
}

.dj-break {
  background: rgba(47, 93, 98, 0.09);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 20px 0;
}

.forgotten .dj-break { background: rgba(61, 51, 80, 0.09); }

.dj-label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 8px;
}

.forgotten .dj-label { color: var(--dusk); }

.dj-break p { font-size: 15px; line-height: 1.6; font-style: italic; margin: 0; }

.song-meta { font-size: 14px; font-style: italic; color: var(--ink-soft); margin: 18px 0 16px; }

a.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rust);
  color: var(--card);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 3px;
}

a.listen-btn:hover { background: var(--rust-dark); }
.forgotten a.listen-btn { background: var(--dusk); }

.play-icon { font-size: 12px; }

.link-flag {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 10px;
  font-style: italic;
}

/* Forgotten feature */
.feature-header { text-align: center; margin: 46px 0 20px; }

.feature-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--card);
  background: var(--dusk);
  padding: 6px 16px;
  border-radius: 2px;
}

h2.feature-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(25px, 5.5vw, 33px);
  line-height: 1.15;
  margin: 16px 0 0;
  color: var(--dusk);
}

.forgotten {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--dusk);
  border-radius: 5px;
  box-shadow: 5px 5px 0 rgba(61, 51, 80, 0.13);
  padding: 28px 26px 26px;
  margin-bottom: 30px;
}

.artist-line {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 4px;
}

.subline {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 20px;
}

.stat { flex: 1 1 30%; padding: 12px 10px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--rust);
  line-height: 1;
}

.stat-label {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 5px;
  line-height: 1.3;
}

.feature-eyebrow.chart-eyebrow {
  background: var(--teal);
}

h2.feature-title.chart-heading {
  color: var(--teal);
}

.chart {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 5px;
  box-shadow: 5px 5px 0 rgba(47, 93, 98, 0.13);
  padding: 22px 22px 18px;
  margin-bottom: 38px;
}

.chart .date-line { margin: 0 0 10px; }

.chart-legend {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0 0 14px;
}

.chart-legend strong { color: var(--gold); font-weight: 600; }

.chart-cols {
  display: grid;
  grid-template-columns: 2.25rem 1fr 2.75rem;
  gap: 2px 10px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 2px;
}

.chart-cols span:last-child { text-align: right; }

.chart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chart-list li {
  display: grid;
  grid-template-columns: 2.25rem 1fr 2.75rem;
  gap: 2px 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.chart-list li:last-child { border-bottom: none; }

.chart-rank {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: var(--teal);
}

.chart-list li:first-child .chart-rank { color: var(--rust); }

.chart-title {
  display: block;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.chart-artist {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.chart-peak {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: var(--gold);
  text-align: right;
}

.chart-note {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 5px;
}

.chart .song-meta { margin: 14px 0 0; }

.site-footer {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.site-footer p { margin: 0 0 6px; }

/* Genre landing / archive */
.issue-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.issue-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 5px 5px 0 rgba(31, 42, 60, 0.09);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.issue-list a {
  color: var(--ink);
  text-decoration: none;
}

.issue-list .issue-tag {
  margin-bottom: 10px;
}

.issue-list h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.issue-list .dek {
  margin: 0;
  text-align: left;
  max-width: none;
}

/* Latest-issue hero landing */
.masthead .date-line { text-align: center; }

.hero-issue { margin-bottom: 28px; }
.hero-issue .listen-btn { margin-top: 4px; }

.section-label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin: 8px 0 12px;
}

.also-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.also-list li {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.also-list a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.also-year {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  color: var(--rust);
  margin-bottom: 4px;
}

.also-headline {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
}

.forgotten-teaser {
  display: block;
  background: rgba(61, 51, 80, 0.09);
  border-left: 3px solid var(--dusk);
  padding: 16px 18px;
  margin: 0 0 42px;
  text-decoration: none;
  color: inherit;
}

.forgotten-teaser p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.3;
  color: var(--dusk);
  margin: 10px 0 0;
}

.chart-teaser {
  display: block;
  background: rgba(47, 93, 98, 0.09);
  border-left: 3px solid var(--teal);
  padding: 16px 18px;
  margin: 0 0 18px;
  text-decoration: none;
  color: inherit;
}

.chart-teaser p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.3;
  color: var(--teal);
  margin: 10px 0 0;
}

.earlier-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.earlier-list li {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.earlier-list li:last-child { border-bottom: 1px solid var(--line); }

.earlier-list a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.earlier-list .issue-tag {
  margin-bottom: 8px;
}

.earlier-dek {
  display: block;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
