/* schnaq.app — design tokens follow the schnaq app (_tokens.scss) and
   the schnaq.com CI: Space Grotesk headings, Inter body, brand blue #1292ee,
   orange #ff9901 as the single warm accent, navy #001452 text, light mode. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.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-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-wght-normal.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-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --background: #f6f8fc;
  --card: #fff;
  --foreground: #001452;
  --muted: #e6edf4;
  --muted-foreground: #5b7084;
  --border: #dce2e9;
  --primary: #1292ee;
  --primary-strong: #1976d2;
  --primary-subtle: #e3f2fd;
  --link: #1565c0;
  --secondary: #ff9901;
  --secondary-strong: #b35c00;
  --secondary-subtle: #fff3e0;
  --danger: #c62828;
  --ink: #0b1a2e;
  /* Muted text and errors on the navy and ink surfaces. */
  --on-dark-muted: #b9c6e4;
  --on-dark-danger: #ffb4ab;
  --radius: 0.375rem;
  --radius-lg: 0.75rem;
  --shadow: 0 1px 2px rgb(0 20 82 / 0.06), 0 8px 24px -8px rgb(0 20 82 / 0.14);
  --shadow-lg: 0 2px 4px rgb(0 20 82 / 0.05), 0 24px 56px -16px rgb(0 20 82 / 0.28);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-body);
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

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

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

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

::selection {
  background: var(--primary);
  color: #fff;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary-strong) 55%, transparent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--foreground);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 95%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  text-decoration: none;
  font: 700 1.375rem/1 var(--font-heading);
  letter-spacing: -0.03em;
}

.site-header .logo {
  margin-right: auto;
}

.logo img {
  width: 2.75rem;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a,
.lang-switch {
  color: var(--foreground);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.lang-switch:hover {
  color: var(--primary-strong);
}

.lang-switch {
  font: 600 0.75rem/1 var(--font-heading);
  letter-spacing: 0.12em;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 52rem) {
  .site-nav {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 0.9375rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}

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

.btn-primary {
  background: var(--primary-strong);
  color: #fff;
  box-shadow: 0 6px 18px -8px var(--primary-strong);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary-strong) 85%, #000);
}

/* The brand orange is a fill colour and carries navy text, as in the app. */
.btn-accent {
  background: var(--secondary);
  color: var(--foreground);
  box-shadow: 0 6px 18px -8px var(--secondary-strong);
}

.btn-accent:hover {
  background: color-mix(in srgb, var(--secondary) 88%, #000);
}

.btn-outline {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary-strong);
  color: var(--primary-strong);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Editorial section header, as on schnaq.com: label chip + grotesk H2. */

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: var(--radius);
  background: var(--primary-subtle);
  color: var(--link);
  font: 600 0.75rem/1 var(--font-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.label-accent {
  border-color: color-mix(in srgb, var(--secondary) 45%, transparent);
  background: var(--secondary-subtle);
  color: var(--secondary-strong);
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.lead {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* Hero */

.hero {
  position: relative;
  padding-block: clamp(1.5rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
  overflow: clip;
}

/* Dot grid like a whiteboard, fading out towards the bottom. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 22%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}

.hero .wrap {
  display: grid;
  gap: clamp(3rem, 6vw, 4rem);
  align-items: center;
}

/* The access code form comes first in the markup, so phones show it above
   the headline; wider screens put it to the right of the copy. */
@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: 1fr minmax(20rem, 25rem);
    gap: clamp(3rem, 7vw, 6rem);
  }

  .join-card {
    grid-column: 2;
    grid-row: 1;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-strong);
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--secondary) 45%, transparent) 68%);
}

.hero .lead {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.hero-note {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Access code form */

.join-card {
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--foreground);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: #fff;
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.join-title {
  margin: 0 0 0.35rem;
  font: 700 clamp(1.625rem, 6vw, 2rem)/1.1 var(--font-heading);
  letter-spacing: -0.03em;
}

.join-hint {
  margin: 0 0 1.5rem;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.join-card label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--on-dark-muted);
  font: 600 0.75rem/1 var(--font-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.join-card input {
  width: 100%;
  /* Room for the sticky header when a #code link scrolls here. */
  scroll-margin-top: 7rem;
  padding: 0.7rem 0.5rem;
  border: 2px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.06);
  color: var(--secondary);
  font: 700 clamp(2rem, 10vw, 2.625rem)/1 var(--font-heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-align: center;
  caret-color: var(--secondary);
  transition: border-color 0.15s;
}

.join-card input::placeholder {
  color: rgb(255 255 255 / 0.22);
}

.join-card input:focus {
  border-color: var(--secondary);
  outline: none;
}

.join-card input[aria-invalid='true'] {
  border-color: var(--on-dark-danger);
  animation: shake 0.35s;
}

.join-message {
  min-height: 1.5rem;
  margin: 0.6rem 0 0.75rem;
  color: var(--on-dark-danger);
  font-size: 0.875rem;
}

.join-card .btn {
  width: 100%;
  min-height: 3rem;
  font-size: 1.0625rem;
}

.join-card .btn:disabled {
  background: color-mix(in srgb, var(--secondary) 45%, var(--foreground));
  box-shadow: none;
  transform: none;
  cursor: default;
}

.join-note {
  margin: 1rem 0 0;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

@keyframes shake {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

/* Projector stage: a beamer screen with the join code and a live poll, flanked by
   a Q&A card and a word cloud. Decorative, described by its aria-label. */

.stage {
  position: relative;
  padding-bottom: 4.5rem;
}

.screen {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.screen-bar .live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
  color: var(--danger);
  font: 600 0.6875rem/1 var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-bar .live::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}

.join {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--foreground);
  color: #fff;
}

.join small {
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

.join small b {
  color: #fff;
  font-weight: 600;
}

.join .code {
  font: 700 clamp(1.75rem, 4.2vw, 2.5rem)/1 var(--font-heading);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--secondary);
}

.poll {
  padding: 1.25rem;
}

.poll-q {
  margin-bottom: 1rem;
  font: 600 1.0625rem/1.3 var(--font-heading);
}

.bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  background: var(--muted);
  font-size: 0.875rem;
  isolation: isolate;
  overflow: hidden;
}

.bar::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: var(--value);
  background: color-mix(in srgb, var(--primary) 30%, #fff);
  transform-origin: left;
  animation: grow 1.4s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.bar.is-leading::before {
  background: color-mix(in srgb, var(--primary) 55%, #fff);
}

.bar b {
  font-variant-numeric: tabular-nums;
}

.float {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  animation: rise 0.8s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.float-qa {
  right: -0.5rem;
  bottom: -0.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  max-width: 17rem;
  padding: 0.75rem 0.9rem;
}

.upvote {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  padding: 0.25rem;
  border-radius: var(--radius);
  background: var(--primary-subtle);
  color: var(--primary-strong);
  font: 700 0.875rem/1.1 var(--font-heading);
}

.float-qa small {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.float-cloud {
  left: -1rem;
  bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5rem;
  max-width: 14rem;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-heading);
  line-height: 1.2;
  animation-delay: 1.1s;
}

.float-cloud span:nth-child(1) {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary-strong);
}
.float-cloud span:nth-child(2) {
  font-size: 0.9375rem;
  color: var(--secondary-strong);
}
.float-cloud span:nth-child(3) {
  font-size: 1.0625rem;
  font-weight: 600;
}
.float-cloud span:nth-child(4) {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.float-cloud span:nth-child(5) {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 40rem) {
  .float-cloud {
    left: 0;
  }

  .float-qa {
    right: 0;
  }
}

/* Staggered entrance for the hero copy. */
.reveal > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.reveal > :nth-child(2) {
  animation-delay: 0.08s;
}
.reveal > :nth-child(3) {
  animation-delay: 0.16s;
}
.reveal > :nth-child(4) {
  animation-delay: 0.24s;
}
.reveal > :nth-child(5) {
  animation-delay: 0.32s;
}

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

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* Steps */

.steps {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: '0' counter(step);
  display: block;
  margin-bottom: 1rem;
  color: var(--primary-strong);
  font: 700 0.8125rem/1 var(--font-heading);
  letter-spacing: 0.15em;
}

.steps h3 {
  font-size: 1.25rem;
}

.steps + .actions {
  margin-top: 1.5rem;
}

.steps p {
  margin: 0;
  color: var(--muted-foreground);
}

/* Features */

/* Cards separated by hairlines: the 1px gap shows the border colour. */
.features,
.tiles {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* With two columns, an odd last card spans the row instead of leaving a hole. */
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .feature:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

@media (min-width: 60rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.75rem 1.5rem;
  background: var(--card);
  transition: background-color 0.2s;
}

.feature:hover {
  background: color-mix(in srgb, var(--primary-subtle) 45%, #fff);
}

.feature svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-strong);
}

.feature h3 {
  font-size: 1.125rem;
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Use cases */

.uses {
  display: grid;
  gap: 2rem 3rem;
  margin: 0;
}

@media (min-width: 48rem) {
  .uses {
    grid-template-columns: repeat(2, 1fr);
  }
}

.uses div {
  padding-left: 1.25rem;
  border-left: 3px solid var(--secondary);
}

.uses dt {
  margin-bottom: 0.35rem;
  font: 600 1.25rem/1.25 var(--font-heading);
  letter-spacing: -0.01em;
}

.uses dd {
  margin: 0;
  color: var(--muted-foreground);
}

/* Open source */

.band {
  background: var(--card);
  border-block: 1px solid var(--border);
}

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

/* Grid items default to min-width: auto, so the terminal's long line would
   widen the column beyond the viewport. */
.split > * {
  min-width: 0;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

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

.facts li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0 0.75rem;
}

.facts li::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--primary-strong)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E")
    center / 0.9rem no-repeat;
  grid-row: span 2;
}

.facts strong {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
}

.facts span {
  color: var(--muted-foreground);
}

/* Terminal card, the schnaq.com "terminal" layer style. */
.terminal {
  margin: 0;
  background: var(--ink);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  color: #d6e2f5;
  font: 400 0.8125rem/1.8 var(--font-mono);
  overflow: hidden;
}

.terminal-head {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  color: var(--on-dark-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal pre {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  overflow-x: auto;
  font: inherit;
}

.terminal .prompt {
  color: var(--secondary);
  user-select: none;
}

.terminal .comment {
  color: #7d92b3;
}

.terminal + .actions {
  margin-top: 1.5rem;
}

/* Origin */

.origin {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .origin {
    grid-template-columns: 1.3fr 1fr;
  }
}

.tiles {
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.tiles div {
  padding: 1.5rem;
  background: var(--card);
}

.tiles dt {
  color: var(--primary-strong);
  font: 700 clamp(2rem, 4vw, 2.75rem)/1 var(--font-heading);
  letter-spacing: -0.03em;
}

.tiles dd {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Closing CTA */

.cta {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: var(--foreground);
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cta::after {
  content: '';
  position: absolute;
  right: -6rem;
  bottom: -9rem;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 70%, transparent), transparent);
}

.cta h2 {
  max-width: 34rem;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.cta p {
  max-width: 34rem;
  color: var(--on-dark-muted);
}

.cta a:not(.btn) {
  color: #fff;
}

.cta .btn-outline {
  background: transparent;
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
}

.cta .btn-outline:hover {
  border-color: #fff;
}

/* Prose pages (code of conduct, publications) */

.prose {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem);
  overflow-wrap: break-word;
}

.prose h1 {
  hyphens: auto;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.1875rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

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

.prose .pubs {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.prose .pubs li {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pub-type {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--secondary-strong);
  font: 600 0.6875rem/1.4 var(--font-heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pubs a {
  font: 600 1.0625rem/1.35 var(--font-heading);
}

.pubs p {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  padding-block: 3rem 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}

.footer-grid p {
  max-width: 22rem;
  margin-top: 1rem;
}

.footer-grid h2 {
  margin-bottom: 0.75rem;
  color: var(--foreground);
  font: 600 0.75rem/1 var(--font-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-grid ul {
  display: grid;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
