@font-face {
  font-family: Inter;
  src: url(/fonts/inter.woff2);
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Mono;
  src: url(/fonts/jetbrains-mono.woff2);
  font-display: swap;
}

:root {
  --bg: #f5f4ef;
  --ink: #1a1b19;
  --sub: #51534f;
  --line: #c7c7bf;
  color-scheme: light;
}

html[data-theme=dark] {
  --bg: #171817;
  --ink: #f4f3ed;
  --sub: #bebfb9;
  --line: #454643;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter,Arial,sans-serif;
}

.shell {
  width: min(1296px,90%);
  margin: auto;
}

a,button {
  color: inherit;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

header {
  border-bottom: 1px solid var(--line);
}

nav,footer,.navlinks,.word,figcaption,.stage-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  height: 80px;
}

.word {
  gap: 10px;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -.055em;
}

.word img {
  width: 32px;
  height: 32px;
}

html[data-theme=dark] .word img {
  filter: invert(1);
}

.navlinks {
  gap: 30px;
  font-size: 14px;
}

button {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 20px;
  background: transparent;
  cursor: pointer;
}

.hero,.chapter {
  display: grid;
  align-items: center;
  gap: clamp(32px,5vw,88px);
}

.hero {
  grid-template-columns: 0.81fr 1.3fr;
  padding: 76px 0 70px;
}

h1,h2 {
  font-family: Georgia,Cambria,serif;
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.048em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(64px,7.3vw,104px);
}

h1 em {
  font-weight: 400;
}

p {
  color: var(--sub);
  margin: 22px 0 0;
  max-width: 43ch;
}

.intro p {
  font-size: clamp(16px,1.25vw,19px);
  max-width: 36ch;
}

.action,.download {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  margin: 28px 8px 0 0;
  padding: 11px 19px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}

[hidden] {
  display: none!important;
}

.stage,figure {
  margin: 0;
}

.stage {
  min-width: 0;
  overflow: hidden;
  background: #272826;
  color: #f5f4ef;
  padding: 22px 0 16px 28px;
  border-radius: 9px;
}

.stage-label,figcaption,.kicker {
  font: 11px/1.5 Mono,monospace;
  letter-spacing: .035em;
}

.stage-label,.stage figcaption {
  padding-right: 24px;
}

.stage-label {
  margin-bottom: 23px;
}

.hero-window {
  border: 1px solid #565753;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  overflow: hidden;
  margin-bottom: 18px;
}

.hero-window img {
  width: 115%;
  height: auto;
  display: block;
}

.stage figcaption {
  color: #d4d5cf;
}

.chapter {
  border-top: 1px solid var(--line);
  padding: 62px 0;
  grid-template-columns: .81fr 1.3fr;
}

.kicker {
  display: block;
  margin-bottom: 15px;
  color: var(--sub);
}

h2 {
  font-size: clamp(47px,4.6vw,72px);
}

.copy p+p {
  margin-top: 14px;
}

.detail {
  min-width: 0;
  overflow: hidden;
  padding: 28px;
  border-radius: 6px;
}

.detail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.detail figcaption {
  margin-top: 16px;
}

.paper {
  background: #deded8;
  color: #30312e;
}

.dark {
  background: #242523;
  color: #f5f4ef;
  padding: clamp(26px,4vw,70px) 20px;
}

.dark figcaption {
  margin-top: 30px;
}

.reverse .copy {
  grid-column: 2;
  grid-row: 1;
}

.reverse .detail {
  grid-column: 1;
  grid-row: 1;
}

.reverse {
  grid-template-columns: 1.3fr .81fr;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 14px;
}

.skip {
  position: absolute;
  left: -100vw;
}

.skip:focus {
  left: 12px;
  top: 8px;
  background: var(--bg);
  padding: 8px;
  z-index: 2;
}

@media(max-width:760px) {
  nav {
    height: 63px;
  }
  .word {
    font-size: 24px;
  }
  .word img {
    width: 25px;
  }
  .navlinks {
    gap: 13px;
    font-size: 12px;
  }
  .hero,.chapter,.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 0;
  }
  .reverse .copy,.reverse .detail {
    grid-column: auto;
    grid-row: auto;
  }
  .stage {
    padding-left: 16px;
  }
  .hero-window img {
    width: 121%;
  }
  .detail {
    padding: 16px;
  }
  .dark {
    padding: 32px 12px;
  }
  .intro p {
    margin-top: 16px;
  }
  .action {
    margin-top: 20px;
  }
}

/* The same silver wave field, frosted reading surfaces and rim-lit controls as the desktop workspace. */

:root {
  --bg: #dde1e6;
  --ink: #15181d;
  --sub: #363c44;
  --line: #78818c63;
  --field: #c8cdd5;
  --wave: #fff;
  --under: #8995a6;
  --pane: #f9fafbd1;
  --rim: #ffffffd9;
  --shade: #333e502b;
}

html[data-theme=dark] {
  --bg: #10141b;
  --ink: #f5f5f2;
  --sub: #d0d4db;
  --line: #ffffff36;
  --field: #202630;
  --wave: #939fb2;
  --under: #424c60;
  --pane: #10141bd9;
  --rim: #ffffff57;
  --shade: #04060b66;
}

body {
  isolation: isolate;
  background: var(--field);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 76% -40%,transparent 49%,var(--under) 54%,var(--wave) 56%,transparent 59%),
    radial-gradient(ellipse at 10% 128%,transparent 50%,var(--under) 56%,var(--wave) 58%,transparent 63%);
}

header, .hero, .chapter, footer {
  background: var(--pane);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-top-color: var(--rim);
  border-radius: 22px;
  box-shadow: inset 0 1px var(--rim),0 8px 22px var(--shade);
}

header, .hero, .chapter, footer {
  width: min(1400px,96%);
  margin: 16px auto;
}

header nav {
  width: 94%;
}

.hero,.chapter {
  padding: clamp(28px,4vw,62px);
  gap: clamp(24px,3.5vw,54px);
}

footer.shell {
  width: min(1400px,96%);
  padding: 22px 3%;
}

.stage,.detail {
  border: 1px solid var(--line);
  border-top-color: var(--rim);
  border-radius: 17px;
  box-shadow: 0 6px 18px var(--shade);
}

.action,.download,#theme,.navlinks a {
  border-radius: 999px;
  border: 1px solid var(--line);
  border-top-color: var(--rim);
  box-shadow: inset 0 1px var(--rim),0 3px 7px var(--shade);
}

.navlinks {
  gap: 9px;
}

.navlinks a {
  padding: 6px 14px;
  background: var(--pane);
}

.action,.download {
  color: var(--ink);
  background: var(--pane);
}

#theme {
  background: var(--pane);
}

.hero-window img {
  width: 100%;
}

@media(max-width:760px) {
  .hero,.chapter {
    padding: 22px 16px;
  }
  .navlinks a {
    padding: 4px 7px;
  }
  .navlinks {
    gap: 5px;
  }
  header nav {
    width: 94%;
  }
  .hero-window img {
    width: 100%;
  }
}

@media(prefers-reduced-transparency:reduce) {
  body::before {
    display: none;
  }
  header,.hero,.chapter,footer {
    background: var(--bg);
    backdrop-filter: none;
  }
}
