/*
 * Escape the Algorithm - site styles, shared by every page
 *
 * The site is built around one drawing: a ring that is today. Solar noon is
 * at the top, each of the 24 hours has a tick, the hours of daylight are a
 * broader band, a red stroke runs from midnight to now, and a red sun sits
 * where now is. What is left of the ring is what is left of the day. It
 * comes from the extension's blocked pages ("Now" and "Horizon").
 *
 * Around it: thin Barlow Condensed for headings and for anything that is a
 * number, Barlow for text, round ends on anything that can be pressed, and
 * colours that follow the hour. site.js sets data-phase on <html> to dawn,
 * day, dusk, or night from the visitor's local sunrise and sunset; the
 * colours below are the day's, and the other phases override them.
 */

/* ---------- Typefaces (SIL Open Font License, see fonts/Barlow-OFL.txt) ---------- */
@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* The headings and numerals. Held back until the typeface is in: in a
   fallback they would be far wider and then jump. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-200-latin.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: block;
}

/* ---------- Colours ---------- */
:root {
  --paper: #eceeef; /* the page */
  --raise: #e1e4e6; /* panels set into the page */
  --ink: #0d1013; /* text and lines */
  --soft: #4b5259; /* quieter text */
  --line: rgba(13, 16, 19, 0.16); /* hairlines */
  --mark: #f01713; /* the red of the sun: where "now" is */
  --gold: #6b4b00;
  --green: #14602f;
  --red: #a81c16;
  --gutter: clamp(20px, 6vw, 96px);
  --thin: "Barlow Condensed", "Arial Narrow", sans-serif;
  color-scheme: light;
}

:root[data-phase="dawn"] {
  --paper: #f0e4dc;
  --raise: #e6d7cd;
  --ink: #17110e;
  --soft: #5c4c43;
  --line: rgba(23, 17, 14, 0.18);
}

:root[data-phase="dusk"] {
  --paper: #e7cdbb;
  --raise: #dcbfab;
  --ink: #1a120e;
  --soft: #53392d;
  --line: rgba(26, 18, 14, 0.2);
}

:root[data-phase="night"] {
  --paper: #0d1013;
  --raise: #161a1e;
  --ink: #e6e8ea;
  --soft: #9ba3aa;
  --line: rgba(230, 232, 234, 0.16);
  --gold: #e8b84a;
  --green: #5bc97f;
  --red: #ef5a5a;
  color-scheme: dark;
}

/* Without the script nothing sets the phase: follow the device instead */
@media (prefers-color-scheme: dark) {
  :root:not([data-phase]) {
    --paper: #0d1013;
    --raise: #161a1e;
    --ink: #e6e8ea;
    --soft: #9ba3aa;
    --line: rgba(230, 232, 234, 0.16);
    --gold: #e8b84a;
    --green: #5bc97f;
    --red: #ef5a5a;
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The colours turn at sunrise and sunset without a jump. site.js adds the
   class once the page has been drawn, so the first paint does not fade in. */
.page-live body {
  transition: background-color 1.2s ease, color 1.2s ease;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

/* Headings are tall and thin: they take room and stay quiet */
h1,
h2 {
  font-family: var(--thin);
  font-weight: 200;
}

h1 {
  font-size: clamp(60px, 9.4vw, 164px);
  line-height: 0.88;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 0.98;
}

h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

strong {
  font-weight: 500;
  color: var(--ink);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--ink);
}

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

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

.lede {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--soft);
  max-width: 34em;
}

.soft {
  color: var(--soft);
  max-width: 36em;
}

.text-gold {
  color: var(--gold);
  font-weight: 500;
}

.text-green {
  color: var(--green);
  font-weight: 500;
}

.text-red {
  color: var(--red);
  font-weight: 500;
}

/* A link inside running text */
.link,
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.link:hover,
.prose a:hover {
  text-decoration-color: var(--mark);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A section, ruled off from the one above */
.band {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 120px);
}

/* Heading on the left, what it is about on the right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.stack > * + * {
  margin-top: 20px;
}

.band-wide {
  margin-top: clamp(32px, 4vw, 56px);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  /* In line with .wrap, which stops growing at 1440px and sits in the middle */
  padding: 12px max(var(--gutter), calc(50vw - 720px + var(--gutter)));
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.topbar.scrolled {
  border-bottom-color: var(--line);
}

/* The name, written out */
.brand {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  font-size: 15px;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--ink);
}

.topnav svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 720px) {
  .brand {
    font-size: 18px;
  }

  .topnav .wide-only {
    display: none;
  }
}

@media (max-width: 460px) {
  .topnav .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* The narrowest phones have room for the name and the download button only;
   GitHub is still in the footer */
@media (max-width: 380px) {
  .topnav .roomy-only {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  opacity: 0.82;
}

.button img {
  display: block;
  width: 20px;
  height: 20px;
}

.button-quiet {
  color: var(--ink);
  background: transparent;
}

.button-quiet:hover {
  opacity: 1;
  color: var(--paper);
  background: var(--ink);
}

.button-small {
  min-height: 40px;
  padding: 6px 18px;
  font-size: 15px;
}

/* The top bar's link colours would otherwise win */
.topnav a.button {
  color: var(--paper);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fineprint {
  font-size: 14px;
  color: var(--soft);
}

/* ---------- The ring that is today ---------- */
.dial {
  position: relative;
  width: 100%;
  container-type: inline-size;
}

.dial svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Every line keeps its width however large the ring is drawn */
.dial circle,
.dial line {
  fill: none;
  vector-effect: non-scaling-stroke;
}

/* Except the two strokes that go part of the way round. Their lengths are
   in the drawing's own units, which that setting would throw off, so their
   widths are set in those units too: site.js keeps --u at how many of them
   make one pixel. */
.dial .dial-light,
.dial .dial-gone {
  vector-effect: none;
}

/* Ripples going out from the ring, fainter the further they get */
.dial-ripple {
  stroke: var(--ink);
  stroke-width: 1px;
}

.dial-track {
  stroke: var(--ink);
  stroke-opacity: 0.3;
  stroke-width: 1px;
}

/* The hours the sun is up */
.dial-light {
  stroke: var(--ink);
  stroke-opacity: 0.1;
  stroke-width: calc(11px * var(--u, 1));
}

.dial-tick {
  stroke: var(--ink);
  stroke-opacity: 0.45;
  stroke-width: 1px;
}

/* Sunrise and sunset, marked across the ring */
.dial-stub {
  stroke: var(--ink);
  stroke-width: 1px;
}

/* Midnight to now. site.js sets its length; 1697 is once round the ring. */
.dial-gone {
  stroke: var(--mark);
  stroke-width: calc(3px * var(--u, 1));
  stroke-dasharray: 0 1697;
}

.dial-sun {
  transform-origin: 300px 300px;
}

.dial .dial-disc {
  fill: var(--mark);
}

.dial-halo {
  stroke: var(--mark);
  stroke-width: 1.5px;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 6s ease-out infinite;
}

@keyframes halo {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* The once-only moment on arriving: the day so far is drawn round the ring,
   the sun riding the end of the stroke */
.page-live .dial-gone {
  transition: stroke-dasharray 1.8s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.page-live .dial-sun {
  transition: transform 1.8s cubic-bezier(0.3, 0.7, 0.2, 1);
}

/* Inside the ring: the time, and how much of today is left */
.dial-centre {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.clock {
  position: relative;
  display: flex;
}

.clock-digits {
  display: flex;
  font-family: var(--thin);
  font-size: clamp(64px, 12vw, 168px);
  font-size: 29cqw;
  font-weight: 200;
  line-height: 0.82;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* Beside the numerals without pushing them off centre */
.clock-period {
  position: absolute;
  left: 100%;
  bottom: 0.2em;
  margin-left: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--soft);
}

.dial-left {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

/* Under the ring: when the sun rises and sets, and where that is for */
.dial-feet {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

.dial-feet > span {
  display: flex;
  flex-direction: column;
}

.dial-feet > span:nth-child(2) {
  align-self: flex-end;
  text-align: center;
}

.dial-feet > span:last-child {
  text-align: right;
}

.dial-feet b {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* The same ring, small, at the head of the inner pages */
.today-small {
  width: 168px;
}

.dial-small .dial-ripple,
.dial-small .dial-halo,
.dial-small .dial-left,
.dial-small .clock-period {
  display: none;
}

.dial-small .dial-light {
  stroke-width: calc(6px * var(--u, 1));
}

.dial-small .dial-gone {
  stroke-width: calc(2px * var(--u, 1));
}

/* The sun would be a speck at this size */
.dial-small .dial-disc {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.5);
}

/* ---------- Home: the day ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(42vw, 66vh, 560px));
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-top: calc(68px + clamp(28px, 6vh, 72px));
  padding-bottom: clamp(56px, 8vw, 112px);
}

.hero-copy > * + * {
  margin-top: 26px;
}

.hero-copy .actions {
  margin-top: 32px;
}

.hero-copy .fineprint {
  margin-top: 16px;
}

/* Product Hunt's own badge, framed in bronze */
.ph-badge {
  display: inline-block;
  padding: 6px;
  border: 2px solid #cd7f32;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.ph-badge:hover {
  border-color: #e8a45c;
}

.ph-badge img {
  display: block;
  width: 230px;
  height: auto;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: calc(68px + 20px);
  }

  /* The ring first, and no wider than leaves the heading in view */
  .hero .today {
    order: -1;
    max-width: min(100%, 46vh, 420px);
    margin-inline: auto;
  }
}

/* ---------- Home: where it works ---------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.platforms li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.platforms img,
.platforms svg {
  display: block;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  fill: var(--ink);
}

/* The logos are drawn in the day's ink; at night they are turned over */
:root[data-phase="night"] .platforms img {
  filter: invert(0.9);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-phase]) .platforms img {
    filter: invert(0.9);
  }
}

/* ---------- Home: before and after ---------- */
.baf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.baf-panel {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.baf-label {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 2;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
}

/* Left: a feed that keeps coming */
.chaos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 48px 18px 18px;
  animation: chaos-shake 6s ease-in-out infinite;
}

.chaos-card {
  position: relative;
  flex: 0 0 auto;
  height: 56px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  animation: chaos-flicker 2.4s ease-in-out infinite;
}

.chaos-card::before,
.chaos-card::after {
  content: "";
  position: absolute;
  background: var(--soft);
  opacity: 0.3;
  border-radius: 2px;
}

.chaos-card::before {
  left: 8px;
  top: 8px;
  width: 60px;
  height: 40px;
}

.chaos-card::after {
  left: 76px;
  top: 14px;
  height: 9px;
}

.chaos-card.w1::after {
  width: 55%;
}

.chaos-card.w2::after {
  width: 75%;
}

.chaos-card.w3::after {
  width: 40%;
}

.chaos-card.w4::after {
  width: 65%;
}

.chaos-card:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 1.8s;
}

.chaos-card:nth-child(2) {
  animation-delay: 0.2s;
  animation-duration: 2.1s;
}

.chaos-card:nth-child(3) {
  animation-delay: 0.5s;
  animation-duration: 1.6s;
}

.chaos-card:nth-child(4) {
  animation-delay: 0.8s;
  animation-duration: 2.4s;
}

.chaos-card:nth-child(5) {
  animation-delay: 1s;
  animation-duration: 2s;
}

.chaos-card:nth-child(6) {
  animation-delay: 1.3s;
  animation-duration: 1.9s;
}

.chaos-card:nth-child(7) {
  animation-delay: 1.6s;
  animation-duration: 2.2s;
}

.chaos-card:nth-child(8) {
  animation-delay: 1.8s;
  animation-duration: 1.7s;
}

.chaos-card:nth-child(9) {
  animation-delay: 2.1s;
  animation-duration: 2.3s;
}

.chaos-card:nth-child(10) {
  animation-delay: 2.4s;
  animation-duration: 1.9s;
}

@keyframes chaos-flicker {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  55% {
    opacity: 0.85;
  }
  70% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes chaos-shake {
  0%,
  92%,
  100% {
    transform: translateX(0);
  }
  93% {
    transform: translateX(-2px);
  }
  94% {
    transform: translateX(2px);
  }
  95% {
    transform: translateX(-1px);
  }
  96% {
    transform: translateX(1px);
  }
}

.chaos-autoplay {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--mark);
  border-radius: 999px;
  animation: countdown-pulse 3s steps(3, end) infinite;
}

@keyframes countdown-pulse {
  0%,
  33% {
    opacity: 0.5;
  }
  33.1%,
  66% {
    opacity: 0.75;
  }
  66.1%,
  100% {
    opacity: 1;
  }
}

/* Right: nothing asking for you. Still water, with the ripples of one
   stone going out from the corner. */
.calm {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px 22px;
}

.calm-rings {
  position: absolute;
  right: 0;
  top: 0;
  width: 70%;
  height: 100%;
}

.calm-rings circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.calm-rings .calm-stone {
  fill: var(--mark);
  stroke: none;
}

.calm-word {
  position: relative;
  font-family: var(--thin);
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.01em;
}

.calm-sub {
  position: relative;
  margin-top: 14px;
  font-size: 15px;
  color: var(--soft);
  max-width: 22em;
}

.baf-caption {
  margin-top: 24px;
  color: var(--soft);
}

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

  .baf-panel {
    aspect-ratio: 16 / 11;
  }
}

/* ---------- Home: what it does ---------- */
.features {
  padding: 0;
  list-style: none;
}

.features li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.features li:last-child {
  border-bottom: 1px solid var(--line);
}

.features p {
  margin-top: 6px;
  color: var(--soft);
  max-width: 34em;
}

/* The repository's address, set as large as a heading */
.repo {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* ---------- Home: the walkthrough video ---------- */
.demo {
  position: relative;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.demo iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Home: an afternoon, a quarter of the ring ---------- */
.afternoon {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--soft);
}

.afternoon svg {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
}

.afternoon circle {
  fill: none;
  vector-effect: non-scaling-stroke;
}

/* Its length is in the drawing's units, so its width is too (4 is 3px here) */
.afternoon .afternoon-arc {
  vector-effect: none;
  stroke: var(--mark);
  stroke-width: 4px;
}

/* ---------- Inner pages ---------- */
.page {
  padding-top: calc(68px + clamp(40px, 7vw, 96px));
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.page-head-text > * + * {
  margin-top: 22px;
}

@media (max-width: 720px) {
  .page-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-head .today {
    display: none;
  }
}

/* A note about why the page opened, marked the way "now" is */
.notice {
  max-width: 36em;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--mark);
  color: var(--ink);
}

/* Running text: the welcome note, the vision, the privacy policy */
.prose {
  max-width: 38em;
}

.prose > * + * {
  margin-top: 18px;
}

.prose p,
.prose li {
  color: var(--soft);
}

.prose h2 {
  margin-top: 56px;
  font-size: clamp(34px, 3.4vw, 48px);
}

.prose h3 {
  margin-top: 32px;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--soft);
}

/* A person, beside what they have to say */
.person {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.person img {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
}

/* Side by side, so the text does not take the gap that running text gets */
.person.prose > * {
  margin-top: 0;
}

@media (max-width: 520px) {
  .person {
    flex-direction: column;
  }
}

.figure-side {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ---------- Changelog ---------- */
.releases {
  margin: 0;
  padding: 0;
  list-style: none;
}

.release {
  position: relative;
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 68px);
}

/* Each release is a point on the line; the newest is where the sun is */
.release::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.release:first-child::before {
  background: var(--mark);
  border-color: var(--mark);
}

/* The version stays in view while its notes scroll past */
.release-id {
  position: sticky;
  top: 96px;
}

.release-version {
  font-size: clamp(76px, 10.5vw, 152px);
  line-height: 0.8;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.release-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--soft);
}

.release-latest {
  padding: 1px 11px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--mark);
  border-radius: 999px;
}

.release-lead {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 32em;
}

.release-notes h3 {
  margin-top: 30px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--soft);
}

.release-notes > h3:first-child {
  margin-top: 0;
}

.release-notes ul {
  margin-top: 10px;
  padding: 0;
  list-style: none;
  max-width: 36em;
}

.release-notes li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
}

@media (max-width: 860px) {
  .release-id {
    position: static;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  border-top: 1px solid var(--line);
  padding-block: 36px 56px;
  font-size: 15px;
  color: var(--soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.site-footer nav a {
  color: var(--soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer nav a:hover {
  color: var(--ink);
}

.credit {
  flex-basis: 100%;
  font-size: 14px;
}

/* Which colours the pages wear: the hour's, or always light or dark */
.theme-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.theme-switch button {
  min-height: 32px;
  padding: 4px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--soft);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.theme-switch button:hover {
  color: var(--ink);
}

.theme-switch button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
}

/* ---------- Without the script ---------- */
.no-js .today,
.no-js .theme-switch {
  display: none;
}

.no-js .hero {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .actions .button {
    flex: 1 1 100%;
  }

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

  .platforms li {
    padding: 13px 0;
    font-size: 19px;
  }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dial-halo,
  .chaos,
  .chaos-card,
  .chaos-autoplay {
    animation: none;
  }

  .dial-halo {
    opacity: 0;
  }

  .chaos-card {
    opacity: 1;
  }

  .page-live body,
  .page-live .dial-gone,
  .page-live .dial-sun {
    transition: none;
  }
}
