/* martian-mono-latin-ext-standard-normal */
@font-face {
  font-family: 'Martian Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url(assets/fonts/martian-mono-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* martian-mono-latin-standard-normal */
@font-face {
  font-family: 'Martian Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url(assets/fonts/martian-mono-latin-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Plain typography, archive information, and real app screenshots. */
:root {
  --paper: #f3f3ef;
  --ink: #161615;
  --muted: #5c5c55;
  --rule: #8d8d85;
  --link: #1c3bd4;
  --sel-bg: #1c3bd4;
  --sel-ink: #ffffff;
  --screen-bg: #0e0f10;

  --mono: 'Martian Mono Variable', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.2vw, 64px);
  --section-gap: clamp(72px, 13vh, 160px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111210;
    --ink: #e8e8e2;
    --muted: #a2a299;
    --rule: #6c6c65;
    --link: #93a6ff;
    --sel-bg: #2c49e2;
    --screen-bg: #050506;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
  scrollbar-color: var(--rule) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  font-stretch: 87.5%;
  font-weight: 400;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  caret-color: var(--link);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--sel-bg);
  color: var(--sel-ink);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

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

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.page {
  padding-inline: var(--gutter);
  max-width: 1600px;
  margin-inline: auto;
}

.masthead {
  padding-top: clamp(40px, 7vh, 96px);
}

.masthead__title {
  font-size: clamp(1.75rem, 6vw, 5.75rem);
  font-stretch: 112.5%;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.masthead__dek {
  margin-top: clamp(20px, 3.2vh, 36px);
  font-size: clamp(1.125rem, 2.05vw, 1.875rem);
  font-stretch: 100%;
  font-weight: 560;
  line-height: 1.38;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.masthead__free {
  font-weight: 400;
}

.fields {
  display: grid;
  grid-template-columns: 9ch minmax(0, 1fr);
  column-gap: 2ch;
  row-gap: 0.5em;
  margin-top: clamp(28px, 4.6vh, 56px);
  font-size: clamp(1rem, 1.22vw, 1.1875rem);
  line-height: 1.5;
}

.fields dd {
  max-width: 66ch;
}

.fields dt {
  color: var(--muted);
}

.install {
  display: inline-block;
}

.section-heading {
  margin-bottom: 1.4rem;
  font-size: clamp(1.25rem, 1.75vw, 1.625rem);
  font-stretch: 100%;
  font-weight: 700;
  line-height: 1.2;
}

.screenshots {
  padding-top: clamp(56px, 8.5vh, 112px);
}

.screenshots__intro {
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.9375rem;
}

.screenshots__list {
  display: grid;
  gap: 56px;
  list-style: none;
  padding: 0;
  margin-top: clamp(24px, 3.2vh, 40px);
}

.screenshot {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.screenshot__title {
  font-size: clamp(1.25rem, 1.95vw, 1.75rem);
  font-stretch: 100%;
  font-weight: 720;
  line-height: 1.3;
}

.screenshot__note {
  max-width: 36ch;
  margin-top: 0.7em;
  font-size: 1rem;
  line-height: 1.6;
}

.screenshot__image {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--screen-bg);
}

.screenshot__image--phone {
  max-width: 320px;
  aspect-ratio: auto 804 / 1748;
  outline: 1px solid var(--rule);
}

.screenshot__gallery {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.screenshot__gallery figure {
  min-width: 0;
  margin: 0;
}

.screenshot__gallery a {
  display: block;
}

.screenshot__gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.screenshot__gallery--phone {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.screenshot__gallery--phone figure {
  width: 100%;
  max-width: 320px;
}

@media (min-width: 1200px) {
  .screenshot {
    grid-template-columns: minmax(30ch, 36ch) minmax(0, 1fr);
    column-gap: clamp(40px, 4.5vw, 88px);
  }
}

.notes,
.get-it {
  padding-top: var(--section-gap);
}

.notes__list,
.get-it__steps {
  max-width: 70ch;
  padding-left: 2ch;
  font-size: 1.0625rem;
}

.notes__list li + li {
  margin-top: 0.85em;
}

.get-it__steps li + li {
  margin-top: 0.6em;
}

.footer {
  padding-block: var(--section-gap) 40px;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .screenshot__gallery--phone {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .fields {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .fields dd + dt {
    margin-top: 0.9em;
  }
}

.fields__platform + .fields__platform { margin-top: 0.65em; }
.install__platform { margin-bottom: 1rem; font-size: 1.125rem; }
.install__platform:not(:first-of-type) { margin-top: 2.5rem; }
.install__status { max-width: 66ch; margin-bottom: 1.25rem; }
.footer p + p { margin-top: 0.6em; }
