:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #2a2124;
  --plum: #3a1c26;
  --violet: #6a48b8;
  --muted: #645b60;
  --rule: #d9d3cc;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  max-width: 1176px;
  margin: auto;
  padding: 0 clamp(22px, 6vw, 80px);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1, h2, p, figure { margin: 0; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-bottom: 1px solid var(--rule);
  font-size: .875rem;
  color: var(--muted);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--plum);
  font: 600 1.75rem/1 Georgia, serif;
  letter-spacing: -.05em;
}

main {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  column-gap: 8%;
  padding-block: clamp(32px, 5vw, 72px);
}

h1 {
  font: normal clamp(3.125rem, 6vw, 5.375rem)/1.02 Georgia, serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}

h1 em { color: var(--violet); }

.introduction p {
  max-width: 43ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.65vw, 1.375rem);
  text-wrap: pretty;
}

.walkthrough {
  width: min(100%, 330px);
  min-width: 0;
  margin-inline: auto;
}

.walkthrough h2 {
  color: var(--plum);
  font: 500 1.35rem/1.2 Georgia, serif;
}

.screens {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.screens figure {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.screens figcaption {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.screens a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  color: var(--violet);
  text-underline-offset: .2em;
}

.screens a:last-child { justify-self: end; }

.screens:focus-visible, .screens :focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: -2px;
}

footer {
  padding: 25px 0 36px;
  border-top: 1px solid var(--rule);
  font-weight: 500;
}

@media (max-width: 720px) {
  main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-weight: 400; font-size: .9375rem; }
footer p + nav { margin-top: 6px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-underline-offset: .2em; }
