/* ==========================================================================
   Madeable — design tokens & site styles
   Source of truth: design_handoff_madeable_website (high-fidelity)
   Brand rules: no border-radius, no shadows, rhythm via 1px hairlines.
   ========================================================================== */

:root {
  /* Fallback hex approximations (overridden by oklch below where supported) */
  --marigold: #e39a2d;        /* accent only, never body text on paper */
  --marigold-light: #f2b64d;  /* accent on dark */
  --marigold-deep: #b0761c;   /* accent text on paper: eyebrows, links */
  --ink: #1a1815;
  --paper: #faf8f5;
  --stone: #8a8378;
  --body: #33302a;
  --muted: #5c564d;
  --hairline: #e6e1d8;
  --hairline-dash: #dcd7cf;
  --notice: #efece7;
  --ink-hairline: #33302a;
}
@supports (color: oklch(0.7 0.16 65)) {
  :root {
    --marigold: oklch(0.70 0.16 65);
    --marigold-light: oklch(0.78 0.16 70);
    --marigold-deep: oklch(0.58 0.16 65);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  font-family: 'Archivo', sans-serif;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--marigold-deep); }

h1, h2, h3, p { margin: 0; }

.sg { font-family: 'Space Grotesk', monospace; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* --------------------------------------------------------------------------
   Logo wordmark — never colored, never reweighted
   -------------------------------------------------------------------------- */
.logo { font-size: 24px; letter-spacing: -0.02em; white-space: nowrap; }
.logo:hover { color: inherit; }
.logo .made { font-weight: 900; }
.logo .able { font-weight: 400; color: var(--stone); }
.logo .sq {
  display: inline-block; width: 6px; height: 6px;
  background: var(--marigold); margin-left: 4px;
}
.logo--footer { font-size: 17px; }
.logo--footer .sq { width: 5px; height: 5px; margin-left: 3px; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 64px; border-bottom: 1px solid var(--hairline);
  gap: 16px; flex-wrap: wrap;
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
  font-size: 15px; font-weight: 500;
}
.nav-links .active {
  border-bottom: 2px solid var(--marigold); padding-bottom: 2px;
}
.btn-nav {
  background: var(--ink); color: var(--paper);
  padding: 11px 22px; font-weight: 600;
}
.btn-nav:hover { background: var(--marigold); color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 64px; border-top: 1px solid var(--hairline);
  flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 24px; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.footer-meta { font-family: 'Space Grotesk', monospace; font-size: 12px; color: var(--stone); }

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px; letter-spacing: 0.16em;
  color: var(--marigold-deep);
}
.eyebrow--stone { color: var(--stone); }
.eyebrow--light { color: var(--marigold-light); }

.qmark { color: var(--marigold); }
.qmark--light { color: var(--marigold-light); }

.sq12 { width: 12px; height: 12px; background: var(--marigold-light); flex-shrink: 0; }
.sq14 { width: 14px; height: 14px; background: var(--marigold); flex-shrink: 0; }

.link-underline {
  font-weight: 600; font-size: 16px;
  border-bottom: 2px solid var(--marigold); padding-bottom: 2px;
}

.btn-primary {
  display: inline-block;
  background: var(--marigold); color: var(--ink);
  padding: 17px 34px; font-weight: 700; font-size: 17px;
}
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 15px 34px; font-weight: 600; font-size: 17px;
}
.btn-outline:hover { color: var(--ink); }

/* Image placeholder until real art exists — swap for <img> in production */
.img-slot {
  position: absolute; inset: 0;
  border: 1px dashed var(--hairline-dash);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone); text-align: center; padding: 12px;
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */
.hero {
  padding: 120px 64px 96px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 30px;
}
.hero .eyebrow { font-size: 14px; font-weight: 500; }
.hero h1 {
  font-weight: 900; font-size: clamp(46px, 8vw, 84px);
  line-height: 1.02; letter-spacing: -0.03em;
  max-width: 880px; text-wrap: balance;
}
.hero .sub {
  font-size: 21px; line-height: 1.55; color: var(--muted);
  max-width: 580px; text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }

.belief {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center;
}
.belief-cell { padding: 36px 24px; }
.belief-cell:not(:last-child) { border-right: 1px solid var(--hairline); }
.belief-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px; letter-spacing: 0.14em; color: var(--stone);
}
.belief-line { font-weight: 800; font-size: 19px; margin-top: 8px; }

.band { background: var(--ink); padding: 88px 64px; }
.band .eyebrow { margin-bottom: 40px; display: block; }
.principles-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 56px 48px;
}
.pcard { display: flex; flex-direction: column; gap: 10px; }
.pcard h3 { font-weight: 800; font-size: 21px; color: var(--paper); }
.pcard p { font-size: 15px; line-height: 1.55; color: var(--stone); }

.promise {
  padding: 112px 64px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 22px;
}
.promise-statement {
  font-weight: 900; font-size: clamp(32px, 5vw, 44px);
  line-height: 1.15; letter-spacing: -0.02em;
  max-width: 760px; text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Products
   -------------------------------------------------------------------------- */
.products-header { padding: 96px 64px 64px; text-align: center; }
.products-header h1 {
  font-weight: 900; font-size: clamp(38px, 6vw, 60px);
  letter-spacing: -0.03em; margin-top: 16px; text-wrap: balance;
}
.products-header .sub {
  font-size: 19px; line-height: 1.55; color: var(--muted);
  max-width: 560px; margin: 20px auto 0; text-wrap: pretty;
}

.section-rule {
  max-width: 1100px; margin: 0 auto; padding: 0 64px 20px;
  width: 100%;
}
.section-rule-inner {
  display: flex; align-items: baseline; gap: 16px;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px;
}
.section-title { font-weight: 900; font-size: 26px; letter-spacing: -0.01em; }
.section-tag {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px; letter-spacing: 0.12em; color: var(--marigold-deep);
}

.games-grid {
  padding: 28px 64px 72px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.game-card { border: 1px solid var(--hairline); display: flex; flex-direction: column; }
.game-card:hover { border-color: var(--ink); color: inherit; }
.game-card-cover { height: 260px; position: relative; min-width: 0; }
.game-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.game-card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-card-title { font-weight: 900; font-size: 24px; letter-spacing: -0.01em; }
.game-card-meta {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px; letter-spacing: 0.1em; color: var(--stone);
}
.game-card-hook { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.game-card-cta { margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--marigold-deep); }

.placeholder-card {
  border: 1px dashed var(--hairline-dash);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 380px; text-align: center; padding: 26px;
}
.placeholder-card .title { font-weight: 800; font-size: 20px; }
.placeholder-card .note { font-size: 15px; color: var(--stone); }

.coming-next { background: var(--ink); padding: 72px 64px 80px; }
.coming-next-inner { max-width: 1100px; margin: 0 auto; }
.coming-next-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 36px; }
.coming-next-title { font-weight: 900; font-size: 26px; letter-spacing: -0.01em; color: var(--paper); }
.coming-next-tag {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px; letter-spacing: 0.12em; color: var(--marigold-light);
}
.workshop-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.workshop-card {
  border: 1px solid var(--ink-hairline); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.workshop-card h3 { font-weight: 800; font-size: 21px; color: var(--paper); }
.workshop-card p { font-size: 15px; line-height: 1.6; color: var(--stone); }
.workshop-card .status {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-top: auto;
}
.coming-next-note {
  margin-top: 36px; font-size: 15px; line-height: 1.6;
  color: var(--stone); max-width: 640px;
}
.coming-next-note a {
  color: var(--paper);
  border-bottom: 2px solid var(--marigold-light); padding-bottom: 1px;
}

/* --------------------------------------------------------------------------
   Game detail
   -------------------------------------------------------------------------- */
.game-hero {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 56px; padding: 80px 64px; max-width: 1200px; margin: 0 auto;
  align-items: center; width: 100%;
}
.game-hero-copy { display: flex; flex-direction: column; gap: 20px; }
.breadcrumb {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px; letter-spacing: 0.14em; color: var(--stone);
}
.game-hero h1 {
  font-weight: 900; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em;
}
.game-hero .hook { font-size: 20px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.game-hero-meta {
  display: flex; align-items: center; gap: 18px;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px; letter-spacing: 0.1em; color: var(--stone);
}
.game-hero-ctas { display: flex; align-items: center; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.btn-appstore {
  background: var(--ink); color: var(--paper);
  padding: 15px 28px; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-appstore:hover { color: var(--paper); }
.game-hero-art { height: 480px; position: relative; min-width: 0; }

.what-youll-make { background: var(--ink); padding: 80px 64px; }
.what-youll-make-inner { max-width: 1100px; margin: 0 auto; }
.what-youll-make .eyebrow { display: block; margin-bottom: 36px; }
.make-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
.make-card { display: flex; flex-direction: column; gap: 10px; }
.make-card h3 { font-weight: 800; font-size: 20px; color: var(--paper); }
.make-card p { font-size: 15px; line-height: 1.55; color: var(--stone); }

.screenshots { padding: 80px 64px; max-width: 1200px; margin: 0 auto; width: 100%; }
.screenshots .eyebrow { display: block; margin-bottom: 28px; }
.screenshots-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.screenshot-slot { height: 420px; position: relative; min-width: 0; }

.game-cta {
  border-top: 1px solid var(--hairline);
  padding: 88px 64px; text-align: center;
}
.game-cta-title {
  font-weight: 900; font-size: clamp(30px, 5vw, 40px);
  letter-spacing: -0.02em; text-wrap: balance;
}
.game-cta .btn-appstore {
  margin-top: 26px;
  background: var(--marigold); color: var(--ink);
  padding: 16px 32px; font-size: 17px;
}
.game-cta .btn-appstore:hover { background: var(--ink); color: var(--paper); }

/* --------------------------------------------------------------------------
   Support
   -------------------------------------------------------------------------- */
.support-header { padding: 96px 64px 56px; text-align: center; }
.support-header h1 {
  font-weight: 900; font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.03em; margin-top: 16px; text-wrap: balance;
}
.support-header .sub {
  font-size: 19px; line-height: 1.6; color: var(--muted);
  max-width: 600px; margin: 20px auto 0;
}
.mail-link { font-weight: 700; border-bottom: 2px solid var(--marigold); }
.mail-link--600 { font-weight: 600; }

.faq { max-width: 760px; margin: 0 auto; padding: 24px 32px 96px; width: 100%; }
.faq .eyebrow { display: block; margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  padding: 24px 0; border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 8px;
}
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-q { font-weight: 800; font-size: 19px; }
.faq-a { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* --------------------------------------------------------------------------
   Legal pages (Privacy, Terms)
   -------------------------------------------------------------------------- */
.legal { max-width: 720px; margin: 0 auto; padding: 80px 32px 96px; width: 100%; }
.legal h1 {
  font-weight: 900; font-size: clamp(34px, 6vw, 48px);
  letter-spacing: -0.03em; margin: 14px 0 6px;
}
.legal-date { font-family: 'Space Grotesk', monospace; font-size: 13px; color: var(--stone); }
.notice {
  margin-top: 20px; padding: 16px 20px; background: var(--notice);
  font-size: 14px; line-height: 1.6; color: var(--muted);
}
.legal-body {
  font-size: 16.5px; line-height: 1.7; color: var(--body);
  display: flex; flex-direction: column; gap: 28px; margin-top: 36px;
}
.legal-body h2 { font-weight: 800; font-size: 21px; margin-bottom: 8px; }
.legal-body p + p { margin-top: 10px; }
.legal-bullets { display: flex; flex-direction: column; gap: 8px; }
.legal-bullet { display: flex; gap: 12px; }
.legal-bullet .sq {
  width: 7px; height: 7px; background: var(--marigold);
  margin-top: 8px; flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Charter
   -------------------------------------------------------------------------- */
.charter-title {
  padding: 104px 64px 72px; text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.charter-title h1 {
  font-weight: 900; font-size: clamp(42px, 7vw, 68px);
  letter-spacing: -0.03em; margin-top: 18px;
}
.founder-letter { max-width: 680px; margin: 0 auto; padding: 80px 32px; }
.founder-letter .eyebrow { display: block; margin-bottom: 24px; }
.founder-letter-body {
  font-size: 18px; line-height: 1.7; color: var(--body);
  display: flex; flex-direction: column; gap: 22px;
}
.today { max-width: 680px; margin: 0 auto; padding: 0 32px 80px; }
.today-box { border: 1px solid var(--hairline); padding: 32px 36px; }
.today-box .eyebrow { display: block; margin-bottom: 14px; }
.today-body {
  font-size: 17px; line-height: 1.7; color: var(--body);
  display: flex; flex-direction: column; gap: 14px;
}
.purpose-block {
  background: var(--ink); padding: 72px 64px;
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px;
}
.purpose-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px; letter-spacing: 0.14em; color: var(--marigold-light);
}
.purpose-statement {
  color: var(--paper); font-weight: 800; font-size: 19px;
  margin-top: 10px; line-height: 1.35;
}
.charter-principles { max-width: 880px; margin: 0 auto; padding: 88px 32px; width: 100%; }
.charter-principles .eyebrow { display: block; margin-bottom: 36px; }
.principle-row {
  display: grid; grid-template-columns: 64px 240px 1fr; gap: 24px;
  padding: 24px 0; border-top: 1px solid var(--hairline);
}
.principle-row:last-child { border-bottom: 1px solid var(--hairline); }
.principle-num {
  font-family: 'Space Grotesk', monospace;
  font-weight: 700; font-size: 18px; color: var(--marigold-deep);
}
.principle-title { font-weight: 800; font-size: 19px; }
.principle-body { font-size: 16px; line-height: 1.6; color: var(--muted); }

.standard-never {
  border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: 1fr 1fr;
}
.standard-col { padding: 72px 64px; }
.standard-col:first-child { border-right: 1px solid var(--hairline); }
.standard-col .eyebrow { display: block; margin-bottom: 28px; }
.standard-list {
  font-size: 16px; line-height: 1.6; color: var(--body);
  display: flex; flex-direction: column; gap: 14px;
}
.standard-item { display: flex; gap: 12px; }
.standard-item .sq {
  width: 8px; height: 8px; background: var(--marigold);
  margin-top: 7px; flex-shrink: 0;
}
.standard-close { margin-top: 24px; font-weight: 700; font-size: 16px; }

.question-band { background: var(--ink); padding: 112px 64px; text-align: center; }
.question-band .eyebrow { color: var(--stone); }
.question-band .q {
  font-weight: 900; font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.03em; color: var(--paper); margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Responsive — single-column collapse under 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav { padding: 18px 24px; }
  .nav-links { gap: 20px; font-size: 14px; }
  .footer { padding: 24px 24px; justify-content: center; text-align: center; }

  .hero { padding: 80px 24px 64px; }
  .belief { grid-template-columns: 1fr; }
  .belief-cell:not(:last-child) {
    border-right: none; border-bottom: 1px solid var(--hairline);
  }
  .band { padding: 64px 24px; }
  .principles-grid { grid-template-columns: 1fr; gap: 36px; }
  .promise { padding: 80px 24px; }

  .products-header { padding: 72px 24px 48px; }
  .section-rule { padding: 0 24px 20px; }
  .games-grid { padding: 28px 24px 56px; grid-template-columns: 1fr; }
  .coming-next { padding: 56px 24px 64px; }
  .workshop-grid { grid-template-columns: 1fr; }

  .game-hero { grid-template-columns: 1fr; padding: 56px 24px; gap: 36px; }
  .game-hero-art { height: 320px; }
  .what-youll-make { padding: 64px 24px; }
  .make-grid { grid-template-columns: 1fr; gap: 32px; }
  .screenshots { padding: 64px 24px; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .screenshot-slot { height: 320px; }
  .game-cta { padding: 64px 24px; }

  .support-header { padding: 72px 24px 40px; }

  .charter-title { padding: 72px 24px 56px; }
  .founder-letter { padding: 64px 24px; }
  .today { padding: 0 24px 64px; }
  .purpose-block { grid-template-columns: 1fr; padding: 56px 24px; gap: 32px; }
  .charter-principles { padding: 64px 24px; }
  .principle-row { grid-template-columns: 1fr; gap: 6px; }
  .standard-never { grid-template-columns: 1fr; }
  .standard-col { padding: 56px 24px; }
  .standard-col:first-child {
    border-right: none; border-bottom: 1px solid var(--hairline);
  }
  .question-band { padding: 72px 24px; }
}
