@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ECEEF1;
  --line: #C8CDD6;
  --muted: #4F5765;
  --ink: #121722;
  --accent: #1F2F4A;
  --font: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(1rem, 5vw, 4.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10151F;
    --line: #283244;
    --muted: #A0A8B6;
    --ink: #E8EAEE;
    --accent: #CFA9A0;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #10151F;
  --line: #283244;
  --muted: #A0A8B6;
  --ink: #E8EAEE;
  --accent: #CFA9A0;
  color-scheme: dark;
}

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

.top, main, footer {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease;
}

a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem 2rem;
  padding-block: 0.75rem;
}

.mark {
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.theme {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.theme:hover { color: var(--accent); }

main {
  flex: 1;
  padding-block: clamp(2.5rem, 10vw, 6rem);
}

h1 {
  margin: 0 0 0.5rem;
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.intro {
  max-width: 32em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
}

.soon {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(1200px - 2 * var(--gutter));
  padding-inline: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p { margin: 0; }

footer a { text-decoration: none; }

.bat-canvas {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.bats {
  padding: 0.2em;
  margin: -0.2em;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
