/* Stillpunkt website. Plain CSS, mobile first. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4eee7;
  --bg-2: #ece4da;
  --paper: #fbf8f4;
  --ink: #2a211f;
  --ink-2: rgba(42, 33, 31, 0.68);
  --ink-3: rgba(42, 33, 31, 0.46);
  --line: rgba(42, 33, 31, 0.12);
  --mauve: #6e5a57;
  --clay: #b98d72;
  --cream: #f7f1ec;
  --cream-2: rgba(247, 241, 236, 0.72);
  --cream-3: rgba(247, 241, 236, 0.5);
  --glass: rgba(255, 255, 255, 0.16);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --r: 20px;
  --r-lg: clamp(22px, 2.4vw, 32px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --g-atem: linear-gradient(160deg, #d8b8a2 0%, #9c7a6e 55%, #5e4a46 100%);
  --g-bewegung: linear-gradient(160deg, #e2c4a2 0%, #b08463 52%, #6c4f3e 100%);
  --g-meditation: linear-gradient(160deg, #c3bba3 0%, #807a63 52%, #403c31 100%);
  --g-earth: linear-gradient(165deg, #7a6461 0%, #6e5a57 38%, #3a2e2b 78%, #2a211f 100%);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  background: rgba(185, 141, 114, 0.35);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.skip:focus {
  top: 12px;
}

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

.serif {
  font-family: var(--serif);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  margin: 0;
  text-wrap: balance;
}

h2.section-title {
  font-size: clamp(2.5rem, 1.55rem + 3.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.lede {
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.center {
  text-align: center;
}
.center .lede {
  margin-inline: auto;
}

/* ---------- media with warm fallback ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--g-atem);
  isolation: isolate;
}
.media.w-bewegung {
  background: var(--g-bewegung);
}
.media.w-meditation {
  background: var(--g-meditation);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}
.media > img.is-missing {
  visibility: hidden;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--cream);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 84px;
}
.site-header.on-light {
  position: relative;
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease);
}
.nav a:not(.pill):hover {
  background: rgba(255, 255, 255, 0.12);
}
.on-light .nav a:not(.pill):hover {
  background: rgba(42, 33, 31, 0.06);
}
.nav .hide-sm {
  display: none;
}
.pill {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.pill:hover {
  background: rgba(255, 255, 255, 0.26);
}
.on-light .pill {
  background: var(--ink);
  color: var(--cream);
  box-shadow: none;
}

@media (min-width: 760px) {
  .nav .hide-sm {
    display: inline-block;
  }
}

/* ---------- buttons and badges ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.badges a {
  display: block;
  border-radius: 10px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.badges a:hover {
  transform: translateY(-2px);
}
.badges img {
  height: 50px;
  width: auto;
}
.badges .gp img {
  height: 50px;
}

.note {
  font-size: 0.9rem;
  color: var(--ink-3);
}

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

.hero {
  position: relative;
  min-height: 100svh;
  max-height: 1100px;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: #5e4a46;
  overflow: hidden;
}
.hero .media {
  position: absolute;
  inset: 0;
  background: var(--g-earth);
}
.hero .media img {
  object-position: 74% 40%;
  animation: hero-in 2.4s var(--ease) both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(30, 22, 20, 0.82) 0%, rgba(30, 22, 20, 0.42) 38%, rgba(30, 22, 20, 0) 64%),
    linear-gradient(to bottom, rgba(30, 22, 20, 0.35) 0%, rgba(30, 22, 20, 0) 22%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: clamp(36px, 7vh, 80px);
}
.hero h1 {
  font-size: clamp(3.1rem, 1.6rem + 6.4vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 11ch;
  animation: rise 1.4s 0.15s var(--ease) both;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.035em;
}
.hero .sub {
  margin: 22px 0 30px;
  max-width: 30em;
  font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--cream-2);
  text-wrap: pretty;
  animation: rise 1.4s 0.3s var(--ease) both;
}
.hero .badges {
  animation: rise 1.4s 0.45s var(--ease) both;
}
.hero .note {
  margin-top: 18px;
  color: var(--cream-3);
  letter-spacing: 0.01em;
  animation: rise 1.4s 0.55s var(--ease) both;
}
.hero .note span + span::before {
  content: "·";
  margin: 0 0.55em;
}

@media (min-width: 900px) {
  .hero::after {
    background:
      linear-gradient(to top, rgba(30, 22, 20, 0.7) 0%, rgba(30, 22, 20, 0.2) 40%, rgba(30, 22, 20, 0) 62%),
      linear-gradient(to right, rgba(30, 22, 20, 0.55) 0%, rgba(30, 22, 20, 0.12) 46%, rgba(30, 22, 20, 0) 60%),
      linear-gradient(to bottom, rgba(30, 22, 20, 0.35) 0%, rgba(30, 22, 20, 0) 22%);
  }
  .hero .media img {
    object-position: 60% 42%;
  }
}

@keyframes hero-in {
  from {
    transform: scale(1.06);
    opacity: 0.4;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.section {
  padding-block: clamp(84px, 11vw, 160px);
}
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head.center {
  justify-items: center;
}

/* ---------- units rail (marquee) ---------- */

.units {
  padding-bottom: clamp(60px, 8vw, 120px);
}
.rail {
  display: grid;
  gap: 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.rail-row {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee var(--dur, 120s) linear infinite;
}
.rail-row.reverse {
  --dur: 140s;
  animation-direction: reverse;
}
.rail:hover .rail-row {
  animation-play-state: paused;
}
.rail-row ul {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

.unit {
  position: relative;
  width: clamp(168px, 44vw, 228px);
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  color: var(--cream);
}
.unit .media {
  position: absolute;
  inset: 0;
}
.unit .media img {
  transition: transform 1.2s var(--ease);
}
.unit:hover .media img {
  transform: scale(1.04);
}
.unit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 18, 16, 0.72) 0%, rgba(24, 18, 16, 0.18) 42%, rgba(24, 18, 16, 0) 60%);
  pointer-events: none;
}
.unit-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 14px;
  display: grid;
  gap: 8px;
}
.unit .title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}
.chip {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

/* ---------- worlds ---------- */

.worlds {
  list-style: none;
  margin-block: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 380px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  padding-bottom: 8px;
  scrollbar-width: none;
}
.worlds::-webkit-scrollbar {
  display: none;
}
.world {
  scroll-snap-align: start;
}
.world .media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
}
.world .label {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  color: var(--cream);
  background: rgba(30, 22, 20, 0.3);
  font-size: 0.8rem;
  padding: 8px 12px;
}
.world h3 {
  margin-top: 22px;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.world p {
  margin: 12px 0 0;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .worlds {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    gap: clamp(16px, 2vw, 28px);
  }
}

/* ---------- full-bleed band ---------- */

.band {
  position: relative;
  margin-inline: clamp(8px, 1vw, 14px);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: clamp(460px, 78vh, 820px);
  display: grid;
  place-items: center;
  color: var(--cream);
  text-align: center;
}
.band .media {
  position: absolute;
  inset: 0;
  background: var(--g-meditation);
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(30, 22, 20, 0.34) 0%, rgba(30, 22, 20, 0.12) 60%, rgba(30, 22, 20, 0.2) 100%);
}
.band-text {
  position: relative;
  z-index: 1;
  padding: var(--gutter);
}
.band h2 {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 13ch;
  margin-inline: auto;
}
.band p {
  margin: 20px auto 0;
  max-width: 28em;
  color: var(--cream-2);
  font-size: 1.08rem;
}

/* ---------- needs (dark section with CSS-only tabs) ---------- */

.needs {
  margin: clamp(84px, 11vw, 160px) clamp(8px, 1vw, 14px) 0;
  border-radius: var(--r-lg);
  background: var(--g-earth);
  color: var(--cream);
  padding-block: clamp(72px, 9vw, 128px);
  position: relative;
  overflow: hidden;
}
.needs::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(201, 168, 145, 0.22), rgba(201, 168, 145, 0) 65%);
  pointer-events: none;
}
.needs .section-head {
  position: relative;
}
.needs .lede {
  color: var(--cream-2);
}

.tabs {
  position: relative;
}
.tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tab-list {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.tab-list label {
  cursor: pointer;
  padding: 6px 0 10px;
  font-weight: 500;
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.1rem);
  color: var(--cream-3);
  border-bottom: 1.5px solid transparent;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
  -webkit-user-select: none;
  user-select: none;
}
.tab-list label:hover {
  color: var(--cream-2);
}
#tab-nerv:checked ~ .tab-list [for="tab-nerv"],
#tab-koerper:checked ~ .tab-list [for="tab-koerper"] {
  color: var(--cream);
  border-color: var(--cream);
}
#tab-nerv:focus-visible ~ .tab-list [for="tab-nerv"],
#tab-koerper:focus-visible ~ .tab-list [for="tab-koerper"] {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
  border-radius: 4px;
}
.tab-panel {
  display: none;
}
#tab-nerv:checked ~ .panel-nerv,
#tab-koerper:checked ~ .panel-koerper {
  display: grid;
  animation: fade 0.6s var(--ease) both;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.need-grid {
  grid-auto-flow: column;
  grid-auto-columns: min(64%, 260px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  margin: 0 calc(var(--gutter) * -1);
  list-style: none;
  padding-block: 0;
  scrollbar-width: none;
}
.need-grid::-webkit-scrollbar {
  display: none;
}
.need {
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  overflow: hidden;
}
.need .media {
  position: absolute;
  inset: 0;
}
.need::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 18, 16, 0.78) 0%, rgba(24, 18, 16, 0.2) 45%, rgba(24, 18, 16, 0) 65%);
}
.need-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 18px;
}
.need h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.need p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--cream-2);
}
@media (min-width: 1000px) {
  .need-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
    margin: 0;
    padding-inline: 0;
    gap: 14px;
  }
}

/* ---------- sound design ---------- */

.features {
  display: grid;
  gap: clamp(44px, 5vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature .media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
}
.feature h3 {
  margin-top: 22px;
  font-size: clamp(1.7rem, 1.4rem + 0.9vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.feature p {
  margin: 12px 0 0;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 28px);
  }
}

/* ---------- free ---------- */

.free {
  display: grid;
  gap: clamp(36px, 5vw, 80px);
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(32px, 6vw, 88px);
  box-shadow: inset 0 0 0 1px rgba(42, 33, 31, 0.06), 0 24px 60px -48px rgba(42, 33, 31, 0.35);
}
.free h2 {
  font-size: clamp(2.6rem, 1.5rem + 4vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.free h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--mauve);
}
.free .lede {
  margin: 24px 0 32px;
}
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  align-self: center;
}
.checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.checks svg {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--mauve);
}
.checks strong {
  display: block;
  font-weight: 500;
}
.checks span {
  display: block;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (min-width: 960px) {
  .free {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }
}

/* ---------- breathing ---------- */

.breathe {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}
.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(120vw, 980px);
  aspect-ratio: 1;
  margin: calc(min(120vw, 980px) / -2) 0 0 calc(min(120vw, 980px) / -2);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(201, 157, 128, 0.55) 0%,
    rgba(185, 141, 114, 0.32) 28%,
    rgba(110, 90, 87, 0.12) 52%,
    rgba(110, 90, 87, 0) 70%
  );
  transform: scale(0.5);
  animation: orb 16s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.orb::after {
  content: "";
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  border: 1px solid rgba(110, 90, 87, 0.18);
}
@keyframes orb {
  0% {
    transform: scale(0.5);
  }
  25% {
    transform: scale(1);
  }
  62.5% {
    transform: scale(0.5);
  }
  100% {
    transform: scale(0.5);
  }
}
.breathe h2 {
  position: relative;
  display: grid;
  font-size: clamp(3.4rem, 1.6rem + 7.6vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.breathe h2 span {
  display: block;
  opacity: 0.2;
  animation: 16s ease-in-out infinite;
}
.breathe h2 span:nth-child(1) {
  animation-name: word-1;
}
.breathe h2 span:nth-child(2) {
  animation-name: word-2;
  font-style: italic;
  font-weight: 300;
}
.breathe h2 span:nth-child(3) {
  animation-name: word-3;
}
@keyframes word-1 {
  0%, 25%, 100% { opacity: 0.2; }
  4%, 21% { opacity: 1; }
}
@keyframes word-2 {
  0%, 25%, 62.5%, 100% { opacity: 0.2; }
  29%, 58% { opacity: 1; }
}
@keyframes word-3 {
  0%, 62.5%, 100% { opacity: 0.2; }
  67%, 95% { opacity: 1; }
}
.breathe .cta {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  justify-items: center;
  gap: 18px;
}
.breathe .cta p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.08rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 40px;
  font-size: 0.94rem;
}
.site-footer .wrap {
  display: grid;
  gap: 28px;
}
.footer-top {
  display: grid;
  gap: 20px;
}
.footer-top p {
  margin: 8px 0 0;
  color: var(--ink-2);
  max-width: 26em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  text-decoration: none;
  color: var(--ink-2);
}
.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}
@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* ---------- legal and help pages ---------- */

.doc {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(72px, 9vw, 120px);
}
.doc h1 {
  font-size: clamp(2.6rem, 1.8rem + 3vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.doc .meta {
  margin: 18px 0 40px;
  color: var(--ink-3);
  font-size: 0.95rem;
}
.doc h2 {
  font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 52px 0 14px;
}
.doc h3 {
  font-family: var(--sans);
  font-size: 1.04rem;
  font-weight: 600;
  margin: 30px 0 8px;
}
.doc p,
.doc li {
  color: var(--ink-2);
  text-wrap: pretty;
}
.doc strong {
  color: var(--ink);
  font-weight: 600;
}
.doc ul,
.doc ol {
  padding-left: 1.2em;
}
.doc li + li {
  margin-top: 6px;
}
.doc a {
  color: var(--ink);
  text-decoration-color: rgba(42, 33, 31, 0.3);
  text-underline-offset: 3px;
}
.doc a:hover {
  text-decoration-color: var(--ink);
}
.callout {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.callout p {
  margin: 0;
}
.callout p + p {
  margin-top: 10px;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0 !important;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  min-height: 32px;
}
.steps li + li {
  margin-top: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details:first-of-type {
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  position: relative;
  font-weight: 500;
  color: var(--ink);
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease);
}
details[open] summary::after {
  transform: rotate(225deg);
  margin-top: -2px;
}
details p {
  margin: 0 0 18px;
}

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

.lost {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px var(--gutter) 100px;
  position: relative;
  overflow: hidden;
}
.lost .orb {
  width: 640px;
  margin: -320px 0 0 -320px;
}
.lost-body {
  position: relative;
}
.lost h1 {
  font-size: clamp(3rem, 2rem + 5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.lost p {
  color: var(--ink-2);
  margin: 18px auto 30px;
  max-width: 26em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}
.button:hover {
  transform: translateY(-2px);
  background: #3a2e2b;
}

@media (min-width: 760px) {
  .breathe {
    min-height: clamp(640px, 92svh, 980px);
  }
}

@media (max-width: 440px) {
  .badges {
    gap: 10px;
  }
  .badges img,
  .badges .gp img {
    height: 42px;
  }
  .chip {
    font-size: 0.68rem;
    padding: 5px 8px;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rail {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .rail-row {
    animation: none;
  }
  .rail-row ul[aria-hidden="true"] {
    display: none;
  }
  .breathe h2 span {
    opacity: 1;
    animation: none;
  }
  .orb {
    animation: none;
    transform: scale(0.8);
  }
}
