/*
 * sauerland.tech: the one stylesheet of the site.
 *
 * Tokens and components follow the lenne.Tech dark look of the meetup images
 * (render_meetup_images.py in the lt-marketing plugin): paper ground, dot grid,
 * orange glow, the rotated highlight box, JetBrains Mono labels.
 *
 * The page runs under `style-src 'self'`, so every style lives here: no style
 * attributes and no <style> elements in the HTML, also not inside inline SVG.
 * The asset placeholders in the url() values below are replaced by build.py
 * with the fingerprinted file names.
 *
 * Contrast (WCAG 2.2 AA), measured: ink 18:1, soft 13:1, muted 8.3:1 and
 * orange 8:1 on paper; paper text on the orange button 8:1; input borders
 * 4.2:1 against the card (non-text minimum 3:1).
 */

/* ------------------------------------------------------------ fonts */

/* Variable fonts, latin + latin-ext subsets, self-hosted (OFL, see /fonts-license.txt). */
@font-face {
  font-family: 'Onest';
  src: url('onest-latin.cc61cbd632.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: 'Onest';
  src: url('onest-latin-ext.f72bdc7559.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: 'JetBrains Mono';
  src: url('jetbrains-mono-latin.2c32b9b3ee.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  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: 'JetBrains Mono';
  src: url('jetbrains-mono-latin-ext.9c38cb2d0d.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  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 {
  --paper: #070b11;
  --surface: #0e1722;
  --surface-2: #13202f;
  --input: #0a1119;
  --ink: #f3f5f8;
  --soft: #cfd6df;
  --muted: #a3a9b1;
  --navy-200: #a7bace;
  --o300: #ffa37b;
  --o400: #ff8147; /* orange on dark grounds */
  --o500: #fb6500; /* logo orange: logo, glows, rings */
  --error: #ff6f69;
  --line: rgba(167, 186, 206, 0.16);
  --line-strong: #6b7b8e;
  --o-tint: rgba(255, 129, 71, 0.1);
  --o-border: rgba(255, 129, 71, 0.5);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --header-h: 68px;
  color-scheme: dark;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--soft);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Author display rules (grid, flex) would otherwise beat the UA rule for [hidden]. */
[hidden] {
  display: none !important;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 8.4vw, 5.4rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 3.3rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p {
  text-wrap: pretty;
}

strong,
b {
  color: var(--ink);
  font-weight: 700;
}

a {
  color: var(--o400);
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--o300);
}

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

::selection {
  background: var(--o400);
  color: var(--paper);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--o400);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

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

main:focus {
  outline: none;
}

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

.ic {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

/* ------------------------------------------------------------ shared pieces */

.mono {
  font-family: var(--mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--o400);
  font-size: 0.8125rem;
  margin-bottom: 14px;
}

/* One key word on the orange box, rotated like on the meetup images. */
.hl {
  display: inline-block;
  background: var(--o400);
  color: var(--paper);
  padding: 0 0.16em 0.04em;
  margin: 0.06em 0.06em 0 0;
  border-radius: 0.08em;
  transform: rotate(-2deg);
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--soft);
  max-width: 62ch;
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px);
  scroll-margin-top: var(--header-h);
}

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

.section-head h2 {
  margin-bottom: 18px;
}

.dots {
  background-image: radial-gradient(rgba(167, 186, 206, 0.11) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
}

.card {
  background: linear-gradient(180deg, rgba(14, 23, 34, 0.94), rgba(14, 23, 34, 0.82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--o-border);
  background: var(--o-tint);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.chip .ic {
  color: var(--o400);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75em 1.35em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--o400);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--o300);
  color: var(--paper);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--o-border);
}

.btn-secondary:hover {
  background: var(--o-tint);
  border-color: var(--o400);
  color: var(--ink);
}

.btn[aria-disabled='true'] {
  cursor: progress;
  opacity: 0.85;
}

.btn .spinner {
  display: none;
  width: 1em;
  height: 1em;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

.btn[aria-busy='true'] .spinner {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 17, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand:hover {
  color: var(--ink);
}

.brand-mug {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-size: 1.0625rem;
}

.brand-name span {
  color: var(--o400);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.site-nav a {
  color: var(--soft);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45em 1.1em;
  border-radius: 999px;
  background: var(--o400);
  color: var(--paper);
}

.site-nav .nav-cta:hover {
  background: var(--o300);
  color: var(--paper);
}

@media (max-width: 899px) {
  .site-nav .nav-item {
    display: none;
  }
}

@media (max-width: 389px) {
  .brand-name {
    font-size: 0.9375rem;
  }
  .brand-mug {
    width: 28px;
    height: 28px;
  }
}

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

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(48px, 8vw, 96px) 0;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background: radial-gradient(circle min(620px, 70vw) at 80% 34%, rgba(251, 101, 0, 0.22), rgba(251, 101, 0, 0));
}

/* Lets glow and dot grid run out into the plain paper of the next section. */
.hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  background: linear-gradient(rgba(7, 11, 17, 0), var(--paper));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-items: center;
}

.hero h1 .line {
  display: block;
}

.hero .lead {
  margin-top: 26px;
}

.hero .chips {
  margin-top: 22px;
}

.hero .actions {
  margin-top: 32px;
}

.hero-next {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 22px;
  color: var(--navy-200);
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0.04em;
}

.hero-next .ic {
  color: var(--o400);
  margin-top: 0.15em;
}

.hero-land {
  position: relative;
  align-self: end;
  margin: -24px calc(-1 * var(--gutter)) 0;
}

.hills {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hills .pin-shape {
  fill: var(--o400);
}

.hills .pin-hole {
  fill: var(--paper);
}

.hills .pin-label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 3.5px;
  paint-order: stroke;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 56px;
  }
  .hero-land {
    margin: 0 calc(-1 * var(--gutter)) 0 0;
    padding-top: 40px;
  }
}

/* ------------------------------------------------------------ next meetup */

.next-grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.next-media img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.next-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.next-body {
  padding: clamp(22px, 3.5vw, 36px);
}

.facts {
  display: grid;
  gap: 18px;
}

.facts > div {
  position: relative;
  min-height: 44px;
  padding-left: 58px;
}

.facts dt {
  color: var(--navy-200);
  font-size: 0.75rem;
  line-height: 1.5;
}

.facts dt .fact-ic {
  position: absolute;
  left: 0;
  top: 0;
}

.facts dd {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.facts dd .sub {
  display: block;
  color: var(--soft);
  font-weight: 400;
}

.fact-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--o-tint);
  border: 1px solid rgba(255, 129, 71, 0.35);
  color: var(--o400);
}

.next-body h3 {
  margin: 30px 0 14px;
  font-size: 0.8125rem;
  color: var(--o400);
}

.program {
  display: grid;
  gap: 12px;
}

.program li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid rgba(167, 186, 206, 0.18);
}

.program li:first-child {
  background: var(--o-tint);
  border-color: var(--o-border);
}

.program .prog-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--o400);
}

.program .prog-t {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.program .prog-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.ride {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.ride .ic {
  color: var(--o400);
  width: 1.4em;
  height: 1.4em;
  margin-top: 0.1em;
}

.next-body .actions {
  margin-top: 26px;
}

.next-none {
  padding: clamp(22px, 3.5vw, 36px);
  max-width: 760px;
}

.next-none p + p {
  margin-top: 12px;
}

.next-none .actions {
  margin-top: 22px;
}

@media (min-width: 960px) {
  .next-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .next-media {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* ------------------------------------------------------------ how it works */

.steps {
  display: grid;
  gap: 14px;
  counter-reset: none;
}

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
}

.step .num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--o400);
}

.step h3 {
  margin-bottom: 6px;
}

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

.how-note {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 18px 22px;
}

.how-note p {
  color: var(--soft);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .step {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ------------------------------------------------------------ channels */

.channels {
  display: grid;
  gap: 16px;
}

.channel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.channel:hover,
.channel:focus-within {
  border-color: var(--o-border);
}

.channel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--o-tint);
  border: 1px solid rgba(255, 129, 71, 0.35);
  color: var(--o400);
}

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

/* The whole card is the link target (the link itself stays the only focus stop). */
.channel h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.channel h3 a:focus-visible {
  outline: none;
}

.channel h3 a:focus-visible::after {
  outline: 3px solid var(--o400);
  outline-offset: 3px;
}

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

.channel .url {
  margin-top: auto;
  padding-top: 6px;
  color: var(--navy-200);
  font-family: var(--mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.channels-note {
  margin-top: 22px;
  color: var(--muted);
}

@media (min-width: 640px) {
  .channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .channels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------ newsletter */

.newsletter-grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.checklist .ic {
  margin-top: 0.25em;
  color: var(--o400);
}

.form-card {
  padding: clamp(22px, 4vw, 40px);
}

.form-grid,
.form-grid .two {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.field label {
  color: var(--ink);
  font-weight: 600;
}

.req {
  color: var(--o400);
}

.hint {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

input[type='text'],
input[type='email'] {
  width: 100%;
  min-height: 50px;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--input);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

input::placeholder {
  color: #8c96a3;
  opacity: 1;
}

input[type='text']:hover,
input[type='email']:hover {
  border-color: var(--navy-200);
}

input[type='text']:focus-visible,
input[type='email']:focus-visible {
  border-color: var(--o400);
  outline: 3px solid rgba(255, 129, 71, 0.45);
  outline-offset: 1px;
}

input[aria-invalid='true'] {
  border-color: var(--error);
}

.field-error:empty {
  display: none;
}

.field-error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.field-error::before {
  content: '!';
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.05em;
  border-radius: 50%;
  background: var(--error);
  color: var(--paper);
  font-size: 0.8em;
  font-weight: 800;
}

.field-check {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
}

.field-check input {
  width: 22px;
  height: 22px;
  margin: 0.15em 0 0;
  accent-color: var(--o400);
  cursor: pointer;
}

.field-check label {
  font-weight: 400;
  color: var(--soft);
  cursor: pointer;
}

.field-check .hint,
.field-check .field-error {
  grid-column: 2;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--error);
  background: rgba(255, 111, 105, 0.08);
  color: var(--ink);
}

.form-alert[hidden] {
  display: none;
}

.form-alert .ic {
  color: var(--error);
  width: 1.4em;
  height: 1.4em;
}

.form-alert p {
  color: var(--soft);
}

.form-alert strong {
  display: block;
}

.form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.req-note {
  color: var(--muted);
  font-size: 0.875rem;
}

.success {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-block: 24px;
  text-align: center;
}

.success[hidden] {
  display: none;
}

.success-ic {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--o-tint);
  border: 1px solid var(--o-border);
  color: var(--o400);
}

.success-ic .ic {
  width: 34px;
  height: 34px;
}

.success h3 {
  font-size: 1.6rem;
}

.success h3:focus {
  outline: none;
}

.success p {
  max-width: 44ch;
}

@media (min-width: 640px) {
  .form-grid .two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 960px) {
  .newsletter-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

/* ------------------------------------------------------------ history */

.history {
  display: grid;
  gap: 12px;
}

.history li {
  display: grid;
  gap: 6px 24px;
  padding: 20px 22px;
}

.history .when {
  color: var(--o400);
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0.04em;
}

.history h3 {
  font-size: 1.1875rem;
}

.history .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: var(--soft);
  font-size: 0.9375rem;
}

.history .meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.history .meta .ic {
  color: var(--navy-200);
}

.history .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.history .links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-note {
  margin-top: 20px;
  color: var(--muted);
}

@media (min-width: 760px) {
  .history li {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .history li > * {
    grid-column: 2;
  }
  .history .when {
    grid-column: 1;
    grid-row: 1 / span 3;
    padding-top: 0.2em;
  }
}

/* ------------------------------------------------------------ cooperation */

.team {
  display: grid;
  gap: 16px;
}

.member {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
}

.member .org {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.member .org-text {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.member .org-img {
  height: 34px;
  width: auto;
}

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

.member .member-link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
}

.member .member-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}

.lt-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lt-logo img {
  height: 30px;
  width: auto;
}

.lt-logo .wm {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.wm i {
  font-style: normal;
  color: var(--o500);
}

@media (min-width: 640px) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 40px;
  background: #05080d;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-grid h2 {
  margin-bottom: 12px;
  color: var(--navy-200);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
}

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

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

.footer-about p + p {
  margin-top: 10px;
}

.footer-about .brand {
  margin-bottom: 14px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

/* ------------------------------------------------------------ legal + error pages */

.page-head {
  position: relative;
  overflow: clip;
  padding-block: clamp(48px, 7vw, 80px) clamp(24px, 4vw, 40px);
}

.page-head::before,
.page-head::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.page-head::before {
  inset: 0;
  background: radial-gradient(circle min(560px, 80vw) at 88% 0%, rgba(251, 101, 0, 0.18), rgba(251, 101, 0, 0));
}

.page-head::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(rgba(7, 11, 17, 0), var(--paper));
}

.page-head .wrap {
  position: relative;
  z-index: 1;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-weight: 600;
}

.legal {
  padding-bottom: clamp(64px, 9vw, 112px);
  overflow-wrap: break-word;
}

.legal > * {
  max-width: 760px;
}

.legal h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.legal h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.2rem;
}

.legal h4 {
  margin: 1.4em 0 0.4em;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
}

.legal p,
.legal ul {
  margin: 0 0 1em;
}

.legal ul {
  padding-left: 1.3em;
}

.legal li + li {
  margin-top: 0.4em;
}

.legal > :first-child {
  margin-top: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .hl {
    border: 2px solid CanvasText;
  }
  .btn {
    border-color: ButtonText;
  }
}
