/* Self-hosted fonts provided by the owner; SIL OFL 1.1 licenses in docs/fonts. */
@font-face {
  font-family: "DynaPuff";
  src: url("/fonts/DynaPuff-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/Lato-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
/* Single, hand-editable stylesheet. System theme + accessible contrast. */
:root {
  color-scheme: light dark;
  --page: #f7f8fc;
  --surface: #fff;
  --ink: #162038;
  --muted: #50617b;
  --border: #dae0ed;
  --accent: #563de1;
  --accent-ink: #fff;
  --focus: #c25213;
  --error: #aa2434;
  --shadow: 0 12px 30px rgb(20 38 72 / 6%);
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 400;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f1522;
    --surface: #192237;
    --ink: #eff2fb;
    --muted: #b4c0d5;
    --border: #35415a;
    --accent: #ad97ff;
    --accent-ink: #121229;
    --focus: #ffbd76;
    --error: #ff9c9c;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--page); color: var(--ink); line-height: 1.6; display: flex; flex-direction: column; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; opacity: .58; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 5; padding: 8px 16px; background: var(--surface); }
.skip:focus { top: 8px; }
.site-header { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px clamp(20px, 5vw, 68px); border-bottom: 1px solid var(--border); background: var(--surface); }
.brand { font-family: "DynaPuff", system-ui, sans-serif; font-weight: 700; font-size: clamp(1.1rem, 3vw, 1.45rem); letter-spacing: -.035em; text-decoration: none; }
.brand span { color: var(--accent); }
.container { width: min(100% - 36px, 1120px); margin: 0 auto; flex: 1; padding-bottom: 140px; }
.intro { padding: clamp(48px, 8vw, 92px) 0 50px; max-width: 750px; }
.intro-narrow { padding-bottom: 30px; }
.eyebrow { color: var(--accent); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
h1, h2, h3 { font-weight: 400; line-height: 1.14; letter-spacing: -.04em; }
h1 { font-size: clamp(2.5rem, 7vw, 5.3rem); margin: 18px 0 22px; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
.intro > p:last-child { color: var(--muted); font-size: 1.15rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.section-heading span, .muted { color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 20px; padding: clamp(22px, 4vw, 34px); }
.empty { text-align: center; padding: 52px 24px; color: var(--muted); }
.empty h3 { color: var(--ink); }
.post { margin: 18px 0; overflow-wrap: anywhere; }
.post-amount-link { color: inherit; text-decoration: none; }
.post-amount-link:hover { color: var(--accent); }
.post-body, .prose { line-height: 1.8; white-space: normal; }
.post-body p:first-child, .prose p:first-child { margin-top: 0; }
.post-body blockquote, .prose blockquote { border-left: 3px solid var(--accent); padding-left: 16px; margin: 18px 0; color: var(--muted); }
.post-body code, .prose code { padding: 2px 5px; background: var(--page); border-radius: 5px; }
.post-body a, .prose a { text-decoration: underline; }
.post-amount { font-size: 1.2rem; font-weight: 400; margin: 22px 0 10px; }
.post-amount abbr { text-decoration: none; color: var(--muted); font-size: .9rem; }
.post-actions { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 14px; display: flex; gap: 10px; }
.quiet-button { border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--ink); padding: 7px 12px; }
.quiet-button:hover { border-color: var(--accent); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 30px; padding: 30px 0; }
.floating-cta { position: fixed; right: clamp(20px, 5vw, 65px); bottom: 30px; z-index: 3; display: inline-block; border-radius: 100px; padding: 17px 26px; background: var(--accent); color: var(--accent-ink); font-weight: 400; text-decoration: none; letter-spacing: .04em; box-shadow: 0 10px 26px rgb(63 39 169 / 22%); }
.floating-cta:hover { color: var(--accent-ink); filter: brightness(1.08); }
.site-footer { padding: 34px clamp(20px, 5vw, 68px) 45px; border-top: 1px solid var(--border); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; font-size: .88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.compose-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 25px; align-items: start; }
.composer label { display: block; font-weight: 400; margin-bottom: 9px; }
.composer input, .composer select, .composer textarea { width: 100%; background: var(--page); color: var(--ink); border: 1px solid var(--border); border-radius: 10px; padding: 13px; min-width: 0; }
.composer textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0 10px; }
.field-error { color: var(--error); min-height: 1.4em; margin: 4px 0; }
.primary-button { display: inline-block; width: 100%; background: var(--accent); color: var(--accent-ink); border: none; border-radius: 12px; padding: 16px; font-weight: 400; margin-top: 12px; }
.preview h2 { font-size: 1.2rem; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.back-link { margin: 34px 0; }
.single { max-width: 750px; }
.legal { margin-top: 50px; max-width: 780px; }
.legal h1 { font-size: 2.3rem; }
.copy-help { margin-top: 12px; }
.copy-help input { width: 100%; padding: 10px; border: 1px solid var(--border); background: var(--page); color: var(--ink); }
@media (max-width: 760px) {
  .compose-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .site-header { padding: 18px; }
  .container { width: min(100% - 28px, 1120px); }
  .intro { padding-top: 44px; }
  .floating-cta { right: 16px; bottom: 16px; padding: 14px 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.quiet-button svg { vertical-align: middle; margin-right: 5px; }

.site-notice { position: fixed; left: 14px; bottom: 14px; max-width: min(420px,90vw); background: var(--surface); color: var(--ink); padding: 10px 14px; border: 1px solid var(--border); border-radius: 9px; z-index: 4; }
.site-notice[hidden] { display: none; }

/* Accessible, native confirmation dialog. */
.post-actions { flex-wrap: wrap; }
.report-dialog { color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 25px 70px rgb(0 0 0 / 22%); max-width: min(480px, calc(100% - 28px)); padding: 28px; }
.report-dialog::backdrop { background: rgb(8 13 27 / 64%); }
.report-dialog h2 { font-size: 1.55rem; margin: 0 0 14px; }
.report-dialog p { margin: 0 0 16px; }
.report-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.report-dialog-actions .primary-button { width: auto; margin: 0; padding: 10px 18px; }
.report-dialog-actions .quiet-button { padding: 10px 18px; }
.post-reported { font-size: 1rem; color: var(--muted); margin: 0; }