/* Stylesheet for the prerendered static pages (imprint, blog index and
   posts) — these never load the app bundle, so they need their own sheet.
   Linked as a plain unhashed file (not run through Vite) to avoid any
   coupling to the build's hashed asset manifest.

   ponytail: the :root variables below are a third copy of the palette in
   src/tokens.css (the repo already duplicates that file byte-for-byte
   between landing/ and reviewer/dashboard/ by design — there is no shared
   package). Upgrade path if this drifts: extract a shared @context-goblin/tokens
   package and import it from all three places instead of hand-copying. */
:root {
  color-scheme: dark;
  --brand: #a6ff3d;
  --canvas: #0b0d10;
  --surface: #101317;
  --surface-raised: #151920;
  --line: #232830;
  --line-strong: #333b46;
  --ink: #e6eaf0;
  --ink-muted: #9aa3af;
  --ink-faint: #6b7480;
  --radius: 4px;
  --radius-sm: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Own scroll-padding-top: static pages have their own (lower, non-sticky)
     header, not the app's sticky nav, but heading anchors inside a post
     still need to clear it. */
  scroll-padding-top: 24px;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 40px;
}
.brand img {
  width: 26px;
  height: 26px;
}
.brand:hover {
  text-decoration: none;
}

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- blog index ---------- */

.postList {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.postList li {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.postList li:first-child {
  border-top: 0;
}
.postList a {
  color: inherit;
}
.postList a:hover {
  text-decoration: none;
}
.postList a:hover h2 {
  color: var(--brand);
}
.postList h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 4px 0 8px;
  transition: color 120ms ease;
}
.postList p {
  margin: 0;
  color: var(--ink-muted);
}

.postMeta {
  margin: 0 0 4px;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- prose (adapted from reviewer/dashboard's Markdown.module.css,
   `.markdown x` rescoped to `.prose x`; base.css's margin resets don't apply
   here, so long-form margins are set from scratch below) ---------- */

.prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.prose h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.prose > * + * {
  margin-top: 20px;
}
.prose h2,
.prose h3 {
  margin-top: 40px;
  font-weight: 600;
}
.prose h2 {
  font-size: 23px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.prose h3 {
  font-size: 18px;
}
.prose p {
  margin: 0;
}
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 20px;
}
.prose li + li {
  margin-top: 4px;
}
.prose code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--canvas);
}
.prose pre {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
  overflow-x: auto;
}
.prose pre code {
  padding: 0;
  border: 0;
  background: none;
}
.prose blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--line-strong);
  color: var(--ink-muted);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.prose th,
.prose td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.prose th {
  background: var(--surface-raised);
  font-weight: 600;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .wrap {
    padding: 32px 20px 48px;
  }
}

/* ---------- imprint (legal notice) ---------- */

.imprint h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.imprint h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 32px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.imprint p {
  margin: 0 0 12px;
  color: var(--ink-muted);
}
.imprint dl {
  margin: 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 4px 16px;
}
.imprint dt {
  color: var(--ink-faint);
}
.imprint dd {
  margin: 0;
  color: var(--ink);
}
@media (max-width: 560px) {
  .imprint dl {
    grid-template-columns: 1fr;
    gap: 0 0;
  }
  .imprint dd {
    margin-bottom: 12px;
  }
}
