/* Ethereum Luxembourg. Tokens follow DESIGN.md (void canvas, weight-400 display, weight-200 body, single violet action). */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #000;
  --bone: #fff;
  --ash: #9a9a9a;
  --mist: #bdbdbd;
  --iris: #8052ff;
  --saffron: #ffb829;
  --verdant: #15846e;
  --lux-red: #cd4550;
  --lux-blue: #0089b6;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(60px, 10vw, 120px);
  --radius: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 200 18px/1.5 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--iris); color: var(--bone); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--saffron); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
strong, b { font-weight: 400; }

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(52px, 8.8vw, 113px); line-height: 0.95; letter-spacing: -0.04em; }
h2 { font-size: clamp(40px, 6.1vw, 78px); line-height: 1.02; letter-spacing: -0.04em; }
h3 { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.label {
  font-size: 14px; font-weight: 600; line-height: 1.2;
  letter-spacing: 0.025em; text-transform: uppercase;
  color: var(--saffron); margin: 0 0 18px;
}
.muted { color: var(--mist); }
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 32em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 10; background: var(--iris); color: var(--bone); padding: 12px 16px; border-radius: var(--radius); }

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


/* Navigation: transparent bar, uppercase labels, one violet pill. */
.nav { display: flex; align-items: center; gap: 30px; padding-block: 24px; }
.nav .brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--bone); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; }
.nav .brand img { height: 34px; width: auto; }
.nav a:not(.btn):not(.brand) {
  color: var(--ash); text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase;
}
.nav a:not(.btn):not(.brand):is(:hover, [aria-current]) { color: var(--bone); }
.nav .lang { color: var(--ash); font-size: 14px; font-weight: 600; letter-spacing: 0.025em; }

.btn {
  display: inline-block; background: var(--iris); color: var(--bone);
  padding: 14.4px 18px; border-radius: var(--radius); border: 0;
  font: 600 14px/1.2 var(--font); letter-spacing: 0.025em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .2s ease;
}
.btn:hover { color: var(--bone); transform: translateY(-1px); }
.ghost {
  display: inline-block; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--bone); font: 400 14px/1.2 var(--font); letter-spacing: 0.025em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 0.35em;
}
.ghost:hover { color: var(--saffron); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 36px; }

/* Two-column zigzag: text and constellation alternate sides. */
section { padding-block: var(--section); }
main > section + section { padding-top: 0; scroll-margin-top: var(--section); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.rev > .viz { order: -1; }
.viz { position: relative; aspect-ratio: 1; width: 100%; }

.hero { padding-top: clamp(24px, 5vw, 60px); min-height: min(88vh, 900px); }
.hero .viz { aspect-ratio: 0.9; }
.hero h1 { margin-bottom: 36px; }

/* Typographic lists: no cards, the triangle glyph is the bullet. */
.tri-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.tri-list li { position: relative; padding-left: 30px; }
.tri-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 11px; height: 10px;
  background: var(--c, var(--iris)); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.tri-list li:nth-child(3n+1) { --c: var(--lux-red); }
.tri-list li:nth-child(3n+2) { --c: var(--bone); }
.tri-list li:nth-child(3n) { --c: var(--lux-blue); }

/* Principles: oversized numbered lines. */
.principles { list-style: none; padding: 0; margin: 0; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 54px 1fr; align-items: baseline; padding-block: 9px; }
.principles li::before { content: "0" counter(p); color: var(--saffron); font-size: 14px; font-weight: 600; letter-spacing: 0.025em; }
.principles a, .principles span { font-size: clamp(26px, 3.2vw, 42px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.1; color: var(--bone); text-decoration: none; }
.principles a:hover { color: var(--saffron); }

/* FAQ: native disclosure, the triangle turns when open. */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.faq details { padding-block: 18px; }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 18px; gap: 24px; align-items: baseline;
  font-size: clamp(20px, 2vw, 24px); font-weight: 400; line-height: 1.25; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 11px; background: var(--ash);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: rotate(90deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); background: var(--saffron); }
.faq details p { color: var(--mist); margin: 12px 0 0; max-width: 36em; }

/* Newsletter: a single underlined field, no box. */
.nl { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: end; margin-top: 36px; max-width: 560px; }
.nl label { flex-basis: 100%; font-size: 14px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--ash); margin-bottom: -12px; }
.nl input {
  flex: 1 1 260px; background: transparent; color: var(--bone); border: 0; border-bottom: 1px solid var(--ash);
  font: 200 clamp(20px, 2vw, 24px)/1.3 var(--font); padding: 12px 0; border-radius: 0;
}
.nl input:focus { border-bottom-color: var(--saffron); }
#newsletter .lead { margin-bottom: 0; } #newsletter .nl { margin-top: 0; }
.nl .hp { position: absolute; left: -9999px; }

/* Long-form pages (manifesto, privacy). */
.page-head { padding-block: clamp(36px, 8vw, 96px) clamp(30px, 5vw, 60px); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.04em; line-height: 1.2; margin: 1.6em 0 0.5em; }
.prose h3 { margin: 1.4em 0 0.4em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--saffron); }
.long { display: grid; grid-template-columns: 1fr minmax(0, 760px); gap: 60px; }
.toc { position: sticky; top: 36px; align-self: start; font-size: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.toc a { color: var(--ash); text-decoration: none; }
.toc a:hover { color: var(--bone); }

/* Footer: vertical lockup, legal line, no divider. */
.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 36px 60px; align-items: end; padding-block: 0 60px; font-size: 14px; color: var(--ash); }
.foot .mark img { height: 120px; width: auto; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot a { color: var(--ash); text-decoration: none; }
.foot a:hover { color: var(--bone); }
.foot p { margin: 0; }

@media (max-width: 900px) {
  .split, .faq, .long { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > .viz { order: 0; }
  .hero { min-height: 0; }
  .hero .viz { aspect-ratio: 1; max-width: 520px; margin-inline: auto; }
  .toc { position: static; }
  .toc { display: none; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { gap: 18px; flex-wrap: wrap; }
  .nav .hide-sm { display: none; }
  .nav .brand img { height: 30px; }
}
@media (max-width: 940px) { .nav .brand span { display: none; } }
@media (forced-colors: active) { .faq summary::after, .tri-list li::before { forced-color-adjust: none; background: CanvasText; } #field { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
h2 + p, h2 + .lead { margin-top: 36px; }
.fine { font-size: 14px; margin-top: 24px; }
.foot, .toc, .fine { font-weight: 400; }
.page-head h1 { margin-bottom: 36px; }
.prose > :first-child { margin-top: 0; }
.prose .tri-list { padding-left: 0; margin: 36px 0; }
.toc ol ol { margin-top: 9px; padding-left: 18px; }
.nowrap { white-space: nowrap; }
main { overflow-x: clip; } /* rising (slightly rotated) blocks must not widen the page on phones */
/* FAQ page: same two-column disclosure layout, the heading block sticks on the left. */
.faq-head { position: sticky; top: 36px; }
.faq-head h1 { font-size: clamp(40px, 6.1vw, 78px); line-height: 1.02; margin-bottom: 36px; }
.page-faq { padding-top: clamp(36px, 8vw, 96px); }
@media (max-width: 900px) { .faq-head { position: static; } }

/* One fixed particle field behind the page; .viz boxes only mark where each shape settles. */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Text reveal (Dala's splitTextRotateIn): words rise and unrotate inside a mask, blocks slide up. html.js comes from boot.js. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
  .js .reveal .w > span { display: inline-block; transform: translateY(110%) rotate(7deg); transform-origin: 0 100%; transition: transform 1s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 60ms); }
  .js .reveal.in .w > span { transform: none; }
  .js .rise { opacity: 0; transform: translateY(28px) rotate(1.5deg); transform-origin: 0 0; transition: opacity .9s ease calc(var(--i, 0) * 70ms + 150ms), transform 1s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 70ms + 150ms); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .rise:focus-within { opacity: 1; transform: none; transition-delay: 0s; } /* a focused link is never invisible */
  /* failsafe: if site.js never runs, show everything after 3 s */
  .js:not(.ready) .rise, .js:not(.ready) .reveal .w > span { animation: show 0s 3s forwards; }
  /* before site.js runs, headings and the first section's blocks start hidden, so the hero never paints then vanishes */
  .js:not(.ready) main :is(h1, h2), .js:not(.ready) main > section:first-child :is(.label, .lead, .actions) { opacity: 0; animation: show 0s 3s forwards; }
}
@keyframes show { to { opacity: 1; transform: none; } }
@media print { .js .rise, .js .reveal .w > span { opacity: 1 !important; transform: none !important; } }
