/* The Beehype: parody news site. Self-hosted fonts, no external requests. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #14213d;
  --text: #1c2433;
  --muted: #596273;
  --rule: #d5dae1;
  --wash: #f1f4f7;
  --paper: #ffffff;
  --pounamu: #0b5d4b;
  --flag: #ffd23f;
  --flag-ink: #241b00;
  --flag-wash: #fff4c7;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  font: 600 0.9375rem/1 var(--sans);
}
.skip:focus { top: 0.75rem; }

/* Satire bar: always visible, on every page */
.satire-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--flag);
  color: var(--flag-ink);
  font: 600 0.875rem/1.35 var(--sans);
}
.satire-bar .wrap { padding-block: 0.55rem; }
.satire-bar a { text-decoration-thickness: 0.08em; text-underline-offset: 0.14em; }

/* Masthead */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  flex: none;
  width: clamp(2.75rem, 6.5vw, 4.25rem);
  height: auto;
  color: var(--pounamu);
}
.wordmark {
  display: block;
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(2.75rem, 8.5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.tagline {
  display: block;
  margin-top: 0.5rem;
  font: 500 0.9375rem/1.3 var(--sans);
  color: var(--muted);
}
.dateline {
  margin: 0;
  font: 500 0.875rem/1.3 var(--sans);
  color: var(--muted);
}

.site-nav {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.7rem 0 0.6rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font: 600 0.9375rem/1.2 var(--sans);
  text-decoration: none;
  color: var(--ink);
}
.site-nav a:hover { color: var(--pounamu); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--pounamu); }

/* Story meta row, shared by front page and article */
.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0;
  margin: 0;
  font: 600 0.875rem/1.2 var(--sans);
}
.story-meta > * + * {
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--rule);
}
.flag {
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: var(--flag);
  color: var(--flag-ink);
}
.story-meta > .flag + * { border-left: 0; margin-left: 0.75rem; padding-left: 0; }
.story-meta .section { color: var(--pounamu); }
.story-meta time { color: var(--muted); font-weight: 500; }

/* Front page */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  padding-block: 2.5rem 3rem;
}
@media (min-width: 56rem) {
  .lead { grid-template-columns: minmax(0, 1fr) 19rem; }
}
.lead-title {
  margin: 0.85rem 0 1.1rem;
  font-weight: 700;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead-title a { text-decoration: none; color: var(--ink); }
.lead-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.12em;
}
.standfirst {
  max-width: 36rem;
  margin: 0 0 1.25rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.45;
}
.byline {
  margin: 0;
  font: 500 0.9rem/1.3 var(--sans);
  color: var(--muted);
}

.panel {
  align-self: start;
  padding: 1.25rem 1.4rem 1.4rem;
  background: var(--wash);
  border-top: 4px solid var(--pounamu);
  border-radius: 0 0 6px 6px;
}
.panel h2 {
  margin: 0 0 0.6rem;
  font: 700 1.05rem/1.25 var(--sans);
  color: var(--ink);
}
.panel p { margin: 0 0 0.9rem; font-size: 1.05rem; line-height: 1.55; }
.panel p:last-child { margin-bottom: 0; }
.panel a { font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; color: var(--pounamu); }

.more {
  padding-block: 2rem 3.5rem;
  border-top: 1px solid var(--rule);
}
.more h2 { margin: 0 0 0.5rem; font: 700 1.25rem/1.25 var(--sans); color: var(--ink); }
.more p { margin: 0; color: var(--muted); }
.more .more-link {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font: 700 1rem/1.3 var(--sans);
}
.more .more-link a {
  color: var(--pounamu);
  text-decoration: none;
}
.more .more-link a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}
.story-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.story-list > li { padding-block: 1.25rem; }
.story-list > li + li { border-top: 1px solid var(--rule); }
.story-title {
  margin: 0.6rem 0 0.5rem;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.story-title a { text-decoration: none; color: var(--ink); }
.story-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.12em;
}
.more .story-summary { max-width: 40rem; color: var(--text); font-size: 1.1rem; line-height: 1.5; }

/* Article */
.article {
  max-width: 44rem;
  margin-inline: auto;
  padding: 2.5rem 1.25rem 4rem;
}
.article-title {
  margin: 0.85rem 0 1rem;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}
.article .standfirst { max-width: none; margin-bottom: 1.5rem; color: var(--text); }
.byline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding-block: 0.8rem;
  border-block: 1px solid var(--rule);
  font: 500 0.9rem/1.3 var(--sans);
  color: var(--muted);
}
.notice {
  margin: 1.75rem 0 2rem;
  padding: 0.9rem 1.1rem;
  border-left: 6px solid var(--flag);
  background: var(--flag-wash);
  color: var(--flag-ink);
  font: 500 0.95rem/1.5 var(--sans);
}
.notice strong { font-weight: 800; }

.prose { max-width: 38rem; }
.prose p { margin: 0 0 1.3em; font-size: 1.25rem; line-height: 1.7; }
.prose .dateline-open { font-family: var(--sans); font-weight: 700; font-size: 0.95em; letter-spacing: 0.01em; }
.pullquote {
  margin: 2.25rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 4px solid var(--pounamu);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}
.article-end {
  max-width: 38rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font: 500 0.95rem/1.5 var(--sans);
  color: var(--muted);
}
.article-end a { color: var(--pounamu); font-weight: 600; }

/* images */
/* Article images */
.story-figure {
  margin: 1.75rem 0 2rem;
}
.story-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: var(--wash);
}
.story-figure figcaption {
  margin-top: 0.55rem;
  font: 500 0.875rem/1.4 var(--sans);
  color: var(--muted);
}

/* Story list thumbnails */
.story-item.has-thumb {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.1rem 1.35rem;
  align-items: start;
}
@media (min-width: 40rem) {
  .story-item.has-thumb {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}
.story-thumb-link {
  display: block;
}
.story-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--wash);
}

/* Plain pages (about, 404) */
.page { max-width: 44rem; margin-inline: auto; padding: 2.5rem 1.25rem 4rem; }
.page h1 {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.page h2 { margin: 2.25rem 0 0.6rem; font: 700 1.3rem/1.25 var(--sans); color: var(--ink); }
.page p, .page li { font-size: 1.2rem; line-height: 1.65; max-width: 38rem; }
.page p { margin: 0 0 1em; }
.page ul { margin: 0 0 1em; padding-left: 1.25rem; }
.page li { margin-bottom: 0.4rem; }
.page a { color: var(--pounamu); font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #dbe2ee;
  font: 400 0.9375rem/1.55 var(--sans);
}
.site-footer .wrap { padding-block: 2.25rem 2.5rem; }
.footer-grid { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 14rem minmax(0, 1fr); } }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font: 800 1.5rem/1 var(--sans);
  font-stretch: 78%;
  letter-spacing: -0.02em;
}
.footer-brand svg { width: 1.75rem; height: auto; color: #fff; }
.site-footer p { margin: 0 0 0.6rem; max-width: 42rem; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: var(--flag); }

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

@media (max-width: 40rem) {
  .masthead { padding-block: 1.25rem 1rem; }
  .dateline { width: 100%; }
}
