@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #121212;
  --paper: #f7f6f0;
  --magenta: #ff00ff;
  --green: #00ff00;
  --yellow: #ffff00;
  --blue: #0000ff;
  --rule: 3px solid var(--ink);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-bottom: 112px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
body, input, textarea, button { font-size: 16px; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; text-wrap: balance; }
h2 { font-size: 36px; letter-spacing: -.035em; }
h3, h4 { font-size: 22px; letter-spacing: -.015em; }
p, li { overflow-wrap: break-word; }
a { color: var(--blue); text-underline-offset: 4px; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 5px;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input, textarea { border-radius: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.u-shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.u-mono { font-family: var(--mono); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 56px;
  padding: 12px 24px;
  border: var(--rule);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.button-blue { background: var(--blue); color: #fff; }
.button-paper { background: var(--paper); color: var(--ink); }
.button:hover { box-shadow: 6px 6px 0 var(--ink); }
.button span { font-size: 24px; line-height: 1; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  min-height: 48px;
  padding: 8px 16px;
  border: var(--rule);
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.source-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}
.source-link span { flex: 0 0 auto; }
.attribution { margin-top: 8px; }
.attribution .source-link + .source-link { margin-left: 24px; }
.eyebrow { font: 500 16px/1.5 var(--mono); }
.site-footer {
  position: relative;
  margin-top: 80px;
  padding: 56px max(24px, calc((100% - 1280px) / 2)) 152px;
  border-top: var(--rule);
  background: var(--green);
}
.footer-mark { margin-bottom: 16px; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.04em; }
.site-footer p { max-width: 72ch; }
.footer-link { display: inline-flex; gap: 24px; align-items: center; min-height: 48px; margin-top: 16px; color: var(--ink); font-weight: 700; }
.missing-message { position: relative; padding-block: 80px 64px; }
.missing-message h1 { position: relative; z-index: 1; max-width: 12ch; margin: 24px 0; font-size: clamp(40px, 6vw, 64px); letter-spacing: -.05em; }
.missing-message p { position: relative; z-index: 1; max-width: 50ch; }
.missing-message .button { position: relative; z-index: 1; margin-top: 32px; }
.missing-sticker { position: absolute; right: 8%; top: 48px; display: grid; place-items: center; width: 224px; height: 224px; border: var(--rule); background: var(--magenta); font: 700 144px/1 var(--mono); transform: rotate(10deg); }

@media (max-width: 700px) {
  .u-shell { width: calc(100% - 40px); }
  h2 { font-size: 32px; }
  h3, h4 { font-size: 21px; }
  .attribution .source-link + .source-link { margin-left: 0; }
  .site-footer { padding-top: 40px; padding-bottom: 144px; }
  .footer-mark { font-size: 28px; }
  .missing-sticker { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media print {
  .bottom-dock, .skip-link, .contents-rail, .worksheet-actions { display: none !important; }
  body { background: #fff; }
  .u-shell { width: 100%; }
  .site-footer { padding-bottom: 24px; }
  a { color: var(--ink); }
}
