/* ============================================================
   base.css — tokens, reset, typography
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #0b0c0e;
  --bg-elevated:   #101215;
  --bg-raised:     #14171b;
  --bg-hover:      #191d22;

  /* Lines */
  --line:          #1e2228;
  --line-strong:   #2a2f37;

  /* Text */
  --text:          #e9ecf1;
  --text-muted:    #9aa3b0;
  --text-faint:    #656d78;

  /* Accent — blue (single colour theme) */
  --accent:        #4d8dff;
  --accent-soft:   #3a6fd8;
  --accent-dim:    rgba(77, 141, 255, 0.12);

  /* Starfield */
  --star:          rgba(255, 255, 255, 0.86);
  --star-blue:     rgba(150, 194, 255, 0.9);
  --star-cyan:     rgba(176, 208, 255, 0.82);

  /* Type */
  --font-body:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head:  "Instrument Sans", "Inter", -apple-system, sans-serif;
  --font-mono:  ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  /* Space */
  --gutter: 24px;
  --maxw:   1140px;
  --section-y: 140px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.6s;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }

p { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration: none;
}

img, svg { display: block; max-width: 100%; }

ul { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(77, 141, 255, 0.28);
  color: #fff;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #262b33;
  border-radius: 10px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #343a44; }

/* Utility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 3px rgba(53, 208, 127, 0.14);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
