html body.server-shell {
  --bg: #141414;
  --panel: #202020;
  --panel-soft: #1b1b1b;
  --home-control: #303030;
  --border: #383838;
  --border-strong: #757575;
  --text: #f5f5f5;
  --muted: #c4c4c4;
  --muted-2: #ababab;
  --accent: var(--text);
  --accent-strong: var(--text);
  --header-bg: var(--bg);
  --header-border: var(--border);
  --band-bg: var(--panel-soft);
  --hero-highlight: var(--text);
  --home-radius: 1.5rem;
}

html[data-theme="light"] body.server-shell {
  --bg: #fff;
  --panel: #fff;
  --panel-soft: #f3f3f3;
  --home-control: #e9e9e9;
  --border: #e0e0e0;
  --border-strong: #767676;
  --text: #141414;
  --muted: #525252;
  --muted-2: #626262;
}

body.server-shell .site-header {
  padding: 0.75rem 1.5rem;
  border: 0;
  backdrop-filter: none; /* taste-skill-ignore: turn off the existing sticky header blur */
}

body.server-shell .site-nav {
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 0.25rem 1.25rem;
}

body.server-shell .brand-link {
  font-size: 1.125rem;
}

body.server-shell :is(.nav-links, .theme-toggle) {
  font-size: 0.9375rem;
}

body.server-shell :is(.nav-links a, .theme-toggle, .footer-link) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

body.server-shell .nav-links a {
  border-radius: 999px;
  padding-inline: 0.5rem;
  word-break: keep-all;
}

body.server-shell .nav-links a:hover {
  background: var(--home-control);
}

body.server-shell :is(a, button, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

body.server-shell .hero-section {
  padding-block: clamp(2.25rem, 6vw, 4.5rem);
}

body.server-shell .hero-logo {
  width: clamp(10rem, 29vw, 17rem);
  height: clamp(10rem, 29vw, 17rem);
}

body.server-shell .hero-section h1 {
  font-weight: 650;
  line-height: 1.13;
  word-break: keep-all;
}

body.server-shell main :is(h2, h3) {
  font-weight: 650;
}

body.server-shell .hero-copy {
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  line-height: 1.6;
}

body.server-shell .hero-copy b {
  color: var(--text);
}

body.server-shell .store-links {
  gap: 0.75rem;
}

body.server-shell .store-link {
  min-height: 48px;
  padding-inline: 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
}

html body.server-shell .store-link img {
  width: 1.375rem;
  height: 1.375rem;
  filter: none;
}

html[data-theme="light"] body.server-shell .store-link img {
  filter: invert(1);
}

body.server-shell .store-link:hover {
  color: var(--bg);
  opacity: 0.85;
}

body.server-shell .carousel-button:not(:disabled):hover {
  background: var(--home-control);
  color: var(--accent-strong);
}

body.server-shell :is(.measurement-card, main .panel, .metric-card) {
  border: 0;
  border-radius: var(--home-radius);
}

body.server-shell :is(.measurement-card:not(.data-center-card), main .panel, .metric-card) {
  background: var(--panel-soft);
}

body.server-shell :is(.story-band, .exercise-card-copy .exercise-dose) {
  border-top: 0;
  border-bottom: 0;
}

body.server-shell .carousel-button {
  top: 50%;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--home-control);
  font-size: 2rem;
}

body.server-shell .data-center-carousel .carousel-button {
  top: auto;
  bottom: 0;
}

body.server-shell :is(.footer-link, .footer-contact, .footer-copyright) {
  font-size: 0.875rem;
}

body.server-shell .site-footer {
  --text: #f5f5f5;
  --muted: #d4d4d4;
  --muted-2: #bdbdbd;
  --accent-strong: var(--text);
  border: 0;
  border-radius: var(--home-radius) var(--home-radius) 0 0;
  background: #141414;
}

html body.server-shell .site-footer .footer-logo-label {
  filter: brightness(0) invert(1);
}

@media (max-width: 720px) {
  body.server-shell .site-header {
    position: relative;
    padding-inline: 1rem;
  }

  body.server-shell .site-nav {
    border-radius: var(--home-radius);
    padding: 0.55rem 0.85rem;
  }

  body.server-shell .nav-links {
    gap: 0 0.75rem;
  }

  body.server-shell .content-section {
    scroll-margin-top: 1rem;
  }

  body.server-shell :is(.measurement-carousel, .exercise-carousel) .carousel-button {
    top: auto;
    bottom: 0;
    transform: none;
  }

  body.server-shell .carousel-button-previous { left: 0; }
  body.server-shell .carousel-button-next { right: 0; }

  body.server-shell .carousel-status {
    display: grid;
    min-height: 3rem;
    place-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.scroll-smooth,
  body.server-shell .measurement-card-track { scroll-behavior: auto; }
  body.server-shell .theme-toggle-track,
  body.server-shell .theme-toggle-track span { transition: none; }
}
