:root {
  --bg: #0f0f11;
  --panel: #131316;
  --ink: #ececec;
  --muted: #9a9aa0;
  --line: #232327;
  --amber: #f5b83d;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'Fragment Mono', ui-monospace, Menlo, monospace;
  font-size: 0.76em;
  letter-spacing: 0.01em;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

/* top */

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1.2rem, 5vw, 3rem);
}

.wordmark {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.top nav { display: flex; gap: 1.6rem; }

.top nav a {
  font-family: 'Fragment Mono', ui-monospace, monospace;
  font-size: 0.76rem;
  color: var(--muted);
  text-decoration: none;
}
.top nav a:hover { color: var(--ink); }
.top .wallet { color: var(--amber); }

/* hero */

.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 11vh, 7rem) clamp(1.2rem, 5vw, 3rem) 3.2rem;
}

.over {
  font-family: 'Fragment Mono', ui-monospace, monospace;
  font-size: 0.76rem;
  color: var(--amber);
  margin-bottom: 1.3rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 7.5vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.standfirst {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 2.2rem;
}

.actions { display: flex; gap: 1.6rem; align-items: baseline; }

.cta {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--amber);
  color: var(--bg);
  font-family: 'Fragment Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  text-decoration: none;
}
.cta:hover { background: var(--ink); }

.minor {
  font-family: 'Fragment Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

/* the grid */

.grid-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

#night {
  display: block;
  width: 100%;
  height: min(66vh, 620px);
  cursor: crosshair;
}

.grid-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem clamp(1.2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  align-items: center;
}

.dot {
  display: inline-block;
  width: 0.62em; height: 0.62em;
  margin-right: 0.5em;
}
.dot.lit { background: var(--amber); }
.dot.dark { background: var(--panel); outline: 1px solid var(--line); }
.note { margin-left: auto; color: var(--amber); }

/* sections */

.how, .treasury, .questions {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.8rem clamp(1.2rem, 5vw, 3rem);
}

.how { border-bottom: 1px solid var(--line); }
.treasury { border-bottom: 1px solid var(--line); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem;
  margin-top: 2.2rem;
}

.steps .k { color: var(--amber); margin-bottom: 0.9rem; }

.steps h3 {
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.steps p:not(.k) { color: var(--muted); font-size: 0.97rem; }

.treasury > p:not(.mono) { max-width: 38rem; color: var(--muted); }

.contract { margin-top: 1.1rem; color: var(--muted); word-break: break-all; }
.contract:first-of-type { margin-top: 1.7rem; }

.questions dt { font-weight: 500; font-size: 1.12rem; margin-top: 1.8rem; }
.questions dt:first-child { margin-top: 0; }
.questions dd { max-width: 38rem; color: var(--muted); margin-top: 0.35rem; }

footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.2rem clamp(1.2rem, 5vw, 3rem) 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* tooltip */

#tip {
  position: fixed;
  padding: 0.45rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--amber);
  font-family: 'Fragment Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
#tip b { display: block; font-weight: 400; color: var(--amber); }
#tip i { font-style: normal; color: var(--muted); }

@media (max-width: 760px) {
  .top nav { gap: 1rem; }
  .top nav a:nth-child(2) { display: none; }
  .steps { grid-template-columns: 1fr; gap: 1.9rem; }
  .note { margin-left: 0; width: 100%; }
  #night { height: 52vh; }
}
