/* Shared styles: the newspaper sheet on a cobalt desk. Fonts are self-hosted, so visitors' addresses never go to a font service. */
@font-face { font-family: "UnifrakturMaguntia"; src: url("/fonts/unifraktur-maguntia.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bowlby One"; src: url("/fonts/bowlby-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; font-style: italic; src: url("/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #f3ead3;
  --paper-light: #fbf6ea;
  --ink: #111c1e;
  --cobalt: #1f3fae;
  --rust: #b8582b;
  --mustard: #d2b951;
  --faint: #6b6553;
  --masthead: "UnifrakturMaguntia", "Old English Text MT", Georgia, serif;
  --headline: "Bowlby One", "Arial Black", Impact, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --line: 4px solid var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cobalt);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.45;
  padding-inline: 16px;
  padding-block: 48px 72px;
}
a { color: inherit; }

/* A pile of newspapers: two sheets peek out under the front page. */
.stack { position: relative; max-width: 980px; margin: 0 auto; }
.stack.narrow { max-width: 680px; }
.stack::before, .stack::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #e9dfc5;
  border: var(--line);
}
.stack::before { transform: rotate(2.2deg) translate(14px, 10px); }
.stack::after { transform: rotate(-1.4deg) translate(-10px, 14px); background: #efe6cd; }
.page {
  position: relative;
  z-index: 1;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, transparent 49.6%, rgba(17, 28, 30, 0.07) 50%, rgba(255, 255, 255, 0.35) 50.4%, transparent 51%);
  border: var(--line);
  transform: rotate(-0.4deg);
  padding: 20px clamp(16px, 3vw, 32px) 28px;
  display: grid;
  gap: 18px;
}
.narrow .page { background-image: none; }

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}
.masthead { text-align: center; display: grid; gap: 2px; }
.masthead .name {
  font-family: var(--masthead);
  font-weight: 400;
  font-size: clamp(64px, 13vw, 132px);
  line-height: 0.95;
  margin: 0;
  text-decoration: none;
}
.narrow .masthead .name { font-size: clamp(48px, 10vw, 80px); }
.motto { font-style: italic; font-size: 17px; margin: 0; }
.rule { border: 0; border-top: var(--line); border-bottom: 2px solid var(--ink); height: 6px; margin: 0; }

.kicker {
  justify-self: start;
  font-family: var(--headline);
  font-size: 14px;
  letter-spacing: 0.06em;
  background: var(--rust);
  color: var(--paper-light);
  border: 3px solid var(--ink);
  padding: 2px 10px;
  transform: rotate(-2deg);
}
h1, h2 {
  font-family: var(--headline);
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
  text-transform: uppercase;
}
h1 { font-size: clamp(40px, 6.4vw, 72px); text-shadow: 2px 1px 0 rgba(184, 88, 43, 0.55); }
.narrow h1 { font-size: clamp(34px, 6vw, 52px); }
h2 { font-size: 22px; }
p { margin: 0; }
.deck { font-size: 22px; line-height: 1.35; max-width: 34ch; }

.button {
  justify-self: start;
  display: inline-block;
  font-family: var(--headline);
  font-size: 22px;
  text-decoration: none;
  background: var(--rust);
  color: var(--paper-light);
  border: var(--line);
  padding: 10px 22px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.button[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.fine {
  border-top: 2px solid var(--ink);
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--faint);
}
.fine nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

@media (max-width: 760px) {
  .page { transform: none; }
  .stack::before { transform: rotate(1.2deg) translate(6px, 8px); }
  .stack::after { transform: rotate(-0.8deg) translate(-4px, 10px); }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
