/* Empire public explainer
   Surface: after-hours ledger (marketing, single page)
   Type: Clash Display + Satoshi
   Material: ink field + one brass rule + grain. Solid cards, not glass soup.
*/

:root {
  --hue-ink: 256;
  --hue-brass: 78;

  --bg: oklch(0.145 0.018 var(--hue-ink));
  --bg-2: oklch(0.175 0.02 var(--hue-ink));
  --surface: oklch(0.2 0.018 var(--hue-ink));
  --ink: oklch(0.94 0.012 85);
  --mute: oklch(0.74 0.02 80);
  --faint: oklch(0.62 0.02 75);
  --brass: oklch(0.8 0.09 var(--hue-brass));
  --brass-dim: oklch(0.68 0.07 var(--hue-brass));
  --line: oklch(0.92 0.02 85 / 0.12);
  --line-strong: oklch(0.92 0.02 85 / 0.22);
  --focus: oklch(0.84 0.08 var(--hue-brass));
  --focus-off: oklch(0.145 0.018 var(--hue-ink));
  --danger-ink: oklch(0.78 0.04 50);

  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-sans: "Satoshi", system-ui, sans-serif;

  --text-display: clamp(2.2rem, 1.35rem + 3.2vw, 4.4rem);
  --text-h2: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  --text-body: clamp(1.02rem, 0.98rem + 0.18vw, 1.125rem);
  --text-ui: 0.9375rem;
  --text-caption: 0.8125rem;
  --text-eyebrow: 0.72rem;

  --measure: 62ch;
  --page: min(1120px, calc(100% - 2 * var(--gutter)));
  --gutter: clamp(1.15rem, 3vw, 2.25rem);
  --radius: 1.1rem;
  --radius-sm: 0.7rem;

  --motion-dur-fast: 120ms;
  --motion-dur-base: 200ms;
  --motion-dur-slow: 320ms;
  --motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-distance: 8px;

  --grain: 0.045;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  font-optical-sizing: auto;
  scroll-behavior: smooth;
}

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.58;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -10%, oklch(0.28 0.04 var(--hue-brass) / 0.18), transparent 60%),
    radial-gradient(700px 420px at 100% 8%, oklch(0.22 0.03 250 / 0.28), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.6rem;
  z-index: 60;
  padding: 0.55rem 0.8rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  transform: translateY(-140%);
}
.skip:focus {
  transform: translateY(0);
}

a { color: var(--brass); }
a:hover { color: oklch(0.88 0.08 var(--hue-brass)); }
a:focus-visible,
button:focus-visible,
.x-follow:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: var(--page);
  margin: 0 auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  background: oklch(0.145 0.018 var(--hue-ink) / 0.78);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand-island {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  padding-right: 0.9rem;
  border-right: 1px solid var(--line-strong);
}

.x-follow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  max-height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid oklch(0.8 0.09 var(--hue-brass) / 0.4);
  text-decoration: none;
  overflow: hidden;
  background: oklch(0.8 0.09 var(--hue-brass) / 0.1);
  color: var(--ink);
}
.x-follow-mark {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.x-follow-mark svg {
  width: 11px;
  height: 11px;
  max-width: 11px;
  max-height: 11px;
  fill: currentColor;
}
.x-follow-handle {
  display: none;
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
  padding-right: 0.5rem;
}
@media (min-width: 1536px) {
  .x-follow-handle { display: inline; }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: var(--text-ui);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.15rem;
}
.top-nav a:hover { color: var(--ink); }
.top-nav a[aria-current="page"] { color: var(--ink); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 28px;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid oklch(0.8 0.09 var(--hue-brass) / 0.35);
  color: var(--brass);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass-dim);
}

.hero {
  display: grid;
  gap: 1.75rem;
  padding: clamp(2.2rem, 5vw, 4.2rem) 0 clamp(2rem, 4vw, 3.2rem);
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
    gap: 2.5rem;
  }
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--brass);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 16ch;
}

.lede {
  margin: 0 0 1.1rem;
  color: var(--mute);
  max-width: var(--measure);
}

.note {
  margin: 0;
  max-width: var(--measure);
  color: var(--faint);
  font-size: var(--text-caption);
  border-left: 2px solid var(--brass-dim);
  padding-left: 0.85rem;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.06) inset,
    0 24px 60px oklch(0.08 0.02 var(--hue-ink) / 0.45);
  background: var(--bg-2);
}
.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}
.hero-cap {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: oklch(0.12 0.02 var(--hue-ink) / 0.72);
  color: var(--mute);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.section {
  padding: 0 0 clamp(2.4rem, 5vw, 3.6rem);
}

.section h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-lead {
  margin: 0 0 1.35rem;
  color: var(--mute);
  max-width: var(--measure);
}

.loop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 760px) {
  .loop { grid-template-columns: 1fr 1fr; }
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem 1.1rem;
  box-shadow: 0 10px 28px oklch(0.08 0.02 var(--hue-ink) / 0.22);
  transition:
    border-color var(--motion-dur-base) var(--motion-ease-out),
    transform var(--motion-dur-base) var(--motion-ease-out);
}
.step:hover {
  border-color: var(--line-strong);
}
.step-n {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--brass);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.step p {
  margin: 0;
  color: var(--mute);
  font-size: var(--text-ui);
}

.not-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 46rem;
}
.not-list li {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: oklch(0.17 0.016 var(--hue-ink));
  color: var(--mute);
}
.not-list strong { color: var(--ink); font-weight: 600; }

.faq {
  display: grid;
  gap: 0.55rem;
  max-width: 46rem;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.15rem 0.9rem;
}
.faq summary {
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--brass);
  font-weight: 500;
}
.faq details[open] summary::after { content: "-"; }
.faq details p {
  margin: 0 0 0.95rem;
  color: var(--mute);
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem;
  color: var(--faint);
  font-size: var(--text-caption);
  display: grid;
  gap: 0.45rem;
}
.foot a { color: var(--mute); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.hits-line { color: var(--faint); }

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

@media (prefers-reduced-transparency: reduce) {
  .top {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
}

@media (prefers-contrast: more) {
  .step, .not-list li, .faq details {
    border-color: oklch(0.92 0.02 85 / 0.45);
  }
  .mute, .lede, .step p { color: oklch(0.86 0.015 85); }
}
