/* Ciscrux promo pages (ciscrux/ in English, ciscrux/zh-Hant/). Black like the screen saver,
   white strokes, the app's hint grey, and a little vellum gold, under a night sky: stars, a slow
   aurora, chapters in Roman numerals, glow instead of frames. Not shared with other apps. */
:root {
  color-scheme: dark;
  --black: #000;
  --ink: #0b0b0d;
  --panel: #141417;
  --line: #26262b;
  --text: #ececec;
  --muted: #a2a2a8;
  --faint: #6d6d73;
  --hint: #616161; /* the app's default hint colour, white at 38% */
  --hint-strong: #9a9a9a;
  --gold: #d9b86c;
  --gold-soft: #f0d9a0;
  /* the four corners of a figure, in "How to read it" and the seconds figure */
  --ones: #e9c46a;
  --tens: #7cb7e8;
  --hundreds: #ee8e8e;
  --thousands: #8fd0a0;
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, "Songti TC", "Noto Serif TC", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--gold-soft);
}

code {
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* The figures' hint digits, like the app's monospaced-digit system font. */
.cx-hint text {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.mark {
  width: 32px;
  height: 32px;
}

.topbar nav {
  display: flex;
  align-items: center;
}

.topbar nav a,
.langs summary {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.topbar nav > a {
  margin-left: 20px;
}

.topbar nav a:hover,
.langs summary:hover,
.langs[open] summary {
  color: var(--text);
}

.langs {
  position: relative;
  margin-left: 20px;
}

.langs summary {
  list-style: none;
  cursor: pointer;
}

.langs summary::-webkit-details-marker {
  display: none;
}

.langs summary::after {
  content: " ▾";
}

.langs ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.langs a {
  display: block;
  padding: 6px 14px;
  border-radius: 6px;
}

.langs a:hover {
  background: var(--line);
}

.langs a[aria-current] {
  color: var(--text);
}

/* Hero: the screen saver itself, live, then the words. */
.hero {
  text-align: center;
}

.screen {
  position: relative;
}

.clock {
  display: block;
  width: 100%;
  height: clamp(220px, 40vw, 540px);
}

.live {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .live::before {
    animation: none;
  }
}

.hero h1 {
  margin: 8px 0 16px;
  font: 600 clamp(2.3rem, 6vw, 4.2rem)/1.1 var(--serif);
  letter-spacing: -0.01em;
}

.hero h1 span,
.closing h2 span {
  color: var(--gold-soft);
}

.pitch {
  max-width: 40rem;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.2rem;
}

.download {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--text);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}

.download:hover {
  background: var(--gold-soft);
}

.fineprint {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.hero .fineprint {
  margin-bottom: 96px;
}

/* Sections */
main {
  counter-reset: chapter;
}

main section {
  position: relative;
  padding: 112px 0;
}

/* Between sections, a gold hairline fading out at both ends. */
main section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(640px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 184, 108, 0.4), transparent);
  transform: translateX(-50%);
}

/* Each chapter numbered the old way. */
.kicker::before {
  counter-increment: chapter;
  content: counter(chapter, upper-roman);
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid rgba(217, 184, 108, 0.45);
  font: 600 1rem/1 var(--serif);
  letter-spacing: 0.04em;
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main h2 {
  margin: 0 0 16px;
  font: 600 clamp(1.9rem, 4vw, 2.8rem)/1.18 var(--serif);
  background: linear-gradient(180deg, #ffffff 25%, var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.intro {
  max-width: 44rem;
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 1.15rem;
}

/* How to read it: a figure with its four corners named around it. */
.reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.corners {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 0 20px;
  padding: 32px 24px;
  background: radial-gradient(closest-side, rgba(217, 184, 108, 0.1), transparent);
}

.corners svg {
  grid-row: 1 / 3;
  grid-column: 2;
  width: clamp(120px, 18vw, 180px);
  height: auto;
  color: var(--text);
}

.place {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.place b {
  font: 600 2.4rem/1 var(--serif);
}

.place span {
  color: var(--muted);
  font-size: 0.9rem;
}

.place.left {
  align-items: flex-end;
  text-align: right;
}

.place.top {
  align-self: start;
}

.place.bottom {
  align-self: end;
}

.place.ones { color: var(--ones); }
.place.tens { color: var(--tens); }
.place.hundreds { color: var(--hundreds); }
.place.thousands { color: var(--thousands); }

.reader label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.reader input {
  width: 100%;
  max-width: 16rem;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: 600 2rem/1.2 var(--serif);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.reader input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.tries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.tries button {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.tries button:hover {
  border-color: var(--gold);
  color: var(--text);
}

.tries b {
  margin-left: 6px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.nine {
  margin-top: 64px;
}

.nine ol {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.nine li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0 12px;
  border-radius: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.3s, filter 0.3s;
}

.nine li:hover {
  background: rgba(217, 184, 108, 0.06);
  filter: drop-shadow(0 0 10px rgba(233, 196, 106, 0.55));
}

.nine svg {
  width: 40%;
  max-width: 44px;
  height: auto;
  color: var(--text);
}

.nine li svg path:not(:first-child) {
  stroke: var(--ones);
}

.note {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 0.95rem;
}

/* The seconds figure */
.seconds {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.seconds-figure {
  padding: 40px 24px 28px;
  background: radial-gradient(closest-side, rgba(217, 184, 108, 0.1), transparent);
  text-align: center;
}

.seconds-figure svg {
  width: min(100%, 300px);
  height: auto;
  color: var(--text);
}

.key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.key li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 3px;
  background: currentColor;
  vertical-align: 0;
}

.key .s { color: var(--text); }
.key .w { color: var(--hundreds); }
.key .m { color: var(--thousands); }

.legend + .legend {
  margin-top: 36px;
}

.legend h3 span {
  margin-left: 8px;
  color: var(--faint);
  font-size: 0.9rem;
  font-weight: 400;
}

.legend.weekday h3 { color: var(--hundreds); }
.legend.moon h3 { color: var(--thousands); }

.legend ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.legend.weekday ol {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.legend.moon ol {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.legend li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--faint);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.legend li svg {
  width: 26px;
  height: 26px;
  color: var(--hint-strong);
}

.legend li.now {
  border-color: currentColor;
  box-shadow: 0 0 22px -6px currentColor, inset 0 0 16px -8px currentColor;
}

.legend.weekday li.now { color: var(--hundreds); }
.legend.moon li.now { color: var(--thousands); }

.legend li.now svg {
  color: currentColor;
}

/* Make it yours: the Options window next to a live preview. */
.playground {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.preview {
  position: sticky;
  top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 90px -25px rgba(217, 184, 108, 0.45);
}

.preview svg {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.options {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 20, 23, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

.options .title {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.options .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.options .row.stack {
  display: block;
}

.options input[type="range"] {
  width: 100%;
  margin: 8px 0 0;
  accent-color: var(--gold);
}

.options .check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.options input[type="checkbox"] {
  margin: 0;
  accent-color: var(--gold);
}

.options select {
  min-width: 120px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink);
  color: var(--text);
  font: inherit;
}

.options input[type="color"] {
  width: 44px;
  height: 24px;
  padding: 0 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink);
  cursor: pointer;
}

.options button {
  margin-top: 4px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.options button:hover {
  border-color: var(--gold);
}

.options output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* On your Mac: the real thing, recorded, the two turned towards each other. */
.recordings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.recordings figure {
  margin: 0;
}

.recordings video,
.recordings img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--black);
  box-shadow: 0 40px 90px -30px #000, 0 0 80px -25px rgba(217, 184, 108, 0.45);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.recordings figure:first-child video {
  transform: perspective(1600px) rotateY(14deg);
  transform-origin: right center;
}

.recordings figure:last-child video {
  transform: perspective(1600px) rotateY(-14deg);
  transform-origin: left center;
}

.recordings figure:hover video {
  transform: none;
}

.recordings figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.recordings figcaption b {
  color: var(--text);
}

/* The film: a still with a play button; YouTube's player replaces it once pressed. */
.film .video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--black);
  box-shadow: 0 40px 100px -30px #000, 0 0 100px -30px rgba(217, 184, 108, 0.5);
}

.film .video:has(a:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.film .video a,
.film .video img,
.film .video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
}

.film .play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s, background-color 0.2s;
}

.film .play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 30px;
  margin: -15px 0 0 -9px;
  background: var(--text);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: background-color 0.2s;
}

.film .video a:hover .play,
.film .video a:focus-visible .play {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.8);
}

.film .video a:hover .play::before,
.film .video a:focus-visible .play::before {
  background: var(--gold-soft);
}

.film .caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Install */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

/* No cards: each step under a gold line. */
.steps li {
  padding: 26px 8px 0 0;
  border-top: 1px solid rgba(217, 184, 108, 0.4);
}

.steps h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 0.85rem;
  vertical-align: 2px;
  box-shadow: 0 0 16px rgba(217, 184, 108, 0.7);
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.steps .path {
  margin-top: 14px;
  color: var(--faint);
  line-height: 2.2;
}

.path span {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--line);
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
}

.where {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.where img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.where p {
  margin: 0 0 12px;
  color: var(--muted);
}

.where p strong {
  color: var(--text);
}

/* Privacy and price */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* No cards here either: an emblem in gold light over a gold line. */
.card {
  padding: 30px 8px 0 0;
  border-top: 1px solid rgba(217, 184, 108, 0.4);
}

.card svg {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(217, 184, 108, 0.65));
}

.card h3 {
  margin: 0 0 10px;
  font: 600 1.5rem/1.25 var(--serif);
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Why the name: the Southern Cross. */
.name {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 48px;
  align-items: center;
}

.name p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.name em {
  color: var(--text);
}

.crux {
  width: min(100%, 220px);
  height: auto;
  justify-self: center;
}

.crux line {
  stroke: rgba(217, 184, 108, 0.35);
  stroke-width: 1.2;
}

.crux circle {
  fill: #fff;
}

.crux .glow {
  fill: var(--gold);
  opacity: 0.18;
  animation: twinkle 3.6s ease-in-out infinite;
}

/* The stars of the Cross twinkle, each in its own time. */
.crux .glow:nth-of-type(3) { animation-delay: -1.1s; }
.crux .glow:nth-of-type(5) { animation-delay: -2.3s; }
.crux .glow:nth-of-type(7) { animation-delay: -0.6s; }

@keyframes twinkle {
  50% { opacity: 0.42; transform: scale(1.35); }
}

.crux .glow {
  transform-box: fill-box;
  transform-origin: center;
}

.crux text {
  fill: var(--faint);
  font: 9px -apple-system, BlinkMacSystemFont, sans-serif;
}

.closing {
  text-align: center;
}

.closing .mark {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 28px rgba(217, 184, 108, 0.55));
}

.closing h2 {
  margin-top: 16px;
}

.closing .intro {
  margin: 0 auto 28px;
}

footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

footer nav a {
  display: inline-block;
  margin-right: 20px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

footer nav a:hover {
  color: var(--text);
}

/* The Homebrew command: a terminal-style box with a copy button that turns into a tick. */
.brew-cmd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.brew-cmd.install {
  align-items: flex-start;
  margin-top: 40px;
}

.brew-cmd p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 7px 7px 7px 20px;
  border: 1px solid rgba(217, 184, 108, 0.45);
  border-radius: 12px;
  background: rgba(8, 8, 12, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 44px -12px rgba(217, 184, 108, 0.65);
}

.cmd code {
  overflow-x: auto;
  color: #f2f3f5;
  font: 500 0.95rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  scrollbar-width: none;
}

.cmd code span {
  color: rgb(217, 184, 108);
}

.copy {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.copy:hover,
.copy:focus-visible {
  border-color: rgba(217, 184, 108, 0.8);
  color: #fff;
}

.copy svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy .ok,
.copy.done .clip {
  display: none;
}

.copy.done .ok {
  display: block;
}

.copy.done {
  border-color: rgba(217, 184, 108, 0.8);
  background: rgba(217, 184, 108, 0.18);
  color: rgb(217, 184, 108);
}

/* The night sky, behind everything (added by the script). */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(140% 90% at 50% 115%, #160f2b, var(--black) 62%);
}

.sky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Two slow aurora clouds, violet and gold. */
.sky::before,
.sky::after {
  content: "";
  position: absolute;
  width: 75vmax;
  height: 75vmax;
  border-radius: 50%;
  filter: blur(90px);
}

.sky::before {
  top: -42vmax;
  left: -22vmax;
  background: radial-gradient(circle, rgba(110, 80, 240, 0.32), transparent 62%);
  animation: drift 30s ease-in-out infinite alternate;
}

.sky::after {
  top: 35vh;
  right: -40vmax;
  background: radial-gradient(circle, rgba(217, 184, 108, 0.16), transparent 62%);
  animation: drift 38s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  to { transform: translate(14vmax, 10vmax) scale(1.15); }
}

/* A faint gold light behind the live clock. */
.screen::before {
  content: "";
  position: absolute;
  inset: 10% 15%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(217, 184, 108, 0.12), transparent);
}

/* Sections below the fold rise into place the first time they come on screen. */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .sky::before,
  .sky::after,
  .crux .glow {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .recordings video {
    transition: none;
  }
}

@media (max-width: 900px) {
  .reader,
  .seconds,
  .playground,
  .where,
  .name {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview {
    position: static;
  }

  .nine ol {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .legend.moon ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  main section {
    padding: 72px 0;
  }

  .recordings,
  .steps,
  .pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .recordings figure:first-child video,
  .recordings figure:last-child video {
    transform: none;
  }

  .card {
    padding: 28px;
  }

  .film .play {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
  }

  .film .play::before {
    width: 18px;
    height: 20px;
    margin: -10px 0 0 -6px;
  }

  .hero .fineprint {
    margin-bottom: 72px;
  }
}
