/* Out of Hand: Sunday Funnies, on the web. Process inks only: cyan ground with Ben-Day dots,
   magenta (the one action colour), yellow lettering and captions, key black; white panels with
   heavy square black borders and no soft shadows. Same tokens as src/presentation/ui_theme.gd. */
@font-face { font-family: "Luckiest Guy"; src: url("fonts/LuckiestGuy-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --page: #f7f7f4; --panel: #ffffff; --cyan: #00a0d8; --cyan-dot: #36b6e6; --cyan-deep: #00739c; --cyan-pale: #dff2fa;
  --magenta: #d6266f; --magenta-deep: #a3184f; --yellow: #ffd400; --ink: #111111; --ink-soft: #45444a;
}
* { box-sizing: border-box; }
html { background: var(--cyan); color: var(--ink); }
body {
  margin: 0; font: 18px/1.55 "Atkinson Hyperlegible", system-ui, sans-serif;
  background-image: radial-gradient(circle, var(--cyan-dot) 5px, transparent 5.6px);
  background-size: 20px 20px;
}
a { color: var(--cyan-deep); font-weight: 700; }
p, li { overflow-wrap: anywhere; }
td { overflow-wrap: break-word; }
.tablewrap { overflow-x: auto; }
a:focus-visible, .stamp:focus-visible, .shots:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }
/* The masthead strip (kept as .pegbar for the existing pages). */
.pegbar { height: 22px; background: var(--magenta); border-bottom: 6px solid var(--ink); }
.wrap { max-width: 980px; margin: 24px auto 40px; padding: 28px 32px 48px; background: var(--panel);
  border: 8px solid var(--ink); border-radius: 2px; }
nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
nav .brand { font-family: "Luckiest Guy", sans-serif; font-size: 26px; color: var(--ink); text-decoration: none; margin-right: auto; }
h1, h2, nav .brand, .stamp { text-transform: uppercase; }
h1, h2 { font-family: "Luckiest Guy", sans-serif; font-weight: 400; letter-spacing: .5px; line-height: 1.05; }
h1 { font-size: clamp(40px, 6vw, 56px); margin: 20px 0 8px; color: var(--ink); }
h1.title { font-size: clamp(54px, 9vw, 96px); margin: 0 0 12px; color: var(--yellow);
     -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink); transform: rotate(-3deg); }
h2 { display: inline-block; font-size: 28px; margin: 40px 0 12px; color: var(--ink); background: var(--yellow);
  border: 4px solid var(--ink); border-radius: 2px; padding: 8px 14px 4px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.lede { font-size: 22px; max-width: 30ch; }
.cel { position: relative; background: var(--panel); border: 6px solid var(--ink); border-radius: 2px; padding: 0; }
.cel img { width: 100%; height: auto; display: block; }
.stamp { display: inline-block; font-family: "Luckiest Guy", sans-serif; font-size: 24px; text-decoration: none;
  color: var(--ink); background: var(--panel); border: 5px solid var(--ink); border-bottom-width: 10px; border-radius: 2px;
  padding: 12px 22px 8px; }
.stamp:hover { background: var(--cyan-pale); }
.stamp.primary { background: var(--magenta); color: var(--panel); }
.stamp.primary:hover { background: #e03a80; }
.stamp:active { transform: translateY(5px); border-bottom-width: 5px; background: var(--cyan-pale); }
.stamp.primary:active { background: var(--magenta-deep); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.shots .cel img { aspect-ratio: 9 / 16; object-fit: contain; background: var(--page); }  /* the 2:1 help shot letterboxes, the row stays even */
.facts { columns: 2; column-gap: 36px; padding-left: 20px; }
.facts li { break-inside: avoid; margin-bottom: 8px; }
.note { color: var(--ink-soft); font-size: 16px; }
.doc { background: var(--panel); padding: 0 0 8px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; border-bottom: 2px solid var(--ink); padding: 8px 6px; vertical-align: top; }
footer { margin-top: 56px; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 720px) {
  .wrap { margin: 12px 8px 24px; padding: 20px 18px 32px; border-width: 6px; }
  .hero { grid-template-columns: 1fr; }
  .shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 2px 18px; }
  .shots .cel { flex: 0 0 72vw; scroll-snap-align: center; }
  .facts { columns: 1; }
  table, tbody, tr, td { display: block; }
  tr:first-child { display: none; }
  tr { border-bottom: 2px solid var(--ink); padding: 10px 0; }
  td { border: 0; padding: 2px 0; }
  td:nth-child(2)::before { content: "Why: "; font-weight: 700; }
  td:nth-child(3)::before { content: "When: "; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
