@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #000;
  --surface: #0a0a0c;
  --card: #111113;
  --card-hover: #18181b;
  --line: #232327;
  --text: #fafafa;
  --muted: #a1a1aa;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; }

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

/* Phone layout is the layout; wider screens get the same column, framed. */
.shell {
  width: 100%;
  max-width: 540px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 40px 16px 28px;
  background: var(--surface);
}

@media (min-width: 600px) {
  .shell {
    min-height: 0;
    margin: 24px auto;
    padding: 56px 24px 32px;
    border: 1px solid var(--line);
    border-radius: 36px;
  }
}

.profile { text-align: center; }

.avatar {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  object-fit: cover;
}

.handle { color: var(--muted); }

h1 {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.socials {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  transition: color 0.15s;
}

.socials a:hover { color: var(--text); }

.socials svg { width: 24px; height: 24px; }

.stack {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.card {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.card:hover {
  background: var(--card-hover);
  border-color: #33333a;
}

.tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.tile svg { width: 24px; height: 24px; }

.card-text { flex: 1; min-width: 0; }

.card-text strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.card-text span { color: var(--muted); }

.card.soon,
.card.soon:hover {
  background: var(--card);
  border-color: var(--line);
  cursor: default;
}

.card-text .badge {
  display: block;
  width: fit-content;
  margin-top: 8px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
}

.arrow {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.15s, color 0.15s;
}

.card:hover .arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

.newsletter { margin-top: 56px; }

.newsletter h2, .modal h2 {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.newsletter h2 { font-size: 26px; }

.newsletter > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
}

.panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

input[type="email"] {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

input[type="email"]::placeholder { color: #71717a; }

.btn {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--text);
  color: #09090b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover { background: #d4d4d8; }

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Spam trap: invisible to people, filled in by bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.status {
  margin-top: 12px;
  color: var(--text);
  font-size: 14px;
  text-align: center;
}

.status:empty { display: none; }

.footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer a:hover { color: var(--text); }

/* Popup: bottom sheet on phones, centered from 600px up. */
.modal {
  width: 100%;
  max-width: 540px;
  margin: auto auto 0;
  padding: 28px 20px 24px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--card);
  color: var(--text);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

@media (min-width: 600px) {
  .modal {
    max-width: 460px;
    margin: auto;
    padding: 28px;
    border-bottom: 1px solid var(--line);
    border-radius: 28px;
  }
}

.modal h2 {
  padding-right: 36px;
  font-size: 22px;
  line-height: 1.25;
}

.modal > p {
  margin-top: 8px;
  color: var(--muted);
}

.modal form { margin-top: 20px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover { color: var(--text); }

.modal-close svg { width: 20px; height: 20px; }

.check {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--text);
  cursor: pointer;
}

.modal .btn { margin-top: 18px; }

.modal > .fineprint {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
}

/* Privacy page */
.legal-back {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.legal-back:hover { color: var(--text); }

.legal h1 { margin-top: 20px; font-size: 28px; }

.legal h2 {
  margin-top: 32px;
  font-size: 17px;
  font-weight: 600;
}

.legal p, .legal li {
  margin-top: 10px;
  color: var(--muted);
}

.legal ul { margin: 0; padding-left: 20px; }

.legal .updated { margin-top: 6px; font-size: 14px; }

.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: #3f2a06;
  color: #fbbf24;
}
