/* "Inchiostro e farina": risograph print on baking paper.
   Colour tokens live in the marked blocks below; scripts/contrast.mjs reads them.
   No external resources: fonts are self-hosted in assets/fonts/. */

@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/fraunces-latin-full.woff2) format('woff2-variations'), url(fonts/fraunces-latin-full.woff2) format('woff2');
}
@font-face {
  font-family: 'Figtree Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/figtree-latin-wght.woff2) format('woff2-variations'), url(fonts/figtree-latin-wght.woff2) format('woff2');
}

:root {
  color-scheme: light dark;
  /* tokens:light:start */
  --bg: #fbf4e6;
  --surface: #f3e6cf;
  --text: #231a14;
  --muted: #5b4a3c;
  --line: #d9c7a8;
  --link: #a8391f;
  --accent: #c4472a;
  --on-accent: #ffffff;
  --focus: #231a14;
  --grano: #f2b33d;
  --on-grano: #231a14;
  --basil: #3e7b57;
  --band: #231a14;
  --on-band: #fbf4e6;
  --band-muted: #d9c7a8;
  --band-accent: #f2b33d;
  --deep: #231a14;
  --phone: #231a14;
  /* tokens:light:end */

  --serif: 'Fraunces Variable', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(1rem, 5vw, 3rem);
  --wrap: 75rem;
  --radius: 1.25rem;

  /* Inks used by the drawings (overridden inside coloured bands). */
  --ill-ink: var(--text);
  --ill-paper: var(--bg);
  --ill-paper2: var(--surface);
  --ill-line: var(--line);
  --ill-terra: var(--accent);
  --ill-grano: var(--grano);
  --ill-basil: var(--basil);
  --ill-deep: var(--deep);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* tokens:dark:start */
    --bg: #1d1712;
    --surface: #2a221b;
    --text: #f6ecdc;
    --muted: #cdbba6;
    --line: #4a3d31;
    --link: #f07a55;
    --accent: #f07a55;
    --on-accent: #1d1712;
    --focus: #f2b33d;
    --grano: #f2b33d;
    --on-grano: #231a14;
    --basil: #7cc395;
    --band: #f6ecdc;
    --on-band: #1d1712;
    --band-muted: #5b4a3c;
    --band-accent: #a8391f;
    --deep: #120e0b;
    --phone: #0f0b08;
    /* tokens:dark:end */
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

h1,
h2,
h3,
.serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 1.6rem + 3.6vw, 4.6rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.85rem, 1.4rem + 2vw, 3rem);
  font-weight: 650;
  margin: 0 0 1rem;
}

h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  font-weight: 650;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

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

#main:focus {
  outline: none;
}

strong {
  font-weight: 700;
}

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

.narrow {
  max-width: calc(46rem + 2 * var(--gutter));
}

.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  line-height: 1.5;
  max-width: 38ch;
}

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

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

.eyebrow {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

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

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Skip link, header ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.7rem 1.1rem;
  background: var(--band);
  color: var(--on-band);
  font-weight: 700;
  border-radius: 0 0 0.75rem 0.75rem;
}

.skip-link:focus {
  top: 0;
  outline-color: var(--accent);
}

.site-header {
  padding-block: 1rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.logo {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
}

.logo-dough {
  fill: #c4472a;
  stroke: var(--text);
}

.logo-cut {
  fill: #fff6e6;
  stroke: var(--text);
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.site-nav ul,
.lang-switch ul,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
}

.site-nav a,
.lang-switch a {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
}

.site-nav a:hover,
.lang-switch a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 0.16em;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.35em;
}

.lang-switch ul {
  border: 2px solid var(--text);
  border-radius: 999px;
  padding: 2px;
}

.lang-switch a {
  padding: 0.2rem 0.65rem;
  font-size: 0.92rem;
}

.lang-switch a[aria-current='true'] {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Buttons and store badges ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2.5px solid var(--text);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--text);
}

.button:hover {
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.55rem 1.2rem 0.55rem 0.9rem;
  border-radius: 1rem;
  background: var(--band);
  color: var(--on-band);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--accent);
  line-height: 1.15;
}

.store svg {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}

.store svg .k {
  stroke: var(--on-band);
}

.store svg .f {
  fill: var(--accent);
}

.store b {
  display: block;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 1.2rem;
  font-weight: 650;
}

.store small {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--band-muted);
}

a.store:hover b {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* ---------- Drawings ---------- */

.ill {
  display: block;
  width: 100%;
  height: auto;
}

.ill .k {
  fill: none;
  stroke: var(--ill-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill .k2 {
  fill: none;
  stroke: var(--ill-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill .kt {
  fill: none;
  stroke: var(--ill-terra);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill .kb {
  fill: none;
  stroke: var(--ill-basil);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill .dash {
  stroke-dasharray: 2 8;
}

.ill .i { fill: var(--ill-ink); }
.ill .t { fill: var(--ill-terra); }
.ill .g { fill: var(--ill-grano); }
.ill .b { fill: var(--ill-basil); }
.ill .p { fill: var(--ill-paper); }
.ill .p2 { fill: var(--ill-paper2); }
.ill .l { fill: var(--ill-line); }
.ill .d { fill: var(--ill-deep); }

.ill text {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 650;
  fill: var(--ill-ink);
}

/* ---------- Phone ---------- */

.phone {
  position: relative;
  margin: 0;
  width: min(18.5rem, 74vw);
  aspect-ratio: 780 / 1688;
  border: 0.6rem solid var(--phone);
  border-radius: 2.6rem;
  background: var(--phone);
  box-shadow: 0 0 0 2px var(--line), 12px 12px 0 var(--accent);
  overflow: hidden;
  flex: none;
}

.phone::before {
  content: '';
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 28%;
  height: 1.15rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--phone);
  z-index: 1;
}

.phone img {
  width: 100%;
  height: 100%;
  /* Fascia della "barra di stato" sopra lo screenshot, così la tacca non copre il titolo dell'app. */
  padding-top: 2.1rem;
  background: #fbf4e6;
  object-fit: cover;
  object-position: top;
  border-radius: 2rem;
}

.phone--small {
  width: min(14.5rem, 62vw);
  border-width: 0.5rem;
  border-radius: 2.1rem;
  box-shadow: 0 0 0 2px var(--line), 9px 9px 0 var(--accent);
}

.phone--small img {
  padding-top: 1.7rem;
  border-radius: 1.6rem;
}

/* ---------- Bands ---------- */

.band {
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 7.5rem);
}

.band--paper2 {
  background: var(--surface);
  --ill-paper: var(--surface);
  --ill-paper2: var(--bg);
}

.band--ink {
  background: var(--band);
  color: var(--on-band);
  --ill-ink: var(--on-band);
  --focus: var(--on-band);
}

.band--ink a {
  color: var(--on-band);
}

.band--ink .muted,
.band--ink .small {
  color: var(--band-muted);
}

.band--grano {
  background-color: var(--grano);
  background-image: radial-gradient(rgb(35 26 20 / 0.07) 1px, transparent 1.6px);
  background-size: 8px 8px;
  color: var(--on-grano);
  --focus: var(--on-grano);
  --ill-ink: #231a14;
  --ill-paper: #fbf4e6;
  --ill-paper2: #f3e6cf;
  --ill-terra: #c4472a;
  --ill-line: #231a14;
}

.band--grano a {
  color: var(--on-grano);
}

.band--grano .phone {
  box-shadow: 0 0 0 2px #231a14, 12px 12px 0 #231a14;
}

.band--terra {
  background: var(--accent);
  color: var(--on-accent);
  --focus: var(--on-accent);
}

.band--terra a {
  color: var(--on-accent);
}

/* Hand-drawn wavy rule between sections. */
.wave {
  display: block;
  width: 100%;
  height: 14px;
  color: var(--accent);
}

.wave path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(1.5rem, 1rem + 3vw, 4rem);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.hero__text h1 {
  max-width: 13ch;
}

.hero__sum {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 600;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  line-height: 1.3;
  margin: 1.25rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid var(--grano);
  max-width: 30ch;
}

.hero__sum strong {
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 750;
  color: var(--link);
}

.hero__phone {
  justify-self: center;
}

.hero__scene {
  margin-top: -2.5rem;
  border-bottom: 3px solid var(--text);
}

.hero__scene svg {
  width: 100%;
  height: clamp(13rem, 30vw, 27rem);
}

@media (max-width: 43.99rem) {
  .hero__phone {
    width: min(15rem, 66vw);
  }

  .hero__scene {
    margin-top: 1.5rem;
  }

  .phone--small {
    width: min(13rem, 58vw);
  }
}

@media (min-width: 44rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 2rem 3rem;
  }

  .hero__phone {
    width: min(18.5rem, 34vw);
  }

  .hero__text {
    padding-bottom: clamp(1rem, 4vw, 3rem);
  }

  .hero__phone {
    justify-self: end;
    margin-right: clamp(0rem, 4vw, 4rem);
    /* Stand the phone on the counter drawn in the scene below (counter at ~88% of its height). */
    margin-bottom: calc(clamp(13rem, 30vw, 27rem) * -0.86);
  }

  .hero__scene {
    margin-top: 0;
  }
}

/* ---------- Home: who it is for ---------- */

.who {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.who__ill {
  max-width: 30rem;
}

.who h2 {
  max-width: 16ch;
}

.who p {
  max-width: 52ch;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.ticks li {
  position: relative;
  padding-left: 2.2rem;
  font-weight: 600;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.32em;
  width: 1.2rem;
  height: 0.65rem;
  border-left: 3.5px solid var(--basil);
  border-bottom: 3.5px solid var(--basil);
  transform: rotate(-45deg);
  border-radius: 0 0 0 3px;
}

@media (min-width: 52rem) {
  .who {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }
}

/* ---------- Home: three gestures ---------- */

.gestures {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 3.5rem;
  counter-reset: g;
}

.gesture {
  counter-increment: g;
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.gesture__head {
  position: relative;
  padding-left: 4.6rem;
  min-height: 4rem;
}

.gesture__head::before {
  content: counter(g);
  position: absolute;
  left: 0;
  top: -0.35rem;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--band-accent);
}

.gesture h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}

.gesture p {
  margin: 0;
  max-width: 30ch;
}

.gesture .phone {
  margin-left: 0.5rem;
}

.band--ink .phone {
  box-shadow: 0 0 0 2px var(--band-muted), 10px 10px 0 var(--accent);
}

@media (min-width: 40rem) and (max-width: 63.99rem) {
  .gesture {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
  }
}

@media (min-width: 64rem) {
  .gestures {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .gesture:nth-child(2) {
    margin-top: 4rem;
  }

  .gesture:nth-child(3) {
    margin-top: 8rem;
  }
}

/* ---------- Home: trays ---------- */

.trays {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.trays h2 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  max-width: 11ch;
}

.trays__text p {
  max-width: 46ch;
}

.trays__ill {
  margin: 0;
}

.trays__ill figcaption {
  font-size: 0.94rem;
  margin-top: 0.75rem;
  font-weight: 600;
}

.trays__phone {
  justify-self: center;
}

@media (min-width: 64rem) {
  .trays {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
    gap: 3rem;
  }
}

/* ---------- Home: privacy line ---------- */

.promise {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 20ch;
}

.promise-link {
  font-weight: 700;
  font-size: 1.15rem;
}

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

.faq {
  display: grid;
  gap: 2rem;
}

.faq__list {
  border-top: 3px solid var(--text);
}

.faq details {
  border-bottom: 1.5px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 650;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  line-height: 1.25;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--text);
  border-radius: 50%;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
  background: var(--grano);
  color: var(--on-grano);
  border-color: var(--on-grano);
}

.faq details p {
  margin: 0 0 1.25rem;
  padding: 0 0.25rem;
  max-width: 60ch;
}

@media (min-width: 52rem) {
  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: 4rem;
  }
}

/* ---------- Page intro (inner pages) ---------- */

.intro {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) clamp(2rem, 1.5rem + 3vw, 4.5rem);
}

.intro h1 {
  max-width: 14ch;
}

.intro__ill {
  max-width: 26rem;
  justify-self: center;
  width: 100%;
}

@media (min-width: 52rem) {
  .intro {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }
}

/* ---------- Features page ---------- */

.feats {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: f;
}

.feat {
  counter-increment: f;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  padding-block: 2.25rem;
  border-top: 1.5px solid var(--line);
}

.feat:first-child {
  border-top: 3px solid var(--text);
}

.feat__ill {
  width: 5.5rem;
}

.feat h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.feat h2::before {
  content: counter(f, decimal-leading-zero);
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.feat p,
.feat ul {
  max-width: 58ch;
}

.feat ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.feat li {
  margin-bottom: 0.35rem;
}

.feat__phone {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 1rem;
}

@media (min-width: 52rem) {
  .feat {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 0.5rem 2.5rem;
  }

  .feat__ill {
    width: 9rem;
  }

  .feat--phone {
    grid-template-columns: 9rem minmax(0, 1fr) auto;
  }

  .feat--phone .feat__phone {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
  }
}

.note-band h2 {
  max-width: 18ch;
}

.note-band p {
  max-width: 56ch;
  font-size: 1.15rem;
}

/* ---------- Download page ---------- */

.store-list {
  margin-top: 0;
}

.store--static {
  box-shadow: 4px 4px 0 var(--accent);
}

.expect {
  display: grid;
  gap: 2rem;
}

.expect p {
  max-width: 52ch;
}

@media (min-width: 52rem) {
  .expect {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
}

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

.mail {
  display: inline-block;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 650;
  font-size: clamp(1.4rem, 0.9rem + 3vw, 2.6rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  margin-bottom: 1rem;
}

.qa {
  margin: 0;
}

.qa dt {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 650;
  font-size: 1.3rem;
  line-height: 1.25;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--line);
  margin-top: 1.25rem;
}

.qa dt:first-child {
  border-top: 3px solid var(--text);
  margin-top: 0;
}

.qa dd {
  margin: 0.5rem 0 0;
  max-width: 60ch;
}

/* ---------- Privacy page ---------- */

.legal {
  display: grid;
  gap: 2rem;
  padding-bottom: 4rem;
}

.toc {
  border-top: 3px solid var(--text);
  padding-top: 1rem;
}

.toc p {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.4rem;
}

.toc li {
  margin-bottom: 0.3rem;
}

.legal__body {
  max-width: 44rem;
}

.legal__body section {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1.5px solid var(--line);
}

.legal__body section:first-child {
  margin-top: 0;
  border-top: 3px solid var(--text);
}

.legal__body h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}

.legal__body ul {
  padding-left: 1.2rem;
}

.legal__body li {
  margin-bottom: 0.5rem;
}

@media (min-width: 64rem) {
  .legal {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }

  .toc {
    position: sticky;
    top: 1.5rem;
  }
}

/* ---------- 404 and root ---------- */

.lost {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 5rem;
  align-items: center;
}

.lost__ill {
  max-width: 24rem;
}

@media (min-width: 52rem) {
  .lost {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.root-page {
  padding-block: 4rem;
}

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

.site-footer {
  background: var(--surface);
  padding-block: 3.5rem 2.5rem;
  border-top: 3px solid var(--text);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-contact h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.footer-contact a {
  font-weight: 700;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.site-footer nav ul {
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer nav a {
  color: var(--text);
  font-weight: 600;
}

.footer-note {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.footer-note p {
  margin: 0;
}

@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

/* ---------- Motion (CSS only, off with reduced motion) ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(-2deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .store {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  }

  .button:hover,
  a.store:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text);
  }

  a.store:hover {
    box-shadow: 6px 6px 0 var(--accent);
  }

  .button:active,
  a.store:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--text);
  }

  .hero__text > *,
  .intro > div > * {
    animation: rise 0.6s ease-out both;
  }

  .hero__text > :nth-child(2),
  .intro > div > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero__text > :nth-child(3),
  .intro > div > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero__text > :nth-child(n + 4) {
    animation-delay: 0.24s;
  }

  .hero__phone {
    animation: settle 0.8s 0.2s ease-out both;
  }

  .hero__scene {
    animation: rise 0.7s 0.1s ease-out both;
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }

  .faq summary::after {
    transition: transform 0.2s ease-out;
  }

  .faq details[open] summary::after {
    transform: rotate(180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header nav,
  .skip-link,
  .hero__scene,
  .phone {
    display: none;
  }
}

.closing {
  padding-block: 2.5rem;
}
