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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  /* A tilted print's corner never scrolls the page sideways */
  overflow-x: hidden;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-heading);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Smaller on a phone, up to the token's size on a wide screen */
h1 {
  font-size: clamp(2.5rem, 10vw, var(--text-h1));
}

h2 {
  font-size: clamp(1.625rem, 6vw, var(--text-h2));
}

h3 {
  font-size: var(--text-h3);
  letter-spacing: -0.02em;
}

p {
  max-width: var(--measure);
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

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

.small {
  color: var(--color-muted);
  font-size: var(--text-small);
}

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

/* The top bar and the footer: a name and a few quiet links */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-gap);
  padding-block: 24px;
  font-size: var(--text-small);
}

.name {
  color: var(--color-fg);
  font-weight: 700;
  text-decoration: none;
}

.links {
  display: flex;
  gap: 20px;
}

.name,
.links a {
  white-space: nowrap;
}

/* On a phone the header keeps the three ways to reach Tom, and drops the jumps down the page */
@media (max-width: 560px) {
  .jump {
    display: none;
  }
}

.links a {
  color: var(--color-muted);
  text-decoration: none;
}

.links a:hover {
  color: var(--color-fg);
}

/* The intro: who Tom is, and the one thing to do */
.intro {
  display: grid;
  gap: var(--space-gap);
  justify-items: start;
  padding-block: calc(var(--space-section) * 0.75) var(--space-section);
}

.photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-surface);
}

/* The hand waves a few times, rests, then waves again, turning from the wrist */
.wave {
  display: inline-block;
  transform-origin: 70% 75%;
  animation: wave 2.6s ease-in-out infinite;
}

@keyframes wave {
  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30% {
    transform: rotate(16deg);
  }

  20%,
  40% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(12deg);
  }
}

.intro .lead {
  font-size: calc(var(--text-body) * 1.15);
}

/* The ways to reach Tom, each with its icon */
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--space-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacts a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.contacts a:hover {
  color: var(--color-accent);
}

.contacts svg {
  width: 20px;
  height: 20px;
  transition: transform 0.15s ease;
}

.contacts a:hover svg {
  transform: translateY(-2px);
}

/* The page's own button */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-accent-fg);
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.button span {
  transition: transform 0.15s ease;
}

@media (hover: hover) {
  .button:hover span {
    transform: translateX(3px);
  }
}

.button:active {
  transform: scale(0.98);
}

/*
 * The two projects: one loud tile each, in the project's own colours. Those
 * colours belong to the projects, so they're fixed, not this page's tokens.
 */
.projects {
  display: grid;
  gap: var(--space-gap);
  align-items: start;
}

@media (min-width: 900px) {
  .projects {
    grid-template-columns: 1fr 1fr;
  }
}

.tile {
  display: grid;
  gap: var(--space-gap);
  justify-items: start;
  padding: clamp(20px, 5vw, 40px);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--tile);
  color: var(--on-tile);
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .tile:hover {
    transform: translateY(-4px);
  }
}

.tile[data-project="uni-picker"] {
  --tile: #ffd23f;
  --on-tile: #17202e;
  --tile-button: #17202e;
  --on-tile-button: #ffffff;
}

.tile[data-project="style-dial"] {
  --tile: #5b3df0;
  --on-tile: #ffffff;
  --tile-button: #ffffff;
  --on-tile-button: #3a1fc4;
}

.tag {
  padding: 3px 12px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  font-size: var(--text-small);
  font-weight: 700;
}

.tile .button {
  background: var(--tile-button);
  color: var(--on-tile-button);
}

.tile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.tile-links a:not(.button) {
  font-weight: 600;
  text-underline-offset: 0.25em;
}

.tile :focus-visible {
  outline-color: var(--on-tile);
}

.tile .phone,
.dial {
  justify-self: center;
  margin-top: 8px;
}

/*
 * The Style Dial panel, drawn in code. Like the tiles, its colours and type
 * are the project's own, so they're fixed, not this page's tokens.
 */
.dial {
  --dial-text: #1c1c1f;
  --dial-muted: #66666c;
  --dial-line: #e7e7ea;
  --dial-surface: #f0f0f2;
  --dial-blue: #2b5fcf;

  /* The real panel's own width, so everything in it is life-size */
  width: min(100%, 372px);
  overflow: hidden;
  container-type: inline-size;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgb(20 10 80 / 0.35);
  color: var(--dial-text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

.dial-top,
.dial-tabs,
.dial-versions,
.dial-foot {
  display: flex;
  align-items: center;
}

.dial-top {
  gap: 12px;
  padding: 11px 13px 0;
}

.dial-versions,
.dial-tabs {
  padding: 2px;
  border-radius: 9px;
  background: var(--dial-surface);
  color: #505056;
}

.dial-versions span,
.dial-tabs span {
  position: relative;
  padding: 3px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    scale 0.15s ease;
}

.dial-versions .on,
.dial-tabs .on {
  border-color: #dadade;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  color: var(--dial-text);
}

.dial-versions .on {
  padding-inline: 17px;
}

/* The dot that marks something changed: on version A, and beside a changed row's name */
.dial-versions i,
.dial-row.changed .dial-name::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dial-blue);
}

.dial-versions i {
  position: absolute;
  top: 3px;
  right: 4px;
}

.dial-sign {
  color: #3a3a3f;
  font-size: 22px;
  font-weight: 200;
  line-height: 1;
}

.dial-sign:last-child {
  margin-left: auto;
}

.dial-tabs {
  margin: 10px 13px 12px;
  font-weight: 500;
}

.dial-tabs span {
  flex: 1 1 0;
  padding-inline: 4px;
  text-align: center;
}

.dial-tabs b {
  display: inline-block;
  min-width: 17px;
  margin-left: 2px;
  border-radius: 9px;
  background: #fbe3d2;
  color: #b4521a;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
}

.dial-rows {
  display: grid;
  gap: 14px;
  padding: 12px 13px 2px 14px;
}

/* The three tabs' contents share one space. Controls sets its height; the other two lie over it */
.dial-views {
  position: relative;
  border-block: 1px solid var(--dial-line);
}

.dial-pane {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: hidden;
  padding: 8px;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s;
}

.dial[data-tab="checks"] [data-pane="checks"],
.dial[data-tab="suggestions"] [data-pane="suggestions"] {
  opacity: 1;
  visibility: visible;
}

.dial-check,
.dial-idea {
  display: grid;
  padding: 12px 11px 12px 13px;
  border: 1px solid #e2e2e6;
  border-radius: 10px;
}

.dial-check {
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.dial-check svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #a4501c;
}

.dial-idea {
  gap: 5px;
  justify-items: start;
  color: var(--dial-muted);
  line-height: 1.4;
}

.dial-idea b {
  color: var(--dial-text);
  font-size: 14.5px;
  font-weight: 600;
}

.dial-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dial-chips i {
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--dial-surface);
  font-size: 13px;
  font-style: normal;
}

.dial-button {
  padding: 4px 11px;
  border-radius: 7px;
  background: #ebebed;
  color: var(--dial-text);
  font-weight: 500;
  transition:
    background 0.15s ease,
    scale 0.15s ease;
}

.dial-idea .dial-button {
  margin-top: 5px;
}

/* A tab or button being pressed, as if someone had clicked it */
.dial .pressed {
  background: #d9d9de;
  scale: 0.95;
}

.dial-group {
  margin-bottom: -6px;
  color: var(--dial-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dial-group::before {
  display: inline-block;
  margin-right: 8px;
  border: 4px solid transparent;
  border-top: 6px solid currentColor;
  border-bottom: 0;
  vertical-align: 1px;
  content: "";
}

.dial-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px auto;
  gap: 4px 12px;
  align-items: center;
}

.dial-name {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.dial-row.changed .dial-name::after {
  content: "";
}

.dial-px {
  color: var(--dial-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.dial-reset {
  display: grid;
  width: 12px;
  height: 24px;
  color: var(--dial-muted);
  visibility: hidden;
  place-items: center;
}

.dial-row.changed .dial-reset {
  visibility: visible;
}

.dial-reset svg {
  width: 13px;
  height: 13px;
}

.dial-rem {
  width: 96px;
  padding: 3px 8px;
  white-space: nowrap;
  border: 1px solid #dadade;
  border-radius: 7px;
  color: var(--dial-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.dial-rem b {
  color: var(--dial-text);
  font-size: 14px;
  font-weight: 400;
}

/* The slider: a thin track, filled in blue as far as the handle. --f is how far along, from 0 to 1 */
.dial-slide {
  position: relative;
  grid-column: 1 / -1;
  height: 20px;
}

.dial-slide::before {
  position: absolute;
  inset: 8px 0;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--dial-blue) calc((100% - 20px) * var(--f) + 10px),
    var(--dial-line) 0
  );
  content: "";
}

.dial-slide i {
  position: absolute;
  left: calc((100% - 20px) * var(--f));
  width: 20px;
  height: 20px;
  border: 1px solid #c4c4ca;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
  transition: box-shadow 0.2s ease;
}

/* The handle being moved, as if someone had hold of it */
.dial-row.held .dial-slide i {
  box-shadow:
    0 1px 3px rgb(0 0 0 / 0.18),
    0 0 0 5px rgb(43 95 207 / 0.18);
}

.dial-foot {
  gap: 12px;
  padding: 10px 11px 9px 14px;
  color: #45454a;
}

.dial-foot svg {
  width: 18px;
  height: 18px;
}

.dial-foot .off {
  opacity: 0.3;
}

.dial-copy {
  margin-left: auto;
  padding: 5px 16px;
  border-radius: 8px;
  white-space: nowrap;
  background: var(--dial-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
}

/* On a phone the panel is narrower than life, so its rows close up to fit */
@container (max-width: 340px) {
  .dial-row {
    column-gap: 6px;
  }

  .dial-rem {
    width: 86px;
    padding-inline: 6px;
  }

  .dial-tabs span {
    flex: 1 1 auto;
  }
}

@container (max-width: 290px) {
  .dial-tabs,
  .dial-px {
    font-size: 12px;
  }

  .dial-tabs span {
    padding-inline: 2px;
  }

  .dial-row {
    column-gap: 4px;
  }

  .dial-name {
    gap: 4px;
    font-size: 13px;
  }

  .dial-rem {
    width: 70px;
    padding-inline: 5px;
    font-size: 11px;
  }

  .dial-rem b {
    font-size: 12px;
  }

  .dial-copy {
    padding-inline: 12px;
    font-size: 14px;
  }
}

/* How Tom works: his tools as a list */
.work {
  display: grid;
  gap: var(--space-gap);
  padding-top: var(--space-section);
}

.kit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
  gap: var(--space-gap) calc(var(--space-gap) * 2);
  align-items: start;
}

.kit > div {
  display: grid;
  gap: calc(var(--space-gap) * 0.5);
}

.tools {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tools > li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-block: 10px;
  border-top: 1px solid var(--color-surface);
}

/* Each tool's own logo, whatever shape it came in */
.tool-icon {
  width: 40px;
  height: 40px;
  /* An app icon's own rounding, so a square logo matches the ones that came rounded */
  border-radius: 9px;
  object-fit: cover;
}

.tool-words {
  display: grid;
}

/* Tucked under Claude Code: closed until someone wants to know */
.more summary {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  color: var(--color-accent);
  font-size: var(--text-small);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.more summary::after {
  content: "+";
  font-size: 1.2em;
  line-height: 1;
}

.more[open] summary::after {
  content: "−";
}

.rules {
  display: grid;
  gap: 12px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 0;
  border: 0;
  counter-increment: rule;
}

.rules li::before {
  grid-row: span 2;
  color: var(--color-accent);
  font-weight: 700;
  content: counter(rule);
}

/* The Blender renders, in columns, each at its own shape */
.design {
  display: grid;
  gap: var(--space-gap);
  padding-block: var(--space-section);
}

.scenes {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: calc(var(--space-gap) * 2) var(--space-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* Without this the prints' full size stretches the column past the screen */
  min-width: 0;
  gap: 8px;
  align-content: start;
}

/* Each scene's pictures lie like prints dropped on a table, overlapping and a little askew */
.prints {
  display: flex;
  padding: 14px 6px 22px;
}

.print {
  position: relative;
  /* The same size whether a scene has two prints or three */
  flex: 0 1 38%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 5px solid var(--color-bg);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow:
    0 1px 3px rgb(17 19 24 / 0.2),
    0 12px 28px rgb(17 19 24 / 0.16);
  cursor: zoom-in;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3),
    rotate 0.3s ease;
}

.print + .print {
  margin-left: -7%;
}

.print:nth-child(3n + 1) {
  rotate: -4deg;
}

.print:nth-child(3n + 2) {
  rotate: 3deg;
  translate: 0 10px;
}

.print:nth-child(3n + 3) {
  rotate: -2deg;
  translate: 0 -4px;
}

.print img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Picked up: the print straightens, lifts over the others and grows */
@media (hover: hover) {
  .print:hover {
    z-index: 1;
    rotate: 0deg;
    transform: scale(1.14);
  }
}

.print:focus-visible {
  z-index: 1;
  rotate: 0deg;
  transform: scale(1.14);
}

.print:active {
  transform: scale(1.06);
}

/* The animation: wide, with its name and a way to pause it underneath */
.film {
  margin: 0;
}

.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #0b0c0e;
  object-fit: cover;
}

figure.film {
  display: grid;
  /* Wide, but not so wide that a dark film outweighs the rest of the page */
  max-width: 760px;
  gap: 12px;
}

.film figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-gap);
}

figcaption .film-pause {
  min-width: 84px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--color-fg);
  border-radius: var(--radius);
  background: none;
  color: var(--color-fg);
  font: inherit;
  font-size: var(--text-small);
  font-weight: 700;
  cursor: pointer;
}

/* The larger view. Dark behind the picture whatever the page's colours, so its colours are fixed */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: rgb(12 14 18 / 0.92);
  color: #ffffff;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.lightbox::backdrop {
  background: rgb(12 14 18 / 0.6);
}

.lightbox figure {
  display: grid;
  gap: 12px;
  justify-items: center;
  min-width: 0;
  margin: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 96px);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  animation: arrive 0.25s ease-out;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

.lightbox figcaption {
  font-size: var(--text-small);
}

.lightbox button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  color: #ffffff;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.lightbox button:hover {
  background: rgb(255 255 255 / 0.28);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

/* On a phone the arrows sit under the picture, so it gets the full width */
@media (max-width: 600px) {
  .lightbox[open] {
    grid-template-columns: 1fr;
  }

  .lightbox img {
    max-height: calc(100dvh - 190px);
  }

  .lightbox-step {
    position: absolute;
    bottom: 20px;
    left: 20px;
  }

  .lightbox-step[data-do="on"] {
    right: 20px;
    left: auto;
  }
}

.lightbox :focus-visible {
  outline-color: #ffffff;
}

footer {
  border-top: 1px solid var(--color-surface);
}

footer .links a {
  color: var(--color-accent);
  font-weight: 600;
  text-underline-offset: 0.25em;
}

/*
 * The demo: a phone showing Uni Picker. It copies the real product's light
 * screen, so its colours are Uni Picker's own and fixed, not this page's tokens.
 */
.phone {
  --up-text: #17202e;
  --up-muted: #586274;
  --up-line: #e3e7ee;
  --up-surface: #f3f5f8;
  --up-pop: #ffd23f;

  /* The same width and corners as the Style Dial panel beside it */
  width: min(100%, 372px);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgb(60 40 0 / 0.35);
}

.screen {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 560px;
  overflow: hidden;
  padding: 18px 16px 16px;
  border-radius: inherit;
  background: #ffffff;
  color: var(--up-text);
  font-size: 16px;
  line-height: 1.5;
}

.brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.answers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--up-line);
  color: var(--up-muted);
  font-size: 13px;
}

.answers b {
  padding: 2px 9px;
  border-radius: var(--radius);
  background: var(--up-surface);
  color: var(--up-text);
}

.stack {
  display: grid;
  gap: 10px;
  align-content: start;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--up-line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow:
    0 1px 2px rgb(23 32 46 / 0.05),
    0 4px 14px rgb(23 32 46 / 0.06);
  transition:
    rotate 0.45s ease,
    margin 0.45s ease,
    opacity 0.3s ease;
}

.card:nth-child(1) {
  rotate: -1.5deg;
}

.card:nth-child(2) {
  margin-left: 12px;
  opacity: 0.75;
}

.card:nth-child(3) {
  margin-right: 6px;
  opacity: 0.5;
  rotate: 1.2deg;
}

.card[data-leaving="save"] {
  animation: save 1s 0.58s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.card[data-leaving="skip"] {
  animation: skip 1s 0.58s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes save {
  to {
    opacity: 0;
    transform: translateX(115%) rotate(14deg);
  }
}

@keyframes skip {
  to {
    opacity: 0;
    transform: translateX(-115%) rotate(-14deg);
  }
}

.crest {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: hsl(var(--hue) 55% 90%);
  color: hsl(var(--hue) 55% 26%);
  font-size: 12px;
  font-weight: 700;
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 4px 8px;
}

.university {
  display: block;
  font-weight: 700;
  line-height: 1.25;
}

.course {
  color: var(--up-muted);
  font-size: 14px;
}

.why {
  grid-column: 2;
  max-width: none;
  color: var(--up-muted);
  font-size: 13px;
}

.why b {
  color: var(--up-text);
}

.band {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: var(--band-surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band-fill) 27%, transparent);
  color: var(--band);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.band::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--band-fill);
  content: "";
}

.band[data-band="ambitious"] {
  --band: #870037;
  --band-surface: #fdebed;
  --band-fill: #ff006e;
}

.band[data-band="match"] {
  --band: #7858c3;
  --band-surface: #f0eefd;
  --band-fill: #6b4ab4;
}

.band[data-band="safe"] {
  --band: #003a8a;
  --band-surface: #e8f1fe;
  --band-fill: #3a86ff;
}

/* A heart or a cross, stamped on the card as it leaves */
.stamp {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.2s,
    transform 0.25s;
}

.stamp[data-stamp="save"] {
  left: 14px;
  border: 2px solid var(--up-text);
  background: var(--up-pop);
}

.stamp[data-stamp="skip"] {
  right: 14px;
  background: var(--up-text);
  color: #ffffff;
}

.card[data-leaving="save"] .stamp[data-stamp="save"],
.card[data-leaving="skip"] .stamp[data-stamp="skip"] {
  opacity: 1;
  transform: scale(1) rotate(-8deg);
}

.middle {
  display: grid;
}

/* Shown in the cards' place once every example has been saved or skipped */
.done {
  display: grid;
  gap: 12px;
  align-content: center;
  justify-items: center;
  margin-top: 16px;
  text-align: center;
}

.done strong {
  font-size: 20px;
  line-height: 1.25;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.controls [data-do] {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1.5px solid var(--up-text);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--up-text);
  font-weight: 700;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.controls [data-do="save"] {
  background: var(--up-pop);
  box-shadow: 0 3px 0 var(--up-text);
}

/* A button being pressed, as if someone had tapped it */
.controls .pressed {
  background: var(--up-surface);
  transform: translateY(3px);
}

.controls [data-do="save"].pressed {
  background: #f2c224;
  box-shadow: 0 0 0 var(--up-text);
}

.tally {
  grid-column: 1 / -1;
  max-width: none;
  color: var(--up-muted);
  font-size: 12px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
