/* Shared by the project page and the hardware page: tokens, type, the bar,
   pills and the footer. A black opening, then a white "classic" column, with
   no scroll-driven motion: no blur, no reveals, no pinned scenes, so
   scrolling stays cheap. */

:root {
  --ink: #1d1d1f;
  --heading: #363636;
  --text: #4a4a4a;
  --muted: #6e6e73;
  --muted-dark: #a1a1a6;
  --rule: #eee;
  --hair: rgba(0, 0, 0, 0.08);
  --panel: #f5f5f7;
  /* WuDi pink, from the crowned logo: bright on black, deepened on white. */
  --accent: #ff4fa3;
  --accent-hover: #ff6db3;
  --accent-deep: #c4166f;
  /* WuDi's four letter colours: W, u, D, i. */
  --wudi-w: #c43f50;
  --wudi-u: #c96800;
  --wudi-d: #17805d;
  --wudi-i: #3568c8;
  --bar-h: 76px;
  --column: 763px;
  --media: 960px;
  --wide: 1180px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  background: #fff;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(255, 79, 163, 0.25);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

/* WuDi, wherever the name appears: four letters, four colours. On black (the
   bar and the hardware opening) the same four hues are lifted so they read. */

.wudi-rainbow {
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wudi-rainbow span:nth-child(1) { color: var(--wudi-w); }
.wudi-rainbow span:nth-child(2) { color: var(--wudi-u); }
.wudi-rainbow span:nth-child(3) { color: var(--wudi-d); }
.wudi-rainbow span:nth-child(4) { color: var(--wudi-i); }

.bar,
.hw-hero {
  --wudi-w: #ff6b7d;
  --wudi-u: #ffa53d;
  --wudi-d: #3dd598;
  --wudi-i: #7da7ff;
}

/* Bar: solid black, so nothing has to be blurred behind it while scrolling. */

.bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--bar-h);
  background: #000;
  color: #f5f5f7;
}

.bar-inner {
  height: 100%;
  padding-inline: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f5f5f7;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bar-brand:hover {
  text-decoration: none;
}

.bar-brand img {
  width: auto;
  height: 60px;
}

.bar-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Pills ------------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #000;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
}

.pill:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.pill--small {
  padding: 7px 15px;
  font-size: 13px;
}

.pill--large {
  padding: 15px 30px;
  font-size: 17px;
}

/* On black: an outlined pill for the secondary links. */
.pill--ghost {
  background: transparent;
  color: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(245, 245, 247, 0.34);
}

.pill--ghost:hover {
  background: rgba(245, 245, 247, 0.1);
}

/* On white: the quiet dark pill. */
.pill--dark {
  background: var(--ink);
  color: #fff;
}

.pill--dark:hover {
  background: #000;
}

.pill--outline {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.pill--outline:hover {
  background: var(--panel);
}

.pill.is-soon {
  background: transparent;
  color: #86868b;
  box-shadow: inset 0 0 0 1px rgba(245, 245, 247, 0.16);
  cursor: default;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding: 40px 24px 64px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(110, 110, 115, 0.4);
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  :root {
    --bar-h: 60px;
  }

  .bar-brand img {
    height: 48px;
  }

  .bar-inner {
    padding-inline: 16px;
    gap: 12px;
  }

  .bar-links {
    gap: 6px;
  }

  .pill--small {
    padding: 7px 12px;
  }
}

@media (max-width: 380px) {
  .bar-brand span {
    display: none;
  }
}
