/* Incompetent Gods — field report theme */
:root {
  --paper: #F6F3EA;
  --card: #FFFDF6;
  --ink: #121110;
  --muted: #5C574D;
  --muted-dark: #B8B2A5;
  --red: #E5484D;      /* brush red — large text only */
  --red-text: #B4231C; /* red for small text (passes contrast) */
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --serif: Spectral, Georgia, serif;
  --heavy: Archivo, "Arial Black", sans-serif;
  --brush: "Caveat Brush", "Comic Sans MS", cursive;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 20px; padding-right: 20px; } }

/* status strip */
.strip { background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .14em; padding: 10px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.strip .dim { color: #9C978C; }
.strip .live { color: var(--red); }

/* header */
.site-header { border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: .82; }
.logo .script { font-family: var(--brush); font-size: 26px; color: var(--red); }
.logo .gods { font-family: var(--heavy); font-weight: 900; font-size: 28px; color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 13px; }
.nav a { text-decoration: none; display: flex; flex-direction: column; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a b { font-weight: 600; letter-spacing: .08em; }
.nav a small { color: var(--muted); font-size: 12px; }
.nav a[aria-current="page"] { border-bottom-color: var(--red-text); }
.nav a[aria-current="page"] b { color: var(--red-text); }
.nav a.btn-notify { flex-direction: row; align-items: center; min-height: 44px; padding: 0 18px; background: var(--ink); color: var(--paper); font-weight: 600; letter-spacing: .08em; border: none; }
.nav a.btn-notify:hover { background: var(--red-text); color: var(--paper); }

/* type helpers */
.label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--red-text); text-transform: uppercase; }
.heavy { font-family: var(--heavy); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.005em; margin: 0; }
.brush { font-family: var(--brush); color: var(--red); line-height: 1.2; margin: 0; display: inline-block; transform: rotate(-2deg); transform-origin: left center; }
.prose { font-family: var(--serif); font-size: 21px; line-height: 1.7; }
.prose p { margin: 0 0 24px; }
.prose p:last-child { margin-bottom: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; cursor: pointer; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 0; text-align: center; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--red-text); border-color: var(--red-text); color: var(--paper); }
.btn:not(.btn-solid):hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--red); border-color: var(--red); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-top: 72px; padding-bottom: 88px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-weight: 500; font-size: clamp(48px, 7vw, 92px); line-height: 1; letter-spacing: -.03em; }
.hero-intro { display: flex; flex-direction: column; gap: 18px; font-size: 19px; line-height: 1.65; max-width: 40ch; }
.hero-intro p { margin: 0; }
.big-q { padding-top: 28px; border-top: 2px solid var(--ink); }
.big-q .heavy { font-size: clamp(38px, 5.6vw, 74px); }
.big-q .brush { font-size: clamp(48px, 6vw, 80px); line-height: 1; margin-top: 6px; transform: rotate(-3deg); }
.exhibit { flex: 1 1 300px; max-width: 400px; margin: 0; }
.exhibit img { width: 100%; box-shadow: 0 28px 56px -22px rgba(18,17,16,.45); transform: rotate(1.5deg); }
.tag { position: relative; display: inline-block; background: var(--card); border: 1.5px solid var(--ink); padding: 12px 16px; font-size: 12px; line-height: 1.6; box-shadow: 3px 3px 0 var(--ink); max-width: 260px; }
.tag b { display: block; font-weight: 600; letter-spacing: .14em; color: var(--red-text); }
.tag span { display: block; }
.tag .dim { color: var(--muted); }
.exhibit .tag { margin: -28px 0 0 -14px; transform: rotate(-2.5deg); }

/* dark band: transmissions */
.dark { background: var(--ink); color: var(--paper); }
.dark a { color: var(--paper); }
.dark a:hover { color: var(--red); }
.dark a.btn-light, .dark a.btn-light:hover { color: var(--ink); }
.transmission .wrap { max-width: 964px; padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 26px; }
.tx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px dashed var(--muted); }
.tx-head p { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--muted-dark); }
.tx-num { color: var(--paper); font-size: 18px; margin-left: 8px; }
.tx-q { margin: 0; font-size: 15px; color: var(--muted-dark); }
.tx-q span { color: var(--paper); }
.tx-a { margin: 0; font-size: clamp(22px, 3vw, 34px); line-height: 1.4; min-height: 2.8em; }
.text-link { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 12px 0 4px; display: inline-block; }

/* case file teaser */
.casefile .wrap { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 104px; padding-bottom: 104px; }
.casefile-side { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.casefile-side .brush { font-size: 30px; }
.casefile-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.casefile-main .heavy { font-size: clamp(30px, 4vw, 52px); line-height: 1.02; }
.redacted-text { margin: 0; font-size: 20px; line-height: 1.9; }
.redact { background: var(--ink); color: var(--ink); padding: 0 4px; border-radius: 1px; transition: background .4s, color .4s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.declassified .redact { background: #F2D9C9; color: var(--ink); }

/* quote band */
.observation { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.observation .wrap { max-width: 1024px; padding-top: 88px; padding-bottom: 88px; }
.observation figure { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.observation blockquote { margin: 0; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.35; }
.observation figcaption { font-size: 14px; color: var(--muted); }

/* notify */
.notify .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 104px; padding-bottom: 112px; }
.notify-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.notify-text .heavy { font-size: clamp(36px, 4.6vw, 60px); line-height: .98; }
.notify-text p { margin: 0; font-size: 18px; line-height: 1.65; max-width: 42ch; }
.signup { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.signup label { font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-row input { flex: 1 1 220px; min-width: 0; }
.signup-row .btn { flex: 0 0 auto; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.form-status { margin: 0; font-size: 14px; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #2F6B3A; }
.form-status.err { color: var(--red-text); }

input[type="text"], input[type="email"], textarea { width: 100%; min-height: 54px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 0; background: var(--card); font-family: var(--mono); font-size: 16px; color: var(--ink); }
textarea { padding: 12px 16px; resize: vertical; min-height: 180px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* page intro */
.page-intro .wrap { padding-top: 72px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.page-intro .heavy { font-size: clamp(40px, 6vw, 84px); max-width: 16ch; }

/* book page */
.case .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-bottom: 104px; }
.case-aside { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 28px; }
.case-aside img { width: 100%; box-shadow: 0 24px 48px -20px rgba(18,17,16,.45); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 13px; line-height: 1.5; border-top: 2px solid var(--ink); padding-top: 18px; }
.facts dt { color: var(--muted); letter-spacing: .08em; }
.facts dd { margin: 0; }
.facts .status { color: var(--red-text); }
.case-body { flex: 999 1 520px; min-width: 0; max-width: 700px; display: flex; flex-direction: column; gap: 26px; }
.case-body > .brush { font-size: 28px; transform: rotate(-1.5deg); }
.pull { font-size: 28px; line-height: 1.35; font-style: italic; }
.noted { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; margin-bottom: 24px; }
.noted p { margin: 0; flex: 999 1 380px; }
.noted .brush { flex: 0 0 auto; font-size: 30px; transform: rotate(-4deg); }
mark { background: #F2D9C9; color: var(--ink); padding: 0 4px; }
.closing { padding-top: 26px; border-top: 2px solid var(--ink); font-size: 24px; line-height: 1.5; }

.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 80px; padding-bottom: 80px; }
.cta-band .heavy { font-size: clamp(28px, 3.8vw, 48px); line-height: 1; max-width: 18ch; }

/* author page */
.translator .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-top: 72px; padding-bottom: 96px; }
.portrait { flex: 1 1 260px; max-width: 340px; margin: 0; display: flex; flex-direction: column; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait .tag { align-self: flex-end; margin: -24px -12px 0 0; transform: rotate(2deg); }
.translator-text { flex: 999 1 520px; min-width: 0; max-width: 700px; display: flex; flex-direction: column; gap: 22px; }
.translator-text .heavy { font-size: clamp(46px, 6.4vw, 88px); line-height: .92; }
.translator-text .brush { font-size: 30px; }

.transcript .wrap { max-width: 944px; padding-top: 96px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 28px; }
.transcript .label { color: var(--muted-dark); }
.transcript .heavy { font-size: clamp(34px, 4.6vw, 60px); }
.transcript-intro { margin: 0; font-size: 18px; line-height: 1.7; color: #E3DDD0; }
.faq { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--muted); }
.faq li { border-bottom: 1px dashed var(--muted); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; min-height: 60px; padding: 16px 0; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .qn { flex: 0 0 44px; font-size: 13px; font-weight: 600; color: var(--muted-dark); }
.faq .qt { flex: 1 1 auto; }
.faq .sign { flex: 0 0 auto; font-size: 20px; color: var(--muted-dark); }
.faq .sign::before { content: "+"; }
.faq details[open] .sign::before { content: "−"; }
.faq summary:hover .qt { color: var(--red); }
.faq .ans { margin: 0; padding: 0 0 24px 62px; font-size: 17px; line-height: 1.7; color: #E3DDD0; }
.faq .ans b { color: var(--red); font-weight: 600; }
@media (max-width: 600px) { .faq .ans { padding-left: 0; } .faq .qn { flex-basis: 36px; } }

/* contact page */
.channel .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-top: 80px; padding-bottom: 112px; }
.channel-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.channel-text .heavy { font-size: clamp(42px, 6vw, 80px); line-height: .92; }
.channel-text p { margin: 0; font-size: 18px; line-height: 1.7; max-width: 36ch; }
.channel-text .brush { font-size: 28px; margin-top: 8px; }
.contact-form { flex: 999 1 460px; min-width: 0; max-width: 620px; display: flex; flex-direction: column; gap: 20px; padding: 32px; background: var(--card); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form label { font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.contact-form label span { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea { background: var(--paper); }
.contact-form .btn { align-self: flex-start; }
@media (max-width: 600px) { .contact-form { padding: 20px; box-shadow: 4px 4px 0 var(--ink); } }

/* footer */
.site-footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid #3A3731; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 13px; }
.site-footer em { color: var(--paper); font-style: normal; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .redact { transition: none; } }
