/* Nervous Satellite - site styles. No external fonts or scripts. */

:root {
  --sky: #e4ecf5;
  --sky-deep: #d3dfee;
  --panel: #ffffff;
  --ink: #14203a;
  --muted: #4f5d7a;
  --cobalt: #2b4fc7;
  --signal: #f5b400;
  --rule: #b9c7dc;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky: #0f1a2e;
    --sky-deep: #16243d;
    --panel: #1a2a46;
    --ink: #e6edf7;
    --muted: #a3b1ca;
    --cobalt: #93abff;
    --signal: #ffc933;
    --rule: #2c3f62;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--cobalt); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark svg { width: 2rem; height: 2rem; flex: none; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cobalt); text-decoration: underline; }

/* Home hero: the satellite is the one memorable thing */
.hero { padding: 2.5rem 0 4rem; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.15fr 1fr; } }

.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 0; }

.orbit { width: 100%; max-width: 30rem; justify-self: center; }
.orbit .planet { fill: var(--cobalt); }
.orbit .ring { fill: none; stroke: var(--rule); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.orbit .body { fill: var(--panel); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.orbit .panel-cell { fill: var(--cobalt); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.orbit .line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; fill: none; }
.orbit .light { fill: var(--signal); }
.orbit .sweat { fill: var(--cobalt); opacity: 0.8; }

.sat-path { animation: travel 38s linear infinite; transform-origin: 200px 200px; }
.sat-jitter { animation: jitter 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.orbit .light { animation: blink 1.3s steps(2, start) infinite; }

@keyframes travel { to { transform: rotate(360deg); } }
@keyframes jitter {
  0%, 62%, 100% { transform: translate(0, 0) rotate(0deg); }
  66% { transform: translate(-2px, 1px) rotate(-4deg); }
  70% { transform: translate(2px, -1px) rotate(4deg); }
  74% { transform: translate(-1px, 0) rotate(-2deg); }
  78% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes blink { 50% { opacity: 0.15; } }

@media (prefers-reduced-motion: reduce) {
  .sat-path, .sat-jitter, .orbit .light { animation: none; }
}

/* Sections */
.section { padding: 3rem 0; border-top: 2px solid var(--rule); }
.section h2 {
  font-family: var(--display); font-weight: 750; font-size: 1.9rem;
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 1rem;
}
.section > .wrap > p { max-width: 40rem; }
.lede { color: var(--muted); font-size: 1.15rem; }

.app-tile {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  background: var(--panel); border: 2px solid var(--ink); border-radius: 22px;
  padding: 1.5rem; max-width: 44rem; margin-top: 1.5rem;
}
.app-icon { width: 4.5rem; height: 4.5rem; border-radius: 22%; flex: none; }
.app-tile h3 { font-family: var(--display); font-weight: 750; font-size: 1.4rem; margin: 0 0 0.25rem; }
.app-tile p { margin: 0 0 0.75rem; }
.app-tile .actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }

.button {
  display: inline-block; background: var(--ink); color: var(--sky);
  font-weight: 600; text-decoration: none; padding: 0.6rem 1.1rem; border-radius: 999px;
}
.button:hover { background: var(--cobalt); color: #fff; }

/* Document pages (HazmApp, privacy) */
.doc { padding: 2rem 0 4rem; }
.doc .wrap { max-width: 44rem; }
.doc h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.75rem;
}
.doc h2 {
  font-family: var(--display); font-weight: 750; font-size: 1.45rem;
  letter-spacing: -0.015em; margin: 2.5rem 0 0.5rem;
}
.doc h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
.doc p, .doc li { max-width: 40rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.3rem 0; }
.updated { color: var(--muted); margin-top: 0; }

.app-header { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.app-header .app-icon { width: 5.5rem; height: 5.5rem; }
.app-header h1 { margin: 0; }
.app-header p { margin: 0.25rem 0 0; color: var(--muted); }

.contact-box {
  background: var(--panel); border: 2px solid var(--ink); border-radius: 18px;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.contact-box p { margin: 0.25rem 0; }
.contact-box .email { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }

.notice {
  border-left: 5px solid var(--signal); background: var(--sky-deep);
  padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0;
}
.notice p { margin: 0.25rem 0; }

details { border-bottom: 2px solid var(--rule); padding: 0.85rem 0; }
details summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
details[open] summary { margin-bottom: 0.4rem; }
details p { margin: 0.4rem 0; }

/* Footer */
.site-footer { border-top: 2px solid var(--rule); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }

@media (max-width: 30rem) {
  .app-tile { grid-template-columns: 1fr; }
  .app-header { flex-direction: column; align-items: flex-start; }
}
