/* Seventh Panel - site styles. No external requests: fonts are self-hosted (OFL, see /fonts/). */

@font-face {
  font-family: "Bangers";
  src: url("/fonts/bangers-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-italic-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f6f1e6;
  --surface: #fffaf0;
  --ink: #15171d;
  --muted: #555b67;
  --line: #15171d;
  --shadow: #15171d;
  --accent: #ffc83d;
  --on-accent: #15171d;
  --paper: #fffaf0;        /* the burst inside the lit panel, same in both themes */
  --link: #0a6470;
  --dot: rgba(21, 23, 29, 0.07);
  --radius: 6px;
  --measure: 68ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --surface: #181b24;
    --ink: #f1ece2;
    --muted: #a9afbc;
    --line: #3a4050;
    --shadow: #000;
    --link: #66dcea;
    --dot: rgba(241, 236, 226, 0.05);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 14px 14px;
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ---------- header / footer ---------- */
.site-head { padding: 20px 0 8px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; display: block; }
.brand span { font: 400 1.9rem/1 "Bangers", "Impact", sans-serif; letter-spacing: 0.05em; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

.site-foot { margin-top: 56px; padding: 24px 0 40px; border-top: 3px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* ---------- comic panels ---------- */
.panel {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 24px;
}
.stack > * + * { margin-top: 28px; }

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 10px;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: "Bangers", "Impact", sans-serif; font-weight: 400; letter-spacing: 0.03em; line-height: 1.1; margin: 0 0 12px; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.2rem; max-width: 46ch; }
.muted { color: var(--muted); }

.hero { padding: 32px 28px; position: relative; overflow: hidden; }
.actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-grid { display: grid; gap: 28px; }
.hero-art { display: none; width: 100%; height: auto; }
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: 1fr 250px; align-items: center; }
  .hero-art { display: block; }
}
.hero-art .p { fill: var(--bg); stroke: var(--ink); stroke-width: 3; }
.hero-art .lit { fill: var(--accent); }
.hero-art .ink { fill: var(--ink); }
.hero-art .line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .rain { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; opacity: 0.7; }
.hero-art .thread { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.hero-art .burst { fill: var(--paper); stroke: var(--on-accent); stroke-width: 3; stroke-linejoin: round; }
.hero-art text { font-family: "Bangers", "Impact", sans-serif; fill: var(--ink); }
.hero-art .lit ~ text:last-child { fill: var(--on-accent); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid .panel h3 { margin-bottom: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); text-decoration: none; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.ghost { background: var(--surface); color: var(--ink); }

/* ---------- link-in-bio ---------- */
.links { max-width: 520px; margin: 0 auto; text-align: center; }
.links .brand { flex-direction: column; gap: 10px; margin-top: 24px; }
.links .brand img { width: 88px; height: 88px; }
.links .brand span { font-size: 2.4rem; }
.link-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.link-list .btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: 14px 18px; }
.link-list .btn.ghost { font-weight: 700; }

/* ---------- legal pages ---------- */
.doc { max-width: var(--measure); }
.doc h2 { margin-top: 32px; }
.doc h3 { margin-top: 20px; font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: 0; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border: 2px solid var(--line); }
.doc th { background: var(--bg); }
.table-scroll { overflow-x: auto; }
.note { border-left: 6px solid var(--accent); padding: 12px 16px; background: var(--bg); border-radius: 4px; }
.updated { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 560px) {
  .panel { padding: 18px; box-shadow: 4px 4px 0 var(--shadow); }
  .hero { padding: 24px 18px; }
  .brand span { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
