/* Anemonie pages: one stylesheet for the landing page and the prose pages (privacy, terms, uploader). Theme tokens of Sean's apps
   plus the clownfish orange; the landing page is cinematic, the prose pages are set for reading. No scripts anywhere. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a14;
  --bg2: #000;
  --bg3: #0f1a2e;
  --fg: #e0e0e0;
  --fg2: #a0a0a0;
  --accent: #00d4ff;
  --clown: #ff7a2f;          /* the clownfish orange: the primary call to action */
  --border: #2a2a4a;
  --mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --measure: 660px;          /* the prose column; nav and text share it (ch would differ: the nav's type is smaller) */
  --wide: 1080px;            /* the landing page's sections */
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

/* ---- navigation (every page) ---- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 18px 16px;
  font: 12px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-nav .brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; margin-right: auto; }
.site-nav .brand img { border-radius: 5px; }
.site-nav a:not(.brand) { color: var(--fg); opacity: 0.85; }
.site-nav a:not(.brand):hover { color: var(--accent); opacity: 1; text-decoration: none; }

/* ---- landing page: the hero with the orbit loop ----
   Phones: the loop in a box at the top and the text on the page below it (over the video, a 6-line tagline hid the tank).
   From 720 px: the loop fills the hero behind the text, shaded on the left where the text sits. */
.home .site-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.hero { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.hero-media {
  position: relative;
  height: 60svh;
  min-height: 280px;
  background: var(--bg2) url("/media/orbit-poster.jpg") center / cover no-repeat;   /* until the video plays, and for reduced motion */
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {   /* the nav's shade at the top; the video's foot fades into the page */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 20, 0.6) 0%, rgba(10, 10, 20, 0) 22%, rgba(10, 10, 20, 0) 62%, var(--bg) 100%);
}
.hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wide);
  margin: -36px auto 0;
  padding: 0 16px 24px;
}
@media (min-width: 720px) {
  .hero { min-height: 100vh; min-height: 100svh; justify-content: flex-end; }
  .hero-media { position: absolute; inset: 0; height: auto; min-height: 0; }
  .hero-media::after {   /* darker on the left (the text) and at the top (the nav) and bottom; the tank clear */
    background:
      linear-gradient(to right, rgba(10, 10, 20, 0.85) 0%, rgba(10, 10, 20, 0.6) 30%, rgba(10, 10, 20, 0.15) 52%, rgba(10, 10, 20, 0) 65%),
      linear-gradient(to bottom, rgba(10, 10, 20, 0.55) 0%, rgba(10, 10, 20, 0) 22%, rgba(10, 10, 20, 0) 45%, rgba(10, 10, 20, 0.92) 100%);
  }
  .hero-text { margin: 0 auto; padding: 0 16px 9vh; }
}
.eyebrow { font: 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.hero h1 {
  font-size: clamp(56px, 11vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 10px 0 14px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.hero .tagline { max-width: 30em; font-size: clamp(17px, 2.1vw, 21px); color: #f2f2f2; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button:hover, .button:focus-visible { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: var(--clown); color: #140a04; }
.button.primary:hover { background: #ff9152; }
.button.ghost { color: var(--fg); border-color: rgba(255, 255, 255, 0.45); background: rgba(10, 10, 20, 0.35); backdrop-filter: blur(6px); }
.button.ghost:hover { border-color: var(--fg); }
.button .play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }   /* the poster stays as the hero-media's background */
  .button { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- landing page sections ---- */
.section { max-width: var(--wide); margin: 0 auto; padding: 72px 16px 8px; }
.section h2 {
  font: 12px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section .title { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; font-weight: 750; margin-bottom: 14px; letter-spacing: -0.01em; }
.section .lede { max-width: 40em; color: #cfcfcf; margin-bottom: 26px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { background: var(--bg3); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 12px 14px 14px; font-size: 15px; color: #d6d6d6; }
.gallery figcaption strong { display: block; color: var(--fg); margin-bottom: 2px; }

.latest {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, var(--bg3), #0b1222);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.latest .thumb { border-radius: 12px; overflow: hidden; }   /* (no play mark: the button beside it says it plays) */
.latest .version { font: 13px/1.4 var(--mono); color: var(--clown); letter-spacing: 0.06em; }
.latest h3 { font-size: 24px; line-height: 1.2; margin: 6px 0 10px; }
.latest p { color: #cfcfcf; margin-bottom: 18px; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 22px; }
.platforms div { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: rgba(15, 26, 46, 0.6); }
.platforms strong { display: block; }
.platforms span { color: var(--fg2); font-size: 14px; }
.ask {
  border-left: 3px solid var(--clown);
  background: rgba(255, 122, 47, 0.08);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
  max-width: 44em;
}

@media (max-width: 720px) {
  .latest { grid-template-columns: 1fr; }
  .section { padding-top: 56px; }
}
@media (max-width: 480px) {   /* phones: one-line nav (327 px measured in the browser pane), full-width buttons */
  .button { font-size: 15px; padding: 12px 18px; width: 100%; justify-content: center; }
  .site-nav { gap: 6px 14px; font-size: 11px; letter-spacing: 0.04em; }
}
@media (max-width: 359px) {   /* the smallest phones: the hero's own button links the showcase */
  .site-nav a[href^="https://"] { display: none; }
}

/* ---- footer (every page) ---- */
.site-footer {
  max-width: var(--wide);
  margin: 72px auto 0;
  padding: 22px 16px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font: 12px/1.6 var(--mono);
  color: var(--fg2);
}
.site-footer span { margin-right: auto; color: #6c6c80; }   /* the tagline left and dimmer, the links to the right */
.site-footer a { color: var(--fg2); }
.site-footer a:hover { color: var(--accent); }
.page .site-nav, .page .site-footer { max-width: var(--measure); }   /* prose pages: nav, text and footer share one edge */

/* ---- prose pages: privacy, terms, uploader ---- */
.prose { max-width: var(--measure); margin: 12px auto 0; padding: 0 16px; font-size: 15px; }
.prose h1 { font-size: 30px; line-height: 1.2; margin-bottom: 6px; letter-spacing: -0.01em; }
.prose h2 { font: 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin: 30px 0 8px; }
.prose p, .prose ul { margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose code { font: 13px var(--mono); background: var(--bg3); padding: 0 3px; border-radius: 3px; overflow-wrap: anywhere; }
.updated { color: var(--fg2); font: 12px var(--mono); margin-bottom: 18px; }
.lead { font-size: 17px; }
