/* ==========================================================================
   CRAIGNESIUM
   Aesthetic: 1980s VHS sleeve / Maxell-Sony-BASF poster
   Principles: bold type, saturated color, hard edges, geometric blocks,
   no animation, no gradients, no rounded corners.
   ========================================================================== */

/* Color tokens ----------------------------------------------------------- */

:root {
  --ink: #111111;
  --paper: #f4f1e8;
  --yellow: #ffcc00;
  --cyan: #00b5d9;
  --magenta: #e63950;
  --green: #2dbf4e;
  --black: #0a0a0a;
  --muted: #555555;
}

/* Reset & base ----------------------------------------------------------- */

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

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Header ----------------------------------------------------------------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 4px solid var(--ink);
  background: var(--paper);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  background: var(--ink);
  color: var(--paper);
  padding: 0.1em 0.4em;
}

.brand-name {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
  padding: 0.25rem 0.4rem;
}

.site-nav a:hover {
  background: var(--yellow);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 4px solid var(--ink);
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
}

.hero-block {
  padding: 4rem 3rem;
}

.hero-block-yellow {
  background: var(--yellow);
  border-right: 4px solid var(--ink);
}

@media (max-width: 720px) {
  .hero-block-yellow {
    border-right: none;
    border-bottom: 4px solid var(--ink);
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 1rem 0;
}

.hero-sub {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.hero-byline {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  font-style: italic;
}

/* Hero stripes ----------------------------------------------------------- */

.hero-stripes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 320px;
  background: var(--ink);
}

.hero-stripes span:nth-child(1) { background: var(--magenta); }
.hero-stripes span:nth-child(2) { background: var(--yellow); }
.hero-stripes span:nth-child(3) { background: var(--green); }
.hero-stripes span:nth-child(4) { background: var(--cyan); }
.hero-stripes span:nth-child(5) { background: var(--ink); }
.hero-stripes span:nth-child(6) { background: var(--magenta); }

/* Sections --------------------------------------------------------------- */

main { display: block; }

.intro,
.dispatch,
.catalog-header,
.catalog,
.catalog-footer,
.prose {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.intro h2,
.dispatch h2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.intro p,
.dispatch p {
  font-size: 1.125rem;
  max-width: 36rem;
}

.cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

.cta:hover {
  background: var(--magenta);
}

/* Catalog ---------------------------------------------------------------- */

.catalog-header h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 1rem 0;
}

.catalog-header .lead {
  font-size: 1.25rem;
  max-width: 36rem;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product {
  background: var(--paper);
  border: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.product-cover {
  aspect-ratio: 3 / 4;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-cover-anki {
  background: var(--cyan);
  color: var(--ink);
}

.product-tag {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25em 0.6em;
  align-self: flex-start;
}

.product-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 1rem 0 0 0;
}

.product-format {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin: 1rem 0 0 0;
}

.product-info {
  padding: 1.25rem;
  border-top: 3px solid var(--ink);
}

.product-info h3 {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem 0;
}

.product-info p {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}

.product-status {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

.catalog-footer p {
  font-size: 1rem;
  font-style: italic;
  max-width: 36rem;
  color: var(--muted);
}

/* Prose pages ------------------------------------------------------------ */

.prose h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 2rem 0;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 2rem 0 0.75rem 0;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.25rem;
  display: inline-block;
}

.prose p {
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0 0 1rem 0;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover {
  background: var(--yellow);
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  margin-top: 4rem;
  padding: 2rem;
  border-top: 4px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
}

.footer-corp {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-note {
  opacity: 0.65;
}

.site-footer a { color: var(--paper); }
