/* ==========================================================================
   Saylormoon — $SMOON
   Palette locked to STYLE_GUIDE.md §2 / WEBSITE.md §2
   ========================================================================== */

:root {
  --cream:      #FFF9F2;
  --cream-soft: #FDECD9;
  --ink:        #1A1533;
  --ink-soft:   #6B6280;
  --peach:      #FBCE9A;   /* light orange — soft accents, glow, hover */
  --orange:     #F7931A;   /* Bitcoin orange — collar & skirt, primary brand accent */
  --navy:       #0B4A9D;
  --gold:       #FCCB2C;
  --red:        #EA1B31;   /* gems only — never a costume colour */
  --line:       #F5E0C8;
  --white:      #FFFFFF;

  --font: 'Fredoka', system-ui, -apple-system, sans-serif;

  --radius:    20px;
  --radius-sm: 12px;
  --shadow:    0 4px 0 var(--ink);
  --wrap:      1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}

/* orange = action (Bitcoin) · gold = character accent · navy = structure */
.btn--primary { background: var(--orange); color: var(--ink); box-shadow: var(--shadow); }
.btn--ghost   { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }

.btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px);  box-shadow: 0 1px 0 var(--ink); }

.btn--lg { font-size: 16px; padding: 16px 28px; }

.btn.is-copied { background: var(--navy); color: #fff; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 249, 242, .88);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
}

.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--peach);
  object-fit: cover;
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;      /* "The Vow" used to wrap onto two lines at 1000px */
  transition: color .15s;
}
.nav__links a:hover { color: var(--navy); }

/* Mobile-only duplicate of the PFP button: on desktop it already exists in
   .nav__actions, where this entry would only lengthen the nav row. */
.nav__links .nav__mobile { display: none; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  transition: background .15s, transform .12s;
}
.nav__icon:hover { background: var(--peach); transform: translateY(-2px); }

.nav__burger {
  display: none;
  width: 42px; height: 38px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  padding: 9px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav__burger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; }

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

.hero { position: relative; overflow: hidden; }

.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(38px, 6.2vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero__title em { font-style: normal; color: var(--navy); }

.hero__sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 30px;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }

.hero__art { position: relative; }
.hero__art img {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 0 rgba(26, 21, 51, .07));
}

.hero__glow {
  position: absolute;
  top: -180px; right: -140px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--peach) 0%, transparent 68%);
  opacity: .5;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Stats ---------- */

.stats { display: flex; gap: 12px; flex-wrap: wrap; }

.stat {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 0 var(--ink);
  padding: 12px 20px;
  min-width: 104px;
}
.stat dt { font-size: 12px; font-weight: 500; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.stat dd { font-size: 24px; font-weight: 700; line-height: 1.2; }

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

.section { padding: 80px 0; }
.section--alt { background: var(--cream-soft); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

.section__head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section__head h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.section__head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Origin (quoted post) ----------
   Deliberately NOT X's widgets.js embed. That script renders inside an iframe
   that silently comes back blank when x.com is blocked or slow, leaving an empty
   gap on the page — and it costs ~100KB plus third-party tracking. This is a
   plain quotation: always renders, matches the site, and links to the real post
   so anyone can verify it. */

.quote {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--ink);
  padding: 34px 32px 26px;
  text-align: center;
}

.quote blockquote { margin: 0; }

.quote blockquote p {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--ink);
}

.quote figcaption {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.quote__who  { font-weight: 600; font-size: 16px; }
.quote__meta { font-size: 14px; color: var(--ink-soft); }

.quote__link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 8px 16px;
  transition: background .15s, color .15s;
}
.quote__link:hover { background: var(--navy); color: #fff; }

.origin__note {
  margin-top: 26px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}

.origin__note {
  margin-top: 26px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--ink);
  padding: 26px;
  text-align: center;
  position: relative;
}

.step__art {
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.step__art img { width: 88%; }

.step__num {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--gold);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
}

.step h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.step p  { color: var(--ink-soft); font-size: 15px; }

/* ---------- Lore ---------- */

.lore__banner {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--ink);
  padding: 22px;
  margin-bottom: 44px;
}
.lore__banner img { width: 100%; }

.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.act {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--ink);
  padding: 26px;
}

.act__num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--navy);
  color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.act h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.act p  { color: var(--ink-soft); font-size: 15px; }

/* ---------- Tokenomics ---------- */

.tokentable {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--ink);
  overflow: hidden;
}

.trow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 2px solid var(--line);
}
.trow:last-child { border-bottom: 0; }
.trow span { color: var(--ink-soft); font-size: 15px; }
.trow b    { font-weight: 600; font-size: 16px; text-align: right; }

.fineprint {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery figure {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--ink);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery figure:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ink); }
.gallery img { width: 90%; }

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

.footer {
  background: var(--ink);
  color: #E9E5F2;
  padding: 56px 0 44px;
  text-align: center;
}

.footer__pfp {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2.5px solid var(--orange);
  margin: 0 auto 18px;
  background: var(--peach);
}

.footer__tag {
  font-size: 19px;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 24px;
}

.ca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, .07);
  border: 2px solid rgba(247, 147, 26, .4);
  border-radius: 999px;
  padding: 9px 9px 9px 20px;
  margin-bottom: 26px;
  max-width: 100%;
}
.ca__label { font-size: 13px; color: var(--peach); font-weight: 500; }
.ca code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #fff;
  word-break: break-all;
}
.ca__copy {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  background: var(--orange);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .15s;
}
.ca__copy:hover { background: #fff; }
.ca__copy.is-copied { background: var(--gold); }

.footer__links { display: flex; gap: 26px; justify-content: center; margin-bottom: 30px; }
.footer__links a {
  color: var(--peach);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.footer__links a:hover { color: #fff; text-decoration: underline; }

.footer__disclaimer {
  max-width: 720px;
  margin: 0 auto 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #9A93AE;
}
.footer__disclaimer strong { color: #C9C2DB; font-weight: 600; }

.footer__warn {
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Dev placeholder (asset not generated yet) ---------- */

.ph {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  gap: 6px;
  background: repeating-linear-gradient(45deg, var(--cream-soft) 0 12px, #F8DCB4 12px 24px);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}
.ph b { font-size: 19px; color: var(--navy); }
.ph--wide { aspect-ratio: 2 / 1; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--round { border-radius: 50%; aspect-ratio: 1; }

.hero__art .ph { max-width: 440px; margin: 0 auto; }
.step__art .ph { border-radius: 0; }

/* tiny placeholders (nav logo, footer pfp): icon-sized, no room for labels */
.nav__logo.ph, .footer__pfp.ph { overflow: hidden; padding: 0; }
.nav__logo.ph span, .footer__pfp.ph span { display: none; }
.nav__logo.ph b, .footer__pfp.ph b { font-size: 11px; }

/* ---------- Vow Tracker ----------
   Read-only data panel. Palette stays locked: orange = Strategy (the subject),
   navy = everyone else, line = the supply still out there.                   */

.card {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tracker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 44px;
}

.ring__card {
  padding: 30px 26px;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.ring {
  --mstr: 0;
  --rest: 0;
  width: 236px;
  height: 236px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  background: conic-gradient(
    var(--orange) 0 calc(var(--mstr) * 1%),
    var(--navy)   0 calc((var(--mstr) + var(--rest)) * 1%),
    var(--line)   0
  );
  transition: background .5s ease;
}

.ring__hole {
  width: 162px;
  height: 162px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  text-align: center;
  padding: 0 12px;
}
.ring__hole b { font-size: 34px; font-weight: 700; line-height: 1.1; }
.ring__hole span { font-size: 11.5px; color: var(--ink-soft); line-height: 1.45; }

.ring__key { list-style: none; display: grid; gap: 9px; width: 100%; }
.ring__key li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-soft);
}
.ring__key b { margin-left: auto; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.dot--orange { background: var(--orange); }
.dot--navy   { background: var(--navy); }
.dot--line   { background: var(--line); }

.tracker__side { display: grid; gap: 24px; }

.mood {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 22px 18px 18px;
  background: var(--cream-soft);
}
.mood img { width: 116px; }
.mood p { font-size: 17px; font-weight: 500; line-height: 1.45; }

.tstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.tstat { padding: 16px 18px; display: grid; gap: 2px; }
.tstat dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tstat dd { font-size: 25px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tstat__meta { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.tstat__meta.is-up   { color: #1F8A4C; }
.tstat__meta.is-down { color: var(--red); }

.tiara__head {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
}

.tiara {
  list-style: none;
  counter-reset: tiara;
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}
.tiara li {
  counter-increment: tiara;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 15px;
}
.tiara li::before {
  content: counter(tiara);
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 14px;
}
.tiara li:first-child { border-color: var(--ink); box-shadow: var(--shadow); }
.tiara li:first-child::before { color: var(--orange); }
.tiara__co { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiara__btc { font-weight: 600; font-variant-numeric: tabular-nums; }
.tiara__btc small { color: var(--ink-soft); font-weight: 500; font-size: 12.5px; margin-left: 8px; }
/* Needs .tiara in front of both: plain .tiara__empty loses to .tiara li. */
.tiara li.tiara__empty {
  grid-template-columns: 1fr;
  text-align: center;
  color: var(--ink-soft);
  border-color: var(--line);
  box-shadow: none;
}
.tiara li.tiara__empty::before { content: none; }

.tracker__note {
  max-width: 700px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.tracker__note a { color: var(--navy); }
.tracker__note strong { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */

/* The right-hand buttons crowd the nav row just before the burger menu takes
   over at 960px. Tighten the spacing through that gap so nothing wraps. */
@media (max-width: 1120px) {
  .nav__inner { gap: 14px; }
  .nav__links { gap: 17px; }
  .nav__links a { font-size: 14px; }
  .nav__actions { gap: 8px; }
  .nav__actions .btn { font-size: 14px; padding: 12px 16px; }
}

@media (max-width: 960px) {
  .tracker { grid-template-columns: 1fr; }
  .ring__key { max-width: 380px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; }
  .hero__art { order: -1; }
  .hero__art img, .hero__art .ph { max-width: 300px; }
  .hero__sub { margin-inline: auto; }
  .hero__copy { text-align: center; }
  .hero__cta, .stats { justify-content: center; }

  .steps, .acts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }

  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links .nav__mobile { display: block; font-weight: 600; color: var(--orange); }

  .nav__burger { display: flex; }
  .nav__buy { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .tstats { grid-template-columns: 1fr; }
  .mood { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .mood img { width: 92px; }
  .mood p { font-size: 15.5px; }
  .tiara li { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 13px; font-size: 14px; }
  .tiara__btc { grid-column: 2; }
  .tiara__btc small { margin-left: 6px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trow { flex-direction: column; align-items: flex-start; gap: 4px; }
  .trow b { text-align: left; }
  .hero__cta .btn { width: 100%; }
}

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