/* ==========================================================
   0. Fonts (self-hosted, latin subset, SIL Open Font License)
   ========================================================== */
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-condensed-300.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-400.woff2") format("woff2");
}

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

/* ==========================================================
   1. Design tokens
   ========================================================== */
:root {
  /* Colors */
  --bg: #0d1013;
  --text: #e6e8ea;
  --text-strong: #f2f2f3;
  --muted: #8b96a1;
  --dim: #6b7680;
  --accent: #5980a6;
  --accent-light: #9db8d3;
  --accent-hover: #c9d9e9;
  --grid-line: rgba(89, 128, 166, 0.09);

  /* Fonts */
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Spacing */
  --gutter: clamp(20px, 5vw, 64px);
}

/* ==========================================================
   2. Reset & base
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
p {
  margin: 0;
}

a {
  color: var(--accent-light);
  text-decoration: none;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* ==========================================================
   3. Page shell + grid background
   ========================================================== */
.page {
  position: relative;
  min-height: 100vh;   /* fallback for old browsers */
  min-height: 100svh;  /* mobile: excludes the browser toolbar */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}

.network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ==========================================================
   4. Header & footer
   ========================================================== */
.site-header,
.site-footer {
  position: relative; /* sits above the canvas */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 28px var(--gutter);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  font-size: 12px;
  color: var(--muted);
}

.domain {
  color: var(--text);
}

.site-footer {
  padding-block: 24px;
  font-size: 11px;
  color: var(--dim);
}

/* ==========================================================
   5. Hero
   ========================================================== */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  text-align: center;
}

.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.subtitle {
  margin-top: 20px;
  margin-right: -0.5em; /* cancels the trailing letter-spacing so it stays centered */
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
}

.tagline {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.cursor {
  flex-shrink: 0;
  width: 9px;
  height: 16px;
  background: var(--accent-light);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ==========================================================
   6. Small screens & accessibility
   ========================================================== */
@media (max-width: 360px) {
  .title   { font-size: 48px; }
  .tagline { font-size: 12px; }
}

@media (max-height: 480px) {
  .site-header,
  .site-footer { padding-block: 16px; }
  .hero        { padding-block: 24px; }
}

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