/* ────────────────────────────────────────────────────────────────────────
   0wrap.xyz — single-typeface mono landing
   Space Mono everywhere. Hierarchy from weight + size + tracking.
──────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-mono-700.woff2") format("woff2");
}

:root {
  --bg: #0a0b0c;
  --bg-2: #0f1112;
  --fg: #f0f0ee;
  --fg-dim: #7c7e80;
  --fg-mute: #44464a;
  --rule: #1c1e22;
  --accent: #3ee089;

  --font: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus { outline: none; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: color-mix(in oklab, var(--accent) 30%, transparent);
  color: var(--fg);
}

/* ── page shell ──────────────────────────────────────────────────────── */
.page {
  position: relative;
  min-height: 100vh;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 48px 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 36px;
  overflow: hidden;
}

/* ── top bar ─────────────────────────────────────────────────────────── */
.bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 15px;
  color: var(--fg);
}
.inline-mark { color: var(--fg); flex: none; }
.brand__type { display: inline-block; }
.brand__tld {
  color: var(--fg-dim);
  font-weight: 400;
}

.bar__right { display: inline-flex; align-items: center; gap: 14px; }
.bar__label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 400;
  white-space: nowrap;
}

/* ── hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
  max-width: 920px;
}

.kicker {
  margin: 0 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 500;
}
.kicker__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}

.h1 {
  margin: 0 0 32px;
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-wrap: balance;
}
.h1__line { display: block; }
.h1__demo { display: block; }

/* ── cycling demo (lives inside h1) ──────────────────────────────────── */
.demo {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
  font-size: 0.78em;
}
.demo__bracket {
  color: var(--fg-mute);
  font-weight: 400;
}
.demo__slot {
  position: relative;
  display: inline-block;
}
.demo__name {
  display: inline-block;
  color: var(--fg);
  font-weight: 700;
  transition: opacity 180ms ease;
}
.demo__sym > span {
  transition: opacity 180ms ease;
}
.demo__ghost {
  visibility: hidden;
  display: inline-block;
  pointer-events: none;
}
.demo__slot .demo__name {
  position: absolute;
  inset: 0;
  white-space: nowrap;
}
.demo__arrow {
  font-weight: 400;
  margin: 0 2px;
  color: var(--accent);
}
.demo__sym {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.demo__sym > span {
  display: inline-block;
}

/* ── lede ────────────────────────────────────────────────────────────── */
.lede {
  margin: 0 0 44px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-dim);
  text-wrap: pretty;
}

/* ── CTA ─────────────────────────────────────────────────────────────── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.cta__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  transition: border-color 200ms ease;
}
.cta__link:hover {
  border-bottom-color: var(--accent);
}
.cta__arrow {
  font-size: 18px;
  color: var(--accent);
  transition: transform 200ms ease;
}
.cta__link:hover .cta__arrow {
  transform: translateX(4px);
}
.cta__handle {
  color: var(--fg-dim);
  font-weight: 400;
  margin-left: 6px;
}
.cta__alt {
  font-size: 13px;
  color: var(--fg-dim);
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.cta__alt:hover {
  color: var(--fg);
  border-bottom-color: var(--rule);
}

/* ── footer ──────────────────────────────────────────────────────────── */
.foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}
.foot__rule {
  width: 1px; height: 12px;
  background: var(--rule);
  display: inline-block;
}
.foot__dim {
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

/* ── big background mark ─────────────────────────────────────────────── */
.bigmark {
  position: absolute;
  z-index: 1;
  right: -10%;
  bottom: -20%;
  width: min(80vw, 820px);
  aspect-ratio: 1;
  color: var(--rule);
  pointer-events: none;
  opacity: 0.95;
}
.bigmark__svg {
  width: 100%; height: 100%;
  display: block;
}

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .page {
    padding: 22px 22px 24px;
    gap: 28px;
  }
  .h1 { font-size: clamp(28px, 7.6vw, 44px); }
  .demo { gap: 8px; row-gap: 4px; font-size: 0.62em; flex-wrap: wrap; white-space: normal; }
  .lede { font-size: 14px; }
  .bigmark { right: -30%; bottom: -25%; width: 100vw; }
  .bar__label { display: none; }
}
