/* The DotWingo parked page, in the site's light theme only: its colours, its Geist type (served
   from this server), the landing hero's ribbon of light (drawn by parked.js) and the landing
   footer's dotted .winGO (mark.svg, from tools/make-mark.cjs). The page loads nothing from anywhere
   else. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/geist-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f6f8fb;
  --ink: #0b1220;
  --ink-2: #3b4556;
  --ink-3: #566072;
  --line: #e4e9f0;
  --line-2: #d2d9e3;
  --edge: #858fa1;
  /* The site's primary: its buttons, and the dot (frontend site-v2.css, held by the tests). */
  --coral: #c43a30;
  --coral-h: #a92f26;
  --on-coral: #ffffff;
  /* The ribbon's still band, drawn in CSS for a browser without WebGL. */
  --coral-logo: #e8554a;
  --ribbon-deep: #d9483d;
  --amber: #f19a3e;
  --gold: #f7c761;
  --blush: #fde3da;
  --sh-1: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 1px rgba(11, 18, 32, 0.03);
  --sh-3: 0 30px 60px -18px rgba(11, 18, 32, 0.24), 0 12px 24px -12px rgba(11, 18, 32, 0.12);
  --gut: clamp(16px, 4vw, 40px);
  --sans:
    'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  padding-inline: var(--gut);
}

/* The site's nav, cut down to its logo and its accreditation tag. */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  border-radius: 6px;
}

.brand img {
  display: block;
  height: 28px;
  width: auto;
}

.tag {
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  white-space: nowrap;
}

main {
  flex: 1;
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* The landing hero's ribbon of light. It sits behind the cards' column on the right and is all but
   clear by the time it reaches the words, as on the landing. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.ribbon {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: calc(50vw + min(50vw - var(--gut), 576px) - 460px);
  /* The still band: what shows with no WebGL, and under the canvas until it draws. */
  background:
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    linear-gradient(to right, var(--bg) 3%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(to top, var(--bg) 0%, rgba(255, 255, 255, 0) 16%),
    linear-gradient(
      124deg,
      rgba(255, 255, 255, 0) 30%,
      var(--blush) 40%,
      var(--coral-logo) 50%,
      var(--ribbon-deep) 55%,
      var(--amber) 64%,
      var(--gold) 72%,
      var(--blush) 82%,
      rgba(255, 255, 255, 0) 92%
    );
}

.ribbon__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ribbon.is-static .ribbon__canvas {
  display: none;
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

h1:empty {
  display: none;
}

.lede {
  max-width: 34em;
  margin: 0 0 clamp(36px, 5vw, 56px);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  max-width: 960px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--sh-1);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 20px;
  color: var(--ink-2);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: auto;
  padding: 0 24px;
  border: 1px solid var(--coral);
  border-radius: 999px;
  background: var(--coral);
  color: var(--on-coral);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  box-shadow:
    var(--sh-1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.button:hover {
  border-color: var(--coral-h);
  background: var(--coral-h);
}

/* Resting borders use --edge, as the site's do: a control's own edge must show (WCAG 1.4.11). */
.button.secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--edge);
  box-shadow: var(--sh-1);
}

.button.secondary:hover {
  border-color: var(--ink);
}

/* Holds the ribbon (WCAG 2.2.2). Shown only once the ribbon is moving. */
.hero__foot {
  display: flex;
  justify-content: flex-end;
  max-width: 1152px;
  margin-top: 20px;
}

.pause {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font: 500 13.5px/1.2 var(--sans);
  cursor: pointer;
}

.pause[hidden] {
  display: none;
}

.pause:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.pause__i {
  display: block;
  width: 16px;
  height: 16px;
}

.pause__i--play,
.pause[aria-pressed='true'] .pause__i--pause {
  display: none;
}

.pause[aria-pressed='true'] .pause__i--play {
  display: block;
}

a:focus-visible,
.pause:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* The landing footer's close: the accreditation line, the tagline, then the name in dots on the
   page's bottom edge. */
.foot {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--ink-3);
}

.foot__bar p {
  margin: 0;
}

.foot__links {
  display: flex;
  gap: 8px;
}

.foot__links a {
  color: var(--ink-2);
  text-underline-offset: 3px;
}

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

.tagline {
  margin: clamp(40px, 6vw, 72px) 0 clamp(14px, 2vw, 24px);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.tagline__dot {
  color: var(--coral);
}

.mark,
.mark img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  /* A composition of its own: the band crosses low, behind the cards, clear of the words.
     parked.js sets its height to start just above them. */
  .ribbon {
    top: auto;
    left: 0;
    width: 100%;
    height: 520px;
    background:
      linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
      linear-gradient(to bottom, var(--bg) 0%, rgba(255, 255, 255, 0) 30%),
      linear-gradient(to top, var(--bg) 0%, rgba(255, 255, 255, 0) 14%),
      linear-gradient(
        160deg,
        rgba(255, 255, 255, 0) 26%,
        var(--blush) 38%,
        var(--gold) 48%,
        var(--amber) 55%,
        var(--coral-logo) 64%,
        var(--blush) 78%,
        rgba(255, 255, 255, 0) 90%
      );
  }

  .hero__foot {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 340px) {
  .tag {
    display: none;
  }
}

@media (forced-colors: active) {
  .label::before {
    background: CanvasText;
  }

  .ribbon {
    display: none;
  }
}
