/* ==========================================================================
   Explained With AI: site styles
   See docs/design-notes.md for the reasoning behind these choices.
   ========================================================================== */

:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #ebe9e1;
  --text: #0f0f12;
  --muted: #5d5d66;
  --border: #dcd9cf;
  --accent: #c6f432;
  --accent-ink: #0f0f12;
  --glow-a: rgba(198, 244, 50, 0.35);
  --glow-b: rgba(124, 92, 255, 0.18);

  --radius: 24px;
  --radius-sm: 999px;
  --max: 1200px;
  --gutter: 16px;
  --section: 64px;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0e;
    --surface: #141418;
    --surface-2: #1c1c22;
    --text: #f2f1ec;
    --muted: #9a9aa5;
    --border: #26262e;
    --glow-a: rgba(198, 244, 50, 0.16);
    --glow-b: rgba(124, 92, 255, 0.2);
  }
}

:root[data-theme="dark"] {
  --bg: #0b0b0e;
  --surface: #141418;
  --surface-2: #1c1c22;
  --text: #f2f1ec;
  --muted: #9a9aa5;
  --border: #26262e;
  --glow-a: rgba(198, 244, 50, 0.16);
  --glow-b: rgba(124, 92, 255, 0.2);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --section: 96px;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

@media (max-width: 719px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px var(--accent);
}

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

a:hover > .arrow {
  transform: translate(2px, -2px);
}

.section {
  padding: var(--section) 0;
}

.section-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 40px;
  max-width: 14ch;
}

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

.hero {
  position: relative;
  padding: 72px 0 var(--section);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(900px, 120vw);
  height: 700px;
  background:
    radial-gradient(closest-side at 65% 40%, var(--glow-a), transparent),
    radial-gradient(closest-side at 35% 65%, var(--glow-b), transparent);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 11ch;
}

.mark {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 0.12em;
  border-radius: 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero .lead {
  margin-top: 32px;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.hero-platforms {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .row-2 { grid-row: span 2; }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .span-4,
  .feature-wide {
    grid-column: span 2;
  }
}

.tile {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tile p {
  color: var(--muted);
}

.tile-creator {
  justify-content: space-between;
  min-height: 420px;
  padding: 32px;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--surface);
}

.tile-creator h3 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-weight: 800;
}

.tile-creator .tagline {
  font-size: 1.15rem;
  max-width: 34ch;
  color: var(--muted);
}

.tile-creator .profile-link {
  font-weight: 600;
  text-decoration: none;
}

.tile-creator .profile-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tile-soon {
  background: transparent;
  border-style: dashed;
  justify-content: flex-end;
}

.tile-soon h3,
.tile-info h3 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.tile-accent {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  justify-content: space-between;
}

.tile-accent p {
  color: color-mix(in srgb, var(--accent-ink) 75%, transparent);
}

.tile-accent .big-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ---------- Social pills & platform tiles ---------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.pill:hover {
  border-color: var(--text);
}

.is-soon {
  opacity: 0.55;
  cursor: default;
}

.is-soon small {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.platform-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .platform-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.platform {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.platform .name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.platform .handle {
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

a.platform:hover {
  transform: translateY(-3px);
  border-color: var(--text);
}

/* ---------- About ---------- */

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.statement .dim {
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
  border-top: 1px solid var(--border);
}

.big-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 0.18em;
  background-position: 0 92%;
  background-repeat: no-repeat;
  transition: background-size 0.35s ease;
}

.big-mail:hover {
  background-size: 100% 0.18em;
}

.contact p {
  color: var(--muted);
  margin-top: 24px;
  max-width: 44ch;
}

/* ---------- Creator page ---------- */

.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.creator-hero {
  position: relative;
  padding: 56px 0 var(--section);
  overflow: hidden;
}

.creator-hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 800px;
  height: 600px;
  background: radial-gradient(closest-side, var(--glow-a), transparent);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.creator-hero h1 {
  font-size: clamp(3.5rem, 13vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
  margin: 24px 0 32px;
}

.creator-hero .bio {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--muted);
  max-width: 40ch;
}

.series {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.series li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 720px) {
  .series li {
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: baseline;
  }
}

.series strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.series span {
  color: var(--muted);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Motion preferences ---------- */

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