@font-face {
  font-family: "Berkeley Mono";
  src: url("/fonts/BerkeleyMono-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0a0b0c;
  --fg: #e9eae7;
  --muted: #888c90;
  --mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  position: relative;
}

/* faint grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 4vw, 44px);
}

.mark {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: clamp(108px, 10vw, 132px);
  height: auto;
}

.nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 34px);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.16s ease;
}

.nav a:hover { color: var(--fg); }

a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

.stage {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lede {
  max-width: 42ch;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--fg);
}

/* light variant */
body.light {
  --bg: #f4f4f1;
  --fg: #131415;
  --muted: #6a6d67;
}
body.light::before { mix-blend-mode: multiply; opacity: 0.05; }

@media (max-width: 520px) {
  .head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lede { font-size: 17px; }
}
