/* Nebula identity: a graphite ground, silver-print type, and nebula violet for
   the brand, one lit colour against a dark sky. The ground is dark because the
   product lives beside dark editors and terminals; it stays a cool graphite,
   because a whole page of navy with white read as travel and banking, not as
   instrumentation, and a muted blue brand sank into it and read as gloomy.
   Violet is kept to the mark and small accents, and large fields use a dim
   violet so the page stays quiet. */

/* Newsreader is self-hosted so the public site makes no third-party font
   request; the privacy page promises a product that keeps to itself. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("./assets/fonts/newsreader-roman.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("./assets/fonts/newsreader-italic.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ground: #141517;
  --ground-raised: #1d1e21;
  --nebula-dim: #241a3d;
  /* Lighter than the mark's #6a3fc4, which is 2.7:1 on --ground and weak as a
     thin line; this is 3.7:1 on --ground and 3.3:1 on --nebula-dim. */
  --nebula-rim: #7d57d6;
  /* 8:1 on --ground, so it is safe for link and accent text. */
  --nebula-bright: #b79bff;
  /* Data marks (experts in memory, hatching) stay achromatic so the brand colour
     is never mistaken for a status in telemetry. */
  --grain: #b9b4a9;
  --silver: #e4e0d6;
  --silver-dim: #cfcac0;
  --mist: #9d988e;
  --line: rgba(228, 224, 214, 0.16);
  --line-strong: rgba(228, 224, 214, 0.3);
  /* Headlines carry the voice; SF does the reading because every visitor
     who can run the product is on a Mac. */
  --display: "Newsreader", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --shell: min(1200px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--silver);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--silver);
  color: var(--ground);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: var(--shell);
  min-height: 84px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--silver-dim);
  font-size: 0.9375rem;
}

.site-nav a,
.site-footer a,
.text-link {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--silver);
}

.text-link {
  color: var(--nebula-bright);
  font-weight: 500;
}

/* Sentence-case italic serif replaces letter-spaced mono labels: a label
   should read like a figure caption in a field notebook. */
.eyebrow,
.section-index {
  margin: 0 0 12px;
  color: var(--mist);
  font-family: var(--display);
  font-size: 1.125rem;
  font-style: italic;
}

.signal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--nebula-bright);
  vertical-align: 1px;
}

/* A release line is a fact, not activity, so its dot stays achromatic and
   the violet keeps meaning "the brand", not "something is happening". */
.signal-dot-release {
  background: var(--grain);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  border-color: var(--silver);
  background: var(--silver);
  color: var(--ground);
}

.button-primary:hover {
  border-color: var(--silver-dim);
  background: var(--silver-dim);
}

.button-secondary:hover {
  border-color: var(--silver);
}

.button-dark {
  border-color: var(--ground);
  background: var(--ground);
  color: var(--silver);
}

.button-dark:hover {
  background: var(--ground-raised);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  width: var(--shell);
  min-height: 110px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.9375rem;
}

.site-footer .brand {
  font-size: 1.25rem;
  color: var(--silver);
}

.site-footer > p {
  margin: 0;
}

.site-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

@media (max-width: 720px) {
  :root { --shell: calc(100vw - 32px); }
  .site-header { flex-wrap: wrap; padding-block: 14px; }
  .site-nav { flex-wrap: wrap; gap: 10px 18px; }
}

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