:root {
  --bg: #dbdbdb;
  --surface: #e4e4e4;
  --border: #b6b6b6;
  --text: #232323;
  --muted: #1c1c1c;
  --primary: #307878;
  --secondary: #9d740d;
  --accent: #376388;
  --post: #151a20;
  --post-muted: #aeb8c4;
  --post-border: #38414b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background-image: radial-gradient(#2323230b .7px, transparent .7px); background-size: 5px 5px; }
main { max-width: 724px; padding: 0 24px; margin: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.masthead { display: flex; align-items: center; gap: 15px; padding: 22px 0 18px; border-bottom: 2px solid var(--text); }
.brand { font-size: 29px; font-weight: 950; color: var(--text); text-decoration: none; border: 2px solid var(--text); line-height: 36px; padding: 0 7px; }
.brand span { color: var(--primary); }
.edition, .local-label, .eyebrow, .section-line, .source-strip > span, .site-footer { font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.local-label { margin-left: auto; color: var(--primary); border: 1px solid var(--primary); padding: 6px 8px; }
.intro { padding: 35px 0 25px; }
.eyebrow { color: var(--accent); margin: 0 0 9px; }
h1 { font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(57px, 12vw, 91px); font-weight: 900; letter-spacing: -2px; line-height: 1.05; margin: 0 0 17px; text-shadow: 2px 2px 0 var(--bg), 3px 3px 0 var(--border); }
h1 span { color: var(--primary); }
.lede { font-size: 21px; margin: 0 0 10px; }
.explanation { font-size: 14px; line-height: 1.65; max-width: 535px; margin: 0; }
.source-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-block: 1px solid var(--border); padding: 15px 0; font-size: 13px; }
.source-strip > span:first-child { margin-right: auto; }
.source-strip a { font-weight: 700; }
.plus { color: var(--secondary); }
.output-section { padding-top: 26px; }
.section-line { display: flex; justify-content: space-between; margin-bottom: 12px; }
.section-line > span:first-child::before { content: ""; display: inline-block; width: 22px; height: 6px; background: var(--secondary); transform: skew(-30deg); margin: 0 10px 2px 0; }
#ready-label { color: var(--primary); font-size: 9px; }
.post-card { background: var(--post); border: 1px solid var(--post-border); border-radius: 13px; color: #f0f3f6; padding: 23px 25px 19px; box-shadow: 4px 5px 0 #23232321; overflow-wrap: anywhere; }
.post-card.ready { cursor: pointer; }
.post-head { display: flex; gap: 11px; align-items: center; font-size: 16px; }
.avatar { border-radius: 50%; }
.identity { color: var(--post-muted); font-size: 13px; margin-top: 3px; }
.splice-mark { margin-left: auto; color: #85b9b9; font-size: 24px; letter-spacing: -7px; padding-right: 6px; }
.fiction-label { font-size: 9px; letter-spacing: 1.3px; font-weight: 700; color: #9dc0d9; margin: 25px 0 12px; }
.post-text { white-space: pre-wrap; font-size: 20px; line-height: 1.48; margin: 0 0 27px; min-height: 90px; }
.post-text.placeholder { color: var(--post-muted); }
.post-footer { border-top: 1px solid var(--post-border); padding-top: 14px; color: var(--post-muted); font-size: 11px; line-height: 1.7; }
.post-sources { font-size: 10px; }
.post-sources a { color: #9dc0d9; text-decoration: none; }
#coverage { margin: 5px 0 0; }
.generate { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 20px; margin-top: 20px; background: var(--primary); color: white; border: 2px solid var(--text); box-shadow: 3px 3px 0 var(--text); cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 750; line-height: 1.3; }
.generate > span:last-child { font-size: 24px; line-height: 1; }
.generate:hover:not(:disabled) { background: #255f5f; }
.generate:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--text); }
.generate:disabled { background: var(--surface); color: #555; border-color: var(--border); box-shadow: 3px 3px 0 var(--border); cursor: wait; }
.click-hint { text-align: center; font-size: 11px; margin: 14px 0 22px; }
.operations { font-size: 12px; line-height: 1.6; }
#status { margin: 0 0 12px; }
.recovery-button { padding: 10px 12px; border: 1px solid var(--primary); background: var(--surface); color: var(--text); font: inherit; font-weight: 650; margin: 0 8px 10px 0; min-height: 44px; cursor: pointer; }
details { border-block: 1px solid var(--border); background: #e4e4e480; padding: 0 15px; margin-top: 10px; font-size: 12px; }
summary { padding: 16px 0; cursor: pointer; font-weight: 750; }
summary span { float: right; font-size: 10px; font-weight: 400; }
.source-detail { border-top: 1px solid var(--border); padding: 12px 0; line-height: 1.6; }
.source-detail strong { display: block; font-size: 13px; }
.source-detail p { margin: 4px 0; overflow-wrap: anywhere; }
.technical { font-size: 11px; line-height: 1.7; padding-bottom: 8px; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; padding: 23px 0 28px; font-size: 9px; letter-spacing: .6px; }
@media (max-width: 480px) {
  main { padding: 0 16px; }
  h1 { font-size: clamp(40px, 12vw, 57px); }
  .edition { font-size: 8px; max-width: 120px; line-height: 1.6; }
  .local-label { font-size: 8px; padding: 6px; }
  .masthead { gap: 10px; }
  .intro { padding-top: 28px; }
  .lede { font-size: 18px; }
  .source-strip > span:first-child { width: 100%; }
  .post-card { padding: 19px 17px 16px; }
  .post-text { font-size: 18px; }
  .site-footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: no-preference) { .generate { transition: background .15s, transform .1s; } }
