/* Tiny Gambit catalog (root) — umbrella styling (BRAND.md "Catalog vs imprint").
   The publisher page is neutral paper-and-ink; the saturated cover yellow is the
   Cold Case Investigator identity and appears ONLY on its catalog card. */
:root {
  --paper: #f3eee1;
  --cci-yellow: #f5b51c;
  --brick: #cf7a55;
  --ink: #38322b;
  --muted: #6e6657;
  --sheet: #fcf8ee;
  --line: #ddd3bc;
  --gold: #d8c294;
  --coal: #20211d;
  --font-display: "Black Ops One", system-ui, sans-serif;
  --font-mono: "Courier Prime", ui-monospace, monospace;
  --font-body: Georgia, "Times New Roman", serif;
}

/* hidden attribute must beat class-level display rules (e.g. .signin-button) */
[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { overflow-wrap: break-word; }

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(207, 122, 85, 0.7);
  outline-offset: 2px;
}

/* Skip link — off-screen until keyboard-focused. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 1000;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--sheet);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* Header */
.imprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 24px;
}
.imprint-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Sign-in pill (matches the puzzle-page header) */
.signin-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 168px;
  height: 42px;
  padding: 0 18px;
  color: var(--sheet);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.signin-button:hover { background: var(--brick); }
.signin-button.is-authed { color: var(--ink); background: var(--sheet); }
.signin-button.is-authed::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--brick));
  border: 1.5px solid var(--ink);
}

/* §1 — live daily teaser on the catalog card */
.card-daily {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin: 8px 0 2px;
  padding: 11px 18px;
  color: var(--sheet);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.15s ease;
}
.card-daily:hover {
  transform: translateY(-1px);
  background: var(--brick);
}
.card-daily-dot {
  width: 9px; height: 9px; flex: none;
  border-radius: 50%;
  background: #2ec27e;
  box-shadow: 0 0 0 0 rgba(46, 194, 126, 0.6);
  animation: cardDailyPulse 2.4s ease-out infinite;
}
.card-daily-streak {
  padding-left: 9px;
  border-left: 1.5px solid rgba(252, 248, 238, 0.4);
}
.card-daily .streak-icon { color: var(--cci-yellow); vertical-align: -2px; }

/* Becomes a live Amazon link at launch. */
.card-book-note {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(56, 50, 43, 0.65);
}
@keyframes cardDailyPulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 194, 126, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(46, 194, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 194, 126, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .card-daily-dot { animation: none; }
}
@media (max-width: 520px) {
  .signin-button { max-width: 128px; padding: 0 14px; }
}
.imprint-brand img { width: 40px; height: 40px; }
.imprint-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.imprint-brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

main { max-width: 1040px; margin: 0 auto; padding: 0 24px 64px; }

/* Hero */
.imprint-hero {
  padding: 40px 0 36px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 40px;
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--brick);
  margin: 0 0 12px;
}
.imprint-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.2vw, 3.4rem);
  line-height: 1.06;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.hero-copy {
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0;
}

/* Catalog */
.section-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 18px;
}
.catalog-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.catalog-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 6px 6px 0 rgba(56, 50, 43, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.catalog-card.cci:hover {
  transform: translateY(-3px);
  box-shadow: 8px 11px 0 rgba(56, 50, 43, 0.14);
}

/* Volume One — the card IS the cover: yellow field + faint letter texture. */
.catalog-card.cci {
  background:
    url("./assets/letter-field.svg?v=20260605-9"),
    var(--cci-yellow);
  background-size: 352px 352px, auto;
  border: 1.5px solid var(--ink);
}
.catalog-card.cci .card-sub,
.catalog-card.cci .card-kicker { color: rgba(56, 50, 43, 0.78); }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brick);
  margin: 0;
}
.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.05;
}
.card-sub {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.card-blurb { margin: 6px 0 4px; color: var(--ink); }

/* Volume Two — quiet placeholder with the notify capture. */
.catalog-card.vol-two {
  background: transparent;
  border: 2px dashed var(--line);
  box-shadow: none;
}
.vol-two .card-blurb { color: var(--muted); }
.notify-form {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.notify-form input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid var(--line);
  border-radius: 6px;
}
.notify-form input[type="email"]:focus { border-color: var(--ink); outline: none; }
.notify-form button {
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sheet);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.notify-form button:hover { background: var(--brick); border-color: var(--brick); }
.form-note {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--coal);
  color: var(--sheet);
  margin-top: 24px;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand strong { font-family: var(--font-display); display: block; font-size: 1rem; }
.footer-brand small { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-mono); font-size: 0.82rem; color: var(--sheet); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(252, 248, 238, 0.7); margin: 0; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
