/* Nightfall Networks */
:root {
  color-scheme: dark;
  --night-1000: #030014;
  --night-950: #050010;
  --night-700: #1f0b2b;
  --sun-amber: #fea938;
  --sun-orange: #fd6217;
  --paper: #f6f1e8;
  --paper-dim: #cfc6b8;
  --paper-mute: #8a8070;
  --line: rgba(246, 241, 232, 0.10);
  --grad-night: linear-gradient(180deg, #03031a 0%, #1f0b2b 49%, #050010 100%);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(24px, 6.5vw, 96px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night-1000);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--night-950) var(--grad-night);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  caret-color: var(--sun-amber);
}

/* Starfield: a clear sky after dusk, upper part of the page only. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(46vh, 420px);
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 22% 8%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 31% 31%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 53% 42%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 61% 9%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(2px 2px at 72% 14%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 79% 36%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 88% 20%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 95% 6%, rgba(255, 255, 255, 0.7), transparent 60%);
}

body > * { position: relative; }

::selection { background: var(--sun-amber); color: #1a0a02; }

h1, h2, p, ul { margin: 0; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--sun-amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}
a:hover { color: var(--sun-amber); }
a:focus-visible {
  outline: 2px solid var(--sun-amber);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Header: mark and two-line wordmark */

.head { padding: clamp(24px, 4vw, 40px) var(--gutter) 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand img { display: block; width: 52px; height: 52px; }
.brand svg { display: block; width: auto; height: 34px; }

/* Home */

.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 9vh, 96px) var(--gutter) clamp(40px, 7vh, 80px);
}
.hero h1 {
  max-width: 17em;
  color: #fff;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero .lead {
  max-width: 34em;
  margin-top: 24px;
  font-size: clamp(19px, 1.1vw + 15px, 24px);
  line-height: 1.45;
}

.contact { margin-top: clamp(40px, 6vh, 64px); font-style: normal; }
.eyebrow {
  color: var(--sun-amber);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.contact .email { margin-top: 10px; font-size: clamp(19px, 1.1vw + 15px, 22px); }
.contact .place { margin-top: 4px; color: var(--paper-dim); font-size: 16px; }

/* Horizon band: the signature, always at the bottom edge */

.horizon {
  flex: none;
  height: min(36.87vw, 34vh);
  height: min(36.87vw, 34svh);
  background: url("/assets/horizon-band.png") center top / cover no-repeat;
}
.horizon::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(180deg, rgba(3, 0, 20, 0) 62%, var(--night-1000) 100%);
}
.page .horizon { height: min(36.87vw, 22vh); height: min(36.87vw, 22svh); margin-top: 32px; }

.foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 18px var(--gutter) 24px;
  background: var(--night-1000);
  color: var(--paper-mute);
  font-size: 13px;
  line-height: 1.5;
}
.foot span { margin-right: auto; }
.foot a { color: var(--paper-dim); }
.foot a:hover { color: var(--sun-amber); }

/* Wide screens: the footer sits on the faded foot of the band, so the home page fits one screen. */
@media (min-width: 900px) {
  .hero { padding-top: clamp(40px, 6vh, 72px); padding-bottom: clamp(32px, 5vh, 56px); }
  .horizon::after {
    background: linear-gradient(180deg, rgba(3, 0, 20, 0) 50%, var(--night-1000) calc(100% - 64px));
  }
  .foot { align-items: center; height: 64px; margin-top: -64px; padding-top: 0; padding-bottom: 0; background: none; }
}

/* Reading pages: Privacy, Terms, not found */

.doc {
  flex: 1 0 auto;
  width: 100%;
  max-width: calc(41em + 2 * var(--gutter));
  padding: clamp(48px, 8vh, 88px) var(--gutter) 24px;
}
.doc h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.doc h2 {
  margin-top: 44px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.doc p, .doc ul { margin-top: 12px; }
.doc h1 + p { margin-top: 24px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--sun-amber); }
.doc strong { font-weight: 700; color: #fff; }
