/* Shared styles for The Crossings & The Editions collection pages.
   Mirrors the design system already established on the homepage
   (index.html) so new pages feel like the same publication. */

:root{
  --limestone: #F1ECE1;
  --limestone-deep: #E7DFCC;
  --navy: #1B2A44;
  --navy-soft: #2C3E5C;
  --ink: #2A2A28;
  --oxblood: #7A2E2E;
  --brass: #A67C3D;
  --line: #CBC0A6;
  --paper: #FBF9F4;

  --display: 'EB Garamond', Georgia, serif;
  --body: 'EB Garamond', Georgia, serif;
  --utility: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--limestone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241,236,225,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-mark {
  font-family: var(--utility); font-weight: 700; letter-spacing: 0.14em;
  font-size: 13px; text-transform: uppercase; color: var(--navy);
  text-decoration: none;
}
.nav-links { display: flex; }
.nav-links a { margin-left: 28px; }
.nav-links a {
  font-family: var(--utility); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  color: var(--navy-soft);
}
.nav-links a:hover { color: var(--oxblood); }
.nav-links a.current { color: var(--oxblood); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 28px; height: 28px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 1.5px; background: var(--navy); }
.nav-inner { position: relative; }

/* ---------- SECTION SCAFFOLD ---------- */
section { padding: 96px 0; }
.kicker {
  font-family: var(--utility); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--oxblood);
  margin: 0 0 16px;
}
h1.page-title, h2.section-title {
  font-family: var(--display); font-weight: 600; font-size: 36px;
  color: var(--navy); margin: 0 0 20px; max-width: 32ch;
  text-wrap: balance;
}
.lede {
  font-family: var(--body); font-size: 19px; line-height: 1.7;
  color: #3C3C38; max-width: 62ch; margin: 0 0 8px;
}
.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- COLLECTION HERO (index pages) ---------- */
.collection-hero { background: var(--paper); text-align: center; border-bottom: 1px solid var(--line); }
.collection-hero .wrap { max-width: 720px; }
.collection-hero .kicker { text-align: center; }
.collection-hero .lede { margin: 0 auto; text-align: center; }

/* ---------- MINIMAL ENTRANCE HERO (Crossings single entry) ---------- */
.entry-hero.minimal { padding: 120px 0 96px; }
.entry-hero.minimal .kicker { text-align: center; }
.entry-hero.minimal .guest-name {
  font-family: var(--display); font-weight: 600; font-size: 34px;
  color: var(--navy); margin: 0 0 6px; text-align: center;
}
.entry-hero.minimal .poetic-title {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 22px; color: #4A4A44; text-align: center; margin: 0 0 44px;
}

.play-control {
  display: block; position: relative; width: 84px; height: 84px;
  margin: 0 auto 18px; background: none; border: none; padding: 0;
  cursor: pointer; color: var(--navy);
}
.play-control:hover { color: var(--oxblood); }
.play-ring { position: absolute; top: 0; left: 0; width: 84px; height: 84px; transition: color 0.2s ease; }
.play-ring.pulsing { animation: ringPulse 2.2s ease-in-out infinite; }
@keyframes ringPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.play-icon, .pause-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px;
}
.play-time {
  font-family: var(--utility); font-size: 12px; letter-spacing: 0.08em;
  color: #9A9A90; text-align: center; margin: 0 0 32px;
}
.entry-hero.minimal .cta-patreon { display: block; text-align: center; margin: 0 auto; }

/* ---------- ENTRY GRID (index pages) ---------- */
.entry-grid { background: var(--limestone); }
.entry-list { display: flex; flex-direction: column; gap: 0; }
.entry-row {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
  padding: 32px 0; border-top: 1px solid var(--line); text-decoration: none;
  color: inherit;
}
.entry-row:first-child { border-top: none; }
.entry-row img { flex: 0 0 160px; width: 160px; height: 160px; object-fit: cover; border: 1px solid var(--line); }
.entry-copy { flex: 1 1 400px; }
.entry-kicker {
  font-family: var(--utility); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin: 0 0 8px;
}
.entry-title {
  font-family: var(--display); font-weight: 600; font-size: 24px;
  color: var(--navy); margin: 0 0 8px;
}
.entry-row:hover .entry-title { color: var(--oxblood); }
.entry-dek { font-family: var(--body); font-size: 15.5px; color: #4A4A44; margin: 0; }

/* ---------- SINGLE ENTRY: SHARED HEADER ---------- */
.entry-hero { background: var(--paper); text-align: center; border-bottom: 1px solid var(--line); }
.entry-hero .wrap { max-width: 720px; }
.entry-hero .kicker { text-align: center; }
.entry-hero img.entry-hero-image {
  margin: 32px auto 0; max-width: 480px; border: 1px solid var(--line);
}

/* ---------- CROSSING-SPECIFIC ---------- */
.curator-note {
  font-family: var(--display); font-style: italic; font-size: 20px;
  color: var(--navy); line-height: 1.5; border-left: 2px solid var(--brass);
  padding-left: 24px; max-width: 62ch;
}
.audio-preview {
  background: var(--paper); border: 1px solid var(--line); padding: 28px 32px;
  max-width: 640px; margin: 32px 0;
}
.audio-preview .kicker { margin-bottom: 12px; }
.audio-preview audio { width: 100%; }
.audio-preview-note {
  font-family: var(--utility); font-size: 12px; color: #8A8A82; margin: 12px 0 0;
}

/* ---------- PULL QUOTE ---------- */
.pull { background: var(--navy); padding: 96px 0; text-align: center; }
.pull blockquote {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 30px; color: var(--paper); max-width: 20ch; margin: 0 auto 20px;
  line-height: 1.35;
}
.pull cite {
  font-family: var(--utility); font-style: normal; font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass);
}

/* ---------- CTA BUTTON (Continue / Patreon) ---------- */
.cta-primary {
  display: inline-block; text-align: center; text-decoration: none;
  font-family: var(--utility); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 15px 28px; border: 1px solid var(--navy); color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: 8px;
}
.cta-primary:hover { background: var(--navy); color: var(--paper); }

.text-link {
  display: inline-block; font-family: var(--utility); font-weight: 600;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--oxblood); text-decoration: none;
  padding-bottom: 5px; border-bottom: 1px solid var(--brass);
  margin-top: 20px;
}
.text-link:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- RELATED CONTENT STRIP ---------- */
.related { background: var(--limestone-deep); }
.related .kicker { text-align: center; }
.related-links { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.related-links a {
  font-family: var(--display); font-style: italic; font-size: 18px;
  color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--brass);
  padding-bottom: 3px;
}
.related-links a:hover { color: var(--oxblood); }

/* ---------- PHOTO CREDIT CAPTION ---------- */
.essay-photo { margin: 40px 0; }
.essay-photo img { width: 100%; border: 1px solid var(--line); }
.essay-photo .credit {
  font-family: var(--utility); font-size: 12px; color: #9A9A90;
  margin-top: 10px; text-align: right;
}

/* ---------- EDITOR'S NOTE / FEATURE ESSAY ---------- */
.editor-note {
  font-family: var(--display); font-style: italic; font-size: 20px;
  color: var(--navy); line-height: 1.5; margin: 0 0 40px; max-width: 62ch;
}
.feature-essay p { font-size: 17px; color: #3C3C38; max-width: 68ch; }

/* ---------- FOOTER ---------- */
footer { background: var(--navy); color: #C7CDD8; padding: 56px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.footer-mark { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--paper); }
.footer-meta { font-family: var(--utility); font-size: 12px; letter-spacing: 0.04em; color: #8891A0; }

/* ---------- SITE FOOTER PROMO (Editions/Crossings cross-links) ---------- */
.footer-promo {
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 40px 0; text-align: center;
}
.footer-promo p { font-family: var(--body); font-size: 16px; margin: 0 0 6px; }
.footer-promo .text-link { margin-top: 4px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--limestone);
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px; gap: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { margin-left: 0; padding: 12px 0; border-top: 1px solid var(--line); }
  .nav-links a:first-child { border-top: none; }
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .entry-row img { flex: 0 0 100%; width: 100%; height: auto; max-height: 220px; }
}
