/* brand.smashandclash.in - the Smash&Clash brand guide, in the game's own look:
   Arena Pop · Blue (fable/assets/smashandclash.design). A bright sky world; sugar panels; candy slabs
   tilted -8deg on a hard lip; sticker titles in Luckiest Guy; Lilita One labels; Rubik copy;
   ink is navy, never black. One sun per screen. Cards are never skewed. */

@font-face {
  font-family: 'Luckiest Guy';
  src: url(fonts/LuckiestGuy-Regular.ttf) format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Lilita One';
  src: url(fonts/lilita-one.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  font-weight: 300 900;
  src: url(fonts/Rubik-latin.woff2) format('woff2');
  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-display: swap;
}
@font-face {
  font-family: 'Rubik';
  font-weight: 300 900;
  src: url(fonts/Rubik-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}

/* The game is one look, light only: a designed sky world, not an inverted theme. */
:root {
  color-scheme: light;
  --sky-0: #016dcb;
  --sky-1: #0a8fe0;
  --sky-2: #0abeff;
  --sky-3: #8adfff;
  --sky-4: #d9f5ff;
  --ink: #0d1a4a;
  --ink-2: #22357a;
  --ink-3: #4a5e9c;
  --ink-deep: #06102f;
  --glass: rgb(13 26 74 / 0.86);
  --sugar: #ffffff;
  --sugar-2: #eef6ff;
  --sugar-3: #dcebff;
  --sugar-edge: #b4d0f0;
  --sun-1: #ffe872;
  --sun-2: #ffc21a;
  --sun-lip: #d98a00;
  --gum-1: #ff8cc8;
  --gum-2: #ff3e9a;
  --gum-lip: #c4126a;
  --grape-1: #8a4bff;
  --grape-2: #5b25d6;
  --grape-lip: #3b139e;
  --mint-1: #8bf7cf;
  --mint-2: #22d39a;
  --mint-lip: #0e9a6c;
  --skyc-1: #5ed3ff;
  --skyc-2: #1398f0;
  --skyc-lip: #0a62b8;
  --cherry-1: #ff5a5a;
  --cherry-2: #e02030;
  --cherry-lip: #9e0f18;
  --you: #2173e8;
  --you-1: #5fa6ff;
  --you-lip: #134a9f;
  --them: #f4581f;
  --them-1: #ff9a62;
  --them-lip: #a8380c;
  --f-display: 'Luckiest Guy', 'Lilita One', 'Rubik', system-ui, sans-serif;
  --f-label: 'Lilita One', 'Luckiest Guy', 'Rubik', system-ui, sans-serif;
  --f-body: 'Rubik', system-ui, 'Segoe UI', Roboto, sans-serif;
  --skew: -8deg;
  --unskew: 8deg;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --radius: 1.75rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --nav-w: 15.5rem;
}

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

* {
  margin: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
  background: var(--sky-0);
}

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

body {
  min-height: 100dvh;
  font: 600 1rem/1.5 var(--f-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(70% 40% at 80% -5%, rgb(255 246 214 / 0.5), transparent 60%),
    linear-gradient(180deg, var(--sky-0) 0, var(--sky-1) 30rem, var(--sky-2) 70rem, var(--sky-3) 140rem, var(--sky-4) 100%);
  background-color: var(--sky-2);
  overflow-x: hidden;
}

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

img,
video {
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--sun-1);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--sun-1);
  outline-offset: 3px;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 6px var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-label);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------ type ------------------------------ */
.sticker {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.025em;
  line-height: 1.02;
  -webkit-text-stroke: 0.16em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.14em 0 var(--ink);
  transform: skewX(var(--skew));
  transform-origin: 0 100%;
  text-wrap: balance;
}

/* Gold comic lettering, the in-game "SMASH!" / "6 ≥ 5" / callout recipe (fable src/scene/effectsFx.ts
   comicTexture, src/ui/arena/hud.css .scui-callout__t): ink outline + offset drop, a warm gold gradient
   fill, and a white gloss on the top third. Each word is its own .g so phrases still wrap. */
.sticker .g {
  position: relative;
  display: inline-block;
  padding-top: 0.1em;
  color: #1a1030;
  -webkit-text-stroke: 0.17em #1a1030;
  paint-order: stroke fill;
  text-shadow: none;
  filter: drop-shadow(0.015em 0.09em 0 rgb(16 8 40 / 0.6));
}

.sticker .g::before,
.sticker .g::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding: inherit;
  -webkit-text-stroke: 0;
  pointer-events: none;
}

.sticker .g::before {
  color: transparent;
  background: linear-gradient(180deg, #ffe95e 22%, #ffb52e 58%, #ff7a1f 90%) content-box;
  background-size: 100% 1em;
  -webkit-background-clip: text;
  background-clip: text;
}

.sticker .g::after {
  color: rgb(255 255 255 / 0.5);
  -webkit-mask: linear-gradient(#000 0 36%, transparent 36%) 0 0 / 100% 1em repeat-y content-box;
  mask: linear-gradient(#000 0 36%, transparent 36%) 0 0 / 100% 1em repeat-y content-box;
}

h2.sticker {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  margin: 0.9rem 0 0.4rem;
}

h3 {
  font: 400 clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem) / 1.1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}

h4 {
  font: 400 1.2rem/1.15 var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

p {
  text-wrap: pretty;
}

.copy {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 44rem;
}

.copy + .copy {
  margin-top: 0.85rem;
}

.copy strong,
.copy b {
  color: var(--ink);
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem 0.45rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--sun-1);
  font: 800 0.8125rem/1 var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: skewX(var(--skew));
  box-shadow: 0 4px 0 var(--ink-deep);
}

.eyebrow > span {
  display: inline-block;
  transform: skewX(var(--unskew));
}

.lead-plate {
  display: inline-block;
  max-width: 48rem;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem 0.75rem;
  border-radius: 1rem;
  background: var(--glass);
  color: #fff;
  font: 600 clamp(1rem, 0.95rem + 0.3vw, 1.2rem) / 1.45 var(--f-body);
  transform: skewX(var(--skew));
  box-shadow: 0 5px 0 rgb(6 16 47 / 0.45);
}

.lead-plate > span {
  display: block;
  transform: skewX(var(--unskew));
}

.lead-plate strong {
  color: var(--sun-1);
  font-weight: 800;
}

.plate {
  display: inline-block;
  padding: 0.45rem 0.8rem 0.35rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: #fff;
  font: 400 0.95rem/1 var(--f-label);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transform: skewX(var(--skew));
  white-space: nowrap;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.6rem 0.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sun-1);
  font: 800 0.75rem/1.1 var(--f-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill.soft {
  background: var(--sugar-3);
  color: var(--ink-2);
}

.pill.ok {
  background: var(--mint-2);
  color: var(--ink);
}

.pill.no {
  background: var(--cherry-2);
  color: #fff;
}

code,
.mono {
  font: 700 0.92em/1.3 ui-monospace, 'Cascadia Code', Consolas, monospace;
}

/* ------------------------------ surfaces ------------------------------ */
.panel {
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--sugar-2));
  box-shadow:
    0 6px 0 var(--sugar-edge),
    0 22px 40px -18px rgb(6 16 47 / 0.45),
    inset 0 2px 0 rgb(255 255 255 / 0.9);
  padding: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
}

.panel + .panel,
.panel + .grid,
.grid + .panel,
.grid + .grid {
  margin-top: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.g2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.g3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.g4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

/* candy fills: top, base, lip */
.sun { --f1: var(--sun-1); --f2: var(--sun-2); --lip: var(--sun-lip); }
.gum { --f1: var(--gum-1); --f2: var(--gum-2); --lip: var(--gum-lip); }
.grape { --f1: var(--grape-1); --f2: var(--grape-2); --lip: var(--grape-lip); --txt: #fff; }
.mint { --f1: var(--mint-1); --f2: var(--mint-2); --lip: var(--mint-lip); }
.skyc { --f1: var(--skyc-1); --f2: var(--skyc-2); --lip: var(--skyc-lip); --txt: #fff; }
.cherry { --f1: var(--cherry-1); --f2: var(--cherry-2); --lip: var(--cherry-lip); --txt: #fff; }
.youc { --f1: var(--you-1); --f2: var(--you); --lip: var(--you-lip); --txt: #fff; }
.themc { --f1: var(--them-1); --f2: var(--them); --lip: var(--them-lip); --txt: #fff; }
.sugar { --f1: #ffffff; --f2: #e6f0ff; --lip: var(--sugar-edge); }

/* the candy slab: a face tilted -8deg on a solid lip, with a gloss band. Presses down onto its lip. */
.slab {
  --lip-h: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  min-height: 2.75rem;
  padding: 0.8rem 1.4rem 0.65rem;
  border: 0;
  border-radius: 1rem;
  color: var(--txt, var(--ink));
  font: 400 1.125rem/1 var(--f-label);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(180deg, var(--f1, #fff), var(--f2, #e6f0ff));
  transform: skewX(var(--skew));
  box-shadow:
    0 var(--lip-h) 0 var(--lip, var(--sugar-edge)),
    0 calc(var(--lip-h) + 10px) 20px -10px rgb(13 26 74 / 0.5),
    inset 0 2px 0 rgb(255 255 255 / 0.75),
    inset 0 -3px 0 rgb(0 0 0 / 0.07);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.slab::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 3px;
  height: 44%;
  border-radius: 0.8rem 0.8rem 40% 40% / 0.8rem 0.8rem 60% 60%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0));
  pointer-events: none;
}

.slab > * {
  position: relative;
}

.slab svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.grape.slab,
.cherry.slab,
.youc.slab,
.themc.slab,
.skyc.slab {
  text-shadow: 0 2px 0 rgb(6 16 47 / 0.45);
}

.slab:active {
  transform: skewX(var(--skew)) translateY(var(--lip-h));
  box-shadow:
    0 0 0 var(--lip, var(--sugar-edge)),
    0 4px 10px -6px rgb(13 26 74 / 0.5),
    inset 0 2px 0 rgb(255 255 255 / 0.75);
}

@media (hover: hover) and (pointer: fine) {
  .slab:hover {
    transform: skewX(var(--skew)) translateY(-2px);
  }
  .slab:active {
    transform: skewX(var(--skew)) translateY(var(--lip-h));
  }
}

.slab.lg {
  --lip-h: 8px;
  min-height: 3.5rem;
  padding: 1rem 1.8rem 0.85rem;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  border-radius: 1.2rem;
}

.slab.sm {
  --lip-h: 5px;
  padding: 0.6rem 1rem 0.5rem;
  font-size: 1rem;
}

.slab .meta {
  font: 800 0.75rem/1 var(--f-body);
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.candy {
  --lip-h: 7px;
  position: relative;
  border-radius: 1.4rem;
  color: var(--txt, var(--ink));
  background:
    radial-gradient(120% 80% at 50% 115%, rgb(255 255 255 / 0.32), transparent 55%),
    linear-gradient(160deg, var(--f1, #fff), var(--f2, #e6f0ff));
  box-shadow:
    0 var(--lip-h) 0 var(--lip, var(--sugar-edge)),
    0 calc(var(--lip-h) + 12px) 24px -12px rgb(6 16 47 / 0.45),
    inset 0 0 0 2px rgb(255 255 255 / 0.35),
    inset 0 2px 0 rgb(255 255 255 / 0.6);
}

.puck {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 30%;
  background: linear-gradient(180deg, var(--f1, #fff), var(--f2, #e6f0ff));
  color: var(--txt, var(--ink));
  box-shadow:
    0 4px 0 var(--lip, var(--sugar-edge)),
    inset 0 2px 0 rgb(255 255 255 / 0.7);
}

.puck svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ------------------------------ shell ------------------------------ */
.shell {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  max-width: 88rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 0;
}

.nav {
  position: sticky;
  top: 1.25rem;
  align-self: start;
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 1.1rem 0.75rem 1rem;
  border-radius: 1.4rem;
  background: var(--glass);
  box-shadow: 0 6px 0 rgb(6 16 47 / 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav .brand {
  display: block;
  width: 9.5rem;
  margin: 0.15rem auto 1rem;
}

.nav ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.75rem;
  color: rgb(255 255 255 / 0.82);
  font: 400 1.0625rem/1.1 var(--f-label);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav a .n {
  font: 800 0.75rem/1 var(--f-body);
  color: rgb(255 255 255 / 0.45);
  min-width: 1.3rem;
}

.nav a[aria-current='true'] {
  background: rgb(255 255 255 / 0.12);
  color: var(--sun-1);
}

.nav a[aria-current='true'] .n {
  color: var(--sun-1);
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    background: rgb(255 255 255 / 0.08);
    color: #fff;
  }
}

.nav .nav-cta {
  margin-top: 1rem;
  display: grid;
}

.nav .nav-cta .slab {
  width: 100%;
}

.topbar {
  display: none;
}

main {
  min-width: 0;
  padding-bottom: 4rem;
}

section {
  padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
}

section > header {
  margin-bottom: 1.5rem;
}

/* ------------------------------ hero ------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(1rem, 0.5rem + 2vw, 2rem);
  display: grid;
  justify-items: center;
  text-align: center;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
}

.hero .rays {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 34%;
  width: min(70rem, 160vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgb(255 255 255 / 0.22) 0 8deg, transparent 8deg 20deg);
  -webkit-mask: radial-gradient(closest-side, #000 15%, transparent 70%);
  mask: radial-gradient(closest-side, #000 15%, transparent 70%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .rays {
    animation: spin 120s linear infinite;
  }
}

@keyframes spin {
  to {
    rotate: 1turn;
  }
}

.hero-stage {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(0, 30rem) 1fr;
  align-items: end;
}

.hero-logo {
  width: min(30rem, 78vw);
  margin: 0 auto;
  filter: drop-shadow(0 14px 18px rgb(6 16 47 / 0.35));
}

.hero-champ {
  width: 100%;
  max-width: 14rem;
  align-self: end;
  filter: drop-shadow(0 12px 14px rgb(6 16 47 / 0.3));
}

.hero-champ.l {
  justify-self: end;
}

.hero-champ.r {
  justify-self: start;
}

.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem);
  margin-top: 1.5rem;
}

.hero .lead-plate {
  text-align: left;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
}

.statrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 2.5rem;
}

.stat {
  padding: 1.1rem 1rem 1rem;
  text-align: center;
}

.stat b {
  display: block;
  font: 400 clamp(2rem, 1.5rem + 1.6vw, 2.75rem) / 1 var(--f-display);
  color: #fff;
  -webkit-text-stroke: 0.12em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.1em 0 var(--ink);
  letter-spacing: 0.02em;
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  font: 400 1rem/1.1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat small {
  display: inline-block;
  margin-top: 0.55rem;
}

/* ------------------------------ lists of rules ------------------------------ */
.rules {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: r;
}

.rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.rule .num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 30%;
  font: 400 1.4rem/1 var(--f-display);
  color: #fff;
  text-shadow: 0 2px 0 rgb(6 16 47 / 0.45);
  background: linear-gradient(180deg, var(--f1), var(--f2));
  box-shadow: 0 4px 0 var(--lip), inset 0 2px 0 rgb(255 255 255 / 0.5);
}

.rule h3 {
  margin-top: 0.35rem;
}

.rule p {
  margin-top: 0.35rem;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.rule p strong {
  color: var(--ink);
  font-weight: 800;
}

/* ------------------------------ timeline ------------------------------ */
.timeline {
  list-style: none;
  padding: 1.5rem 0.25rem 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12.5rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.tl {
  --c: var(--you);
  scroll-snap-align: start;
  position: relative;
  padding: 2.1rem 1rem 1.2rem;
  border-radius: 1.2rem;
  border: 5px solid var(--c);
  background: #fff;
  box-shadow: 0 6px 0 rgb(6 16 47 / 0.2);
  text-align: center;
  rotate: var(--r, 0deg);
}

.tl .when {
  position: absolute;
  top: -1rem;
  left: 50%;
  translate: -50% 0;
  padding: 0.35rem 0.75rem 0.25rem;
  border-radius: 0.6rem;
  background: var(--c);
  color: #fff;
  font: 400 1rem/1 var(--f-display);
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgb(6 16 47 / 0.35);
}

.tl h4 {
  font-size: 1.15rem;
}

.tl p {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-2);
}

/* ------------------------------ photos ------------------------------ */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.photo {
  position: relative;
  padding: 0.55rem 0.55rem 1.6rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 6px 0 var(--sugar-edge), 0 18px 30px -16px rgb(6 16 47 / 0.5);
  rotate: var(--r, 0deg);
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.6rem;
}

.photo .plate {
  position: absolute;
  left: 50%;
  bottom: -0.6rem;
  translate: -50% 0;
  font-size: 0.875rem;
}

/* ------------------------------ language ------------------------------ */
.quote-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.quote-list li {
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: var(--sugar-2);
  box-shadow: inset 0 0 0 2px var(--sugar-3);
  font: 400 clamp(1.05rem, 1rem + 0.3vw, 1.25rem) / 1.25 var(--f-label);
  letter-spacing: 0.01em;
}

.vocab {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}

.vocab div {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--sugar-2);
  box-shadow: inset 0 0 0 2px var(--sugar-3);
}

.vocab dt {
  font: 400 1.15rem/1.1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.vocab dd {
  margin-top: 0.35rem;
  color: var(--ink-2);
  font-size: 0.975rem;
  line-height: 1.45;
}

.voice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.voice .candy {
  padding: 1rem 1.1rem 1.1rem;
}

.voice .candy h4 {
  font-size: 1.35rem;
}

.voice .candy p {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.dodont {
  display: grid;
  gap: 0.75rem;
}

.dd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dd {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  font-size: 0.975rem;
  line-height: 1.45;
}

.dd.do {
  background: #e3fbf1;
  box-shadow: inset 0 0 0 2px #a9ebd2;
}

.dd.dont {
  background: #ffe9ec;
  box-shadow: inset 0 0 0 2px #ffc2ca;
}

.dd .ic {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: #fff;
}

.dd.do .ic {
  background: var(--mint-lip);
}

.dd.dont .ic {
  background: var(--cherry-2);
}

.dd .ic svg {
  width: 1rem;
  height: 1rem;
}

.dd b {
  font-weight: 800;
}

.dd q {
  font-weight: 800;
  quotes: '\201C' '\201D';
}

/* ------------------------------ logo ------------------------------ */
.logo-stage {
  display: grid;
  place-items: center;
  min-height: 17rem;
  padding: 2.5rem 1.5rem;
  border-radius: 1.4rem;
  background:
    radial-gradient(80% 90% at 50% 0%, var(--skyc-1), transparent 70%),
    linear-gradient(180deg, var(--sky-1), var(--sky-0));
}

.logo-stage img {
  width: min(24rem, 80%);
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1rem;
  margin-top: 1.5rem;
}

.bgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
}

.bg {
  display: grid;
  gap: 0.6rem;
}

.bg .tile {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  padding: 1rem;
}

.bg .tile img {
  width: 78%;
}

.bg .cap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.t-sky {
  background: linear-gradient(180deg, var(--sky-1), var(--sky-0));
}

.t-ink {
  background: var(--ink);
}

.t-sugar {
  background: var(--sugar-2);
  box-shadow: inset 0 0 0 2px var(--sugar-3);
}

.t-sun {
  background: linear-gradient(180deg, var(--sun-1), var(--sun-2));
}

.t-photo {
  background: url(img/ph-night.webp) center / cover;
}

.t-busy {
  background:
    repeating-linear-gradient(45deg, #ff3e9a 0 14px, #ffc21a 14px 28px, #22d39a 28px 42px, #5b25d6 42px 56px);
}

.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}

.clear {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  background:
    linear-gradient(var(--sugar-2), var(--sugar-2)) padding-box,
    repeating-linear-gradient(90deg, var(--ink-3) 0 8px, transparent 8px 14px) border-box;
  border: 2px dashed var(--ink-3);
}

.clear .zone {
  position: relative;
  width: 70%;
  padding: 7%;
  background: rgb(255 62 154 / 0.12);
  outline: 2px dashed var(--gum-2);
  outline-offset: -2px;
  border-radius: 0.4rem;
}

.clear .zone img {
  width: 100%;
}

.clear .x {
  position: absolute;
  font: 800 0.75rem/1 var(--f-body);
  color: var(--gum-lip);
  letter-spacing: 0.04em;
}

.minsize {
  display: flex;
  align-items: end;
  gap: 1.5rem;
  min-height: 9rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--sugar-2);
  box-shadow: inset 0 0 0 2px var(--sugar-3);
}

.minsize figure {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.misuse {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
}

.mis {
  display: grid;
  gap: 0.6rem;
}

.mis .tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-0));
}

.mis .tile img {
  width: 66%;
}

.mis .tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - 2px), var(--cherry-2) calc(50% - 2px), var(--cherry-2) calc(50% + 2px), transparent calc(50% + 2px));
  opacity: 0.9;
}

.mis p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.mis p .ic {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--cherry-2);
  color: #fff;
}

.mis p .ic svg {
  width: 0.8rem;
  height: 0.8rem;
}

.m-recolor img {
  filter: invert(1) sepia(1) saturate(6) hue-rotate(250deg);
}

.m-stretch img {
  transform: scaleX(1.45) scaleY(0.8);
}

.m-rotate img {
  transform: rotate(22deg);
}

.m-effect img {
  filter: drop-shadow(0 0 10px #ff3e9a) drop-shadow(0 0 22px #ffc21a) blur(0.4px);
}

.m-busy .tile {
  background:
    repeating-linear-gradient(45deg, #ff3e9a 0 14px, #ffc21a 14px 28px, #22d39a 28px 42px, #5b25d6 42px 56px);
}

.m-type .tile span {
  font: 400 1.6rem/1 'Times New Roman', serif;
  color: #fff;
  font-style: italic;
}

.m-ink img {
  filter: brightness(0) invert(1) opacity(0.35);
}

.m-crop img {
  width: 140%;
  clip-path: inset(0 45% 0 0);
  translate: 18% 0;
}

/* ------------------------------ colour ------------------------------ */
.sky-bar {
  height: 6rem;
  border-radius: 1.2rem;
  background: linear-gradient(90deg, #016dcb, #0a8fe0, #0abeff, #8adfff, #d9f5ff);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.4);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.sw {
  position: relative;
  display: grid;
  grid-template-rows: 5.5rem auto;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  text-align: left;
  color: var(--ink);
  font: inherit;
  cursor: copy;
  box-shadow: 0 4px 0 var(--sugar-edge), inset 0 0 0 2px var(--sugar-3);
  transition: transform 160ms var(--ease);
}

.sw .chip {
  background: var(--c);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.06);
}

.sw .lab {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem 0.65rem;
}

.sw .lab b {
  font: 400 0.95rem/1.1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sw .lab code {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.sw .lab .role {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink-2);
}

@media (hover: hover) and (pointer: fine) {
  .sw:hover {
    transform: translateY(-3px);
  }
}

.sw:active {
  transform: translateY(1px);
}

.candyrow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.candyset {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 0 var(--sugar-edge), inset 0 0 0 2px var(--sugar-3);
  overflow: hidden;
}

.candyset .head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0.9rem;
  min-height: 6rem;
  color: var(--txt, var(--ink));
  background: linear-gradient(180deg, var(--f1), var(--f2));
  box-shadow: inset 0 -6px 0 var(--lip);
}

.candyset .head b {
  font: 400 1.5rem/1 var(--f-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.candyset .head .pill {
  align-self: start;
}

.candyset .tones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.candyset .tones button {
  display: grid;
  gap: 0.15rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.6rem;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  font: 700 0.75rem/1.2 var(--f-body);
  cursor: copy;
}

.candyset .tones button + button {
  box-shadow: inset 2px 0 0 var(--sugar-3);
}

.candyset .tones i {
  display: block;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(13 26 74 / 0.12);
}

.candyset .tones code {
  font-size: 0.78rem;
}

.candyset p {
  padding: 0 0.9rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 1.2rem;
  overflow: hidden;
  min-height: 9rem;
}

.vs > div {
  display: grid;
  align-content: end;
  gap: 0.3rem;
  padding: 1.1rem;
  color: #fff;
}

.vs b {
  font: 400 clamp(1.6rem, 1.3rem + 1vw, 2.25rem) / 1 var(--f-display);
  letter-spacing: 0.03em;
  text-shadow: 0 3px 0 rgb(6 16 47 / 0.4);
}

.vs .you {
  background: linear-gradient(160deg, var(--you-1), var(--you));
}

.vs .them {
  background: linear-gradient(200deg, var(--them-1), var(--them));
  text-align: right;
}

.vs code {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ------------------------------ type ------------------------------ */
.font {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.font + .font {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--sugar-3);
}

.font .big {
  font-size: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  line-height: 0.95;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.font .glyphs {
  margin-top: 0.8rem;
  font-size: 1.15rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.f-lucky {
  font-family: var(--f-display);
}

.f-lilita {
  font-family: var(--f-label);
}

.f-rubik {
  font-family: var(--f-body);
  font-weight: 600;
}

.font dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.95rem;
  margin-top: 0.9rem;
}

.font dt {
  font-weight: 800;
  color: var(--ink);
}

.font dd {
  color: var(--ink-2);
}

.scale {
  display: grid;
  gap: 1rem;
}

.scale > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed var(--sugar-3);
}

.scale > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.scale .k {
  font: 800 0.75rem/1.3 var(--f-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.scale .k code {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}

.sample-sticker {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}

.sample-label {
  font: 400 1.375rem/1.05 var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sample-body {
  font: 600 1rem/1.4 var(--f-body);
  color: var(--ink-2);
}

.sample-num {
  font: 800 2rem/1 var(--f-body);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------ signature ------------------------------ */
.sig {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.sig-demo {
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  padding: 2.25rem 1.25rem;
  border-radius: 1.4rem;
  background:
    radial-gradient(80% 90% at 50% 0%, var(--skyc-1), transparent 70%),
    linear-gradient(180deg, var(--sky-1), var(--sky-0));
}

.sig-demo .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.anatomy-slab {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem 3rem;
  border-radius: 1.4rem;
  background: var(--sugar-2);
  box-shadow: inset 0 0 0 2px var(--sugar-3);
}

.anatomy-slab .callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin-top: 2rem;
}

.anatomy-slab .callouts div {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.anatomy-slab .callouts b {
  display: block;
  color: var(--ink);
  font: 400 1rem/1.1 var(--f-label);
  text-transform: uppercase;
}

/* ------------------------------ cards + champions ------------------------------ */
.card-anatomy {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.card-anatomy figure {
  position: relative;
}

.card-anatomy figure img {
  width: 100%;
  border-radius: 6%/4.4%;
  box-shadow: 0 10px 0 rgb(6 16 47 / 0.15), 0 26px 40px -18px rgb(6 16 47 / 0.55);
}

.badges {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.badges li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.85rem;
  align-items: center;
}

.badges .b {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.6rem;
  background: var(--c);
  color: #fff;
  font: 400 1.4rem/1 var(--f-display);
  -webkit-text-stroke: 0.12em var(--ink);
  paint-order: stroke fill;
}

.badges b {
  font: 400 1.05rem/1.1 var(--f-label);
  text-transform: uppercase;
}

.badges span {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(30%, 6.5rem), 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.deck figure {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.deck img {
  width: 100%;
  aspect-ratio: 825 / 1125;
  border-radius: 6%/4.4%;
  box-shadow: 0 4px 0 rgb(6 16 47 / 0.12), 0 10px 18px -10px rgb(6 16 47 / 0.5);
  background: var(--sugar-3);
}

.deck figcaption {
  font: 400 0.8rem/1.1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink-2);
}

.champs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(30%, 7.5rem), 1fr));
  gap: 0.75rem;
}

.champ {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.4rem 0.6rem;
  border-radius: 1rem;
  background: radial-gradient(90% 70% at 50% 30%, #fff, var(--sugar-2));
  box-shadow: inset 0 0 0 2px var(--sugar-3);
}

.champ img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.champ span {
  font: 400 0.85rem/1.1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.champ small {
  font: 800 0.7rem/1 var(--f-body);
  color: var(--ink-3);
}

/* ------------------------------ downloads ------------------------------ */
.dls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}

.dl {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  padding: 1.25rem;
}

.dl .top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.dl h3 {
  font-size: 1.35rem;
}

.dl p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.45;
}

.dl .slab {
  justify-self: start;
}

.dl.feature {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  color: var(--ink);
}

.dl.feature h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 2rem);
}

.dl.feature p {
  color: var(--ink);
  opacity: 0.85;
}

.dl.feature .slab {
  justify-self: end;
}

.licence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.licence ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.45;
}

/* ------------------------------ footer ------------------------------ */
.footer {
  margin-top: 4rem;
  padding: 2rem var(--gutter) 2.5rem;
  background: var(--ink);
  color: rgb(255 255 255 / 0.8);
}

.footer .in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 88rem;
  margin: 0 auto;
}

.footer img {
  width: 7rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #fff;
  font: 400 1rem/1 var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .footer a:hover {
    color: var(--sun-1);
  }
}

.footer small {
  font-size: 0.85rem;
}

/* ------------------------------ toast ------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 60;
  translate: -50% 0;
  padding: 0.8rem 1.2rem 0.7rem;
  border-radius: 0.9rem;
  background: var(--ink);
  color: #fff;
  font: 400 1.05rem/1 var(--f-label);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 5px 0 var(--ink-deep);
  transform: skewX(var(--skew)) translateY(1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms var(--ease);
}

.toast.on {
  opacity: 1;
  transform: skewX(var(--skew)) translateY(0);
}

.toast i {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.5rem;
  border-radius: 0.2rem;
  background: var(--c, var(--sun-2));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4);
  vertical-align: -0.05rem;
}

/* ------------------------------ reveal ------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    translate: 0 14px;
    transition: opacity 420ms ease-out, translate 520ms var(--ease);
  }
  html.js [data-reveal].in {
    opacity: 1;
    translate: 0 0;
  }
}

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1080px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
  }

  .nav {
    display: none;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: block;
    margin: 0 calc(var(--gutter) * -1);
    padding: calc(0.5rem + env(safe-area-inset-top)) var(--gutter) 0.5rem;
    background: var(--glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 0 rgb(6 16 47 / 0.35);
  }

  .topbar .bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .topbar .brand {
    width: 5.5rem;
    flex: none;
  }

  .topbar .chips {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    mask: linear-gradient(90deg, #000 85%, transparent);
  }

  .topbar .chips::-webkit-scrollbar {
    display: none;
  }

  .topbar .chips a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.8rem;
    border-radius: 0.7rem;
    color: rgb(255 255 255 / 0.85);
    font: 400 0.95rem/1 var(--f-label);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    scroll-snap-align: start;
  }

  .topbar .chips a[aria-current='true'] {
    background: rgb(255 255 255 / 0.14);
    color: var(--sun-1);
  }
}

@media (max-width: 760px) {
  .hero-stage {
    grid-template-columns: 1fr;
  }

  .hero-champ {
    display: none;
  }

  .dd-row,
  .sig,
  .font,
  .licence,
  .card-anatomy {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-anatomy figure {
    max-width: 15rem;
  }

  .dl.feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .dl.feature .slab {
    justify-self: start;
  }

  .scale > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .anatomy-slab .callouts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .slab.lg {
    white-space: normal;
  }
}

.shots {
  grid-template-columns: repeat(auto-fill, minmax(min(44%, 15rem), 1fr));
  align-items: start;
}

/* ------------------------------ native feel on phones (emilkowalski/skills mobile-native) ------------------------------ */
/* no gray tap flash: every control below has its own :active instead */
html {
  -webkit-tap-highlight-color: transparent;
}

/* fire click at once: no double-tap-zoom wait on controls */
a,
button,
.slab,
.sw,
[role='button'] {
  touch-action: manipulation;
}

/* control labels are not content: no long-press selection or callout on them */
.slab,
.sw,
.candyset .tones button,
.nav a,
.topbar .chips a,
.footer a,
.eyebrow,
.plate,
.pill {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* press feedback lands with the finger, not on release */
.nav a,
.topbar .chips a,
.footer a,
.candyset .tones button {
  transition: transform 120ms var(--ease), background-color 160ms ease, color 160ms ease;
}

.nav a:active,
.topbar .chips a:active,
.candyset .tones button:active {
  transform: scale(0.97);
  background-color: rgb(255 255 255 / 0.16);
}

.candyset .tones button:active {
  background-color: var(--sugar-2);
}

.footer a:active {
  transform: scale(0.97);
}

/* landscape puts the notch on a side: pad the content, paint the world edge to edge */
.shell {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.footer {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 1080px) {
  .topbar {
    margin-left: calc(max(var(--gutter), env(safe-area-inset-left, 0px)) * -1);
    margin-right: calc(max(var(--gutter), env(safe-area-inset-right, 0px)) * -1);
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
}

/* in-page jumps clear the sticky chip bar on phones; no sticky bar on desktop */
@media (min-width: 1081px) {
  html {
    scroll-padding-top: 1.5rem;
  }
}
