/*
Theme Name: Runner3 Editorial
Theme URI: https://github.com/louisalviss/runner-3
Author: Runner3
Description: A lightweight editorial WordPress theme inspired by contemporary magazine and studio layouts.
Version: 2.0.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: runner3-starter
*/

:root {
  --ink: #11110f;
  --paper: #f2efe7;
  --paper-2: #e7e1d5;
  --signal: #dfff00;
  --muted: #807c73;
  --line: rgba(17,17,15,.22);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--signal); color: var(--ink); }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.serif { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,239,231,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.header-row > * { min-width: 0; }
.brand { font-weight: 900; letter-spacing: -.06em; text-decoration: none; font-size: 26px; text-transform: uppercase; }
.brand-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); margin-left: 4px; vertical-align: top; }
.nav ul { display: flex; list-style: none; padding: 0; margin: 0; gap: 22px; }
.nav a { text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.header-meta { justify-self: end; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

.edition-hero { padding: 22px 0 34px; border-bottom: 1px solid var(--line); }
.hero-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.hero-title { margin: 0; font-size: clamp(74px, 13.8vw, 220px); line-height: .72; letter-spacing: -.085em; text-transform: uppercase; font-weight: 900; }
.hero-title em { display: block; margin-left: 18%; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; text-transform: none; letter-spacing: -.07em; }
.hero-feature { margin-top: 42px; display: grid; grid-template-columns: 1.1fr .9fr; border-top: 1px solid var(--line); padding-top: 18px; gap: 18px; }
.hero-feature > * { min-width: 0; }
.hero-copy { display: grid; grid-template-rows: auto 1fr auto; min-height: 520px; padding-right: 8vw; }
.hero-feature h2 { font-size: clamp(40px, 5.7vw, 86px); letter-spacing: -.06em; line-height: .92; margin: 18px 0; font-weight: 700; overflow-wrap: break-word; }
.hero-feature h2 a { text-decoration: none; }
.hero-feature h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero-excerpt { max-width: 520px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(18px, 1.65vw, 24px); line-height: 1.35; }
.hero-image { min-height: 520px; overflow: hidden; background: #ccc; }
.hero-image img { height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .6s ease, filter .6s ease; }
.hero-image:hover img { transform: scale(1.025); filter: grayscale(.25); }

.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: baseline; margin-bottom: 36px; }
.section-head > * { min-width: 0; }
.section-head h2 { margin: 0; font-size: clamp(38px, 5vw, 76px); letter-spacing: -.055em; line-height: .95; }
.story-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 30px 18px; align-items: start; }
.story-card { grid-column: span 4; min-width: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.story-card:nth-child(1) { grid-column: span 6; }
.story-card:nth-child(2), .story-card:nth-child(3) { grid-column: span 3; }
.story-image { display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); margin-bottom: 15px; }
.story-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: .45s ease; }
.story-card:hover img { filter: grayscale(0); transform: scale(1.02); }
.story-meta { display: flex; justify-content: space-between; gap: 12px; color: #4d4a44; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.story-meta > * { min-width: 0; }
.story-card h3 { margin: 12px 0 8px; font-size: clamp(25px, 2.4vw, 38px); line-height: 1; letter-spacing: -.045em; overflow-wrap: break-word; }
.story-card h3 a { text-decoration: none; }
.story-card p { margin: 0; max-width: 48ch; font-family: Georgia, 'Times New Roman', serif; color: #4c4942; overflow-wrap: break-word; }

.manifesto { background: var(--ink); color: var(--paper); padding: 88px 0; }
.manifesto-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; }
.manifesto-grid > * { min-width: 0; }
.manifesto p { margin: 0; font-size: clamp(34px, 5.3vw, 80px); line-height: 1.02; letter-spacing: -.055em; }
.manifesto p em { color: var(--signal); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }

.category-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-link { min-width: 0; min-height: 190px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: background .25s ease; }
.category-link:hover { background: var(--signal); }
.category-link strong { font-size: clamp(28px, 3vw, 46px); letter-spacing: -.05em; overflow-wrap: break-word; }
.category-link span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

.newsletter { padding: 92px 0; }
.newsletter-box { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); border-top: 1px solid var(--line); padding-top: 18px; gap: 34px; }
.newsletter h2 { margin: 0; font-size: clamp(54px, 8vw, 118px); line-height: .82; letter-spacing: -.075em; text-transform: uppercase; }
.newsletter h2 em { display: block; font-family: Georgia, 'Times New Roman', serif; text-transform: none; font-weight: 400; }
.newsletter-copy { min-width: 0; align-self: end; }
.newsletter-copy p { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; }
.fake-form { display: flex; border-bottom: 1px solid var(--ink); margin-top: 32px; }
.fake-form input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 14px 0; font: inherit; outline: none; }
.fake-form button { flex: 0 0 auto; border: 0; background: transparent; font-weight: 800; cursor: pointer; }

.archive-hero, .content-shell { padding: 64px 0 90px; }
.archive-hero h1, .article-title, .page-title { margin: 8px 0 36px; font-size: clamp(58px, 10vw, 150px); line-height: .82; letter-spacing: -.07em; overflow-wrap: break-word; }
.archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 18px; }
.archive-grid > * { min-width: 0; }
.article-shell { width: min(calc(100% - 48px), 1180px); margin: 0 auto; padding: 48px 0 100px; }
.article-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,3fr); gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 34px; }
.article-title { margin-top: 0; }
.article-hero { margin: 28px 0 60px; aspect-ratio: 16/8.5; overflow: hidden; }
.article-hero img { height: 100%; object-fit: cover; filter: grayscale(.8); }
.article-body { width: min(760px, 75%); margin-left: 25%; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.62; }
.article-body h2, .article-body h3 { font-family: Arial, Helvetica, sans-serif; letter-spacing: -.04em; line-height: 1; margin-top: 2.2em; }
.article-body blockquote { margin: 2em 0; padding-left: 22px; border-left: 5px solid var(--signal); font-size: 1.35em; line-height: 1.25; }
.article-body a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

.site-footer { background: var(--ink); color: var(--paper); padding: 48px 0 28px; }
.footer-top { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); gap: 24px; margin-bottom: 80px; }
.footer-top > * { min-width: 0; }
.footer-mark { font-size: clamp(70px, 12vw, 180px); font-weight: 900; line-height: .75; letter-spacing: -.08em; }
.footer-col { font-size: 13px; }
.footer-col a { display: block; text-decoration: none; margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(242,239,231,.3); padding-top: 18px; display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 900px) {
  .header-row { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero-feature, .newsletter-box, .manifesto-grid, .article-head { grid-template-columns: 1fr; }
  .hero-copy { min-height: 0; padding-right: 0; }
  .hero-image { min-height: auto; aspect-ratio: 4/3; }
  .story-card, .story-card:nth-child(n) { grid-column: span 6; }
  .category-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-body { width: min(760px,100%); margin-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-mark { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .wrap, .article-shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { position: relative; }
  .header-row { min-height: 62px; }
  .header-meta { display: none; }
  .edition-hero { padding-top: 16px; }
  .hero-meta { margin-bottom: 30px; }
  .hero-title { font-size: 24vw; line-height: .75; }
  .hero-title em { margin-left: 4%; }
  .hero-feature { margin-top: 26px; }
  .hero-feature h2 { font-size: 13vw; }
  .section { padding: 48px 0; }
  .section-head { grid-template-columns: 1fr; }
  .story-grid { gap: 34px 12px; }
  .story-card, .story-card:nth-child(n) { grid-column: 1 / -1; }
  .category-strip { grid-template-columns: 1fr; }
  .category-link { min-height: 120px; }
  .archive-grid { grid-template-columns: 1fr; }
  .manifesto { padding: 62px 0; }
  .newsletter { padding: 62px 0; }
  .footer-top { grid-template-columns: 1fr; margin-bottom: 50px; }
  .footer-mark { grid-column: auto; }
  .footer-bottom { gap: 14px; flex-direction: column; }
}
