/* jmj house style — ported from johnmjenkins.art (editorial: paper / film black / one hot accent) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }

:root {
  --paper:       #f4efe6;
  --film-black:  #0a0a0a;
  --ink:         #0a0a0a;
  --ink-muted:   #5a5550;
  --rule:        rgba(10, 10, 10, 0.12);
  --rule-strong: rgba(10, 10, 10, 0.32);
  --accent:      #d4221c;   /* hardcore red */
  --accent-ink:  #ffffff;
  --highlight:   #ffd400;   /* use sparingly */

  --font-display: 'Epilogue', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --grid-max: 1100px;
  --gutter:   clamp(1.25rem, 4vw, 2.5rem);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.masthead, .footer {
  width: 100%;
  max-width: var(--grid-max);
  margin-inline: auto;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.masthead .kicker { text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }
.masthead .kicker:hover { color: var(--accent); }
.masthead-sep, .masthead-here { color: var(--rule-strong); }
.masthead-here { color: var(--ink-muted); text-transform: uppercase; }

.dot { color: var(--accent); }

.wrap {
  flex: 1;
  width: 100%;
  max-width: var(--grid-max);
  margin-inline: auto;
  padding: clamp(2.5rem, 11vw, 7.5rem) var(--gutter);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
h1 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-size: clamp(2.75rem, 9vw, 7rem);
  margin-bottom: 1.5rem;
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  margin: 2.5rem 0 1rem;
}
p { max-width: 60ch; }
.lede { font-size: clamp(1.125rem, 2vw, 1.5rem); max-width: 36ch; }
.note {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-muted);
  max-width: 52ch;
}
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(10, 10, 10, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

a.cta, .cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--film-black);
  color: var(--paper);
  text-decoration: none;
  padding: 0.7em 1.1em;
  border-radius: 4px;
}
a.cta:hover, .cta:hover { background: var(--accent); color: var(--accent-ink); }

.footer { border-top: 1px solid var(--rule); color: var(--ink-muted); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

@media (prefers-color-scheme: dark) {
  :root {
    --paper:       #0a0a0a;
    --ink:         #f4efe6;
    --ink-muted:   rgba(244, 239, 230, 0.62);
    --rule:        rgba(244, 239, 230, 0.16);
    --rule-strong: rgba(244, 239, 230, 0.32);
    --film-black:  #f4efe6;
    --accent-ink:  #0a0a0a;
  }
  code { background: rgba(244, 239, 230, 0.10); }
  a.cta, .cta { color: #0a0a0a; }
}
