@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f2ede3;
  --ink: #1b1915;
  --muted: #6d665a;
  --rule: #d8d0c0;
  --accent: #a8341c;
  --accent-ink: #fff8f0;
  /* The splash: vivid orange, used as a fill with dark text on it (7:1), never as small text. */
  --pop: #ff6a1f;
  --pop-ink: #1b1915;
  --field: #fbf8f2;
  --focus: #1d5fd1;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13120f;
    --ink: #ede6d8;
    --muted: #a49b8a;
    --rule: #34302a;
    --accent: #e0694c;
    --accent-ink: #160d09;
    --pop: #ff7a33;
    --pop-ink: #13120f;
    --field: #1b1a16;
    --focus: #8ab4ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  background: var(--paper);
  padding: 4px 8px;
}

/* ---------- masthead ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px var(--gutter) 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.mast a {
  text-decoration: none;
}
.mast .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}
.mast .brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pop) 25%, transparent);
}
.mast nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mast nav .home {
  background: var(--pop);
  color: var(--pop-ink);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.mast nav .home:hover {
  color: var(--pop-ink);
  filter: brightness(1.06);
}
::selection {
  background: var(--pop);
  color: var(--pop-ink);
}

/* ---------- the oracle ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.oracle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh var(--gutter) 4vh;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}
.numeral {
  font-family: var(--serif);
  font-variation-settings:
    "SOFT" 0,
    "WONK" 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 2.2vh;
  font-weight: 500;
}
.message {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings:
    "SOFT" 50,
    "WONK" 1;
  font-weight: 380;
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
  white-space: pre-line;
  text-wrap: balance;
  transition: opacity 0.6s ease;
}
.message a {
  text-decoration-thickness: 0.04em;
}
/* Size follows length: a word fills the screen, 280 characters read like a lede. */
.len-xs {
  font-size: clamp(64px, 19vw, 260px);
  line-height: 0.95;
}
.len-s {
  font-size: clamp(48px, 11vw, 168px);
}
.len-m {
  font-size: clamp(36px, 7vw, 112px);
}
.len-l {
  font-size: clamp(28px, 4.6vw, 72px);
  line-height: 1.1;
}
.len-xl {
  font-size: clamp(22px, 3.3vw, 52px);
  line-height: 1.15;
  font-weight: 360;
}
.message.removed {
  color: var(--muted);
  font-style: italic;
}
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 28px);
  margin: 2.4vh 0 0;
  color: var(--muted);
}
.meta {
  margin: 3vh 0 0;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.meta strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- status bar ---------- */
.status {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.status p {
  margin: 0;
  font-size: 15px;
}
.status .sub {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.progress {
  position: absolute;
  top: -1px;
  left: 0;
  height: 3px;
  background: var(--pop);
  width: 0;
  transition: width 1s linear;
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--pop);
  color: var(--pop-ink);
  font: 600 15px / 1 var(--sans);
  padding: 14px 22px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.btn:hover {
  color: var(--pop-ink);
  filter: brightness(1.08);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

/* ---------- footer ---------- */
footer {
  padding: 18px var(--gutter) 28px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
footer a {
  text-decoration: none;
}

/* ---------- prose pages, archive, forms ---------- */
.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 6vh var(--gutter) 8vh;
}
.page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.page h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 40px 0 8px;
}
.page p,
.page li {
  font-size: 17px;
  line-height: 1.6;
}
.lede {
  font-family: var(--serif);
  font-size: 22px !important;
  line-height: 1.45 !important;
}
.note {
  color: var(--muted);
  font-size: 14px !important;
}

.archive {
  list-style: none;
  padding: 0;
  margin: 0;
}
.archive li {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
}
.archive a.text {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  text-decoration: none;
  display: block;
  overflow-wrap: anywhere;
}
.archive .meta {
  margin-top: 8px;
}

form .field {
  margin: 0 0 22px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.hint {
  font-weight: 400;
  color: var(--muted);
}
textarea,
input[type="text"],
input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
}
textarea {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  min-height: 160px;
  resize: vertical;
}
.counter {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.counter.over {
  color: var(--accent);
  font-weight: 600;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 15px;
  margin: 10px 0;
}
.check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--pop);
  flex: none;
}
.error {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  min-height: 1.4em;
}
.panel {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px;
  background: var(--field);
  margin: 18px 0;
}
.price-line {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 18px;
}
[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .mast nav .opt {
    display: none;
  }
  .mast nav {
    gap: 12px;
  }
  .mast nav .home {
    padding: 6px 10px;
  }
  .status {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .status .btn {
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
}
.share-story {
  font-size: 0.95rem;
}
.share-note {
  font-size: 0.9rem;
  color: var(--muted);
}
.share-panel {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.share-panel img {
  flex: none;
  border-radius: 8px;
  height: auto;
}
.share-panel h2 {
  margin-top: 0;
}

/* ---------- quiet live numbers under the message ---------- */
.stats {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.stats strong {
  color: var(--accent);
  font-weight: 600;
}
.stats a {
  color: inherit;
}

/* ---------- likes ---------- */
.like-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.like {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 13px / 1 var(--sans);
  font-variant-numeric: tabular-nums;
  padding: 7px 12px;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.like:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.like .heart {
  font-size: 14px;
  transition: transform 0.2s;
}
.like[aria-pressed="true"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--pop) 55%, transparent);
  cursor: default;
}
.like[aria-pressed="true"] .heart {
  color: var(--pop);
}
.like.pop .heart {
  transform: scale(1.35);
}
.like-check:empty {
  display: none;
}
