@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Fraunces-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/Fraunces.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/SourceSerif4-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/SourceSerif4.woff2') format('woff2');
}

/* Dead Ringer Press — MVP prototype stylesheet
   Palette + type system per the build brief: literary noir, restrained, editorial. */

:root {
  --ink: #111111;
  --paper: #F3EFE7;
  --paper-raised: #FBF8F2;
  --oxblood: #8F1720;
  --oxblood-dark: #6f1119;
  --smoke: #686868;
  --smoke-light: #9a9a9a;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.22);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --measure: 740px;
  --wrap: 1180px;

  --radius: 3px;
  --shadow-card: 0 1px 2px rgba(17,17,17,0.06), 0 8px 24px -12px rgba(17,17,17,0.18);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0; top: -60px; background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 1000; transition: top .15s ease;
}
.skip-link:focus { top: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 860px; }

.section { padding: 64px 0; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 600;
  margin: 0 0 14px;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
  margin: 0 0 12px;
}
.eyebrow a { color: var(--smoke); }

.section-heading-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 4px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn--solid { background: var(--oxblood); color: #fff; }
.btn--solid:hover { background: var(--oxblood-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); background: rgba(17,17,17,0.04); }
.btn--large { padding: 16px 30px; font-size: 1rem; }

.text-link {
  font-weight: 600;
  color: var(--oxblood);
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { border-radius: 4px; }
.brand__word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
}

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.primary-nav a {
  text-decoration: none; font-size: 0.98rem; font-weight: 600; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a.is-active { border-bottom-color: var(--oxblood); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 0 8px; }

/* Hero */
.hero { padding: 76px 0 56px; }
.hero__inner { max-width: 760px; }
.hero__headline { margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Featured story */
.featured { padding-top: 24px; }
.featured-story {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden;
}
.featured-story__media img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16/9; }
.featured-story__body { padding: 8px 40px 8px 0; }
.featured-story__title { margin: 6px 0 14px; }
.featured-story__title a { text-decoration: none; color: inherit; }
.featured-story__standfirst { color: #2b2b2b; font-size: 1.05rem; margin-bottom: 14px; }

/* Story grid + cards */
.story-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px;
}
.story-grid--archive { grid-template-columns: repeat(3, 1fr); }

.story-card__link { display: block; text-decoration: none; color: inherit; }
.story-card__media {
  position: relative; border-radius: 4px; overflow: hidden; margin-bottom: 16px;
  background: var(--smoke);
}
.story-card__media img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform .35s ease; }
.story-card__link:hover .story-card__media img { transform: scale(1.03); }
.story-card__badge {
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--paper);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  padding: 5px 10px; border-radius: 3px;
}
.story-card--pending .story-card__media img { opacity: 0.88; }
.story-card__meta {
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--smoke);
  margin: 0 0 8px; font-family: var(--font-body); font-weight: 600;
}
.story-card__title { margin: 0 0 8px; font-size: 1.3rem; }
.story-card__standfirst { color: #333; font-size: 0.98rem; margin-bottom: 10px; }
.story-card__byline { font-size: 0.85rem; color: var(--smoke); margin: 0; }

/* What we publish statement */
.statement { background: var(--ink); color: var(--paper); }
.statement__inner { max-width: 860px; }
.statement__text {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.3rem, 1.4vw + 1rem, 1.7rem); line-height: 1.4; margin: 0;
  text-wrap: pretty;
}

/* Submit CTA band */
.submit-cta { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.submit-cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.submit-cta__inner h2 { margin: 4px 0 8px; }
.submit-cta__inner p { margin: 0; color: #333; max-width: 46ch; }
.submit-cta--compact { padding: 48px 0; }

/* Newsletter */
.newsletter-block__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.newsletter-block__inner h2 { margin: 4px 0 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  font-family: var(--font-body); font-size: 0.98rem; padding: 13px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); min-width: 240px;
  background: #fff;
}
.newsletter-form__note { font-size: 0.85rem; color: var(--smoke); margin-top: 10px; }

/* Page headers (Stories, Submit, About, Features, Contact, Legal) */
.page-header { padding-bottom: 32px; }
.page-header__lede { font-size: 1.1rem; color: #2b2b2b; max-width: 62ch; }

/* Prose (About / Legal) */
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.prose-columns h2 { margin-top: 1.6em; }
.prose-columns h2:first-child { margin-top: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 1.6em; position: relative; margin-bottom: 0.7em; color: #2b2b2b;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px;
  background: var(--oxblood); border-radius: 50%;
}

.faq-list { margin: 0; }
.faq-item { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-item dt { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; }
.faq-item dd { margin: 0; color: #2b2b2b; }

.empty-state {
  border: 1px dashed var(--line-strong); border-radius: 6px; padding: 48px;
  text-align: center; color: var(--smoke); font-size: 1.05rem;
}
.empty-state p { margin: 0 0 8px; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-weight: 600; font-size: 0.9rem; margin-top: 14px; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  resize: vertical;
}
.contact-form button { margin-top: 20px; align-self: flex-start; }
.contact-form__note { font-size: 0.85rem; color: var(--smoke); margin-top: 14px; }

/* Author header */
.author-header__inner { display: flex; gap: 32px; align-items: center; }
.author-header__photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--paper-raised); border: 1px solid var(--line);
}
.author-header__photo--placeholder { display: flex; align-items: center; justify-content: center; }
.author-header__photo--placeholder img { width: 48px; height: 48px; opacity: 0.5; }
.author-header__links a { margin-right: 16px; font-weight: 600; color: var(--oxblood); text-decoration: none; }

/* ---- Story reading experience ---- */
.story-header { padding: 56px 0 0; }
.story-header__inner { max-width: var(--measure); }
.story-header__title { margin: 6px 0 18px; }
.story-header__standfirst { font-size: 1.2rem; color: #2b2b2b; margin-bottom: 18px; }
.story-header__byline { font-size: 0.92rem; color: var(--smoke); }
.story-header__byline a { color: var(--smoke); font-weight: 600; }
.story-header__dot { margin: 0 8px; }

.content-warning {
  display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 600;
  color: var(--oxblood); border: 1px solid var(--oxblood); border-radius: 3px; padding: 6px 12px;
}

.story-hero { margin: 40px 0; }
.story-hero img { width: 100%; height: auto; aspect-ratio: 3/2; max-height: 560px; object-fit: cover; }

.story-body {
  max-width: var(--measure); margin: 0 auto 64px;
  font-size: 19px; line-height: 1.75;
}
.story-body p { margin: 0 0 1.3em; }
.story-body p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 700; font-size: 3.4em; float: left;
  line-height: 0.85; padding: 0.05em 0.08em 0 0; color: var(--oxblood);
}
.chapter-break {
  text-align: center; margin: 2.2em 0 1em; font-size: 1.1rem; letter-spacing: 0.08em;
  color: var(--smoke);
}
.scene-break {
  text-align: center; color: var(--oxblood); margin: 2em 0; font-size: 1.1rem; letter-spacing: 0.3em;
}
.pending-notice {
  max-width: var(--measure); margin: 0 auto 64px; background: var(--paper-raised);
  border: 1px dashed var(--line-strong); border-radius: 6px; padding: 32px; color: var(--smoke);
}

.story-author-card {
  max-width: var(--measure); margin: 0 auto 64px; padding-top: 32px; border-top: 1px solid var(--line);
}
.story-author-card__name a { text-decoration: none; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.story-author-card__bio { color: #333; margin-top: 6px; max-width: 62ch; }

.related-stories { background: var(--paper-raised); border-top: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(243,239,231,0.85); padding: 64px 0 0; margin-top: 40px; }
.site-footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(243,239,231,0.15);
}
.site-footer__inner--no-social { grid-template-columns: 1.4fr 1fr 1.4fr; }
.site-footer a { color: rgba(243,239,231,0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__name { font-family: var(--font-display); font-weight: 700; color: #fff; margin: 14px 0 4px; }
.site-footer__tagline { font-size: 0.92rem; color: rgba(243,239,231,0.65); margin: 0; }
.site-footer__heading {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243,239,231,0.55);
  margin: 0 0 14px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__newsletter-copy { font-size: 0.9rem; color: rgba(243,239,231,0.65); margin: 0 0 14px; }
.site-footer .newsletter-form input[type="email"] { background: rgba(243,239,231,0.08); border-color: rgba(243,239,231,0.25); color: #fff; }
.site-footer .newsletter-form input[type="email"]::placeholder { color: rgba(243,239,231,0.4); }
.site-footer__legal { padding: 22px 0; font-size: 0.82rem; color: rgba(243,239,231,0.5); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-story { grid-template-columns: 1fr; }
  .featured-story__body { padding: 0 28px 28px; }
  .featured-story__media img { aspect-ratio: 16/10; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .prose-columns { grid-template-columns: 1fr; gap: 8px; }
  .author-header__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: fixed; inset: 76px 0 0 0; background: var(--paper); flex-direction: column;
    align-items: flex-start; padding: 24px; gap: 20px; transform: translateY(-8px);
    opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
    border-top: 1px solid var(--line);
  }
  .primary-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .primary-nav a { display: block; padding: 12px 0; font-size: 1.1rem; }
  .nav-toggle { display: flex; }

  .story-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 44px 0; }
  .hero { padding: 48px 0 36px; }
  .story-body { font-size: 18px; }
  .submit-cta__inner, .newsletter-block__inner { flex-direction: column; align-items: flex-start; }
}

.newsletter-consent { font-size: 0.85rem; color: var(--smoke); margin: 10px 0 0; }
.newsletter-consent a { color: inherit; }
.site-footer .newsletter-consent { color: rgba(243,239,231,0.55); }
