/* Toyquaise: shared stylesheet for every page.
   Look: play-dough on a mint table. Rounded DynaPuff headings, Lexend for reading (it was designed
   for reading fluency), soft "dough" buttons and colour slabs, clay illustrations from art/. */

/* ------------------------------------------------------------ fonts (self-hosted, OFL) */

@font-face {
  font-family: 'DynaPuff';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/dynapuff-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DynaPuff';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/dynapuff-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/lexend-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/lexend-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------ tokens */

:root {
  color-scheme: light;
  --bg: #e8f4f1;
  --surface: #fbfefd;
  --ink: #0c3f3b;
  --ink-soft: #2e5e5a;
  --muted: #587d79;
  --line: #c7e0da;
  --turquoise: #26bcad;
  --turquoise-ink: #0a7b70;
  --on-turquoise: #04302c;
  --yellow: #f4b82c;
  --coral: #ec5a3f;
  --grape: #7a5fdc;
  --pink: #ee82b0;
  --slab-shade: rgb(12 63 59 / 0.07);
  --slab-light: rgb(255 255 255 / 0.55);
  --shadow: 0 14px 30px -18px rgb(8 60 55 / 0.45);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 36px);
  --font-display: 'DynaPuff', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Lexend', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a2220;
    --surface: #0f2e2b;
    --ink: #e4f4f0;
    --ink-soft: #bcd8d3;
    --muted: #8db2ac;
    --line: #1c4540;
    --turquoise: #33cdbd;
    --turquoise-ink: #5fe0d2;
    --on-turquoise: #032824;
    --slab-shade: rgb(0 0 0 / 0.22);
    --slab-light: rgb(255 255 255 / 0.06);
    --shadow: 0 14px 30px -16px rgb(0 0 0 / 0.7);
  }
}

/* ------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--turquoise-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}

a:hover {
  text-decoration-color: currentColor;
}

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

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

.icon {
  flex: none;
}

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

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

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

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------ dough buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 22px 12px;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  /* a rolled piece of dough: lighter top edge, darker bottom edge, soft shadow */
  box-shadow:
    inset 0 -5px 0 rgb(0 0 0 / 0.14),
    inset 0 3px 0 rgb(255 255 255 / 0.4),
    0 10px 18px -12px rgb(6 48 44 / 0.6);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 -2px 0 rgb(0 0 0 / 0.14),
    inset 0 2px 0 rgb(255 255 255 / 0.3),
    0 4px 8px -6px rgb(6 48 44 / 0.6);
}

.btn-lg {
  min-height: 56px;
  padding: 12px 28px 14px;
  font-size: 1.08rem;
}

.btn-primary {
  background: var(--turquoise);
  color: var(--on-turquoise);
}

.btn-light {
  background: var(--surface);
  color: var(--ink);
}

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

.btn-soon {
  cursor: default;
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 2px var(--line);
}

.btn-soon:hover {
  transform: none;
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.6rem/1 var(--font-display);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 36px;
  height: auto;
  margin-top: -4px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current] {
  color: var(--ink);
  background: var(--surface);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 var(--slab-shade);
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }
  .header-inner {
    flex-wrap: wrap;
    padding-block: 12px 8px;
  }
  .lang-switch {
    margin-inline-start: auto;
  }
  .nav {
    order: 3;
    width: 100%;
    margin: 0 -10px;
  }
  .nav a {
    padding: 6px 10px;
  }
}

/* ------------------------------------------------------------ sections */

.section {
  padding-block: clamp(56px, 8vw, 110px);
}

.section-flush {
  padding-bottom: clamp(24px, 4vw, 48px);
}

.section-title {
  margin-bottom: clamp(24px, 4vw, 44px);
}

/* A dough ball: used as a bullet and as small decoration. */
.learn li::before,
.features h3::before,
.kicker::before {
  content: '';
  flex: none;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgb(255 255 255 / 0.55), transparent 42%),
    radial-gradient(circle at 60% 70%, rgb(0 0 0 / 0.14), transparent 60%),
    var(--ball, var(--turquoise));
  box-shadow: 0 3px 5px -2px rgb(0 0 0 / 0.3);
}

/* ------------------------------------------------------------ hero */

.hero {
  padding-block: clamp(24px, 5vw, 72px) clamp(40px, 6vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.kicker::before {
  --ball: var(--coral);
}

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

.hero .lead {
  margin-block: 22px 34px;
}

.hero-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-art {
  margin-inline: -2%;
}

.hero-img {
  display: block;
  width: 100%;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    max-width: 520px;
    margin: 0 auto -12px;
  }
}

/* ------------------------------------------------------------ games on the home page */

.games {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(24px, 4vw, 52px);
  border-radius: 48px 40px 52px 44px;
  background: var(--slab);
  box-shadow: inset 0 -10px 0 var(--slab-shade), inset 0 6px 0 var(--slab-light);
}

@media (prefers-color-scheme: dark) {
  .game,
  .project-hero,
  .learn-section {
    --slab: var(--slab-dark) !important;
  }
}

.game:nth-child(even) .game-media {
  order: 2;
}

.game-media {
  display: block;
  transition: transform 0.2s ease;
}

.game-media:hover {
  transform: rotate(-1.5deg) scale(1.02);
}

.game-art {
  display: block;
  width: 100%;
}

.game-kind {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-weight: 500;
}

.game h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.game h3 a {
  color: var(--ink);
  text-decoration: none;
}

.game h3 a:hover {
  color: var(--turquoise-ink);
}

.game-summary {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.game h4 {
  margin-top: 24px;
}

.game .actions {
  margin-top: 28px;
}

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

.learn li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.learn li::before {
  transform: translateY(0.1em);
}

.learn li:nth-child(5n + 2)::before,
.features li:nth-child(5n + 2) h3::before {
  --ball: var(--yellow);
}
.learn li:nth-child(5n + 3)::before,
.features li:nth-child(5n + 3) h3::before {
  --ball: var(--coral);
}
.learn li:nth-child(5n + 4)::before,
.features li:nth-child(5n + 4) h3::before {
  --ball: var(--grape);
}
.learn li:nth-child(5n + 5)::before,
.features li:nth-child(5n + 5) h3::before {
  --ball: var(--pink);
}

.app-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 24%;
  box-shadow: 0 0 0 1px rgb(128 128 128 / 0.2), 0 6px 12px -6px rgb(0 0 0 / 0.4);
}

.app-icon-lg {
  width: clamp(68px, 9vw, 88px);
  height: clamp(68px, 9vw, 88px);
}

@media (max-width: 880px) {
  .game {
    grid-template-columns: 1fr;
  }
  .game:nth-child(even) .game-media {
    order: 0;
  }
  .game-media {
    max-width: 460px;
  }
}

/* ------------------------------------------------------------ studio */

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.studio-copy p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.contact {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 44px 36px 48px 40px;
  background: var(--turquoise);
  color: var(--on-turquoise);
  box-shadow: inset 0 -10px 0 rgb(0 0 0 / 0.1), inset 0 6px 0 rgb(255 255 255 / 0.3);
}

.contact h2,
.contact h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.contact p {
  margin-bottom: 14px;
}

.contact-mark {
  position: absolute;
  right: 22px;
  top: -34px;
  width: 78px;
  transform: rotate(8deg);
}

.contact-email {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--on-turquoise);
  font: 700 clamp(1.15rem, 2.6vw, 1.55rem) / 1.3 var(--font-display);
  overflow-wrap: anywhere;
}

.contact-support {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--on-turquoise);
  font-weight: 600;
}

.contact-wide {
  margin-block: 56px 64px;
}

@media (max-width: 880px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ project page */

.project-hero {
  padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px);
  margin-inline: clamp(8px, 1.5vw, 20px);
  border-radius: 0 0 56px 48px;
  background: var(--slab);
  box-shadow: inset 0 -10px 0 var(--slab-shade);
}

.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.project-title {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
}

.project-title h1 {
  margin: 0;
}

.kind {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.project-hero .lead {
  margin-block: 24px 30px;
}

.project-hero-media .game-art {
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover span {
  text-decoration: underline;
}

.phone {
  margin: 0;
  padding: 6px;
  border-radius: 28px;
  background: #151a1a;
  box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 22px;
  background: #222;
}

.intro p {
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
  color: var(--ink-soft);
}

.intro p:first-child {
  color: var(--ink);
}

.learn-section {
  margin-inline: clamp(8px, 1.5vw, 20px);
  border-radius: 56px 44px 52px 48px;
  background: var(--slab);
  box-shadow: inset 0 -10px 0 var(--slab-shade), inset 0 6px 0 var(--slab-light);
}

.learn-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: start;
}

.learn-lg {
  gap: 16px;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 36px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.features p {
  margin: 0;
  color: var(--ink-soft);
}

.gallery {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 36px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  scrollbar-width: thin;
}

.gallery:focus-visible {
  outline-offset: -3px;
}

.gallery li {
  flex: none;
  width: clamp(200px, 58vw, 250px);
  scroll-snap-align: start;
}

.gallery li:nth-child(odd) .phone {
  transform: rotate(-1.5deg);
}

.gallery li:nth-child(even) .phone {
  transform: rotate(1.5deg) translateY(10px);
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.facts {
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: minmax(110px, 0.4fr) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 2px dashed var(--line);
}

.facts dt {
  color: var(--muted);
  font-weight: 500;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.help {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 40px 32px 44px 36px;
  background: var(--surface);
  box-shadow: inset 0 -8px 0 var(--slab-shade);
}

.help h2 {
  font-size: 1.6rem;
}

.help p {
  color: var(--ink-soft);
}

@media (max-width: 880px) {
  .project-hero-grid,
  .details-grid,
  .learn-grid {
    grid-template-columns: 1fr;
  }
  .project-hero-media {
    max-width: 440px;
  }
}

@media (max-width: 520px) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ------------------------------------------------------------ documents (privacy, support) */

.doc {
  padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 104px);
}

.doc-head {
  margin-bottom: 36px;
}

.doc-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.doc-head .project-title {
  margin-bottom: 14px;
}

.doc section {
  margin-top: 40px;
}

.doc section h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

.doc ul {
  padding-inline-start: 1.2em;
}

.doc li {
  margin-bottom: 0.6em;
}

.doc li::marker {
  color: var(--turquoise-ink);
}

.toc {
  padding: 22px 26px;
  border-radius: 28px 24px 30px 26px;
  background: var(--surface);
  box-shadow: inset 0 -6px 0 var(--slab-shade);
}

.toc h2 {
  margin-bottom: 8px;
  font: 600 0.82rem/1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  columns: 2 240px;
  column-gap: 32px;
  margin: 0;
  padding-inline-start: 1.3em;
}

.toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.link-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.link-list li {
  margin: 0;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 28px;
  background: var(--slab);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 -6px 0 var(--slab-shade);
  transition: transform 0.12s ease;
}

@media (prefers-color-scheme: dark) {
  .link-list a {
    background: var(--slab-dark);
  }
}

.link-list a:hover {
  transform: translateY(-2px);
}

.link-list span {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.link-list strong {
  font: 700 1.25rem/1.3 var(--font-display);
}

.link-list small {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.faq-title {
  margin-top: 8px;
}

.faq {
  margin-top: 24px !important;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 36px 30px 40px 32px;
  background: var(--surface);
  box-shadow: inset 0 -8px 0 var(--slab-shade);
}

.faq-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.faq-head h3 {
  margin: 0;
  font-size: 1.5rem;
}

.faq-head h3 a {
  color: var(--ink);
  text-decoration: none;
}

.faq details {
  border-bottom: 2px dashed var(--line);
}

.faq summary {
  position: relative;
  padding: 16px 40px 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--on-turquoise);
  font: 700 1.2rem/1 var(--font-display);
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details div {
  padding-bottom: 18px;
  color: var(--ink-soft);
}

.faq-more {
  margin: 16px 0 0;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------ 404 */

.not-found {
  padding-block: clamp(48px, 9vw, 120px);
}

.not-found-mark {
  width: 110px;
  margin-bottom: 16px;
  transform: rotate(-14deg) scaleY(0.82);
}

.not-found .actions {
  margin-block: 28px 48px;
}

.not-found-alt {
  padding-top: 24px;
  border-top: 2px dashed var(--line);
  color: var(--muted);
}

/* ------------------------------------------------------------ footer */

.site-footer {
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: clamp(48px, 6vw, 72px);
  border-radius: 56px 48px 0 0;
  background: var(--surface);
  font-size: 0.97rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand .brand {
  font-size: 1.4rem;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.site-footer h2 {
  margin-bottom: 14px;
  font: 600 0.82rem/1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.site-footer li {
  margin-bottom: 8px;
}

.site-footer li a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--turquoise-ink);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-block: 22px 30px;
  border-top: 2px dashed var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
