/* SHIPdock: a monochrome operations display.
   Near-black ground, white ink at stepped opacities, hairlines and corner
   brackets as the only framing. Mona Sans carries prose and display;
   JetBrains Mono carries telemetry, codes and measured numbers. */

:root {
  --bg: #050606;
  --bg-1: #0a0b0c;
  --bg-2: #101213;
  --fg: #e9eaea;
  --fg-2: #a7aaac;
  --fg-3: #7a7e81;
  --line: rgba(233, 234, 234, 0.12);
  --line-2: rgba(233, 234, 234, 0.24);
  --line-3: rgba(233, 234, 234, 0.5);

  --paper: #e6e7e7;
  --ink: #070809;
  --ink-2: #3d4245;
  --ink-line: rgba(7, 8, 9, 0.16);

  --alert: #ffb547;
  /* gain: money earned or saved, and nothing else (user decision, 2026-10-07) */
  --gain: #4fe08f;
  --gain-dim: rgba(79, 224, 143, 0.14);
  /* role: a person in a paid AI role (AI Hero, AI Champion), and nothing else (user decision, 2026-10-07) */
  --role: #b18cff;

  --sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1280px;
  --pad: clamp(16px, 4vw, 48px);
  --nav-h: 64px;
  --section-y: clamp(96px, 11vw, 176px);
}

/* ---------- base ---------- */

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  scrollbar-color: var(--line-3) var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--fg); color: var(--bg); }

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
h2 { font-size: clamp(2.125rem, 4vw, 3.5rem); letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; font-weight: 560; letter-spacing: -0.015em; line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
abbr[title] { text-decoration: none; cursor: help; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea { caret-color: var(--fg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 14px;
  background: var(--fg); color: var(--bg);
  font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* telemetry lettering: IDs, units, statuses, formulas, codes, citations.
   Section files repeat these declarations for their own telemetry classes. */
.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.45;
}

.section-head { max-width: 760px; }
.lead {
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 38em;
}

/* corner brackets: the only frame this world uses */
.brackets {
  --bk: rgba(233, 234, 234, 0.6);
  --bl: 14px;
  background-image:
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk)),
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk)),
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk)),
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk));
  background-repeat: no-repeat;
  background-size: var(--bl) 1px, 1px var(--bl), var(--bl) 1px, 1px var(--bl), var(--bl) 1px, 1px var(--bl), var(--bl) 1px, 1px var(--bl);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}
.panel { background-color: var(--bg-1); border: 1px solid var(--line); }

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 560;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out);
}
.btn .i { width: 17px; height: 17px; flex: none; transition: transform 0.35s var(--ease-out); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: #ffffff; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16px; }
.btn[disabled] { cursor: progress; opacity: 0.7; }
.btn[disabled]:hover .i { transform: none; }

.text-link {
  font-weight: 540;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 0.35em;
  transition: text-decoration-color 0.2s ease;
}
.text-link:hover { text-decoration-color: var(--fg); }

/* ---------- nav: the passage plan ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 0 max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav.is-solid { background: var(--bg); border-bottom-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.brand-mark { width: 18px; height: 18px; }
.brand-word { font-size: 19px; font-weight: 400; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1; }
.brand-word b { font-weight: 700; letter-spacing: 0.01em; }

.plan { position: relative; justify-self: center; width: min(520px, 100%); height: 100%; }
.plan-list { display: flex; justify-content: space-between; height: 100%; margin: 0; padding: 0; list-style: none; }
.plan-list li { display: flex; }
.plan-list a {
  display: flex;
  align-items: flex-start;
  padding: 14px 4px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.plan-list a:hover { color: var(--fg); }
.plan-list a[aria-current] { color: var(--fg); }

.plan-track { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 26px; overflow: visible; pointer-events: none; }
.track-planned { fill: none; stroke: var(--fg); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.35; }
.track-made { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.track-wp { fill: var(--bg); stroke: var(--fg-2); stroke-width: 1; transition: fill 0.3s ease; }
.track-wp.is-passed { fill: var(--fg); stroke: var(--fg); }
.track-ship-ring { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.track-ship-dot { fill: var(--fg); }
.track-ship-head { stroke: var(--fg); stroke-width: 1.5; }

.nav-cta { height: 38px; padding: 0 14px; font-size: 14px; }
.nav-cta-short { display: none; }


/* limited intake: a 5-place gauge, a count and a status tag on one line */
.intake-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 34px; font-size: 15px; line-height: 1.4; color: var(--fg-2); }
.intake-ring { width: 26px; height: 26px; flex: none; color: var(--fg); }
.intake-count b { margin-right: 6px; font-weight: 560; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; color: var(--fg); }
.intake-state {
  flex: none;
  padding: 4px 8px 3px;
  border: 1px solid var(--line-2);
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

.foot { padding: 0 0 36px; background: var(--bg); border-top: 1px solid var(--line); }
.ruler { display: block; width: 100%; height: 14px; }
.ruler path { stroke: var(--line-3); stroke-width: 1; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 48px; padding-top: 56px; }
.foot-brand p { margin-top: 16px; max-width: 34em; color: var(--fg-3); font-size: 15px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 10px 26px; }
.foot-nav a { font-size: 15px; color: var(--fg-2); text-decoration: none; transition: color 0.2s ease; }
.foot-nav a:hover { color: var(--fg); }
.foot-margin { font-size: 14px; letter-spacing: 0.01em; color: var(--fg-3); }
.foot-copy { justify-self: end; font-size: 14px; color: var(--fg-3); }

/* ---------- brand: vessel mark, lockup and logo files ---------- */
/* The mark is an app-icon tile in signal white with a square-rigged brig
   cut out of it (the one sanctioned rounded shape in this world: the logo
   tile only). Lockup ratio (tile 26 : gap 10 : wordmark 19, tile centred on
   the line box) is the same one the downloadable logo files are drawn with. */

.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }


.brand-dock { position: relative; align-self: stretch; gap: 4px; }

.kit-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--fg-3);
  cursor: pointer;
  transition: color 0.2s ease;
}
.kit-toggle::before { content: ""; position: absolute; inset: -10px -10px -10px -4px; }
.kit-toggle:focus-visible { outline-offset: 0; }
.kit-toggle svg { width: 12px; height: 12px; transition: transform 0.35s var(--ease-out); }
.kit-toggle:hover,
.brand-dock.is-open .kit-toggle { color: var(--fg); }
.brand-dock.is-open .kit-toggle svg { transform: rotate(180deg); }

.brand-kit {
  position: absolute;
  top: calc(100% + 6px);
  left: -15px;
  z-index: 2;
  width: 372px;
  padding: 14px 14px 6px;
  background-color: var(--bg-1);
  border: 1px solid var(--line-2);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
/* lets the pointer travel from the mark into the panel without leaving it */
.brand-kit::before { content: ""; position: absolute; left: -1px; right: -1px; bottom: 100%; height: 8px; }
.brand-dock.is-open .brand-kit,
html:not(.js) .brand-dock:hover .brand-kit,
html:not(.js) .brand-dock:focus-within .brand-kit {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease, transform 0.4s var(--ease-out), visibility 0s;
}

.kit-title { padding-bottom: 12px; font-size: 14px; font-weight: 560; letter-spacing: -0.005em; line-height: 1.2; color: var(--fg); }
.kit-list { margin: 0; padding: 0; list-style: none; }
.kit-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.kit-thumb { display: grid; place-items: center; height: 32px; padding: 0; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.kit-thumb img { width: 58px; height: 26px; object-fit: contain; }
.kit-thumb-paper { background: var(--paper); border-color: var(--paper); }
.kit-name { display: grid; gap: 1px; font-size: 14px; font-weight: 540; line-height: 1.25; color: var(--fg); }
.kit-name small { font-size: 12.5px; font-weight: 400; color: var(--fg-3); }
.kit-files { display: flex; gap: 6px; }
.kit-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px 0 9px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.kit-file svg { width: 11px; height: 11px; flex: none; }
.kit-file:hover { color: var(--fg); border-color: var(--fg); }
.kit-file:active { color: var(--bg); background: var(--fg); border-color: var(--fg); }

@media (pointer: coarse) {
  .kit-file { height: 40px; padding: 0 11px 0 12px; }
}

@media (max-width: 560px) {
  .brand-kit { left: 0; width: calc(100vw - 2 * var(--pad)); }
  .kit-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .kit-thumb img { width: 46px; }
  .kit-file svg { display: none; }
}

/* ---------- mobile section menu (below 860px, with JS) ---------- */
/* A 44px toggle beside the CTA opens a sheet under the nav: the page's
   sections as tall rows ending in a waypoint square (filled for the section
   in view), then the primary action. The toggle's two lines turn into a
   cross. Without JS the toggle stays hidden and the CTA remains. */

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.menu-toggle:hover,
.nav.is-menu-open .menu-toggle { border-color: var(--fg); }
.menu-toggle svg { width: 20px; height: 20px; overflow: visible; }
.menu-toggle path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; transform-box: fill-box; transform-origin: center; transition: transform 0.35s var(--ease-out); }
.nav.is-menu-open .mt-a { transform: translateY(3px) rotate(45deg); }
.nav.is-menu-open .mt-b { transform: translateY(-3px) rotate(-45deg); }
.nav.is-menu-open { background: var(--bg); border-bottom-color: var(--line); }

.site-menu {
  position: fixed;
  z-index: 49;
  top: var(--nav-h);
  left: 0;
  right: 0;
  max-height: calc(100svh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px var(--pad) 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-2);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.16s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.nav.is-menu-open .site-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease, transform 0.4s var(--ease-out), visibility 0s;
}
.menu-list { margin: 0; padding: 0; list-style: none; }
.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.menu-list a::after { content: ""; flex: none; width: 7px; height: 7px; border: 1px solid var(--fg-3); }
.menu-list a:hover,
.menu-list a[aria-current] { color: var(--fg); }
.menu-list a[aria-current]::after { background: var(--fg); border-color: var(--fg); }
.menu-cta { width: 100%; justify-content: center; margin-top: 24px; }

/* ---------- touch: 44px hit areas on coarse pointers ---------- */
/* Inline links keep their look; a transparent box around them takes the tap.
   Narrow screens count as touch too (emulators do not report a coarse pointer). */
@media (pointer: coarse), (max-width: 860px) {
  .text-link,
  figcaption a { position: relative; }
  .text-link::after,
  figcaption a::after { content: ""; position: absolute; inset: -12px -6px; }
  figcaption a::after { inset: -14px -6px; }
  .brand-link { padding-block: 9px; }
  .foot-brand .brand { position: relative; }
  .foot-brand .brand::after { content: ""; position: absolute; inset: -9px 0; }
  .kit-toggle::before { inset: -10px -10px -10px -7px; }
  .nav-cta { height: 44px; }
  .foot-nav { gap: 0 26px; }
  .foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- responsive: site chrome ---------- */

@media (max-width: 1099px) {
  .plan { width: min(420px, 100%); }
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }
}

@media (max-width: 860px) {
  .plan { display: none; }
  .nav { display: flex; gap: 8px; }
  .nav .brand-dock { margin-right: auto; }
  .js .menu-toggle { display: grid; }
  .plan-track { height: 10px; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { justify-content: flex-start; }
  .foot-copy { justify-self: start; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .btn-lg { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .kit-toggle { display: none; }
  .nav-cta { padding: 0 12px; gap: 8px; }
}

@media (min-width: 861px) {
  .site-menu { display: none; }
}

/* ---------- motion preferences ---------- */

@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; transition-delay: 0s !important; }
}
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
