:root {
  color-scheme: light dark;
  --rp-foundation-color-smoke-50: #FFFFFF;
  --rp-foundation-color-smoke-100: #FAFAFA;
  --rp-foundation-color-smoke-200: #F7F8FA;
  --rp-foundation-color-smoke-300: #E5E7EB;
  --rp-foundation-color-graphite-500: #6B7280;
  --rp-foundation-color-graphite-700: #4B5563;
  --rp-foundation-color-graphite-900: #17191C;
  --rp-foundation-color-action-primary: #17191C;
  --rp-foundation-color-action-primary-in-dark: #F7F8FA;
  --rp-foundation-color-hue-red: #E03E45;
  --rp-foundation-color-hue-orange: #D26707;
  --rp-foundation-color-hue-yellow: #AC8211;
  --rp-foundation-color-hue-green: #32A155;
  --rp-foundation-color-hue-teal: #149D99;
  --rp-foundation-color-hue-blue: #4087EE;
  --rp-foundation-color-hue-indigo: #7C77EC;
  --rp-foundation-color-hue-purple: #A867D5;
  --rp-foundation-color-hue-pink: #D4558E;
  --rp-foundation-color-state-attention: #AC8211;
  --rp-foundation-color-state-paused: #6B7280;
  --rp-foundation-color-state-success: #32A155;
  --rp-foundation-color-state-unread: #4087EE;
  --rp-foundation-color-state-risk: #E03E45;
  --rp-foundation-space-xs: 4px;
  --rp-foundation-space-sm: 8px;
  --rp-foundation-space-md: 16px;
  --rp-foundation-space-lg: 24px;
  --rp-foundation-space-xl: 32px;
  --rp-foundation-space-2xl: 48px;
  --rp-foundation-space-3xl: 64px;
  --rp-foundation-radius-control: 12px;
  --rp-foundation-radius-panel: 28px;
  --rp-foundation-radius-pill: 999px;
  --rp-foundation-size-control: 32px;
  --rp-foundation-size-control-nested: 24px;
  --rp-foundation-size-menu-row: 28px;
  --rp-foundation-size-touch-target: 44px;
  --rp-foundation-elevation-panel: 0 20px 60px rgba(10, 11, 13, 0.08);
  --rp-foundation-elevation-lifted: 0 24px 80px rgba(10, 11, 13, 0.12);
  --rp-foundation-motion-feedback: 140ms;
  --rp-foundation-motion-quick: 160ms;
  --rp-foundation-motion-standard: 240ms;
  --rp-foundation-motion-settle: 320ms;
  --rp-foundation-motion-spring: 340ms;
  --rp-foundation-motion-spring-sheet: 600ms;
  --rp-foundation-ease-standard: cubic-bezier(0.22, 0, 0.12, 1);
  --rp-foundation-ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --rp-foundation-ease-pop: cubic-bezier(0.34, 1.36, 0.64, 1);
  --rp-foundation-ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --rp-selection-mark-fill: #4087EE;
  --rp-selection-mark-foreground: #FFFFFF;
  --rp-state-attention: #AC8211;
  --rp-state-paused: #6B7280;
  --rp-state-success: #32A155;
  --rp-state-unread: #4087EE;
  --rp-state-risk: #E03E45;
  --rp-space-dense: 8px;
  --rp-space-stack: 16px;
  --rp-space-section: 24px;
  --rp-space-panel: 32px;
  --rp-radius-control: 12px;
  --rp-radius-panel: 28px;
  --rp-radius-pill: 999px;
  --rp-elevation-panel: 0 20px 60px rgba(10, 11, 13, 0.08);
  --rp-elevation-lifted: 0 24px 80px rgba(10, 11, 13, 0.12);
  --rp-motion-feedback: 140ms;
  --rp-motion-quick: 160ms;
  --rp-motion-standard: 240ms;
  --rp-motion-settle: 320ms;
  --rp-motion-spring: 340ms;
  --rp-motion-spring-sheet: 600ms;
  --rp-ease-standard: cubic-bezier(0.22, 0, 0.12, 1);
  --rp-ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --rp-ease-pop: cubic-bezier(0.34, 1.36, 0.64, 1);
  --rp-ease-exit: cubic-bezier(0.4, 0, 1, 1);
}

:root, [data-ripple-theme="light"], [data-ripple-theme="dark"] {
  --rp-surface-canvas: light-dark(#FAFAFA, #202124);
  --rp-surface-soft: light-dark(#F7F8FA, #26292C);
  --rp-surface-panel: light-dark(rgba(255, 255, 255, 0.94), rgba(38, 41, 44, 0.96));
  --rp-surface-overlay: light-dark(rgba(255, 255, 255, 0.82), rgba(17, 19, 21, 0.88));
  --rp-surface-emphasis: light-dark(#17191C, #F7F8FA);
  --rp-surface-band: light-dark(#F5F5F7, #202124);
  --rp-text-primary: light-dark(#17191C, #F7F8FA);
  --rp-text-secondary: light-dark(#4B5563, #D1D5DB);
  --rp-text-muted: light-dark(#6B7280, #9CA3AF);
  --rp-text-description: light-dark(#737373, #A3A3A3);
  --rp-text-inverse: light-dark(#FFFFFF, #F7F8FA);
  --rp-icon-primary: light-dark(#17191C, #F7F8FA);
  --rp-icon-secondary: light-dark(#4B5563, #D1D5DB);
  --rp-icon-inverse: light-dark(#FFFFFF, #F7F8FA);
  --rp-border-subtle: light-dark(rgba(10, 11, 13, 0.08), rgba(247, 248, 250, 0.14));
  --rp-border-strong: light-dark(rgba(10, 11, 13, 0.12), rgba(247, 248, 250, 0.22));
  --rp-border-emphasis: light-dark(#17191C, #F7F8FA);
  --rp-action-primary: light-dark(#17191C, #F7F8FA);
  --rp-tint-neutral-fill: light-dark(rgba(23, 25, 28, 0.07), rgba(247, 248, 250, 0.09));
  --rp-tint-neutral-ink: light-dark(#4B5563, #D1D5DB);
  --rp-tint-neutral-swatch: light-dark(rgba(107, 114, 128, 0.35), rgba(107, 114, 128, 0.55));
  --rp-tint-red-fill: light-dark(rgba(224, 62, 69, 0.12), rgba(224, 62, 69, 0.16));
  --rp-tint-red-ink: light-dark(#B4363C, #EC8B8F);
  --rp-tint-red-swatch: light-dark(rgba(224, 62, 69, 0.35), rgba(224, 62, 69, 0.55));
  --rp-tint-orange-fill: light-dark(rgba(210, 103, 7, 0.12), rgba(210, 103, 7, 0.16));
  --rp-tint-orange-ink: light-dark(#A9560C, #E4A46A);
  --rp-tint-orange-swatch: light-dark(rgba(210, 103, 7, 0.35), rgba(210, 103, 7, 0.55));
  --rp-tint-yellow-fill: light-dark(rgba(172, 130, 17, 0.12), rgba(172, 130, 17, 0.16));
  --rp-tint-yellow-ink: light-dark(#8B6B13, #CDB470);
  --rp-tint-yellow-swatch: light-dark(rgba(172, 130, 17, 0.35), rgba(172, 130, 17, 0.55));
  --rp-tint-green-fill: light-dark(rgba(50, 161, 85, 0.12), rgba(50, 161, 85, 0.16));
  --rp-tint-green-ink: light-dark(#2C8348, #84C799);
  --rp-tint-green-swatch: light-dark(rgba(50, 161, 85, 0.35), rgba(50, 161, 85, 0.55));
  --rp-tint-teal-fill: light-dark(rgba(20, 157, 153, 0.12), rgba(20, 157, 153, 0.16));
  --rp-tint-teal-ink: light-dark(#15807E, #72C4C2);
  --rp-tint-teal-swatch: light-dark(rgba(20, 157, 153, 0.35), rgba(20, 157, 153, 0.55));
  --rp-tint-blue-fill: light-dark(rgba(64, 135, 238, 0.12), rgba(64, 135, 238, 0.16));
  --rp-tint-blue-ink: light-dark(#376FC0, #8CB7F5);
  --rp-tint-blue-swatch: light-dark(rgba(64, 135, 238, 0.35), rgba(64, 135, 238, 0.55));
  --rp-tint-indigo-fill: light-dark(rgba(124, 119, 236, 0.12), rgba(124, 119, 236, 0.16));
  --rp-tint-indigo-ink: light-dark(#6662BE, #B0ADF4);
  --rp-tint-indigo-swatch: light-dark(rgba(124, 119, 236, 0.35), rgba(124, 119, 236, 0.55));
  --rp-tint-purple-fill: light-dark(rgba(168, 103, 213, 0.12), rgba(168, 103, 213, 0.16));
  --rp-tint-purple-ink: light-dark(#8856AC, #CBA4E6);
  --rp-tint-purple-swatch: light-dark(rgba(168, 103, 213, 0.35), rgba(168, 103, 213, 0.55));
  --rp-tint-pink-fill: light-dark(rgba(212, 85, 142, 0.12), rgba(212, 85, 142, 0.16));
  --rp-tint-pink-ink: light-dark(#AA4875, #E599BB);
  --rp-tint-pink-swatch: light-dark(rgba(212, 85, 142, 0.35), rgba(212, 85, 142, 0.55));
}

[data-ripple-theme="light"] { color-scheme: light; }
[data-ripple-theme="dark"] {
  color-scheme: dark;
}

/*
 * Ripple's status page, after the signed-out pages' shell (apps/web PublicPage). The Worker serves this
 * file after the shared design tokens, so every color and motion below comes from them.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter.woff2") format("woff2");
}

@font-face {
  font-family: "Ioskeley Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ioskeley-mono.woff2") format("woff2");
}

:root {
  /* The web app's values (apps/web/src/styles/ripple-tokens.css) that the shared tokens don't carry:
     the page and grouped-panel fills, and the controls and menus the site's header uses. The panel
     fill is mixed opaque, so a day's fill can mix with it. */
  --status-page-fill: light-dark(#ffffff, #26292c);
  --status-panel-fill: light-dark(color-mix(in srgb, #17191c 3%, #f7f8fa), color-mix(in srgb, #ffffff 5.5%, #26292c));
  --status-selected-fill: light-dark(#efeff0, color-mix(in srgb, #9ca3af 18%, var(--status-page-fill)));
  --status-primary-fill: light-dark(#17191c, #f7f8fa);
  --status-primary-hover-fill: light-dark(#2a2d31, #ffffff);
  --status-primary-ink: light-dark(#ffffff, #111315);
  /* The header's menus, raised over the page. */
  --status-menu-fill: light-dark(#ffffff, #2f3236);
  --status-menu-shadow: 0 20px 48px rgba(10, 11, 13, 0.16), 0 6px 18px rgba(10, 11, 13, 0.1);
  /* Floating controls, the header's pill among them: opaque, and lifted from the page in dark. */
  --status-floating-fill: light-dark(var(--status-page-fill), color-mix(in srgb, var(--rp-text-primary) 9%, var(--status-page-fill)));
  --status-floating-shadow: 0 8px 24px rgba(10, 11, 13, 0.12), 0 1px 4px rgba(10, 11, 13, 0.08);
  --status-control-height: 32px;
  /* Raised over a panel: white in light, a step lighter in dark; in light, the web app's menu shadow. */
  --status-raised-fill: light-dark(#ffffff, #3a3d42);
  --status-raised-edge: light-dark(#efeff0, rgba(255, 255, 255, 0.08));
  --status-raised-shadow: 0 20px 48px light-dark(rgba(10, 11, 13, 0.16), rgba(0, 0, 0, 0.36)), 0 6px 18px light-dark(rgba(10, 11, 13, 0.1), rgba(0, 0, 0, 0.2));
  --status-font-sans: "Inter", "SF Pro Display", "Helvetica Neue", sans-serif;
  --status-font-mono: "Ioskeley Mono", "SF Mono", "SFMono-Regular", ui-monospace, monospace;
  /* A day apart from the one before it. */
  --status-run-gap: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --status-menu-shadow: 0 24px 60px rgba(0, 0, 0, 0.36), 0 8px 24px rgba(0, 0, 0, 0.2);
    --status-floating-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.24);
  }
}

/* Touch raises controls to the 44px target, as the web app does. */
@media (pointer: coarse), (any-pointer: coarse) {
  :root {
    --status-control-height: var(--rp-foundation-size-touch-target);
  }
}

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

body {
  margin: 0;
  background: var(--status-page-fill);
  color: var(--rp-text-primary);
  font-family: var(--status-font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
}

:is(a, button, summary, .day):focus-visible {
  outline: 2px solid var(--rp-text-muted);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Ripple's mono voice (apps/web MetaLabel): a capitalized heading names a group, a figure is a time,
   a duration or a count. */
.label {
  margin: 0;
  color: var(--rp-text-muted);
  font-family: var(--status-font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.figure,
time {
  font-family: var(--status-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* The page: the site's header, the content, and the site's footer at the foot of the screen, on one
   plain page in the visitor's theme (apps/web PublicPage). */
.page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

/*
 * The site's header and footer, after apps/web's SiteHeader, SiteMenu and SiteFooter modules: one
 * header and one footer for every page of the site. Keep the two in step.
 */

/*
 * The Island, the site's one glass surface: a full-width bar in the page's fill at 72% that gathers
 * into a centered pill in the floating controls' material at 64% once the page scrolls (page.ts's
 * script marks it) or a menu opens. Each menu drops from the pill as its continuation, the pill
 * thickening to the menu's glass and squaring off where they meet; the main site grows the pill itself,
 * which a popover, drawn above the page's own layers, can't. Solid where backdrop blur is missing or
 * someone asks for less transparency; without movement under reduced motion.
 */
.site-header {
  --island-bar-height: 64px;
  --island-height: 52px;
  --island-top: 6px;
  --island-width: min(640px, 100% - 32px);
  --island-radius: 26px;
  --island-open-radius: 20px;
  --island-bar-fill: var(--status-page-fill);
  --island-fill: var(--status-floating-fill);
  --island-menu-fill: var(--status-menu-fill);
  --island-gather: var(--rp-motion-spring);
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(env(safe-area-inset-top, 0px) + var(--island-bar-height));
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    --island-bar-fill: color-mix(in srgb, var(--status-page-fill) 72%, transparent);
    --island-fill: color-mix(in srgb, var(--status-floating-fill) 64%, transparent);
    --island-menu-fill: color-mix(in srgb, var(--status-menu-fill) 90%, transparent);
    --island-bar-blur: blur(20px) saturate(1.8);
    --island-blur: blur(24px) saturate(1.8);
    --island-menu-blur: blur(32px) saturate(1.8);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    --island-bar-fill: var(--status-page-fill);
    --island-fill: var(--status-floating-fill);
    --island-menu-fill: var(--status-menu-fill);
    --island-bar-blur: none;
    --island-blur: none;
    --island-menu-blur: none;
  }
}

.island {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  width: 100%;
  height: var(--island-bar-height);
  margin-inline: auto;
  border-radius: 0;
  transition-property: width, height, top, border-radius;
  transition-duration: var(--island-gather);
  transition-timing-function: var(--rp-ease-settle);
}

.island::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--island-bar-fill);
  -webkit-backdrop-filter: var(--island-bar-blur);
  backdrop-filter: var(--island-bar-blur);
  transition:
    background-color var(--island-gather) var(--rp-ease-standard),
    box-shadow var(--island-gather) var(--rp-ease-standard);
}

.site-header[data-scrolled] .island,
.site-header:has(:popover-open) .island {
  top: calc(env(safe-area-inset-top, 0px) + var(--island-top));
  width: var(--island-width);
  height: var(--island-height);
  border-radius: var(--island-radius);
}

.site-header[data-scrolled] .island::before,
.site-header:has(:popover-open) .island::before {
  background: var(--island-fill);
  -webkit-backdrop-filter: var(--island-blur);
  backdrop-filter: var(--island-blur);
  box-shadow: var(--status-floating-shadow);
}

/* With a menu open, the pill takes the menu's glass and meets it square. */
.site-header:has(:popover-open) .island {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

.site-header:has(:popover-open) .island::before {
  background: var(--island-menu-fill);
  -webkit-backdrop-filter: var(--island-menu-blur);
  backdrop-filter: var(--island-menu-blur);
  box-shadow: none;
}

.bar {
  position: relative;
  width: min(1200px, 100%);
  height: 100%;
  margin-inline: auto;
  padding-inline: max(24px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  gap: 4px;
  transition: padding var(--island-gather) var(--rp-ease-settle);
}

/* How far down the page you've read, along the pill's bottom edge (apps/web SiteHeader's progress):
   only once the pill has formed, never while a menu hangs from it, and only where CSS can tie it to
   scrolling. */
.progress {
  display: none;
}

@supports (animation-timeline: scroll()) {
  .progress {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: inherit;
    border-bottom: 2px solid color-mix(in srgb, var(--rp-text-primary) 64%, transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--rp-motion-quick) var(--rp-ease-standard);
    animation: read linear both;
    animation-timeline: scroll(nearest block);
  }

  .site-header[data-scrolled] .progress {
    opacity: 1;
    transition-delay: var(--island-gather);
  }

  .site-header:has(:popover-open) .progress {
    opacity: 0;
    transition-delay: 0s;
  }
}

@keyframes read {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

/* In the pill, Get started sits as far from the end as from the top and bottom. */
.site-header[data-scrolled] .bar,
.site-header:has(:popover-open) .bar {
  padding-inline: 18px calc((var(--island-height) - var(--status-control-height)) / 2);
}

/* Ripple's mark and wordmark lead home. */
.home,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: var(--rp-radius-control);
  color: var(--rp-text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.home {
  margin-right: 24px;
  font-size: 16px;
}

.mark {
  display: block;
  flex: none;
  width: auto;
  height: 20px;
  aspect-ratio: 190 / 224;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Menu triggers and Contact read as one row of quiet controls. */
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding-inline: 12px;
  border: 0;
  border-radius: var(--rp-radius-pill);
  background: transparent;
  color: var(--rp-text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 450;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--rp-motion-quick) var(--rp-ease-standard),
    color var(--rp-motion-quick) var(--rp-ease-standard);
}

@media (hover: hover) {
  .nav-item:hover {
    background: var(--status-selected-fill);
    color: var(--rp-text-primary);
  }
}

.nav-item[data-current],
.nav-item:has(+ .menu:popover-open) {
  color: var(--rp-text-primary);
}

.nav-item:has(+ .menu:popover-open) {
  background: var(--status-selected-fill);
}

.caret {
  display: inline-flex;
  color: var(--rp-text-muted);
  transition: transform var(--rp-motion-spring) var(--rp-ease-pop);
}

.nav-item:has(+ .menu:popover-open) .caret {
  transform: rotate(180deg);
}

/* Get started is a capsule, concentric with the pill it ends. */
.actions {
  --rp-radius-control: var(--rp-radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* The web app's primary Button. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  --button-fill: var(--status-primary-fill);
  --button-hover-fill: var(--status-primary-hover-fill);
  --button-ink: var(--status-primary-ink);
  min-height: var(--status-control-height);
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--rp-radius-control);
  background: var(--button-fill);
  color: var(--button-ink);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--rp-motion-quick) var(--rp-ease-standard),
    scale var(--rp-motion-quick) var(--rp-ease-standard);
}

.button:hover {
  background: var(--button-hover-fill);
}

.button:active {
  background: color-mix(in srgb, var(--button-hover-fill), var(--button-ink) 1.5%);
  scale: 0.97;
}

/*
 * A header menu: a popover that drops from the Island as its continuation, at the pill's width, so
 * Escape and a click outside close it. It opens with the pill gathered, so it takes the gathered
 * pill's place; it grows down from the pill's edge.
 */
.menu,
.sheet {
  --status-page-fill: var(--status-menu-fill);
  --status-selected-fill: light-dark(#efeff0, color-mix(in srgb, #9ca3af 18%, var(--status-page-fill)));
  position: fixed;
  inset: calc(env(safe-area-inset-top, 0px) + var(--island-top) + var(--island-height)) 0 auto;
  width: var(--island-width);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 2 * var(--island-top) - var(--island-height));
  margin: 0 auto;
  padding: 2px 10px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0 0 var(--island-open-radius) var(--island-open-radius);
  background: var(--island-menu-fill);
  -webkit-backdrop-filter: var(--island-menu-blur);
  backdrop-filter: var(--island-menu-blur);
  box-shadow: var(--status-menu-shadow);
  color: var(--rp-text-primary);
  /* Clipped to its top edge, it is still the pill; open, it shows whole, shadow included. */
  clip-path: inset(0 -80px 100% -80px);
  transition-property: clip-path, overlay, display;
  transition-duration: var(--rp-motion-quick);
  transition-timing-function: var(--rp-ease-standard);
  transition-behavior: allow-discrete;
}

.menu:popover-open,
.sheet:popover-open {
  clip-path: inset(0 -80px -80px -80px);
  transition-delay: var(--island-gather);
  transition-duration: var(--rp-motion-spring);
  transition-timing-function: var(--rp-ease-settle);
}

/* Opened with the pill already gathered, it grows at once. */
.site-header[data-scrolled] :popover-open {
  transition-delay: 0s;
}

@starting-style {
  .menu:popover-open,
  .sheet:popover-open {
    clip-path: inset(0 -80px 100% -80px);
  }
}

/* Its links in one column, every row one height. The web app's menus add a preview beside them. */
.menu-links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-link {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 10px;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color var(--rp-motion-quick) var(--rp-ease-standard);
}

@media (hover: hover) {
  .menu-link:hover {
    background: var(--status-selected-fill);
  }
}

.menu-link[aria-current="page"] {
  background: var(--status-selected-fill);
}

.menu-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--rp-tint-neutral-fill);
  color: var(--rp-text-secondary);
}

.menu-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.menu-label,
.menu-description {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.menu-description {
  color: var(--rp-text-muted);
  font-size: 13px;
  line-height: 1.35;
}

/* Phones keep Ripple home, Get started and the menu button, whose two bars cross into a close mark. */
.menu-button {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--rp-radius-pill);
  background: transparent;
  color: var(--rp-text-primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-button:active {
  background: var(--status-selected-fill);
}

.bars {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}

.bars i {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.75px;
  border-radius: 1px;
  background: currentColor;
  transition:
    transform var(--rp-motion-spring) var(--rp-ease-pop),
    top var(--rp-motion-spring) var(--rp-ease-pop);
}

.bars i:first-child {
  top: 0;
}

.bars i:last-child {
  top: calc(100% - 1.75px);
}

.menu-button:has(+ .sheet:popover-open) .bars i {
  top: calc(50% - 0.875px);
}

.menu-button:has(+ .sheet:popover-open) .bars i:first-child {
  transform: rotate(45deg);
}

.menu-button:has(+ .sheet:popover-open) .bars i:last-child {
  transform: rotate(-45deg);
}

/* The phone menu: the same drop, holding every page. */
.sheet:popover-open {
  display: grid;
  gap: var(--rp-foundation-space-md);
}

/* The page stays put behind the open sheet. */
html:has(.sheet:popover-open) {
  overflow: hidden;
}

.sheet-groups {
  display: grid;
  gap: var(--rp-foundation-space-md);
}

.sheet-group {
  display: grid;
  gap: 2px;
}

.sheet-group .eyebrow {
  padding: 0 8px 4px;
}

.sheet-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding-inline: 8px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 450;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.sheet-text {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding-block: 6px;
  line-height: 1.25;
}

.sheet-description {
  color: var(--rp-text-muted);
  font-size: 13.5px;
  font-weight: 400;
}

.sheet-row:active {
  background: var(--status-selected-fill);
}

.sheet-row[aria-current="page"] {
  background: var(--status-selected-fill);
}

/* Ripple's mono voice for a group's name, as the web app's footer and menus use it. */
.eyebrow {
  margin: 0;
  color: var(--rp-text-muted);
  font-family: var(--status-font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main {
  display: grid;
  align-content: start;
  gap: var(--rp-space-panel);
  padding: 48px max(16px, env(safe-area-inset-right, 0px), calc((100% - 680px) / 2)) 64px max(16px, env(safe-area-inset-left, 0px), calc((100% - 680px) / 2));
}

/* The feed, a quiet way to hear about incidents. */
.follow {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  border-radius: 4px;
  color: var(--rp-text-secondary);
  font-size: 13px;
  font-weight: 450;
  text-decoration: none;
  transition: color var(--rp-motion-feedback) var(--rp-ease-standard);
}

.follow:hover {
  color: var(--rp-text-primary);
}

.hero {
  display: grid;
  gap: 8px;
}

.hero p {
  margin: 0;
}

.hero h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-date {
  color: var(--rp-text-muted);
}

.sub {
  color: var(--rp-text-muted);
}

.sub time {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.announcement {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--status-panel-fill);
  color: var(--rp-text-secondary);
  text-wrap: pretty;
}

/* A state on its hue's tint (apps/web StatusPill). */
.pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding-inline: 8px;
  border-radius: var(--rp-radius-pill);
  background: var(--tone-fill);
  color: var(--tone-ink);
  outline: 1px solid transparent;
  outline-offset: -1px;
  font-size: 12px;
  font-weight: 450;
  line-height: 1;
  white-space: nowrap;
}

.pill svg {
  flex: none;
  margin-inline-start: -2px;
}

[data-tone="green"] { --tone-fill: var(--rp-tint-green-fill); --tone-ink: var(--rp-tint-green-ink); }
[data-tone="yellow"] { --tone-fill: var(--rp-tint-yellow-fill); --tone-ink: var(--rp-tint-yellow-ink); }
[data-tone="red"] { --tone-fill: var(--rp-tint-red-fill); --tone-ink: var(--rp-tint-red-ink); }
[data-tone="neutral"] { --tone-fill: var(--rp-tint-neutral-fill); --tone-ink: var(--rp-tint-neutral-ink); }

/* What's going on now leads, on the tint of its worst state. */
.incident {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--tone-fill);
  color: var(--tone-ink);
}

.incident header {
  display: grid;
  gap: 8px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.incident .pill {
  background: color-mix(in srgb, var(--tone-ink) 12%, transparent);
}

.incident h2 {
  margin: 0;
  color: var(--rp-text-primary);
  font-size: 15px;
  font-weight: 500;
  text-wrap: balance;
}

.window {
  margin: 0;
  color: var(--rp-text-secondary);
  font-size: 13px;
}

.window time {
  font-size: 12px;
}

/* Updates, newest first, on a line of dots. */
.updates {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.updates li {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
}

.updates li::before {
  content: "";
  grid-row: span 2;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

.updates li:first-child::before {
  opacity: 1;
}

.updates time {
  color: var(--rp-text-muted);
  line-height: 15px;
}

.message p {
  margin: 0;
  color: var(--rp-text-secondary);
  font-size: 13.5px;
  text-wrap: pretty;
}

.message p + p {
  margin-top: 6px;
}

/* Each part on its own card. */
.parts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.part {
  display: grid;
  gap: 12px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: var(--status-panel-fill);
}

.part-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.part-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.part-name h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.part-name p {
  margin: 0;
  color: var(--rp-text-muted);
  font-size: 13px;
  text-wrap: pretty;
}

.uptime {
  padding-top: 2px;
  color: var(--rp-text-secondary);
  font-size: 12px;
  white-space: nowrap;
}

/*
 * The ribbon: a column per day. Quiet days of one state run together; a new state starts a new run
 * after a small gap, and every run has round ends. Pointing at a day, dragging along the ribbon or
 * focusing a day shows the day's card above it.
 */
.history {
  position: relative;
  display: grid;
  gap: 8px;
}

.ribbon {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  height: 10px;
  touch-action: pan-y;
}

/* A band taller than the bar to point at; a finger can drag along it. */
.ribbon::before {
  content: "";
  position: absolute;
  inset: -10px -4px;
}

/* Fills are opaque so each day can paint a pixel over the one before, closing the hairline seams
   that fractional columns leave. The day the card describes deepens. */
.day {
  --day-fill: var(--day-tone);
  background: var(--day-fill);
  transition: background var(--rp-motion-feedback) var(--rp-ease-standard);
}

.day.active {
  --day-fill: color-mix(in srgb, var(--day-tone) 78%, var(--rp-text-primary));
}

.day:not(.start) {
  box-shadow: -1px 0 0 var(--day-fill);
}

.day.start {
  border-start-start-radius: var(--rp-radius-pill);
  border-end-start-radius: var(--rp-radius-pill);
}

.day.start:not(:first-child) {
  margin-inline-start: var(--status-run-gap);
}

.day.end {
  border-start-end-radius: var(--rp-radius-pill);
  border-end-end-radius: var(--rp-radius-pill);
}

.day[data-state="operational"] { --day-tone: color-mix(in srgb, var(--rp-state-success) 72%, var(--status-panel-fill)); }
.day[data-state="not_monitored"] { --day-tone: color-mix(in srgb, var(--rp-text-primary) 7%, var(--status-panel-fill)); }
.day[data-state="degraded"] { --day-tone: var(--rp-state-attention); }
.day[data-state="downtime"] { --day-tone: var(--rp-state-risk); }
.day[data-state="maintenance"] { --day-tone: color-mix(in srgb, var(--rp-text-muted) 45%, var(--status-panel-fill)); }

/* A day's card: its date, state and how it went, centred over the day and kept inside the part. The
   page's script fills and places it; it glides from day to day rather than reappearing. */
.day-card {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 1;
  display: grid;
  gap: 5px;
  /* Never wider than the part: a narrow phone wraps the card's words instead of clipping them. */
  min-width: min(210px, 100%);
  max-width: 100%;
  padding: 11px 13px 12px;
  border: 1px solid var(--status-raised-edge);
  border-radius: 14px;
  background: var(--status-raised-fill);
  box-shadow: var(--status-raised-shadow);
  pointer-events: none;
  opacity: 0;
  scale: 0.96;
  transform-origin: 50% 100%;
  transition:
    opacity var(--rp-motion-quick) var(--rp-ease-standard),
    scale var(--rp-motion-standard) var(--rp-ease-pop),
    translate var(--rp-motion-feedback) var(--rp-ease-standard);
}

.day-card.open {
  opacity: 1;
  scale: 1;
}

.day-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  white-space: nowrap;
  justify-content: space-between;
  gap: 8px;
}

.day-card-date {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.day-card p {
  margin: 0;
  color: var(--rp-text-secondary);
  font-size: 12.5px;
  line-height: 1.35;
}

.axis {
  display: flex;
  justify-content: space-between;
  color: var(--rp-text-muted);
  font-size: 11.5px;
  line-height: 16px;
}

/* Words for the range a ribbon shows: all its days, or the phone's latest. */
.phone-only {
  display: none;
}

/* Past incidents open in place. */
.past {
  display: grid;
  gap: 8px;
}

.past .label {
  padding-inline: 12px;
}

.past-list {
  display: grid;
  gap: 2px;
}

.past-incident summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
  transition: background var(--rp-motion-feedback) var(--rp-ease-standard);
}

.past-incident summary::-webkit-details-marker {
  display: none;
}

.past-incident summary:hover {
  background: var(--status-panel-fill);
}

.past-incident summary time,
.past-duration {
  color: var(--rp-text-muted);
}

.past-duration {
  white-space: nowrap;
}

.past-incident summary svg {
  color: var(--rp-text-muted);
  transition: rotate var(--rp-motion-standard) var(--rp-ease-settle);
}

.past-incident[open] summary svg {
  rotate: 90deg;
}

.past-incident .updates {
  padding: 4px 12px 14px 78px;
  color: var(--rp-text-muted);
}

/* The site's footer, in the visitor's theme: Ripple and what it is, then every page by group, full
   width in the page's fill. */
.footer-inner {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: 48px max(24px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  display: grid;
  gap: 48px;
}

.sitemap {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.intro {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}

.intro p {
  max-width: 280px;
  margin: 0;
  color: var(--rp-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.brand {
  font-size: 15px;
}

.brand .mark {
  height: 18px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 170px);
  gap: 24px;
}

.column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.column ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Quiet links that fill on hover, as the header's do. */
.footer-link {
  display: inline-flex;
  align-items: center;
  margin-left: -10px;
  padding: 6px 10px;
  border-radius: 9px;
  color: var(--rp-text-secondary);
  font-size: 14px;
  font-weight: 450;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--rp-motion-quick) var(--rp-ease-standard),
    color var(--rp-motion-quick) var(--rp-ease-standard);
}

@media (hover: hover) {
  .footer-link:hover {
    background: var(--status-selected-fill);
    color: var(--rp-text-primary);
  }
}

.footer-link[aria-current="page"] {
  color: var(--rp-text-primary);
}

.copyright {
  margin: 0;
  color: var(--rp-text-muted);
  font-family: var(--status-font-mono);
  font-size: 12px;
  line-height: 18px;
}

/* Narrow screens fold the header's middle into the phone menu and stack the footer. */
@media (max-width: 899px) {
  .site-header {
    --island-bar-height: 56px;
    --island-width: calc(100% - 20px);
  }

  .bar {
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  }

  .site-header[data-scrolled] .bar,
  .site-header:has(:popover-open) .bar {
    padding-inline: 16px calc((var(--island-height) - var(--status-control-height)) / 2);
  }

  .nav {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .footer-inner {
    padding: 36px max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    gap: 36px;
  }

  .sitemap {
    flex-direction: column;
    gap: 28px;
  }

  .columns {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
  }
}

/* Phones show the latest 30 days, matching PHONE_DAYS in page.ts. */
@media (max-width: 559px) {
  .hero h1 {
    font-size: 28px;
  }

  .day:nth-last-child(n + 31) {
    display: none;
  }

  .day:nth-last-child(30) {
    margin-inline-start: 0;
    border-start-start-radius: var(--rp-radius-pill);
    border-end-start-radius: var(--rp-radius-pill);
  }

  .wide-only {
    display: none;
  }

  .phone-only {
    display: inline;
  }

  .past-incident summary {
    grid-template-columns: 48px minmax(0, 1fr) auto 14px;
  }

  .past-incident .updates {
    padding-inline-start: 70px;
  }
}

@media (forced-colors: active) {
  .day {
    forced-color-adjust: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  *::backdrop {
    transition-duration: 0ms !important;
  }

  .button:active {
    scale: none;
  }
}
