﻿/* clauswarm — orange / black / cream */
:root {
  --bg: #F28540;
  --bg-deep: #E86A2A;
  --bg-soft: #FF9A55;
  --ink: #0a0a0a;
  --cream: #FFF8E7;
  --cream-dim: rgba(255, 248, 231, 0.72);
  --muted: rgba(10, 10, 10, 0.62);
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.28);
  --accent: #0a0a0a;
  --accent-ink: #FFF8E7;
  --danger: #7a1010;
  --ok: #0d4a28;
  --radius: 18px;
  --display: "Fraunces", Georgia, serif;
  --ui: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(255, 248, 231, 0.28), transparent 55%),
    radial-gradient(700px 480px at -10% 80%, rgba(0, 0, 0, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow a { text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.big { padding: 14px 22px; font-size: 16px; min-width: 160px; }
.btn.accent {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}
.btn.accent:hover { background: #1a1a1a; }
.btn.ghost {
  background: rgba(255, 248, 231, 0.35);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--cream);
  border-color: var(--ink);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(242, 133, 64, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--bg);
}
.links { display: flex; gap: 22px; }
.links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 7vh, 72px) var(--gutter) 40px;
  min-height: clamp(420px, 70vh, 620px);
}
.hero h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 9vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  display: grid;
}
.title-line { display: block; }
.accent-word { color: var(--cream); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.lead {
  margin: 0 0 26px;
  max-width: 34rem;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
}
.lead b, .sym { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.stats div {
  padding: 12px 0 0;
  border-top: 2px solid var(--line);
}
.stats dt {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
}
.stats small { color: var(--muted); font-weight: 500; font-size: 12px; font-family: var(--ui); }

.hero-art {
  width: min(100%, 260px);
  justify-self: end;
}
.hero-art .frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--bg-soft);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}
.hero-art .frame-live {
  background: #F28540;
}
.blob-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pupil {
  transition: cx 0.05s linear, cy 0.05s linear;
}
.ink-trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-art img.show { opacity: 1; }
.hero-caption {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.strip {
  overflow: hidden;
  border-block: 2px solid var(--line);
  background: rgba(0, 0, 0, 0.08);
}
.strip-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-head { margin-bottom: 22px; }
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.03em;
}
.section-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phases, .mint, .gallery, .docs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter);
  scroll-margin-top: 80px;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.phase-card {
  padding: 26px;
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  background: rgba(255, 248, 231, 0.42);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.phase-card:hover { transform: translateY(-3px); }
.phase-card.active {
  opacity: 1;
  background: var(--cream);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
}
.phase-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.phase-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  color: var(--muted);
}
.phase-card.active .phase-status {
  color: var(--cream);
  background: var(--ink);
  border-color: transparent;
}
.phase-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 30px;
}
.phase-card p, .phase-points { color: var(--muted); }
.phase-card p b, .phase-card a { color: var(--ink); }
.phase-card code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}
.phase-points { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.curve { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0 !important; }
.curve span {
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: rgba(0, 0, 0, 0.06);
}

.mint-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: calc(var(--radius) + 6px);
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.18);
}
.mint-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.mint-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
}
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-size: 12px;
  font-family: var(--mono);
  background: var(--bg);
}
.progress {
  margin: 22px 0 20px;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: rgba(242, 133, 64, 0.28);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.progress-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress-count {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
}
.progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 2px solid var(--ink);
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.7s ease;
}
.requirement { margin: 0 0 12px; color: var(--muted); }
.requirement b { color: var(--ink); }
.floor-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: rgba(242, 133, 64, 0.35);
  color: var(--ink);
  font-size: 14px;
}
.floor-note a { font-weight: 700; }
.state {
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px dashed var(--line-strong);
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.35);
}
.state p { margin: 0; }
.state.ok { border-style: solid; border-color: var(--ok); background: rgba(13, 74, 40, 0.08); }
.state.bad { border-style: solid; border-color: var(--danger); background: rgba(122, 16, 16, 0.08); }
.state .mono { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mint-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mine {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}
.mine img {
  border-radius: 16px;
  border: 3px solid var(--ink);
}
.mine h3 { margin: 0 0 6px; font-family: var(--display); }
.mine-desc { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; }
.chips li {
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: rgba(242, 133, 64, 0.2);
}
.chips b { color: var(--ink); }
.mine-links { display: flex; gap: 8px; flex-wrap: wrap; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--bg-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card figcaption {
  padding: 10px 12px 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--cream);
  border-top: 2px solid var(--ink);
}
.card figcaption b {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
  font-size: 14px;
  font-family: var(--display);
}

.phase-rail {
  position: fixed;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  z-index: 40;
  width: min(210px, calc(100vw - 28px));
  padding: 14px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 6px;
}
.phase-banner-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.phase-rail-title {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
}
.phase-banner-text { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.phase-rail-link {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
  border-top: 2px solid var(--line);
  display: grid;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  border-radius: 12px;
  border: 2px solid var(--ink);
}
.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
}
.footer-brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.footer-brand a { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }
.disclaimer { margin: 0; color: var(--muted); font-size: 13px; max-width: 720px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  border: 2px solid var(--ink);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.docs { max-width: 820px; }
.docs-hero h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 64px);
}
.docs-body section {
  padding: 28px 0;
  border-top: 2px solid var(--line);
  scroll-margin-top: 80px;
}
.docs-body h2 { font-family: var(--display); margin: 0 0 12px; }
.docs-body p, .docs-body li { color: var(--muted); }
.docs-body b, .docs-body a { color: var(--ink); }
.docs-body code, .docs-body pre { font-family: var(--mono); font-size: 13px; }
.docs-body code {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}
.docs-body pre {
  overflow: auto;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: rgba(255, 248, 231, 0.5);
}
.docs-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.docs-toc a {
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(255, 248, 231, 0.45);
}
.docs-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: rgba(255, 248, 231, 0.45);
}
.docs-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs-table-wrap th, .docs-table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.docs-table-wrap tr:last-child th, .docs-table-wrap tr:last-child td { border-bottom: 0; }
.docs-table-wrap th { color: var(--ink); width: 28%; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.docs-table-wrap td { color: var(--muted); }

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 28px;
  }
  .hero-art {
    order: -1;
    width: min(100%, 220px);
    justify-self: end;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .phase-grid { grid-template-columns: 1fr; }
  .links { display: none; }
  .phase-rail {
    top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; transform: none;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "label title link" "note note note";
    gap: 4px 10px; align-items: center;
  }
  .phase-banner-label { grid-area: label; }
  .phase-rail-title { grid-area: title; font-size: 16px; }
  .phase-banner-text { grid-area: note; }
  .phase-rail-link { grid-area: link; margin: 0; }
  .mine { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  .btn:hover, .card:hover, .phase-card:hover { transform: none; }
}
