/* The site's one stylesheet: the landing page and the versions page.
   Warm paper in light, warm graphite in dark; one accent, ink blue. */
:root {
  color-scheme: light dark;
  --paper: #f5f3ee;
  --paper-lift: #fcfbf8;
  --surface: #ffffff;
  --tile: #ebe8e1;
  --ink: #1d1c1a;
  --ink-soft: #4b4943;
  --ink-mute: #6c6860;
  --line: rgb(29 28 26 / 0.12);
  --line-soft: rgb(29 28 26 / 0.07);
  --accent: #2d4ec6;
  --on-accent: #ffffff;
  --button: #1d1c1a;
  --button-hover: #000000;
  --on-button: #fcfbf8;
  --shadow-window:
    0 0 0 1px rgb(29 28 26 / 0.07),
    0 2px 4px rgb(45 35 20 / 0.05),
    0 14px 32px -10px rgb(45 35 20 / 0.18),
    0 48px 96px -28px rgb(45 35 20 / 0.34);
  --shadow-raised:
    0 0 0 1px rgb(29 28 26 / 0.07),
    0 1px 2px rgb(45 35 20 / 0.08),
    0 6px 16px -6px rgb(45 35 20 / 0.16);
  --shadow-button:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    0 1px 2px rgb(29 28 26 / 0.24),
    0 10px 24px -10px rgb(29 28 26 / 0.55);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-opacity: 0.07;

  /* The one screen: the space around the window, the text column, the gap between them */
  --pad: 28px;
  --gutter: clamp(28px, 2.8vw, 48px);
  --side: clamp(252px, 19.5vw, 400px);
  --gap: clamp(28px, 2.5vw, 44px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141413;
    --paper-lift: #1c1b19;
    --surface: #242320;
    --tile: #2c2a27;
    --ink: #f2efe8;
    --ink-soft: #bcb7ad;
    --ink-mute: #918c82;
    --line: rgb(242 239 232 / 0.14);
    --line-soft: rgb(242 239 232 / 0.08);
    --accent: #88a3ff;
    --on-accent: #0e1222;
    --button: #f2efe8;
    --button-hover: #ffffff;
    --on-button: #141413;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    --grain-opacity: 0.045;
    --shadow-window:
      0 0 0 1px rgb(255 255 255 / 0.09),
      0 2px 6px rgb(0 0 0 / 0.35),
      0 20px 50px -12px rgb(0 0 0 / 0.6),
      0 60px 120px -30px rgb(0 0 0 / 0.75);
    --shadow-raised:
      inset 0 1px 0 rgb(255 255 255 / 0.06),
      0 0 0 1px rgb(255 255 255 / 0.08),
      0 8px 20px -8px rgb(0 0 0 / 0.6);
    --shadow-button:
      inset 0 1px 0 rgb(255 255 255 / 0.5),
      0 1px 2px rgb(0 0 0 / 0.4),
      0 10px 28px -10px rgb(0 0 0 / 0.8);
  }
}

* { box-sizing: border-box; }
/* The paper's grain: a tile of noise under everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: var(--grain);
  background-size: 220px 220px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(1200px 800px at 0% 0%, var(--paper-lift), transparent 70%),
    var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The top line: the mark and the one link */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
  padding: 0 var(--gutter);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.mark img { border-radius: 7px; box-shadow: 0 0 0 1px var(--line-soft); }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a {
  border-radius: 6px;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.top-nav a:hover, .top-nav a[aria-current] { color: var(--ink); }

/* The one control that matters */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px 0 22px;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-button) !important;
  font: 600 16px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-button);
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { background: var(--button-hover); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-glyph { width: 19px; height: 19px; flex: none; }
.button.small { height: 38px; padding: 0 18px; font-size: 14px; box-shadow: var(--shadow-raised); }

/* The pitch */
.pitch h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, min(3.15vw, 5.6vh), 64px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  word-spacing: 0.03em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.pitch h1 em { font-style: italic; font-weight: 450; letter-spacing: -0.008em; color: var(--accent); }
.lead {
  margin: 20px 0 0;
  max-width: 32ch;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.cta { margin: 30px 0 0; }

/* The views of the application: one button each, its glyph and its name */
.facets { display: flex; flex-direction: column; gap: 8px; }
.facet {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  margin: 0;
  padding: 0 18px 0 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 38%, transparent);
  color: var(--ink-soft);
  font: 550 15px/1 var(--sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.facet:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 75%, transparent); }
.facet[aria-selected="true"] {
  border-color: transparent;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-raised);
}
.facet-glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  background: var(--tile);
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.facet[aria-selected="true"] .facet-glyph { background: var(--accent); color: var(--on-accent); }
.facet-icon { width: 19px; height: 19px; }

/* The application */
.frames { display: grid; align-items: start; min-width: 0; }
.frame {
  grid-area: 1 / 1;
  min-width: 0;
  transition: opacity 0.32s ease, transform 0.32s var(--ease), visibility 0s;
}
.frame[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.994);
  transition: opacity 0.32s ease, transform 0.32s var(--ease), visibility 0s linear 0.32s;
}
.frame img { max-width: none; box-shadow: var(--shadow-window); background: var(--surface); }

/* One screen beside the pitch: the window as tall as the screen allows, free to run off the right */
@media (min-width: 861px) {
  /* Wider than the composition needs, it stands in the middle instead of leaving a gap on the right */
  .landing {
    --hero-max: calc(2 * var(--gutter) + var(--side) + var(--gap) + (100svh - 2 * var(--pad)) * var(--shot-aspect, 1.465));
  }
  .landing .top {
    position: absolute;
    z-index: 2;
    top: var(--pad);
    left: max(var(--gutter), (100vw - var(--hero-max)) / 2 + var(--gutter));
    width: var(--side);
    height: 44px;
    padding: 0;
  }
  .hero {
    display: grid;
    grid-template-columns: var(--side) minmax(0, 1fr);
    column-gap: var(--gap);
    height: 100svh;
    max-width: var(--hero-max);
    margin: 0 auto;
    padding: var(--pad) 0 var(--pad) var(--gutter);
    overflow-x: clip;
  }
  .side { display: flex; flex-direction: column; min-height: 0; padding-top: 44px; }
  .pitch { margin: auto 0; padding: 32px 0 5vh; }
  .frame img { height: calc(100svh - 2 * var(--pad)); width: auto; }
}
@media (min-width: 1800px) and (min-height: 1000px) {
  .lead { font-size: 18.5px; }
  .button { height: 56px; font-size: 17px; }
  .facet { height: 58px; font-size: 16px; }
  .facet-glyph { width: 40px; height: 40px; border-radius: 12px; }
}
@media (min-width: 861px) and (max-height: 760px) {
  .pitch h1 { font-size: clamp(34px, 2.9vw, 46px); }
  .lead { margin-top: 16px; font-size: 15.5px; }
  .cta { margin-top: 24px; }
  .facet { height: 48px; }
  .facet-glyph { width: 32px; height: 32px; border-radius: 10px; }
}

/* A phone or a narrow window: the pitch above the window, and the page may scroll */
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .hero { padding: 4px 0 40px; overflow-x: clip; }
  .side { padding: 0 var(--gutter); }
  .pitch h1 { font-size: clamp(38px, 9.6vw, 52px); }
  .lead { max-width: 36ch; font-size: 17px; }
  .facets { flex-direction: row; flex-wrap: wrap; margin-top: 26px; }
  .facet { height: 48px; padding-right: 16px; }
  .facet-glyph { width: 32px; height: 32px; border-radius: 10px; }
  .frames { margin: 28px 0 0 var(--gutter); }
  .frame img { width: 115vw; height: auto; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .top { height: 60px; }
  .lead { margin-top: 16px; }
  .cta { margin-top: 26px; }
  .frame img { width: 140vw; }
}

/* Arrival: the words rise, the window slides in; nothing moves for a person who asked for stillness */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes arrive { from { opacity: 0; transform: translateX(40px); } }
@media (prefers-reduced-motion: no-preference) {
  .landing .top, .pitch > *, .facets { animation: rise 0.8s var(--ease) both; }
  .pitch h1 { animation-delay: 0.05s; }
  .lead { animation-delay: 0.12s; }
  .cta { animation-delay: 0.19s; }
  .facets { animation-delay: 0.26s; }
  .frames { animation: arrive 1s var(--ease) 0.08s both; }
}
@media (prefers-reduced-motion: reduce) {
  .frame, .facet, .facet-glyph, .button, .top-nav a { transition: none; }
}

/* The versions page */
body:not(.landing) .top { max-width: 1040px; margin: 0 auto; }
.doc {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px var(--gutter) 24px;
}
.doc > h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.028em;
}
.doc > .lead { margin: 18px 0 56px; max-width: 44ch; font-size: 18px; }
.release {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 44px 0 36px;
  border-top: 1px solid var(--line);
}
.release-head { position: sticky; top: 28px; align-self: start; }
.release-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.release-head h2 a { text-decoration: none; }
.release-head h2 a:hover { color: var(--accent); }
.release-head time { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-mute); }
.release-main { min-width: 0; max-width: 68ch; }
.release .get { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0 0 24px; }
.release .get .fine { font-size: 14px; color: var(--ink-mute); }
.release .body { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.release .body > :first-child { margin-top: 0; }
.release .body p { margin: 0 0 14px; }
.release .body h3 {
  margin: 30px 0 10px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.release .body ol, .release .body ul { margin: 0 0 14px; padding-left: 1.6em; }
.release .body li { margin: 8px 0; padding-left: 0.2em; }
.release .body li::marker { color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.release .body strong { font-weight: 600; color: var(--ink); }
.install {
  margin: 24px 0 0;
  padding: 36px 40px 30px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}
.install h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.install ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.install li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 48px;
  line-height: 1.55;
  color: var(--ink-soft);
  counter-increment: step;
}
.install li + li { border-top: 1px solid var(--line-soft); }
.install li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tile);
  color: var(--ink);
  font: 600 14px/1 var(--sans);
}
.install strong { color: var(--ink); font-weight: 600; }
.foot {
  display: flex;
  gap: 24px;
  max-width: 1040px;
  margin: 56px auto 0;
  padding: 28px var(--gutter) 48px;
  font-size: 14px;
  color: var(--ink-mute);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .doc { padding-top: 16px; }
  .doc > .lead { margin-bottom: 40px; font-size: 17px; }
  .release { grid-template-columns: 1fr; gap: 18px; padding: 36px 0 24px; }
  .release-head { position: static; display: flex; align-items: baseline; gap: 14px; }
  .release-head h2 { font-size: 32px; }
  .release-head time { margin: 0; }
  .install { padding: 28px 22px 22px; border-radius: 20px; }
}
