:root {
  color-scheme: dark;
  --bg: #101511;
  --bg-soft: #141a15;
  --surface: #171d18;
  --surface-strong: #1d241e;
  --border: #2a332b;
  --brand: #ccff00;
  --brand-hover: #b7e800;
  --brand-ink: #182000;
  --text: #f5f5f0;
  --text-secondary: #c9cec3;
  --text-muted: #92998e;
  --danger: #ff7c7c;
  --shadow: 0 24px 80px rgb(0 0 0 / 28%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% -10%, rgb(204 255 0 / 10%), transparent 34rem),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 26rem);
  line-height: 1.75;
}

a {
  color: var(--brand);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--brand-hover);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  color: var(--brand-ink);
  background: var(--brand);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 0.75rem max(1rem, calc((100vw - 72rem) / 2));
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background: rgb(16 21 17 / 88%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.25rem;
  border: 1px solid rgb(204 255 0 / 20%);
  border-radius: 0.8rem;
  background: var(--surface-strong);
}

.brand-bike-frame,
.brand-wheel,
.brand-bike-bar {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-bike-frame {
  stroke: #fff;
  stroke-width: 18;
}

.brand-wheel {
  stroke: var(--brand);
  stroke-width: 18;
}

.brand-bike-bar {
  stroke: var(--brand);
  stroke-width: 10;
}

.site-nav {
  display: flex;
  gap: clamp(0.8rem, 3vw, 1.8rem);
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--brand);
}

main {
  width: min(100% - 2rem, 72rem);
  min-height: calc(100vh - 14rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 6rem) 0;
}

.hero {
  display: grid;
  gap: 1.5rem;
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid var(--border);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgb(204 255 0 / 8%), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.15em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 44rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--brand);
  border-radius: 0.8rem;
  color: var(--brand-ink);
  background: var(--brand);
  font-weight: 720;
  text-decoration: none;
}

.button:hover {
  color: var(--brand-ink);
  background: var(--brand-hover);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-strong);
}

.button-secondary:hover {
  color: var(--text);
  background: #252e26;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
}

.legal-header,
.legal-section,
.share-card,
.error-card,
.loading-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 10px 36px rgb(0 0 0 / 14%);
}

.legal-header {
  padding: clamp(1.5rem, 5vw, 2.75rem);
}

.legal-header h1 {
  max-width: none;
  font-size: clamp(2rem, 6vw, 3.3rem);
}

.legal-meta {
  display: grid;
  gap: 0.2rem;
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-lead {
  margin: 1.35rem 0 0;
  color: var(--text-secondary);
}

.legal-section {
  padding: clamp(1.4rem, 4vw, 2.25rem);
}

.legal-section h2 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  line-height: 1.35;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
}

.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section ol:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.35rem;
}

.notice {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--brand);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  background: rgb(204 255 0 / 6%);
}

.share-card,
.error-card,
.loading-card {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 6vw, 3.5rem);
  text-align: center;
}

.share-icon {
  display: grid;
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 auto 1.25rem;
  place-items: center;
  border-radius: 1.4rem;
  color: var(--brand-ink);
  background: var(--brand);
  font-size: 2rem;
  font-weight: 800;
}

.share-card h1,
.error-card h1 {
  max-width: none;
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.share-card p,
.error-card p,
.loading-card {
  color: var(--text-secondary);
}

.share-reference {
  margin: 1.3rem 0;
  padding: 0.65rem;
  border-radius: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

.site-footer {
  display: flex;
  width: min(100% - 2rem, 72rem);
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: center;
  margin: 0 auto;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

.noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem;
  border: 1px solid var(--danger);
  border-radius: 0.75rem;
  color: #fff;
  background: #4b1919;
  text-align: center;
}

@media (max-width: 36rem) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    display: grid;
    gap: 0.2rem;
    text-align: right;
  }

  main {
    width: min(100% - 1rem, 72rem);
    padding-top: 1rem;
  }

  .hero,
  .legal-header,
  .legal-section,
  .share-card,
  .error-card {
    border-radius: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #111;
    background: #fff;
  }

  .site-header,
  .site-footer,
  .action-row {
    display: none;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .legal-header,
  .legal-section {
    border: 0;
    color: #111;
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
  }

  .legal-header p,
  .legal-section p,
  .legal-section li,
  .legal-meta {
    color: #222;
  }

  a {
    color: #111;
  }
}
