/* claude collective — landing page (dark-first, design-system aligned, T-787)
   canonical brand (apps/claude-collective-design-system/):
     bg     #0E1116  (canvas, near-black — never pure black)
     fg     #E6E8EB  (off-white body text)
     muted  #8A8F96  (secondary text)
     accent #D97757  (terracotta — the // glyph)
     hair   #1F242B  (subtle dividers)

   typography:
     IBM Plex Mono, self-hosted (one family, regular)
     lowercase, calm, no hype — repetition > variation
   dark-mode-first: this is the only mode (light is a brand exception, unused here)
*/

/* self-hosted IBM Plex Mono (SIL OFL 1.1) — see /fonts */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-Regular-Latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-Medium-Latin.woff2") format("woff2");
}

:root {
  --bg: #0E1116;
  --ink: #E6E8EB;
  --muted: #8A8F96;
  --accent: #D97757;
  --hair: #1F242B;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, "DejaVu Sans Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent);
}

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

/* ─── hero ─────────────────────────────────────────── */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.wordmark {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.wordmark img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
}

.tagline {
  margin: 2rem 0 1.5rem;
  font-size: 1rem;
  color: var(--muted);
}

.bio {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 56ch;
}

/* ─── main ─────────────────────────────────────────── */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3rem 0;
  border-top: 1px solid var(--hair);
}

h2 {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 1.5rem;
  text-transform: lowercase;
}

h2::before {
  content: "// ";
  color: var(--accent);
}

.about p {
  margin: 0;
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ─── postcards (rotating notes) ──────────────────── */

.postcard-stage {
  max-width: 520px;
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--hair);
  background: #0E1116; /* matches card bg so fade-out looks intentional */
}

.postcard-stage img.postcard {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 600ms ease;
}

.postcard-stage img.postcard.visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .postcard-stage img.postcard {
    transition: none;
    opacity: 1;
  }
}

/* ─── contrast block ──────────────────────────────── */

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contrast-col h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--ink);
}

.contrast-col.are h3::before {
  content: "// ";
  color: var(--accent);
}

.contrast-col.arenot h3::before {
  content: "// ";
  color: var(--muted);
}

.contrast-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contrast-col li {
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contrast-col.arenot li {
  color: var(--muted);
}

/* ─── footer ──────────────────────────────────────── */

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  border-top: 1px solid var(--hair);
  font-size: 0.875rem;
  color: var(--muted);
}

footer p {
  margin: 1.5rem 0 0;
}

/* build credit — a quiet line, grouped with the disclaimer below it */
footer .built-with {
  margin-top: 1rem;
  opacity: 0.85;
}

/* ─── mobile (≤640px) ────────────────────────────── */

@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .wordmark img {
    max-width: 100%;
  }

  main {
    padding: 0 1.25rem;
  }

  footer {
    padding: 1.5rem 1.25rem 3rem;
  }

  .contrast-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bio,
  .about p {
    font-size: 1rem;
  }
}
