@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist Serif";
  src: url("fonts/GeistSerif.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f4f3fb;
  --ink-soft: rgb(244 243 251 / 0.68);
  --ink-faint: rgb(244 243 251 / 0.45);
  --lilac: #c3c1f6;
  --gold: #d8a31d;
  --night: #121218;
  --deep: #1c1a3a;
  --blue: #3b36b8;
  --line: rgb(244 243 251 / 0.12);
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(rgb(160 156 255 / 0.10) 1px, transparent 1.4px) 0 0 / 7px 7px,
    var(--night);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

header.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 32px;
}

.logo { display: block; }
.logo img { display: block; height: 32px; width: auto; }

.tagline {
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: -0.01em;
}

main { flex: 1; }

.hero { padding-top: clamp(40px, 10vh, 120px); padding-bottom: 72px; }

h1, h2 {
  font-family: "Geist Serif", Georgia, serif;
  font-weight: 400;
  color: var(--lilac);
  letter-spacing: -0.02em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 8vw, 96px); max-width: 14ch; }

.lede {
  margin: 28px 0 0;
  max-width: 34rem;
  font-size: 19px;
  color: var(--ink-soft);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 40px;
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--night);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.button:hover { background: var(--lilac); }
.button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px 20px 28px;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .download { gap: 10px; padding: 16px 24px 16px 20px; font-size: 17px; }
}
.download svg { flex: none; margin-top: -2px; }
.download-size { color: rgb(18 18 24 / 0.45); }

.requires { margin: 0; font-size: 15px; color: var(--ink-faint); }

.meta { font-size: 14px; color: var(--ink-faint); }

.film { margin: 0 0 72px; }

.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #000;
}

.film figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* Feature rows, after the Brand page's changelog cards */
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(56px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.row-copy h2 {
  font-size: clamp(44px, 5.2vw, 72px);
  max-width: 9ch;
}

.row-copy p {
  margin: 28px 0 32px;
  max-width: 30rem;
  color: var(--ink-soft);
}

.row .meta-stack { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }

/* A real screen beside the copy */
.row-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 100px rgb(0 0 0 / 0.5);
}

.row-shot img { display: block; width: 100%; height: auto; }

.shot-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px) clamp(16px, 3vw, 40px);
  padding: clamp(28px, 4vw, 56px);
  background: radial-gradient(rgb(160 156 255 / 0.14) 1px, transparent 1.4px) 0 0 / 7px 7px, #0b0b11;
}

.shot-icons img { flex: 0 0 26%; max-width: 112px; width: 26%; height: auto; filter: drop-shadow(0 16px 24px rgb(0 0 0 / 0.45)); }

/* The rest, quieter: serif names over hairlines, no boxes */
.also {
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 10vw, 128px);
  border-top: 1px solid var(--line);
}

.also-title { font-size: clamp(44px, 5.2vw, 72px); margin-bottom: 40px; }

.also dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 80px);
  margin: 0;
}

.also dl > div { padding: 28px 0; border-top: 1px solid var(--line); }

.also dt {
  font-family: "Geist Serif", Georgia, serif;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--lilac);
}

.also dd { margin: 12px 0 0; color: var(--ink-soft); max-width: 30rem; }

/* Rows come in like the film's titles: up, out of a blur. Only with JS and motion allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .row-copy, .js .row-shot {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
  }
  .js .row-shot { transition-delay: 0.12s; }
  .js .row.is-in .row-copy, .js .row.is-in .row-shot { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
  .row-copy h2 { max-width: none; }
  .also dl { grid-template-columns: 1fr; }
}

footer.wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-faint);
}

footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Privacy policy */
.policy { max-width: 42rem; padding-top: 40px; padding-bottom: 96px; }
.policy h1 { font-size: clamp(40px, 6vw, 64px); }
.policy h2 { font-size: 28px; margin-top: 48px; }
.policy p, .policy li { color: var(--ink-soft); }
.policy strong { color: var(--ink); font-weight: 500; }
.policy ul { padding-left: 20px; }
.policy li { margin: 8px 0; }
.updated { margin-top: 16px; font-size: 14px; color: var(--ink-faint); }

/* Changelog: one section per release */
.changelog .release h2 { margin-top: 56px; }
.changelog .release .updated { margin-top: 8px; }
.changelog code { font-size: 0.9em; }
.changelog .film { margin: 24px 0 8px; }

/* Home hero: a brand card. North★'s Cover Bloom display mode in the brand's purple (hero.js), the cards' left shade,
   a meta stack bottom left and the tagline bottom right, as on the Figma Brand page. */
.hero-card {
  position: relative;
  display: flex;
  min-height: min(100svh, 980px);
  margin-bottom: 72px;
  overflow: hidden;
  background: #050506;
  isolation: isolate;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: -2;
}
#hero-canvas.is-ready { opacity: 1; }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--night) 0%, rgb(18 18 24 / 0) 22%),
    linear-gradient(90deg, rgb(5 5 6 / 0.45) 0%, rgb(5 5 6 / 0.2) 40%, rgb(5 5 6 / 0) 60%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  min-height: inherit;
}

.hero-inner header { padding: 32px 0; }

.hero-inner .hero {
  flex: 1;
  padding-top: clamp(24px, 8vh, 96px);
  padding-bottom: 48px;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.meta-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
  color: rgb(244 243 251 / 0.6);
}

.card-tagline { color: var(--ink-soft); }
