/* Their First Counting site styles. Copied from /abcs/site.css (2026-09-22) so the two product
   sites share one visual system; Counting-specific rules are appended at the end. */

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

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f1e6;
  --paper-deep: #f2ead8;
  --paper-warm: #fff6e6;
  --card: #fffdf9;
  --ink: #302824;
  --ink-soft: #685a52;
  --ink-faint: #7b6d63;
  --coral: #d8644f;
  --coral-soft: #f2c4ba;
  --green: #4c936c;
  --green-soft: #d4e8c5;
  --blue: #4e92bc;
  --blue-soft: #d4e7f1;
  --gold: #d4a536;
  --gold-soft: #f7e5a6;
  --lavender: #8a78b0;
  --lavender-soft: #e3d9ed;
  --line: #e6dbc7;
  --shadow-1: 0 1px 2px rgba(64, 48, 30, 0.06), 0 0 0 1px rgba(64, 48, 30, 0.05);
  --shadow-2: 0 2px 4px rgba(64, 48, 30, 0.07), 0 14px 34px -18px rgba(64, 48, 30, 0.28), 0 0 0 1px rgba(64, 48, 30, 0.05);
  --shadow-3: 0 8px 20px rgba(50, 40, 30, 0.12), 0 36px 70px -28px rgba(50, 40, 30, 0.38);
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", Arial, sans-serif;
  --gutter: 20px;
  --wrap: min(1120px, calc(100% - (var(--gutter) * 2)));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  color: var(--ink-soft);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(120, 95, 55, 0.055) 0.48px, transparent 0.58px);
  background-size: 7px 7px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow-2);
  font-weight: 800;
}

.eyebrow {
  margin-bottom: 14px;
  color: #8a5a2b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.1;
  text-transform: uppercase;
}

h1,
h2,
.doc-title {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(46px, 7.4vw, 76px);
  line-height: 0.98;
}

h2,
.doc-title {
  font-size: clamp(32px, 5vw, 49px);
  line-height: 1.05;
}

h1 em,
h2 em {
  color: var(--coral);
  font-style: normal;
}

.lede {
  max-width: 42ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.5vw, 21px);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

.rule {
  width: 88px;
  height: 4px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--gold);
}

.site-head {
  padding: 16px 0 8px;
}

.head-row,
.brand {
  display: flex;
  align-items: center;
}

.head-row {
  justify-content: space-between;
  gap: 16px;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 1px 4px rgba(45, 36, 30, 0.15);
}

.head-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-1);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.12s var(--ease), box-shadow 0.16s;
}

.head-cta:hover,
.badge:hover,
.family-grid a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 74px;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 54px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-copy .lede,
.hero-copy .rule {
  margin-inline: auto;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.badge {
  display: inline-flex;
  min-width: 172px;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform 0.12s var(--ease), box-shadow 0.16s, border-color 0.16s;
}

.badge:hover {
  border-color: var(--ink);
}

.b-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.b-sub {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.b-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
}

.price-note {
  margin: 15px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.price-note b {
  color: var(--ink);
}

.preview-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 10px;
  font-size: 15px;
}

.hero-art {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
}

.poster {
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-3);
}

.poster-main {
  position: relative;
  z-index: 1;
  width: min(100%, 344px);
  margin-inline: auto;
}

.poster-main img {
  width: 100%;
}

.facts {
  padding: 0 0 72px;
}

.fact-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-2);
}

.fact {
  padding: 18px 12px;
  text-align: center;
}

.fact:nth-child(2n) {
  border-left: 1px solid var(--line);
}

.fact:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.fact b {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 38px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.fact span {
  display: block;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 800;
}

.showcase,
.calm,
.privacy,
.download,
.family {
  padding: 64px 0;
}

.showcase {
  overflow: hidden;
  border-radius: 38px 38px 0 0;
  background: var(--paper-deep);
}

.sec-head {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.sec-head .lede {
  max-width: 48ch;
  margin-inline: auto;
}

.screen-shelf {
  display: grid;
  grid-auto-columns: min(74vw, 292px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1);
  padding: 6px var(--gutter) 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screen-shelf::-webkit-scrollbar {
  display: none;
}

.screen-card {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-2);
  scroll-snap-align: center;
}

.screen-card img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: contain;
  background: #f8efd9;
}

.screen-link {
  display: block;
  cursor: zoom-in;
}

.screen-link:focus-visible {
  outline-offset: -4px;
}

.gallery-note {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.screen-card figcaption {
  display: flex;
  min-height: 142px;
  flex-direction: column;
  padding: 17px 18px 19px;
}

.screen-card figcaption span {
  margin-bottom: 5px;
  color: #8a5a2b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.screen-card figcaption b {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.screen-card figcaption small {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.shelf-hint {
  margin: 2px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.shelf-hint span {
  margin-left: 4px;
}

.calm-grid {
  display: grid;
  align-items: center;
  gap: 36px;
}

.calm-copy .lede {
  max-width: 40ch;
}

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

.checks li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

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

.checks > li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.checks b,
.checks small {
  display: block;
}

.checks b {
  color: var(--ink);
  font-size: 16px;
}

.checks small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.privacy {
  padding-top: 0;
}

.privacy-card {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  background: var(--paper-warm);
  box-shadow: var(--shadow-2);
}

.privacy-card h2 {
  font-size: clamp(30px, 4.7vw, 44px);
}

.privacy-card p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
}

.text-link {
  color: #236996;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.download {
  padding-top: 0;
}

.download-card {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(34px, 6vw, 54px) clamp(18px, 5vw, 46px);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow-2);
  text-align: center;
}

.download-card .rule,
.download-card .lede {
  margin-inline: auto;
}

.download-card .lede {
  max-width: 42ch;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 22px;
}

.trust span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.family {
  padding-top: 4px;
}

.family-inner {
  max-width: 700px;
  text-align: center;
}

.family-story {
  max-width: 44ch;
  margin: 0 auto 20px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-wrap: pretty;
}

.family-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.family-grid a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: center;
  padding: 12px 13px;
  border-radius: 15px;
  background: var(--card);
  box-shadow: var(--shadow-1);
  text-align: left;
  text-decoration: none;
  transition: transform 0.12s var(--ease), box-shadow 0.16s;
}

.family-grid img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 1px 3px rgba(45, 36, 30, 0.14);
}

.family-grid b,
.family-grid small {
  display: block;
}

.family-grid b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.family-grid small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 600;
}

.site-foot {
  padding: 28px 0 34px;
}

.foot-row {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 19px;
}

.foot-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 800;
}

.footer-sign {
  margin: 22px 0 7px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.copyright {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 600;
}

/* Support and privacy pages share the same family shell. */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.doc-main {
  padding: 42px 0 72px;
}

.doc-wrap {
  max-width: 820px;
}

.doc-title {
  margin-bottom: 26px;
}

.doc {
  padding: clamp(24px, 5vw, 46px);
  border-radius: 25px;
  background: var(--card);
  box-shadow: var(--shadow-2);
}

.doc h2 {
  margin: 2em 0 0.55em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.2;
}

.doc h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc h3 {
  margin: 1.5em 0 0.4em;
  color: var(--ink);
  font-size: 19px;
}

.doc p,
.doc ul {
  margin-bottom: 1em;
}

.doc strong {
  color: var(--ink);
}

.doc a {
  color: #236996;
  font-weight: 800;
}

.doc code {
  overflow-wrap: anywhere;
  font-family: inherit;
  font-weight: 800;
}

a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--ink) !important;
}

@media (min-width: 640px) {
  .fact-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .fact:nth-child(n + 2) {
    border-left: 1px solid var(--line);
  }

  .fact:nth-child(n + 3) {
    border-top: 0;
  }

  .family-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .family-grid li:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 5px);
    margin-inline: auto;
  }
}

@media (min-width: 760px) {
  .screen-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    gap: 24px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .shelf-hint {
    display: none;
  }

  .privacy-card {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 52px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 32px 0 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.07fr) minmax(320px, 0.93fr);
    gap: 80px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy .lede,
  .hero-copy .rule {
    margin-left: 0;
  }

  .hero-copy .badges {
    justify-content: flex-start;
  }

  .hero-copy .price-note {
    margin-left: 0;
  }

  .hero-art {
    width: min(100%, 380px);
  }

  .poster-main {
    width: min(100%, 300px);
  }

  .showcase,
  .calm,
  .privacy,
  .download,
  .family {
    padding-block: 82px;
  }

  .calm-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 78px;
  }

  .privacy,
  .download,
  .family {
    padding-top: 0;
  }
}

@media (min-width: 1100px) {
  .screen-shelf {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .counting-screens .screen-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 16px;
  }

  .site-head {
    padding-top: 13px;
  }

  .brand {
    gap: 8px;
    font-size: 15.5px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .head-cta {
    padding-inline: 13px;
    font-size: 13px;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-grid {
    gap: 46px;
  }

  .hero-art {
    width: min(88%, 330px);
  }

  .showcase {
    border-radius: 30px 30px 0 0;
  }

  .badge {
    min-width: 0;
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 10px;
  }

  .download-card .badge {
    flex-basis: 100%;
  }

  .family-grid {
    grid-template-columns: 1fr;
  }

  .nav a {
    padding-inline: 8px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .head-row {
    gap: 8px;
  }

  .brand {
    gap: 6px;
    font-size: 14px;
  }

  .brand img {
    width: 26px;
    height: 26px;
  }

  .head-cta {
    padding-inline: 10px;
    white-space: nowrap;
  }

  .badge {
    gap: 7px;
  }

  .b-name {
    font-size: 15px;
    white-space: nowrap;
  }
}

.resources {
  padding: clamp(58px, 8vw, 95px) 0;
  background: var(--paper-deep);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 248px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--card);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.resource-kicker {
  color: #8a5a2b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.resource-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.2;
}

.resource-card > span:not(.resource-kicker) {
  max-width: 50ch;
}

.resource-card b {
  margin-top: auto;
  color: #236996;
  font-size: 15px;
}

@media (max-width: 640px) {
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 0; }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ---- Counting additions ---- */

.play-cta {
  display: inline-flex;
  max-width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  padding: 14px 23px;
  border-radius: 16px;
  color: #fff;
  background: #286657;
  box-shadow: var(--shadow-2);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s var(--ease), box-shadow 0.16s;
}

.play-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-3);
}

.play-cta span {
  flex-shrink: 0;
}

.browser-note {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.store-placeholders {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.store-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px dashed #b9aa96;
  border-radius: 14px;
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.55);
}

.store-placeholder svg {
  flex-shrink: 0;
}

.store-device {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.25;
}

.mobile-note {
  max-width: 40ch;
  margin: 22px auto 0;
  font-size: 15px;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .hero-copy .store-placeholders {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .store-placeholders {
    gap: 10px;
  }

  .store-placeholder {
    flex: 1 1 0;
    gap: 9px;
    justify-content: center;
    padding: 12px 9px;
  }
}

@media (max-width: 360px) {
  .head-row .brand {
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
  }

  .brand img {
    flex-shrink: 0;
  }

  .hero-copy h1 {
    font-size: 38px;
    line-height: 1.05;
  }

  .store-placeholder {
    flex-direction: column;
  }

  .store-placeholder .b-txt {
    text-align: center;
  }

  .store-placeholder .b-sub {
    white-space: nowrap;
  }
}

.hero-mark {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 30px 24px 26px;
}

.hero-mark .mark {
  width: min(100%, 250px);
  border-radius: 22%;
  box-shadow: var(--shadow-2);
}

.mini-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-row img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene-card {
  padding: 20px 16px 22px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-1);
  text-align: center;
}

.scene-card img {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.scene-card b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.scene-card small {
  display: block;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 14px;
  line-height: 1.45;
}

.scene-grid li:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 7px);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scene-grid li:last-child {
    grid-column: auto;
    width: auto;
    margin-inline: 0;
  }
}

@media (min-width: 900px) {
  .scene-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Six siblings (ABCs included), so undo the five-item centering rule and use an even grid. */
@media (min-width: 640px) {
  .family-grid li:last-child {
    grid-column: auto;
    width: auto;
    margin-inline: 0;
  }
}

@media (min-width: 900px) {
  .family-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
