/* Fleet typography standard, 2026-09. This :root block is identical, in this
   order, in windowhop, mailbell, meantime, smart-desk and orbit: the five sites
   share a design but no package, so copying is the cost and identical ordering
   is what keeps the drift greppable. The -apple-system stack is deliberate and
   stays: these are landing pages for Mac apps, so the page wears the platform's
   own face. */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: clamp(1.75rem, 1.25rem + 1.5vw, 2.25rem);
  --text-2xl: clamp(2.5rem, 1.5rem + 3.5vw, 4rem);
  --text-3xl: clamp(3rem, 1.25rem + 6.5vw, 6.5rem);
  --leading-tight: 1.08;
  --leading-snug: 1.2;
  --leading-relaxed: 1.4;
  --leading-body: 1.6;
  --tracking-display: -0.03em;
  --tracking-body: -0.01em;
  --tracking-eyebrow: 0.12em;
  --weight-body: 400;
  --weight-strong: 600;
  --weight-display: 700;
  --measure: 68ch;
  --measure-narrow: 44ch;
  --measure-title: 16ch;
}

/* --- Orbit palette and page metrics -----------------------------------------
   Orbit's teal, not the placeholder blue the holding page carried: the app icon
   and the social card are both built on #0D524C, so the page wears the product's
   own colour. Every accent is measured against the background it sits on:
   #0D524C on #f5f5f7 is 8.28:1, #51cdc2 on #08090b is 10.30:1, and the filled
   button measures 9.02:1 in light and 8.74:1 in dark. */
:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0D524C;
  --accent-hover: #116a62;
  /* Filled buttons carry their own foreground/background pair so the text on
     the button is measured separately from the link accent. */
  --button-primary-fg: #ffffff;
  --button-primary-bg: #0D524C;
  --button-primary-bg-hover: #116a62;
  --button-glow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
  --button-glow-hover: 0 12px 28px color-mix(in srgb, var(--accent) 34%, transparent);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  --icon-shadow: drop-shadow(0 18px 28px rgba(13, 82, 76, 0.22));
  --radius: 28px;
  --radius-card: 24px;
  --page-width: min(1180px, calc(100% - 40px));
  /* The sticky header's own height: what anything else that sticks has to
     clear so it does not park underneath it. */
  --header-height: 65px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090b;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: #1b1d21;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --line: rgba(255, 255, 255, 0.11);
    --accent: #51cdc2;
    --accent-hover: #71d6cd;
    --button-primary-fg: #04211f;
    --button-primary-bg: #51cdc2;
    --button-primary-bg-hover: #71d6cd;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
    --icon-shadow: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
  }
}

/* --- Shared structure ------------------------------------------------------
   The section rhythm, hero, buttons and footer below are the fleet's one
   landing-page design. Keep them in step across the sites. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* The footer sits at the bottom of the viewport on a short page (the 404
   above all) instead of floating in the middle of it. svh keeps mobile browser
   chrome from pushing it off; vh is the fallback for anything older. */
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; }
/* A link inside running copy shows itself. Navigation, buttons and link rows
   carry their own treatment instead. */
p a, li a, td a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }
.actions a, .link-row a, .site-footer a, .site-header a { text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
strong { font-weight: var(--weight-strong); }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); text-decoration: none; }
.skip-link:focus { top: 16px; }

:where(a, button, input, select):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 4px;
  border-radius: 8px;
}

/* One icon for every link that leaves the site: the portfolio, a mail client,
   any external documentation. A link to another page of this site never
   carries it. */
.external-icon {
  flex: none;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.35em;
  vertical-align: baseline;
  opacity: 0.8;
}

/* The header's background, blur and hairline span the viewport; only its
   contents sit in the container, so the brand keeps the same left edge as every
   section below it. The footer's rule is drawn the same way. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  width: var(--page-width); margin-inline: auto; padding: 14px 0;
}
/* The wordmark is the site's name, not a navigation state: it stays --text on
   every page, so the lockup never changes colour as the visitor moves around. */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: var(--weight-strong); text-decoration: none; letter-spacing: var(--tracking-display); }
/* The icon artwork is a squircle on full transparency and carries its own
   corners: a CSS radius would clip it a second time at a different curve. */
.brand img { border-radius: 0; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a, .text-link, .link-row a, .site-footer a {
  display: inline-flex; align-items: center;
  color: var(--secondary); text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--weight-strong);
}
.site-header nav a:hover, .text-link:hover, .link-row a:hover, .site-footer a:hover { color: var(--accent); }
/* Navigation only. The brand also marks the current page, but it is the site's
   name rather than a nav state, so it must not change colour with the route. */
.site-header nav [aria-current="page"] { color: var(--accent); }

main { width: var(--page-width); margin-inline: auto; }
main { flex: 1 0 auto; }
.site-footer { margin-top: auto; }

.hero { padding: 96px 0 72px; text-align: center; overflow: hidden; }
.hero-copy { max-width: 820px; margin: 0 auto; }
.eyebrow {
  margin: 0 0 12px; color: var(--accent);
  font-size: var(--text-xs); font-weight: var(--weight-display);
  text-transform: uppercase; letter-spacing: var(--tracking-eyebrow);
}
/* Balanced wrapping is for headings. Body copy reads worse when the browser
   evens out the last lines of a long paragraph. */
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: var(--measure-title); margin: 0 auto;
  font-size: var(--text-3xl); line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display); font-weight: var(--weight-display);
}
/* drop-shadow follows the artwork's alpha, so the shadow takes the squircle's
   shape instead of being cast by a square border box. */
.hero-icon { margin: 0 auto 26px; filter: var(--icon-shadow); }
.hero-summary {
  max-width: var(--measure-narrow); margin: 26px auto 28px;
  color: var(--secondary); font-size: var(--text-lg); line-height: var(--leading-relaxed);
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* Buttons take the fleet's motion: a short rise on hover with the shadow
   following it on the same curve, and the press putting the button back down. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  text-decoration: none; font-size: 1rem; font-weight: var(--weight-strong);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button:active { transform: translateY(0); }
.button.primary {
  background: var(--button-primary-bg); color: var(--button-primary-fg);
  box-shadow: var(--button-glow);
}
.button.primary:hover { background: var(--button-primary-bg-hover); box-shadow: var(--button-glow-hover); }
.button.secondary { background: var(--surface-strong); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.compatibility { margin: 18px 0 0; color: var(--secondary); font-size: var(--text-sm); }

.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section h2 {
  max-width: var(--measure-title); margin: 0;
  font-size: var(--text-2xl); line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display); font-weight: var(--weight-display);
}
/* The rhythm inside a section: eyebrow, heading, an optional lead paragraph at
   22px, then whatever the section shows at 48px. */
.section > :not(.eyebrow):not(h2) { margin-top: 48px; }
.section > p:not(.eyebrow) {
  max-width: var(--measure); margin: 22px 0 0;
  color: var(--secondary); font-size: var(--text-md); line-height: var(--leading-relaxed);
}

/* The closing open-source section: eyebrow, heading, what the project is and
   who made it, then the row of outward links. */
.open-source > p:not(.eyebrow):last-of-type { margin-bottom: 30px; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.link-row a { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--secondary); font-size: var(--text-sm);
}
.site-footer-inner {
  display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap;
  width: var(--page-width); margin-inline: auto; padding: 32px 0 56px;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }

@media (max-width: 820px) {
  /* The nav wraps onto a second row below this width, so the header is taller. */
  :root { --page-width: min(100% - 28px, 1180px); --header-height: 99px; }
  /* The header keeps every destination on narrow screens: it wraps onto a
     second centred row rather than dropping links the visitor came for. */
  .site-header-inner { flex-wrap: wrap; justify-content: center; }
  .site-header nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
  .hero { padding-top: 68px; }
  .section { padding: 86px 0; }
  .site-footer-inner { flex-direction: column; }
}

@media (max-width: 520px) {
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
}

@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; }
  .button:hover, .button:active { transform: none; }
}

/* --- Orbit's own sections ---------------------------------------------------
   Orbit is not released, so the page shows the app icon and words only: no
   screenshot and no drawn interface, because a picture of an unbuilt screen
   would promise something that does not exist yet. The status line under the
   hero and the state section below carry what a download section carries on a
   released site. */

/* The hero's closing line is the release status, so it reads as a statement
   rather than as fine print under a button. */
.hero .status { margin-top: 26px; color: var(--text); font-size: var(--text-sm); }
.hero .status strong { color: var(--accent); }

/* The state section is a two-column list of plain facts: what exists today and
   what is still being built. */
.state-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; padding: 0; }
.state-list li { margin: 0; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.state-list h3 { margin: 0 0 10px; font-size: var(--text-lg); line-height: var(--leading-snug); letter-spacing: var(--tracking-display); font-weight: var(--weight-strong); }
.state-list p { margin: 0; color: var(--secondary); }

/* The 404 keeps the hero's centred shape without its icon. */
.not-found { padding: 120px 0; text-align: center; }
.not-found h1 { max-width: none; }

@media (max-width: 820px) {
  .hero-icon { width: 116px; height: 116px; }
  .state-list { grid-template-columns: 1fr; }
  .not-found { padding: 86px 0; }
}
