/* ChurniSpeaks — stylesheet
   Paper #F2EDE4 · Ink #0D0D0B · Signal orange #FF6B1A
   Anton (display) · Archivo (body) · JetBrains Mono (labels) */

:root {
  --paper: #F2EDE4;
  --ink: #0D0D0B;
  --orange: #FF6B1A;
  --orange-deep: #E85F12;
  --link: #B8460E;
  --link-hover: #8F340A;
  --body: #26261F;
  --muted: #3A3A34;
  --faint: #6B6A63;
  --rule: #C6BFB2;
  --panel: #E3DCCE;
  --dark-panel: #1C1C19;
  --dark-rule: #33332E;
  --dark-text: #C9C7BF;
  --dark-faint: #8C8A83;
  --gutter: 72px;
  --display: Anton, "Arial Narrow", sans-serif;
  --sans: Archivo, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--link); }
a:hover { color: var(--link-hover); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  font-family: var(--mono); font-size: 14px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- layout ---------- */

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.inner { max-width: 1440px; margin: 0 auto; }
.measure { max-width: 840px; margin-left: auto; margin-right: auto; }

/* ---------- type ---------- */

.display { font-family: var(--display); text-transform: uppercase; font-weight: 400; }

h1.hero-title {
  font-family: var(--display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(44px, 7.4vw, 99px); line-height: 0.9; letter-spacing: -0.5px; margin: 0;
}
h1.page-title {
  font-family: var(--display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(40px, 6.4vw, 87px); line-height: 0.9; margin: 0;
}
h2.section-title {
  font-family: var(--display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(30px, 4.2vw, 52px); line-height: 1; margin: 0;
}
h3 {
  font-family: var(--display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(22px, 2.4vw, 29px); line-height: 1.05; margin: 0;
}

.label {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--link);
}
.label-quiet { color: var(--faint); letter-spacing: 1.6px; }
.label-loud { color: var(--orange); }

.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; margin: 0; }
.prose p { font-size: 20px; line-height: 1.75; color: var(--body); }

.rule-mark { width: 160px; height: 6px; background: var(--orange); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border: 2px solid transparent;
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-deep); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #27271F; color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-light { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- header ---------- */

.site-header { background: var(--ink); }
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 24px;
}
.wordmark {
  font-family: var(--display); text-transform: uppercase; font-size: 22px;
  color: var(--paper); text-decoration: none; letter-spacing: 0.5px;
}
.wordmark span { color: var(--orange); }
.wordmark:hover { color: var(--paper); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--paper); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--orange); }
.site-nav .btn { min-height: 46px; padding: 0 22px; font-size: 14px; }
.nav-toggle { display: none; }

/* ---------- bands ---------- */

.band-dark { background: var(--ink); color: var(--paper); }
.band-dark p { color: var(--dark-text); }
.band-orange { background: var(--orange); color: var(--ink); }
.pad { padding-top: 70px; padding-bottom: 66px; }
.pad-sm { padding-top: 44px; padding-bottom: 44px; }

/* ---------- hero ---------- */

.hero { display: flex; gap: 64px; align-items: flex-end; }
.hero-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 26px; max-width: 760px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { width: 400px; flex: 0 0 auto; }
.ph {
  background: var(--panel); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 1px; color: var(--faint); text-align: center; padding: 16px;
}
.ph-dark { background: var(--dark-panel); border-color: var(--dark-rule); color: var(--dark-faint); }
.ph-portrait { height: 480px; }
.caption { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 12px; }
.band-dark .caption { color: var(--dark-faint); }

/* ---------- ruled grids ---------- */

.ruled { border-top: 3px solid var(--ink); display: grid; gap: 0; }
.ruled-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ruled-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ruled > * {
  padding: 30px 30px 36px; border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 12px;
}
.ruled > *:first-child { padding-left: 0; }
.ruled-3 > *:nth-child(3n) { border-right: none; padding-right: 0; }
.ruled-3 > *:nth-child(3n+1) { padding-left: 0; }
.ruled-2 > *:nth-child(2n) { border-right: none; padding-right: 0; }
.ruled-2 > *:nth-child(2n+1) { padding-left: 0; }
.ruled p { margin: 0; color: var(--muted); }
/* images inside ruled cards must not stretch to the column width */
.ruled img { align-self: flex-start; flex: 0 0 auto; max-width: 100%; }

.ruled a { text-decoration: none; color: var(--ink); }
.ruled a:hover h3, .ruled a:hover .card-title { color: var(--link); }
.card-title {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(22px, 2.1vw, 25px); line-height: 1.05;
}
.numeral { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--link); }

/* ---------- post rows ---------- */

.rows { display: flex; flex-direction: column; }
.row {
  display: flex; gap: 36px; align-items: flex-start; padding: 28px 0;
  border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink);
}
.rows .row:first-child { border-top: 1px solid var(--rule); }
.row:hover .row-title { color: var(--link); }
.row-meta {
  width: 150px; flex: 0 0 auto; padding-top: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint);
}
.row-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
.row-title {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.05;
}
.row-excerpt { color: var(--muted); max-width: 860px; }
.row-arrow { font-family: var(--display); font-size: 34px; color: var(--orange); padding-top: 6px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; border-bottom: 3px solid var(--ink); padding-bottom: 18px; margin-bottom: 8px;
}
.section-head a {
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; text-decoration: none;
}

/* ---------- featured ---------- */

.featured {
  display: flex; gap: 44px; align-items: center; padding: 44px;
  background: var(--ink); text-decoration: none;
}
.featured-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; }
.featured-title {
  font-family: var(--display); text-transform: uppercase; color: var(--paper);
  font-size: clamp(30px, 4.2vw, 52px); line-height: 0.95;
}
.featured:hover .featured-title { color: var(--orange); }
.featured p { color: var(--dark-text); margin: 0; max-width: 760px; }
.featured-figure { width: 300px; height: 250px; flex: 0 0 auto; }

/* ---------- filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 0; }
.filters a {
  min-height: 46px; padding: 0 22px; display: inline-flex; align-items: center;
  border: 2px solid var(--ink); border-left-width: 0; background: transparent;
  color: var(--ink); text-decoration: none;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
}
.filters a:first-child { border-left-width: 2px; }
.filters a:hover { background: var(--panel); color: var(--ink); }
.filters a.is-active { background: var(--ink); color: var(--paper); }

/* ---------- article ---------- */

.article-head { display: flex; flex-direction: column; gap: 22px; }
.article-title {
  font-family: var(--display); text-transform: uppercase; margin: 0;
  font-size: clamp(34px, 5.2vw, 69px); line-height: 0.94;
}
.article-lede { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.5; font-weight: 500; color: var(--body); margin: 0; }
.byline { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--rule); }
.byline .ph { width: 50px; height: 50px; font-size: 11px; padding: 0; }
.byline-name { font-weight: 600; }
.byline-role { font-family: var(--mono); font-size: 13px; color: var(--faint); }

.post-body { font-size: 20px; line-height: 1.75; color: #1A1A16; }
.post-body > * + * { margin-top: 26px; }
.post-body h2 {
  font-family: var(--display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(28px, 3.2vw, 39px); line-height: 1; margin-top: 40px;
}
.post-body h3 { margin-top: 32px; }
.post-body blockquote { margin: 32px 0; padding: 28px 32px; background: var(--ink); }
.post-body blockquote p {
  margin: 0; color: var(--paper); font-family: var(--display);
  text-transform: uppercase; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.08;
}
.post-body img { margin: 32px 0; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li + li { margin-top: 12px; }
.post-body code { font-family: var(--mono); font-size: 0.9em; background: var(--panel); padding: 2px 6px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; border-top: 3px solid var(--ink); margin-top: 40px; }
.tag {
  padding: 8px 14px; border: 1px solid var(--ink); text-decoration: none; color: var(--ink);
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
}
.tag:hover { background: var(--ink); color: var(--paper); }

.author-card { display: flex; align-items: center; gap: 32px; padding: 40px 44px; background: var(--orange); }
.author-card .ph { width: 92px; height: 92px; flex: 0 0 auto; background: var(--orange-deep); border-color: var(--ink); color: var(--ink); }
.author-card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.author-card-name { font-family: var(--display); text-transform: uppercase; font-size: clamp(24px, 2.4vw, 30px); line-height: 1; }
.author-card p { margin: 0; color: var(--ink); }

/* ---------- timeline & split ---------- */

.split { display: flex; gap: 72px; align-items: flex-start; }
.split-side { width: 300px; flex: 0 0 auto; display: flex; flex-direction: column; gap: 16px; }
.split-main { flex: 1 1 auto; max-width: 880px; }

.timeline { border-top: 3px solid var(--ink); }
.timeline-item { display: flex; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.timeline-when { width: 150px; flex: 0 0 auto; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 1.4px; color: var(--link); }
.timeline-what { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.timeline-role { font-family: var(--display); text-transform: uppercase; font-size: clamp(22px, 2.1vw, 25px); line-height: 1.05; }
.timeline-what p { margin: 0; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.chips span { padding: 14px 22px; font-family: var(--mono); font-size: 14px; letter-spacing: 1px; color: var(--muted); }
.chips span:first-child { padding-left: 0; }

/* ---------- quote ---------- */

.pull-quote { font-family: var(--display); text-transform: uppercase; margin: 0; font-size: clamp(32px, 4.8vw, 66px); line-height: 0.98; }
.quote-note { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; }

/* ---------- cta ---------- */

.cta { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 48px 52px; background: var(--ink); }
.cta-copy { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.cta h2 { font-family: var(--display); text-transform: uppercase; font-weight: 400; color: var(--paper); font-size: clamp(28px, 3.4vw, 44px); line-height: 1; margin: 0; }
.cta p { color: var(--dark-text); margin: 0; }

/* ---------- forms ---------- */

.form { border: 3px solid var(--ink); padding: 36px 38px; display: flex; flex-direction: column; gap: 20px; flex: 1 1 auto; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.field label { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.field input, .field textarea {
  min-height: 52px; padding: 14px 16px; border: 2px solid var(--ink);
  background: var(--paper); font-family: var(--sans); font-size: 16px; color: var(--ink);
}
.field textarea { resize: vertical; }
.field-row { display: flex; gap: 20px; }
.subscribe { display: flex; align-items: center; justify-content: space-between; gap: 40px; border: 3px solid var(--ink); padding: 44px 48px; }
.subscribe form { display: flex; gap: 0; flex-wrap: wrap; }
.subscribe input {
  min-width: 260px; min-height: 56px; padding: 0 18px; border: 2px solid var(--ink);
  background: var(--paper); font-family: var(--mono); font-size: 15px; color: var(--ink);
}
.subscribe .btn { border-left: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- footer ---------- */

.site-footer { border-top: 3px solid var(--ink); margin-top: auto; }
.site-footer .inner { display: flex; flex-direction: column; gap: 22px; padding: 34px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row-bottom { padding-top: 20px; border-top: 1px solid var(--rule); }
.footer-nav { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.footer-nav a:hover { color: var(--link); }
.site-footer .wordmark { color: var(--ink); }
.site-footer .wordmark span { color: var(--link); }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a { font-family: var(--mono); font-size: 14px; color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--link); }
.copyright { font-family: var(--mono); font-size: 13px; color: var(--faint); }

.stack { display: flex; flex-direction: column; gap: 26px; }
.gap-lg { gap: 40px; }
.flow > * + * { margin-top: 26px; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero { gap: 40px; }
  .hero-figure { width: 320px; }
  .ph-portrait { height: 380px; }
  .split { gap: 40px; }
}

@media (max-width: 860px) {
  .footer-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-nav { gap: 18px 24px; }
  :root { --gutter: 20px; }
  body { font-size: 16px; }

  .site-header .inner { min-height: 64px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 64px; z-index: 40;
    background: var(--ink); flex-direction: column; align-items: stretch;
    gap: 0; padding: 0 20px 20px; display: none;
  }
  .site-nav a { padding: 16px 0; border-top: 1px solid var(--dark-rule); }
  .site-nav .btn { margin-top: 16px; border-top: none; }
  .nav-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border: 2px solid var(--paper); background: transparent; cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--paper); display: block; }
  .site-header.is-open .site-nav { display: flex; }
  .site-header { position: relative; }

  .hero, .split, .cta, .subscribe, .featured, .author-card, .field-row, .quote-band-split { flex-direction: column; align-items: stretch; }
  .hero-figure, .split-side, .featured-figure { width: 100%; }
  .featured-figure { height: 200px; }
  .ph-portrait { height: 340px; }

  .ruled-3, .ruled-2 { grid-template-columns: 1fr; }
  .ruled > * { padding: 22px 0 26px !important; border-right: none; border-bottom: 1px solid var(--rule); }
  .ruled > *:last-child { border-bottom: none; }

  .row { flex-direction: column; gap: 8px; }
  .row-meta { width: auto; padding-top: 0; }
  .row-arrow { display: none; }

  .timeline-item { flex-direction: column; gap: 6px; }
  .timeline-when { width: auto; }

  .pad { padding-top: 44px; padding-bottom: 44px; }
  .cta, .subscribe, .featured, .author-card, .form { padding: 28px 22px; }
  .post-body { font-size: 18px; }
  .prose p { font-size: 18px; }
  .subscribe input, .subscribe .btn { width: 100%; border-left: 2px solid var(--ink); }
}

@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: color 120ms ease, background-color 120ms ease; }
}

@media print {
  .site-header, .site-footer, .cta, .subscribe { display: none; }
  body { background: #fff; color: #000; }
}


/* ---------- typographic covers (posts with no photo) ---------- */

.cover-type {
  background: var(--ink); display: flex; flex-direction: column;
  justify-content: space-between; padding: 22px; overflow: hidden;
}
.cover-type .cover-rule { width: 54px; height: 5px; background: var(--orange); flex: 0 0 auto; }
.cover-type .cover-title {
  font-family: var(--display); text-transform: uppercase; color: var(--paper);
  font-size: clamp(20px, 2.2vw, 28px); line-height: 1; overflow: hidden;
}
.cover-type .cover-mark {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--orange);
}
.featured-figure.cover-type .cover-title { font-size: clamp(22px, 2.6vw, 32px); }


/* ---------- Koenig card widths (required by Ghost) ---------- */

.post-body .kg-width-wide {
  max-width: 1120px;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.post-body .kg-width-full {
  max-width: 100vw;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.post-body .kg-width-wide img,
.post-body .kg-width-full img { width: 100%; height: auto; }
.post-body figure { margin: 32px 0; }
.post-body figcaption {
  font-family: var(--mono); font-size: 13px; color: var(--faint);
  text-align: center; margin-top: 12px; line-height: 1.5;
}
.kg-image-card, .kg-embed-card, .kg-gallery-card { margin: 32px 0; }
.kg-embed-card iframe { max-width: 100%; }
.kg-gallery-row { display: flex; gap: 12px; }
.kg-gallery-image img { display: block; width: 100%; height: auto; }
.kg-button-card { display: flex; margin: 32px 0; }
.kg-btn {
  display: inline-flex; align-items: center; padding: 14px 24px;
  background: var(--orange); color: var(--ink); text-decoration: none;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
}
.kg-bookmark-card a.kg-bookmark-container {
  display: flex; border: 3px solid var(--ink); text-decoration: none; color: var(--ink);
}
.kg-bookmark-content { padding: 22px; }
.kg-bookmark-title { font-weight: 700; }
.kg-bookmark-description { color: var(--muted); font-size: 16px; margin-top: 6px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
  .post-body .kg-width-wide { max-width: 100vw; }
  .kg-gallery-row { flex-direction: column; }
}
