/* The Auction Dispatch — static blog styles.
   Copied verbatim into dist/blog/blog.css by scripts/build-blog/index.mjs.
   Echoes the app's retro-arcade identity (see src/styles/design-tokens.css:
   night-sky navy, gold, hard pixel borders, Press Start 2P for identity
   headings only) while keeping long-form body text in a readable system
   sans stack. No JS frameworks, one stylesheet, fast on mobile. */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Press+Start+2P&display=swap');

:root {
  --bg: #0b0d2a;          /* night-game black-blue */
  --panel: #14183d;       /* HUD background */
  --ink: #e9ebf7;
  --ink-muted: #a6abce;
  --gold: #f5c518;
  --gold-dark: #d4a024;
  --red: #ff3b3b;
  --green: #5fd96f;
  --blue: #6f8dff;
  --edge: #0a0a0a;
  --font-pixel: 'Press Start 2P', 'Chakra Petch', monospace;
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

a { color: var(--blue); }
a:hover { color: var(--gold); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--panel);
  border-bottom: 4px solid var(--edge);
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
}

.masthead-brand a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
}
.masthead-brand a:hover { color: var(--gold); }

.masthead-title {
  margin: 0.75rem 0 1rem;
}
.masthead-title a {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 3.5vw, 1.6rem);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 3px 3px 0 var(--edge);
}
.masthead-title a:hover { color: var(--ink); }

.masthead-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.masthead-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-dark);
  padding-bottom: 2px;
}
.masthead-nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Index ---------- */
.blog-tagline {
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.post-list ul { list-style: none; }
.post-list > ul > li + li { margin-top: 1.5rem; }

.post-card {
  background: var(--panel);
  border: 2px solid var(--edge);
  box-shadow: 6px 6px 0 var(--edge);
  padding: 1.5rem;
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
}
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--gold); }
.post-card p { margin-top: 0.5rem; }

/* ---------- Post ---------- */
.post-header { margin-bottom: 2rem; }
.post-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.3;
  text-wrap: balance;
}

.post-meta {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.post-author { margin-left: 0.75rem; }

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.tag-list li {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 0.15rem 0.5rem;
}

.post-body > * + * { margin-top: 1.1rem; }
.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  margin-top: 2.25rem;
  color: var(--gold);
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 1.75rem;
}
.post-body ul, .post-body ol { padding-left: 1.5rem; }
.post-body blockquote {
  border-left: 4px solid var(--gold-dark);
  padding-left: 1rem;
  color: var(--ink-muted);
}
.post-body code {
  background: var(--panel);
  padding: 0.1em 0.35em;
  font-size: 0.92em;
}
.post-body pre {
  background: var(--panel);
  border: 2px solid var(--edge);
  padding: 1rem;
  overflow-x: auto;
}
.post-body img { max-width: 100%; height: auto; }
.post-body hr { border: 0; border-top: 2px solid var(--panel); }

.post-footer-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--panel);
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-footer-nav a { text-decoration: none; }

/* ---------- Updates ---------- */
.update-list { list-style: none; }
.update-list > li + li { margin-top: 1.75rem; }
.update {
  border-left: 4px solid var(--gold-dark);
  padding-left: 1.25rem;
}
.update h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.update p { margin-top: 0.4rem; }
.no-updates { color: var(--ink-muted); }

/* ---------- Newsletter signup ---------- */
.signup {
  margin-top: 3.5rem;
  background: var(--panel);
  border: 2px solid var(--edge);
  box-shadow: 6px 6px 0 var(--edge);
  padding: 1.5rem;
}
.signup h2 {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--gold);
}
.signup-blurb {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
#signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
#signup-email {
  flex: 1 1 14rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--edge);
  padding: 0.6rem 0.75rem;
  border-radius: 0;
}
#signup-email:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
/* Honeypot: visually removed, still submittable by naive bots. */
.signup-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}
#signup-submit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #c8102e;
  border: 2px solid var(--edge);
  border-radius: 0;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--edge);
}
#signup-submit:hover { filter: brightness(1.15); }
#signup-submit:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--edge); }
#signup-submit:disabled { opacity: 0.6; cursor: default; }
#signup-status {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  min-height: 1.2em;
}
#signup-status.is-error { color: var(--red); }
#signup-status.is-success { color: var(--green); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 4px solid var(--edge);
  background: var(--panel);
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.site-footer p + p { margin-top: 0.5rem; }
