/* Filmcam marketing site.
   The palette and the sticker-card language come from the app's own
   packages/contracts/assets/app_style/app_style.json, so the site and the app read
   as the same product. Fonts are the ones the app bundles (OFL-1.1 / Apache-2.0). */

@font-face {
  font-family: "Shrikhand";
  src: url("assets/fonts/shrikhand.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bungee";
  src: url("assets/fonts/bungee.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #e8517a;
  --pink-deep: #b31f52;
  --pink-soft: #f9a8bf;
  --pink-wash: #ffe9ef;
  --pink-mist: #fff6f9;

  --paper: #fbecd3;
  --card: #fffaf2;
  --white: #ffffff;
  --ink: #2b1a12;
  --ink-muted: #6b4f3f;
  --mustard: #e8a317;
  --orange: #c43e22;
  --teal: #1e766d;

  --font-display: "Shrikhand", "Bungee", "Arial Black", system-ui, sans-serif;
  --font-poster: "Bungee", "Shrikhand", "Arial Black", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --font-film: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --line: 2px solid var(--ink);
  --shadow: 4px 5px 0 var(--ink);
  --shadow-sm: 3px 4px 0 var(--ink);
  --shadow-soft: 0 18px 40px -24px rgba(43, 26, 18, 0.55);
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --measure: 68ch;
  --wrap: 1140px;
}

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

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

body {
  margin: 0;
  background-color: var(--pink-mist);
  background-image:
    radial-gradient(circle, rgba(60, 30, 0, 0.09) 0.6px, transparent 0.7px),
    radial-gradient(1000px 520px at 12% -6%, rgba(249, 168, 191, 0.55), transparent 62%),
    radial-gradient(900px 460px at 92% 4%, rgba(232, 163, 23, 0.22), transparent 60%),
    linear-gradient(180deg, #fff7fa 0%, #ffeef4 45%, #fbecd3 130%);
  background-size:
    3px 3px,
    auto,
    auto,
    auto;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--pink-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.2rem + 4.4vw, 4.1rem);
}

h2 {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
}

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

ul,
ol {
  max-width: var(--measure);
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.5em;
}

strong {
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--card);
  padding: 0.8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 780px;
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  position: relative;
}

.section--tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.section--card {
  background: var(--card);
  border-block: var(--line);
}

/* ---- Small parts ---- */

.eyebrow {
  font-family: var(--font-film);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0 0 0.9rem;
  display: block;
}

.film-caption {
  font-family: var(--font-film);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lede {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  color: var(--ink);
}

.hand {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  line-height: 1.15;
  color: var(--pink-deep);
  display: inline-block;
}

.card {
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 1rem + 1.4vw, 2rem);
}

.card--pink {
  background: var(--pink-wash);
}

.card--mustard {
  background: #ffeec2;
}

.card--teal {
  background: #dff0ee;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  background: var(--card);
  font-family: var(--font-film);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  transform: rotate(-1.5deg);
}

.pill--live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(196, 62, 34, 0.22);
}

.pill--planned {
  background: #ffeec2;
  color: #7a4a06;
}

.pill--pink {
  background: var(--pink);
  color: var(--ink);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

/* minmax(0, 1fr) rather than 1fr: a grid track sized 1fr still has an auto
   minimum, so a wide child (a phone frame, a long word) pushes the whole page
   sideways on a narrow screen. */
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

.split {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.split > * {
  min-width: 0;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .split--wide-left {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
  font-style: italic;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.btn:hover {
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn--primary {
  background: var(--pink);
  color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: var(--card);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--card);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: #efe4e8;
  color: var(--ink-muted);
  border-color: var(--ink-muted);
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.6rem;
}

.note {
  border-left: 4px solid var(--mustard);
  background: #fff6dd;
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  max-width: var(--measure);
}

.note--pink {
  border-left-color: var(--pink);
  background: var(--pink-wash);
}

.note p:last-child {
  margin-bottom: 0;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 249, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 2px solid var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover {
  background: var(--pink-wash);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--pink);
  color: var(--ink);
}

.nav a.nav-cta {
  margin-left: 0.3rem;
  border: var(--line);
  background: var(--ink);
  color: var(--card);
}

.nav a.nav-cta:hover {
  background: var(--pink);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: var(--line);
  background: var(--card);
  border-radius: 12px;
  min-height: 44px;
  min-width: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.8rem var(--gutter) 1.1rem;
    background: var(--pink-mist);
    border-bottom: var(--line);
  }

  .nav[data-open="true"] {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.8rem;
  }

  .nav a.nav-cta {
    margin: 0.4rem 0 0;
    text-align: center;
  }
}

/* ---- Hero ---- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.hero__grid > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero h1 em {
  font-style: normal;
  color: var(--pink-deep);
}

.hero__tagline {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.1rem);
  color: var(--pink-deep);
  margin: 0 0 0.4rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffeec2;
  border: var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  font-family: var(--font-film);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7a4a06;
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow-sm);
}

/* ---- Phone frame with a real screenshot ---- */

.phone {
  position: relative;
  width: min(320px, 82vw);
  margin-inline: auto;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 8px 10px 0 var(--ink);
  transform: rotate(1.6deg);
}

.phone img {
  width: 100%;
  border-radius: 30px;
  border: 2px solid var(--ink);
}

.phone__caption {
  text-align: center;
  margin-top: 1rem;
  transform: rotate(-1.6deg);
}

.phone-pair {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  flex-wrap: wrap;
}

.phone--small {
  width: min(210px, 60vw);
  transform: rotate(-4deg) translateY(10px);
  box-shadow: 6px 7px 0 var(--ink);
}

/* ---- Sticker collage ---- */

.sticker {
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(2px 3px 0 rgba(43, 26, 18, 0.28));
  animation: bob 5s ease-in-out infinite;
}

.sticker--1 {
  width: clamp(44px, 7vw, 66px);
  top: 4%;
  right: 4%;
  transform: rotate(14deg);
}

.sticker--2 {
  width: clamp(36px, 5.5vw, 52px);
  top: 38%;
  right: -2%;
  transform: rotate(-12deg);
  animation-delay: -1.4s;
}

.sticker--3 {
  width: clamp(34px, 5vw, 48px);
  bottom: 12%;
  right: 6%;
  transform: rotate(8deg);
  animation-delay: -2.6s;
}

.sticker--4 {
  width: clamp(30px, 4.5vw, 44px);
  bottom: 6%;
  left: -1%;
  transform: rotate(-16deg);
  animation-delay: -3.4s;
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -9px;
  }
}

/* On a narrow screen the hero text fills the width, so the floating stickers
   would sit on top of it. They come back from 760 pixels. */
@media (max-width: 759px) {
  .sticker {
    display: none;
  }
}

/* ---- Before and after ---- */

.compare {
  position: relative;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--ink);
  touch-action: pan-y;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare__after {
  clip-path: inset(0 0 0 var(--split, 50%));
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 4px;
  background: var(--card);
  box-shadow: 0 0 0 2px var(--ink);
  pointer-events: none;
}

.compare__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
}

.compare__label {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-family: var(--font-film);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.compare__label--before {
  left: 12px;
}

.compare__label--after {
  right: 12px;
  background: var(--pink);
}

.compare__range {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---- Look grid ---- */

.look {
  position: relative;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
}

.look img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.look__body {
  padding: 0.9rem 1.1rem 1.1rem;
}

.look__body h3 {
  margin-bottom: 0.25em;
  font-size: 1.05rem;
}

.look__body p {
  font-size: 0.94rem;
  margin: 0;
  color: var(--ink-muted);
}

/* ---- Feature list with stickers ---- */

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: var(--line);
}

.feature:first-child {
  border-top: 0;
}

.feature img {
  width: 46px;
  height: 46px;
}

.feature h3 {
  margin: 0 0 0.25em;
  font-size: 1.08rem;
}

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

/* ---- Steps ---- */

.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.step {
  position: relative;
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.3rem 1.3rem;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-block;
  font-family: var(--font-film);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--card);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.7rem;
}

.step h3 {
  margin-bottom: 0.3em;
  font-size: 1.06rem;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* ---- Pricing ---- */

.price {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  height: 100%;
}

.price--featured {
  background: var(--pink-wash);
}

.price__tag {
  align-self: flex-start;
  margin-bottom: 0.9rem;
}

.price__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
}

.price__amount {
  font-family: var(--font-poster);
  font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem);
  line-height: 1;
  margin: 0.2rem 0 0.1rem;
}

.price__amount span {
  font-family: var(--font-film);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-top: 0.5rem;
}

.price ul {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  flex: 1;
}

.price li {
  padding: 0.42rem 0 0.42rem 1.6rem;
  position: relative;
  font-size: 0.95rem;
  border-top: 1px dashed rgba(43, 26, 18, 0.22);
}

.price li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--ink);
}

.price .btn {
  margin-top: 1.4rem;
  width: 100%;
}

/* ---- FAQ ---- */

.faq {
  border-top: var(--line);
}

.faq details {
  border-bottom: var(--line);
  padding: 0.2rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 1rem 2.2rem 1rem 0;
  position: relative;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 0.72rem;
  font-family: var(--font-film);
  font-size: 1.4rem;
  color: var(--pink-deep);
}

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

.faq details > div {
  padding-bottom: 1.1rem;
}

.faq details p:last-child {
  margin-bottom: 0;
}

/* ---- Contact ---- */

.contact-card {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .contact-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.mail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card);
  border: var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-film);
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  word-break: break-all;
}

.mail-chip:hover {
  color: var(--ink);
  background: var(--pink-wash);
}

/* ---- Legal pages ---- */

.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: var(--line);
}

.legal h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 1.4rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.6rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4em;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.94rem;
}

.legal th,
.legal td {
  border: var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--pink-wash);
  font-family: var(--font-film);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc {
  background: var(--pink-wash);
  border: var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
}

.toc p {
  font-family: var(--font-film);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 1.5rem;
}

@media (max-width: 560px) {
  .toc ol {
    columns: 1;
  }
}

/* ---- Footer ---- */

.site-footer {
  background: var(--ink);
  color: var(--card);
  padding-block: clamp(2.2rem, 5vw, 3.4rem) 1.6rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.site-footer a {
  color: var(--pink-soft);
}

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

.site-footer h2 {
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer__brand p {
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.94rem;
  max-width: 34ch;
}

.site-footer__bottom {
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 250, 242, 0.24);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.86rem;
  color: rgba(255, 250, 242, 0.7);
}

.site-footer__bottom p {
  margin: 0;
  max-width: none;
}

/* ---- Utility ---- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.center {
  text-align: center;
}

.center .lede,
.center p {
  margin-inline: auto;
}

.stack > * + * {
  margin-top: 1.1rem;
}

.mt-lg {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.rule {
  border: 0;
  border-top: var(--line);
  margin: 0;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .sticker {
    animation: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .sticker,
  .btn-row {
    display: none;
  }

  body {
    background: #fff;
  }
}
