/* Sector 001 */

:root {
  --ground:      #f7f8f9;
  --ink:         #101820;
  --ink-soft:    #4a5560;
  --ink-faint:   #7c8792;
  --rule:        #d6dce2;
  --accent:      #1f4d7a;
  --accent-soft: #e4ebf2;
  --orbit:       #9aa5b0;

  --measure: 32rem;
  --label: 0.6875rem;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0d1116;
    --ink:         #e8edf2;
    --ink-soft:    #97a4b1;
    --ink-faint:   #6b7783;
    --rule:        #26303a;
    --accent:      #82b3de;
    --accent-soft: #172330;
    --orbit:       #3d4955;
  }
}

:root[data-theme="dark"] {
  --ground:      #0d1116;
  --ink:         #e8edf2;
  --ink-soft:    #97a4b1;
  --ink-faint:   #6b7783;
  --rule:        #26303a;
  --accent:      #82b3de;
  --accent-soft: #172330;
  --orbit:       #3d4955;
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); color: var(--ink); }

/* background --------------------------------------------------------------- */

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* the column --------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

@media (min-width: 60em) {
  /* two columns: text on the left, the orrery owns the right */
  .page { margin: 0 0 0 clamp(3rem, 11vw, 10rem); }
}

/* masthead ----------------------------------------------------------------- */

.masthead { display: flex; align-items: center; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.wordmark svg { display: block; flex: none; color: var(--accent); }

/* the coordinate rule ------------------------------------------------------ */

.rule {
  position: relative;
  height: 9px;
  margin: 0;
  border: 0;
  flex: none;
  background: linear-gradient(var(--accent), var(--accent)) left top / 1px 9px no-repeat;
}

.rule::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--rule);
}

.rule::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 40px);
}

/* type --------------------------------------------------------------------- */

.statement {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 1.05rem + 2vw, 2.125rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.022em;
  text-wrap: balance;
  color: var(--ink);
}

.label {
  font-family: var(--mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1rem;
}

/* quote -------------------------------------------------------------------- */

.quote {
  margin: 0;
  padding-left: 1.125rem;
  border-left: 1px solid var(--rule);
}

.quote blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 28rem;
}

.quote figcaption {
  margin-top: 0.45rem;
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* facts grid --------------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.65rem 1.5rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.facts dt {
  color: var(--ink-faint);
  font-size: var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.2em;
}

.facts dd { margin: 0; color: var(--ink); }

@media (max-width: 30em) {
  .facts { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .facts dd { margin-bottom: 0.9rem; }
  .facts dd:last-child { margin-bottom: 0; }
}

/* links -------------------------------------------------------------------- */

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* footer ------------------------------------------------------------------- */

.colophon {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--ink-faint);
}

.colophon .line { display: flex; gap: 1.25rem; color: var(--ink-soft); }
.colophon .note { max-width: 30rem; }

.colophon p { margin: 0; }
