/* The Daily Oddity: specimen-cabinet look. Tokens first; everything derives from them. */
:root {
  --paper: #eef1ec;      /* specimen label stock */
  --card: #fbfcfa;
  --ink: #1b2a2f;        /* slate ink */
  --muted: #5b6b6f;
  --jar: #3e7c6b;        /* preserving-fluid green */
  --jar-deep: #2c5d50;
  --stamp: #b23a48;      /* red ink stamp */
  --brass: #c9a227;
  --line: #c9d2cc;
  --display: "Gloock", Georgia, serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 var(--body);
}
a { color: var(--jar-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.wrap { max-width: 640px; margin: 0 auto; padding: 28px 16px 48px; }

.wordmark {
  font: 400 15px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--jar-deep); margin: 0 0 28px; display: flex; align-items: center; gap: 10px;
}
.wordmark::before { content: ""; width: 22px; height: 2px; background: var(--brass); }

h1 {
  font: 400 clamp(34px, 8vw, 52px)/1.04 var(--display); margin: 0 0 14px; letter-spacing: -.01em;
}
.lede { font-size: 19px; margin: 0 0 30px; max-width: 34em; }

/* Specimen label: catalogue no. from the fact itself, place, claim, source stamp */
.specimen {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px 20px;
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(27, 42, 47, .45);
}
.specimen + .specimen { margin-top: 12px; }
.specimen .cat {
  font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); display: flex; justify-content: space-between; gap: 12px;
  border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 12px;
}
.specimen .claim { font: 400 22px/1.25 var(--display); margin: 0; }
.specimen.small .claim { font-size: 18px; }
.stamp {
  display: inline-block; margin-top: 14px; padding: 3px 9px 2px;
  font: 600 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--stamp); border: 2px solid var(--stamp); border-radius: 3px;
  transform: rotate(-2.5deg); opacity: .9;
}
.stamp a { color: inherit; text-decoration: none; }
.stamp a:hover { text-decoration: underline; }

/* The sign-up form is the specimen tag (signature element) */
.tag {
  position: relative; margin: 34px 4px 10px; padding: 26px 22px 22px 54px;
  background: var(--jar); color: #f4f8f5; border-radius: 8px 22px 22px 8px;
  transform: rotate(-1.2deg); transform-origin: 0 50%;
  animation: sway 1.4s ease-out 1;
}
.tag::before { /* punched hole */
  content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px;
  margin-top: -8px; border-radius: 50%; background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--jar-deep);
}
.tag::after { /* string */
  content: ""; position: absolute; left: -26px; top: 50%; width: 52px; height: 2px;
  background: var(--brass); transform: rotate(-14deg); transform-origin: 100% 50%;
}
@keyframes sway { 0% { transform: rotate(-4deg); } 55% { transform: rotate(.6deg); } 100% { transform: rotate(-1.2deg); } }
@media (prefers-reduced-motion: reduce) { .tag { animation: none; } }

.tag label { display: block; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; color: #d6e6df; }
.tag .row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag input[type=email] {
  flex: 1 1 200px; min-width: 0; font: 17px var(--body); padding: 12px 14px;
  border: 0; border-radius: var(--radius); background: #fbfcfa; color: var(--ink);
}
.btn {
  font: 700 16px var(--body); padding: 12px 18px; border-radius: var(--radius);
  border: 0; cursor: pointer; background: var(--ink); color: #fbfcfa;
}
.btn:hover { background: #0f1a1d; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.danger { background: var(--stamp); }
.fine { font-size: 13px; color: #d6e6df; margin: 12px 0 0; }
.fine a { color: #fbfcfa; }
.status { min-height: 1.5em; margin: 12px 0 0; font-weight: 700; }
.status.err { color: #ffd9de; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

h2 {
  font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 44px 0 14px;
}
.foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Single-message pages (confirm, unsubscribe) */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.panel h1 { font-size: clamp(30px, 7vw, 40px); }
.panel .status { color: var(--ink); font-weight: 400; }
.panel .status.err { color: var(--stamp); font-weight: 700; }
