:root {
  color-scheme: light;
  --paper: #eeece5;
  --paper-bright: #f7f5ef;
  --ink: #2d252f;
  --muted: #787178;
  --line: #d7d1c8;
  --plum: #3b2939;
  --yellow: #e9cf54;
  --yellow-pale: #f3e8b7;
  --rust: #b74e3d;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; display: grid; grid-template-columns: minmax(265px, 30vw) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; color: var(--ink); background: var(--paper); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
::selection { color: var(--plum); background: var(--yellow); }

/* Left rail: a real place to orient and contribute, not a landing-page masthead. */
.site-rail { grid-column: 1; grid-row: 1 / 3; min-height: 100vh; padding: 29px clamp(23px, 3vw, 43px) 25px; display: flex; flex-direction: column; align-items: flex-start; position: sticky; top: 0; color: var(--paper-bright); background: var(--plum); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; font-size: 15px; font-weight: 760; letter-spacing: -.055em; }
.brand-mark { width: 25px; height: 25px; display: grid; place-items: center; color: var(--plum); background: var(--yellow); font-size: 14px; font-weight: 800; }
.brand-dot { color: var(--yellow); }
.rail-intro { margin: auto 0; padding: 55px 0 45px; }
.rail-kicker { margin-bottom: 18px; color: var(--yellow); font: 700 9px/1.4 var(--mono); letter-spacing: .09em; }
.rail-intro h1 { margin: 0 0 16px; font-size: clamp(37px, 4vw, 60px); font-weight: 760; line-height: .98; letter-spacing: -.075em; }
.rail-intro h1 em { color: var(--yellow); font: italic 400 1em/1.12 Georgia, serif; letter-spacing: -.055em; }
.rail-intro > p:last-child { max-width: 300px; margin: 0; color: #d2c9d0; font-size: 11px; line-height: 1.8; }
.site-rail nav { width: 100%; padding-top: 19px; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; border-top: 1px solid #695866; }
.site-rail nav > a { padding: 4px 0; color: #ded7dc; font-size: 10px; }
.site-rail nav > a span { margin-left: 5px; color: var(--yellow); }
.site-rail nav > a:hover { color: var(--yellow); }
.site-rail nav .button { margin-top: 4px; }
.rail-privacy { margin: 17px 0 0; color: #bdb2ba; font-size: 9px; line-height: 1.6; }

.button { min-height: 39px; padding: 9px 13px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font-size: 10px; font-weight: 670; transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: none; }
.button-dark { color: var(--plum); background: var(--yellow); }
.button-dark:hover { background: #f3de78; }
.button-outline { color: var(--paper-bright); border-color: #847685; background: transparent; }
.button-outline:hover { color: var(--plum); border-color: var(--yellow); background: var(--yellow); }
.button span { margin-left: 7px; }
.nav-login { order: 1; }
.nav-cta { order: 2; width: 100%; text-align: left; }
.button:focus-visible, a:focus-visible, .close-button:focus-visible, .auth-switch button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* The archive owns the page. Reports are laid out like notices, not product cards. */
.main-panel { grid-column: 2; grid-row: 1; min-width: 0; }
.feed-section { max-width: 1120px; margin: 0 auto; padding: clamp(42px, 7vh, 82px) clamp(29px, 5.8vw, 82px) 64px; }
.feed-heading { min-height: 85px; margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.feed-kicker { margin-bottom: 10px; color: var(--rust); font: 700 9px/1 var(--mono); letter-spacing: .08em; }
.feed-heading h2 { margin: 0 0 6px; font-size: clamp(28px, 3vw, 40px); font-weight: 750; line-height: 1; letter-spacing: -.065em; }
.feed-heading p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.feed-tools { min-height: 42px; margin-bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.search { min-width: 0; display: flex; flex: 1; align-items: center; gap: 10px; color: var(--rust); }
.search > span { font-size: 16px; line-height: 1; }
.search input { width: 100%; min-width: 0; padding: 9px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.search input::placeholder { color: #8a8287; }
.search:focus-within { box-shadow: 0 1px 0 var(--rust); }
.search kbd { flex: none; padding: 2px 5px; border: 1px solid var(--line); border-radius: 2px; color: #7f777d; font: 9px var(--mono); }
.result-count { color: #827b80; font: 9px var(--mono); white-space: nowrap; }
.feed-grid { display: flex; flex-direction: column; }
.report-card { --row: 0; min-height: 0; padding: 20px 9px 18px; display: grid; grid-template-columns: 105px minmax(150px, .95fr) minmax(180px, 1.2fr) 70px; column-gap: clamp(12px, 2vw, 26px); row-gap: 6px; align-items: start; position: relative; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(7px); transition: background .18s ease, opacity .42s ease, transform .42s ease; transition-delay: calc(var(--row) * 35ms); }
.report-card:first-child { border-top: 1px solid var(--line); }
.report-card::before { content: ''; width: 3px; position: absolute; top: 0; bottom: 0; left: 0; background: var(--yellow); transform: scaleY(0); transform-origin: top; transition: transform .18s ease; }
.report-card.is-visible { opacity: 1; transform: none; }
.report-card:hover { background: #f4f1e9; }
.report-card:hover::before { transform: scaleY(1); }
.report-card .card-top { display: contents; }
.report-card .tag { grid-column: 1; grid-row: 1 / span 2; justify-self: start; padding: 4px 6px; border: 1px solid #b9a45c; color: #66582f; background: var(--yellow-pale); font: 700 8px/1 var(--mono); letter-spacing: .04em; transform: rotate(-1.5deg); }
.report-card .card-date { grid-column: 4; grid-row: 1; justify-self: end; padding-top: 2px; color: #81797d; font: 8px var(--mono); white-space: nowrap; }
.report-card h3 { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--plum); font-size: 14px; font-weight: 710; line-height: 1.4; letter-spacing: -.025em; }
.report-card .detail { grid-column: 3; grid-row: 1 / span 2; margin: 0; color: #625a61; font-size: 10px; line-height: 1.75; }
.signs { grid-column: 3 / 5; grid-row: 3; margin-top: 3px; padding-top: 7px; border-top: 1px solid #e2ddd5; color: #766e73; font-size: 9px; line-height: 1.5; }
.signs strong { color: var(--rust); font-weight: 700; }
.tag-amber { color: #66582f !important; background: var(--yellow-pale) !important; }
.gate-card { margin-top: 19px; padding: 14px 1px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--rust); border-bottom: 1px solid var(--line); background: transparent; }
.gate-card > div:nth-child(2) { flex: 1; }
.gate-lock { width: 25px; height: 25px; flex: none; display: grid; place-items: center; border: 1px solid #b8a98b; color: var(--rust); font-size: 12px; }
.gate-card strong { color: var(--plum); font-size: 12px; }
.gate-card p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.more-wrap { padding: 20px 0; text-align: center; }
.empty-state { padding: 52px 15px; text-align: center; }
.empty-state h3 { margin: 0 0 6px; font-size: 16px; }
.empty-state p { color: var(--muted); font-size: 10px; }
.empty-icon { color: var(--rust); font-size: 22px; }

.about-band { margin: 0 clamp(29px, 5.8vw, 82px) 44px; padding: 19px 0 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.about-band h2 { margin: 0 0 5px; font-size: 12px; font-weight: 700; }
.about-band p { max-width: 610px; margin: 0; color: #716a70; font-size: 9px; line-height: 1.7; }
.about-side { flex: none; color: var(--rust); font: 700 9px/1.65 var(--mono); text-align: right; }
footer { grid-column: 2; grid-row: 2; min-height: 51px; padding: 9px clamp(29px, 5.8vw, 82px); display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: #817a80; font-size: 8px; }
footer .brand { color: var(--plum); font-size: 11px; }
footer .brand-mark { width: 19px; height: 19px; font-size: 11px; }
footer > a:last-child { font-weight: 650; }

dialog { width: min(510px, calc(100% - 28px)); max-height: 90vh; overflow: auto; padding: 24px; border: 1px solid #c9c3ba; border-radius: 2px; color: var(--ink); background: var(--paper-bright); box-shadow: 0 20px 70px #26202b35; }
dialog[open] { animation: dialog-in .18s ease-out both; }
dialog::backdrop { background: #24202a9c; backdrop-filter: blur(2px); }
.form-head { display: flex; justify-content: space-between; align-items: flex-start; }
.eyebrow { color: var(--rust); font: 700 8px var(--mono); letter-spacing: .06em; }
.form-head h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.04em; }
.close-button { cursor: pointer; }
.form-head .close-button { border: 0; color: #777178; background: none; font-size: 22px; line-height: 1; }
.form-intro { margin: 8px 0 17px; color: var(--muted); font-size: 10px; }
.field { display: block; margin: 12px 0; color: #514b51; font-size: 10px; font-weight: 650; }
.field input, .field textarea, .field select { display: block; width: 100%; min-height: 40px; margin-top: 5px; padding: 9px 10px; border: 1px solid #d7d2cb; border-radius: 2px; outline: 0; color: var(--ink); background: #fff; font-size: 10px; font-weight: 400; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rust); box-shadow: 0 0 0 2px #b74e3d18; }
.field textarea { resize: vertical; }
.optional { margin-left: 5px; color: #8a8386; font-weight: 400; }
.form-safety { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; border-left: 3px solid var(--yellow); color: #696269; background: #f2f0e8; font-size: 9px; line-height: 1.6; }
.form-safety strong { color: var(--plum); }
.consent { margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; color: #696269; font-size: 9px; line-height: 1.55; }
.consent input { accent-color: var(--rust); }
.form-actions { margin-top: 17px; display: flex; justify-content: flex-end; gap: 8px; }
.form-error { min-height: 15px; margin: 8px 0 0; color: #a43731; font-size: 10px; }
.auth-switch { margin: 15px 0 0; color: #777178; text-align: center; font-size: 10px; }
.auth-switch button { padding: 0 2px; border: 0; color: var(--rust); background: none; font-size: 10px; font-weight: 700; cursor: pointer; }
.auth-success { padding: 12px 14px; border-left: 3px solid var(--yellow); color: #534d52; background: #f2f0e8; font-size: 10px; line-height: 1.7; }
.auth-success[hidden], [hidden] { display: none !important; }
body.busy { cursor: progress; }
@keyframes arrive { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 940px) {
  body { grid-template-columns: 245px minmax(0,1fr); }
  .site-rail { padding: 25px 22px; }
  .rail-intro h1 { font-size: clamp(36px, 5vw, 48px); }
  .feed-section { padding-right: 30px; padding-left: 30px; }
  .report-card { grid-template-columns: 77px minmax(125px, .9fr) minmax(140px, 1.2fr) 58px; column-gap: 12px; }
  .about-band { margin-right: 30px; margin-left: 30px; }
  footer { padding-right: 30px; padding-left: 30px; }
}
@media (max-width: 680px) {
  body { min-height: 100vh; display: flex; flex-direction: column; }
  .site-rail { width: 100%; min-height: auto; height: auto; padding: 17px 19px 20px; position: relative; }
  .rail-intro { margin: 31px 0 22px; padding: 0; }
  .rail-kicker { margin-bottom: 12px; font-size: 8px; }
  .rail-intro h1 { margin-bottom: 10px; font-size: clamp(42px, 11vw, 58px); }
  .rail-intro > p:last-child { max-width: 430px; font-size: 10px; }
  .site-rail nav { padding-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 13px; }
  .site-rail nav > a { font-size: 9px; }
  .site-rail nav .button { width: 100%; margin: 2px 0 0; text-align: center; }
  .nav-login { order: 0; }
  .nav-cta { order: 0; }
  .rail-privacy { margin-top: 11px; font-size: 8px; }
  .feed-section { width: 100%; padding: 34px 18px 42px; }
  .feed-heading { min-height: 69px; margin-bottom: 17px; }
  .feed-heading h2 { font-size: 29px; }
  .feed-heading p:last-child { font-size: 9px; }
  .feed-tools { min-height: 39px; }
  .search input { font-size: 9px; }
  .report-card { padding: 15px 6px; grid-template-columns: 66px minmax(0,1fr); column-gap: 12px; row-gap: 5px; }
  .report-card .tag { grid-column: 1; grid-row: 1; }
  .report-card .card-date { grid-column: 1; grid-row: 2; justify-self: start; font-size: 7px; }
  .report-card h3 { grid-column: 2; grid-row: 1; font-size: 12px; }
  .report-card .detail { grid-column: 2; grid-row: 2; font-size: 9px; }
  .signs { grid-column: 2; grid-row: 3; margin-top: 2px; }
  .gate-card { flex-wrap: wrap; align-items: flex-start; gap: 9px; }
  .gate-card > div:nth-child(2) { flex: 1; min-width: 170px; }
  .gate-card .button { margin-left: 37px; }
  .about-band { margin: 0 18px 31px; padding-top: 14px; flex-direction: column; gap: 8px; }
  .about-side { text-align: left; }
  footer { min-height: 51px; padding: 9px 18px; flex-wrap: wrap; }
  footer > span { order: 3; width: 100%; }
  dialog { padding: 20px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .report-card { opacity: 1; transform: none; }
}
