/* ==========================================================================
   READERS mZINE — readersmzine.com
   Classic literary-magazine design system.
   Palette and masthead drawn from the Issue 1 (May 2026) cover.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* color roles */
  --paper:      #f6f1e7;   /* page background — warm cream */
  --paper-deep: #eee6d6;   /* tinted panels */
  --ink:        #23201b;   /* body text */
  --ink-soft:   #57503f;   /* captions, muted text */
  --red:        #b32421;   /* brand red — READERS masthead */
  --red-deep:   #8c1b18;   /* hover / pressed */
  --gold:       #c9a55e;   /* fine accents — AA on dark band (7:1 on --ink) */
  --rule:       #c9bda4;   /* hairline rules */
  --rule-dark:  #23201b;   /* heavy rules */

  /* type */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-zine:    "Italiana", "Didot", serif;
  --font-body:    "Lora", "Georgia", serif;
  --font-caps:    "Inter", "Helvetica Neue", sans-serif;

  /* type ramp (5 steps) */
  --text-display: clamp(3.4rem, 9.5vw, 7rem);
  --text-headline: clamp(1.9rem, 4vw, 2.8rem);
  --text-subhead: 1.35rem;
  --text-body: 1.0625rem;
  --text-caption: 0.875rem;

  /* spacing scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --measure: 62ch;
  --container: 1100px;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--s5); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4);
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Typography helpers ---- */
.kicker {
  font-family: var(--font-caps);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker--red { color: var(--red); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 var(--s4); }
h2 { font-size: var(--text-headline); font-weight: 700; }
h3 { font-size: var(--text-subhead); font-weight: 700; }
p  { margin: 0 0 var(--s4); max-width: var(--measure); }

/* ---- Rules (the magazine lines) ---- */
.rule       { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule--dark { border-top: 2px solid var(--rule-dark); }
.rule--double {
  border: 0; height: 7px; margin: 0;
  border-top: 3px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}

/* ==========================================================================
   Family strip — the Joy on Paper family line, directly under the main nav
   ========================================================================== */
.family {
  border-bottom: 1px solid var(--rule);
  padding: var(--s3) 0;
}
.family__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--s1) var(--s4);
}
.family__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.family__entry {
  font-family: var(--font-caps);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
a.family__entry { text-decoration: none; }
a.family__entry:hover { color: var(--red); }
.family__entry--current { color: var(--red); }
.family__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 2px;
  margin-right: var(--s2);
}
.family__sep { color: var(--rule); font-size: 0.68rem; }
@media (max-width: 560px) {
  .family__label { display: none; }
}

/* ==========================================================================
   Masthead
   ========================================================================== */
.topbar {
  border-bottom: 1px solid var(--rule);
  padding: var(--s3) 0;
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
}
.topbar .kicker { font-size: 0.68rem; }

.masthead { text-align: center; padding: var(--s7) 0 var(--s5); }
.masthead__brand {
  font-size: var(--text-display);
  line-height: 0.95;
  margin: 0;
}
.masthead__brand a { text-decoration: none; }
.brand-readers {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--red);
}
.brand-mzine {
  display: block;
  font-family: var(--font-zine);
  font-weight: 400;
  font-size: 0.52em;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-top: -0.08em;
}
.masthead__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: none;
  margin: var(--s4) auto 0;
}

/* ---- Navigation ---- */
.site-nav {
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.site-nav ul {
  list-style: none; margin: 0; padding: var(--s3) 0;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--s2) var(--s7);
}
.site-nav a {
  font-family: var(--font-caps);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: var(--s2) 0;
}
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] {
  color: var(--red);
  border-bottom: 2px solid var(--red);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-caps);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: var(--s4) var(--s5);
  border: 1.5px solid var(--red);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--red); color: var(--paper); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s4); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--s8) 0; }
.section__head { text-align: center; margin-bottom: var(--s6); }
.section__head h2 { margin-top: var(--s3); }
.section__head .rule--double { max-width: 120px; margin: var(--s4) auto 0; }

/* ---- Hero: inaugural edition ---- */
.hero { padding: var(--s8) 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: var(--s8);
  align-items: center;
}
.hero__cover {
  margin: 0;
  transform: rotate(-1.2deg);
}
.hero__cover img {
  border: 1px solid var(--rule);
  box-shadow: 12px 14px 0 var(--paper-deep), 12px 14px 0 1px var(--rule);
}
.hero__copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.hero__copy .lede {
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
}

/* ---- Feature story rows (radio / youtube) ---- */
.story { padding: var(--s8) 0; }
.story__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s8);
  align-items: center;
}
.story__grid--flip { grid-template-columns: 0.8fr 1.2fr; }
.story figure { margin: 0; }
.story figure img { border: 1px solid var(--rule); }
.story figcaption {
  font-size: var(--text-caption);
  font-style: italic;
  color: var(--ink-soft);
  padding-top: var(--s3);
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--s3);
}

/* drop cap for the lead paragraph of a story */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.3em;
  line-height: 0.85;
  float: left;
  padding-right: 0.12em;
  color: var(--red);
}

/* ---- Stats band ---- */
.stats {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s8) 0;
}
.stats .kicker { color: var(--gold); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
  text-align: center;
  margin: var(--s6) 0;
}
.stat__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--paper);
  display: block;
  line-height: 1;
}
.stat__label {
  font-family: var(--font-caps);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rule);
  display: block;
  margin-top: var(--s3);
}
.stats p { color: var(--paper-deep); margin-inline: auto; text-align: center; }

/* ---- Editor's note (what you will not find) ---- */
.note {
  max-width: 720px;
  margin-inline: auto;
  border-top: 3px solid var(--rule-dark);
  border-bottom: 3px solid var(--rule-dark);
  padding: var(--s6) var(--s5);
  text-align: center;
}
.note h2 { font-style: italic; }
.note p { margin-inline: auto; }
.note__signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--red);
  margin-top: var(--s5);
}

/* ---- Feature cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.card {
  background: #fffdf8;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--rule); }
.card__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.card__body .kicker { font-size: 0.68rem; }
.card__body h3 { margin: 0; }
.card__body p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.card__link {
  font-family: var(--font-caps);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  margin-top: auto; padding-top: var(--s3);
}

/* ---- Event cards ---- */
.event {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s6);
  border: 1px solid var(--rule);
  background: #fffdf8;
  padding: var(--s6);
  margin-bottom: var(--s5);
}
.event__date { text-align: center; border-right: 1px solid var(--rule); padding-right: var(--s5); }
.event__date .month {
  font-family: var(--font-caps); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--red); display: block;
}
.event__date .day {
  font-family: var(--font-display); font-weight: 800;
  font-size: 3rem; line-height: 1.1; display: block;
}
.event__body h3 { margin-bottom: var(--s2); }
.event__meta { font-size: var(--text-caption); color: var(--ink-soft); font-style: italic; }

.empty-state {
  text-align: center;
  border: 1px solid var(--rule);
  background: #fffdf8;
  padding: var(--s8) var(--s6);
  max-width: 720px;
  margin-inline: auto;
}
.empty-state h2 { font-style: italic; }
.empty-state p { margin-inline: auto; }

/* ---- Prose pages (about) ---- */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { margin-top: var(--s7); }
.prose figure { margin: var(--s6) 0; }
.prose figure img { border: 1px solid var(--rule); }
.prose figcaption {
  font-size: var(--text-caption); font-style: italic; color: var(--ink-soft);
  padding-top: var(--s3);
}

.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--red);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--s5) 0;
  margin: var(--s6) 0;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: var(--s8);
  border-top: 3px solid var(--rule-dark);
  padding: var(--s7) 0 var(--s6);
  text-align: center;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--red);
  letter-spacing: 0.02em;
}
.footer__brand .brand-mzine {
  display: inline;
  font-size: 0.9em;
  letter-spacing: 0.12em;
}
.footer nav ul {
  list-style: none; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--s2) var(--s6);
  margin: var(--s4) 0;
}
.footer nav a {
  font-family: var(--font-caps); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.footer nav a:hover { color: var(--red); }
.footer__fine {
  font-size: var(--text-caption);
  color: var(--ink-soft);
  font-style: italic;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero__grid, .story__grid, .story__grid--flip { grid-template-columns: 1fr; gap: var(--s6); }
  .hero__cover { max-width: 360px; margin-inline: auto; }
  .story__grid figure { order: -1; max-width: 480px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .section, .hero, .story { padding: var(--s6) 0; }
  /* keep the family label in the accessible name, hide it visually */
  .family__label {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .topbar__inner { justify-content: center; }
  .topbar__inner .kicker:last-child { display: none; }
  .site-nav ul { gap: var(--s2) var(--s5); }
  .event { grid-template-columns: 1fr; }
  .event__date { border-right: 0; border-bottom: 1px solid var(--rule); padding: 0 0 var(--s4); }
}
