:root {
  --bg: #070a0f;
  --panel: #0a0e14;
  --line: #1d2530;
  --text: #c4cfdb;
  --muted: #5b6b7d;
  --accent: #2fd1ff;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus { text-decoration: underline; }

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

/* ---- header / logo ---- */
.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand:hover .wordmark b { color: var(--accent); }

.atom { display: block; width: 34px; height: 34px; flex: none; }
.atom .orbit { stroke: var(--muted); }
.atom .nucleus { fill: var(--text); }
.atom .electron { fill: var(--accent); }
.atom--lg { width: 100px; height: 100px; }

.wordmark { display: flex; flex-direction: column; }
.wordmark b { font-weight: 400; color: var(--text); letter-spacing: .02em; }
.wordmark span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
}

/* ---- splash (home) ---- */
.splash .wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.splash main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.splash .site-footer {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 28px;
  margin-top: 0;
}
.splash h1 {
  font-weight: 400;
  font-size: 28px;
  letter-spacing: .02em;
  margin: 22px 0 8px;
}
.tag { color: var(--muted); margin: 0; }
.tag .swap { color: var(--accent); display: inline-block; min-width: 10ch; text-align: left; transition: opacity .3s ease, transform .3s ease; }
.tag .swap.out { opacity: 0; transform: translateY(-0.25em); }
.cursor { color: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- typography ---- */
h2 {
  font-weight: 400;
  font-size: 17px;
  color: var(--text);
  margin: 40px 0 10px;
}
h2::before { content: "// "; color: var(--accent); }

h3 { font-weight: 400; font-size: 15px; color: var(--text); margin: 22px 0 4px; }

p { margin: 0 0 14px; }
.muted { color: var(--muted); }
small { color: var(--muted); }

ul { padding-left: 20px; margin: 0 0 14px; }
li { margin: 4px 0; }
li::marker { color: var(--accent); }

hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* ---- cards / links ---- */
.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 18px 0;
  color: inherit;
}
.card:hover { border-color: var(--accent); text-decoration: none; }
.card b { color: var(--text); font-weight: 400; }
.card p { margin: 4px 0 0; color: var(--muted); }

.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: var(--radius, 8px);
  padding: 9px 18px;
  color: var(--accent);
  margin: 6px 0;
}
.btn:hover { background: rgba(47,209,255,.08); text-decoration: none; }

.contact { font-size: 16px; }

/* ---- forms ---- */
.contact-form { display: flex; flex-direction: column; max-width: 480px; margin-top: 8px; }
.contact-form label { font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); outline: none; }
.contact-form textarea { resize: vertical; }
.contact-form button {
  align-self: flex-start;
  margin-top: 18px;
  background: none;
  font: inherit;
  cursor: pointer;
}
.hp-field { position: absolute; left: -9999px; }
.error { color: #ff6b6b; }

/* ---- footer ---- */
.site-footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.site-footer .sep { color: var(--line); }
.site-footer .prompt { color: var(--text); }
.site-footer .prompt .dim { color: var(--muted); }

@media (max-width: 480px) {
  .atom--lg { width: 76px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
