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

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  min-width: 320px;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.cursor-aura {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.8);
  transition:
    opacity 160ms ease,
    width 160ms ease,
    height 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 80ms ease;
  box-shadow: 0 0 10px rgba(214, 177, 94, 0.18);
  mix-blend-mode: difference;
}

.cursor-aura.is-visible {
  opacity: 0.42;
}

.cursor-aura.is-hovering {
  width: 34px;
  height: 34px;
  border-color: var(--color-brand-secondary-strong);
  box-shadow: 0 0 14px rgba(127, 155, 122, 0.28);
}

.cursor-aura.is-down {
  width: 16px;
  height: 16px;
  transform: translate3d(-50%, -50%, 0) scale(0.9);
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-aura {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body,
  main,
  .site-header,
  .hero,
  .section-surface,
  .site-path,
  .site-footer,
  .docs-card,
  .docs-panel,
  .token-card,
  .info-card,
  .press-card,
  .error-panel,
  .contact-form,
  .auth-card,
  .status-banner,
  a,
  .brand,
  .nav-menu a,
  .footer-legal a,
  .button,
  .path-card,
  .newsletter-form,
  .form-row input,
  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  .auth-card input,
  .theme-toggle,
  .footer-bottom,
  .hero-mark {
    transition:
      background var(--theme-transition),
      background-color var(--theme-transition),
      color var(--theme-transition),
      border-color var(--theme-transition),
      box-shadow var(--theme-transition),
      filter var(--theme-transition);
  }
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition:
    color var(--hover-transition),
    text-shadow var(--hover-transition);
}

a:hover {
  color: var(--color-accent-strong);
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

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

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max-width));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  transform: translateY(0);
}

h1,
h2,
h3,
p {
  margin-block: 0;
}

h1,
h2,
h3,
.brand {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 5.2vw, 3.35rem);
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.18;
  text-wrap: balance;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.22;
}

.lead {
  max-width: var(--content-width);
  color: var(--color-muted);
  font-size: 1.2rem;
}

.eyebrow,
.tag {
  color: var(--color-accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color var(--hover-transition),
    border-color var(--hover-transition),
    color var(--hover-transition),
    box-shadow var(--hover-transition);
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-halo);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-glow);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  color: var(--color-accent);
}

.button-quiet {
  border-color: var(--color-line);
  color: var(--color-text);
  background: var(--color-panel);
  background: color-mix(in srgb, var(--color-panel) 78%, transparent);
}

.button-google {
  border-color: var(--color-line);
  background: var(--color-surface-raised);
  color: var(--color-text);
}

.button-google:hover,
.button-google:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-text);
  box-shadow: var(--shadow-control-hover);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  flex: 0 0 auto;
  min-height: var(--header-height);
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

.nav-bar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
}

.brand {
  font-size: 1.25rem;
}

.brand:hover {
  color: var(--color-text);
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 700;
  transition:
    color var(--hover-transition),
    text-shadow var(--hover-transition);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--color-accent-strong);
  text-shadow: var(--shadow-link-glow);
  text-decoration: none;
}

.nav-menu-desktop {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-more {
  position: relative;
}

.nav-more details {
  position: relative;
}

.nav-more summary {
  color: var(--color-muted);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary:hover,
.nav-more details[open] summary {
  color: var(--color-accent-strong);
  text-shadow: var(--shadow-link-glow);
}

.nav-popover {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 190px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.nav-popover a {
  border-radius: var(--radius);
  padding: 8px 10px;
}

.nav-account {
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-accent) !important;
  padding: 7px 11px;
}

.nav-account:hover,
.nav-account[aria-current="page"] {
  border-color: var(--color-accent-strong);
  color: var(--color-accent-strong) !important;
  box-shadow: var(--shadow-control-hover);
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  color: var(--color-text);
}

.hamburger span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu-mobile {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(520px, 68svh, 720px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  background: var(--color-bg);
}

.hero-content {
  display: grid;
  gap: 18px;
  padding-block: clamp(64px, 10vh, 96px);
}

.hero-mark {
  width: 132px;
  height: 132px;
  padding: 14px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-panel);
  box-shadow: var(--shadow-halo);
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
}

.hero-actions > .gold-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
}

.section {
  padding-block: clamp(52px, 7vw, 76px);
}

.section-surface {
  background: var(--color-surface);
  box-shadow: var(--shadow-surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 52px);
  align-items: end;
}

.intro-grid p:last-child,
.section-heading p:last-child,
.newsletter-layout p {
  color: var(--color-muted);
  font-size: 1.06rem;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 28px;
}

.site-path {
  background: var(--color-bg);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.path-card {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  padding: 22px;
  box-shadow: var(--shadow-tight), var(--shadow-card-halo);
}

.path-card,
.info-card,
.press-card,
.docs-card,
.docs-panel,
.token-card,
.error-panel,
.contact-form,
.auth-card,
.status-banner {
  transition:
    transform var(--hover-transition),
    border-color var(--hover-transition),
    box-shadow var(--hover-transition),
    background-color var(--theme-transition),
    color var(--theme-transition);
}

.path-card:hover,
.info-card:hover,
.press-card:hover,
.docs-card:hover,
.docs-panel:hover,
.token-card:hover,
.error-panel:hover,
.contact-form:focus-within,
.auth-card:focus-within,
.status-banner:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-tight), var(--shadow-halo);
}

.path-card p:last-child {
  color: var(--color-muted);
}

.gold-link {
  justify-self: start;
  color: var(--color-accent);
  font-weight: 700;
}

.section-links {
  background: var(--color-bg);
  padding-block: 34px;
}

.link-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.link-rail a {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  padding: 10px 13px;
  font-weight: 700;
  box-shadow: var(--shadow-card-halo);
}

.link-rail a:hover,
.link-rail a:focus-visible {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-control-hover);
}

.error-page,
.error-hero {
  background: var(--color-bg);
}

.error-hero {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-height) - 220px);
}

.error-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: 36px;
  align-items: center;
}

.error-copy {
  display: grid;
  gap: 18px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.error-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 26px;
  box-shadow: var(--shadow-tight), var(--shadow-card-halo);
}

.error-panel p:not(.tag) {
  color: var(--color-muted);
}

.standard-page,
.page-hero {
  background: var(--color-bg);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}

.split-section {
  display: grid;
  gap: 26px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-card,
.auth-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  padding: 22px;
  box-shadow: var(--shadow-tight), var(--shadow-card-halo);
}

.info-card p:not(.tag),
.auth-card p:not(.tag) {
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 52px);
  align-items: start;
}

.contact-form,
.auth-card {
  display: grid;
  gap: 12px;
}

.contact-form {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  padding: 24px;
  box-shadow: var(--shadow-tight), var(--shadow-card-halo);
}

.contact-form label,
.auth-card label {
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.auth-card input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  padding: 11px 13px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-muted) 50%),
    linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.auth-card input::placeholder {
  color: var(--color-subtle);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--color-subtle);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--color-line);
}

.sign-in-section {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-height) - 220px);
}

.sign-in-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 40px;
  align-items: center;
}

.sign-in-copy {
  display: grid;
  gap: 18px;
}

.status-banner {
  display: grid;
  gap: 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  padding: 24px;
  box-shadow: var(--shadow-tight), var(--shadow-card-halo);
}

.status-banner p:not(.tag) {
  color: var(--color-muted);
}

.simple-page {
  background: var(--color-bg-soft);
}

.simple-page .section {
  padding-block: 48px;
}

.simple-panel {
  display: grid;
  gap: 18px;
  max-width: 920px;
  padding-block: 28px;
}

.simple-panel > .button {
  justify-self: start;
  min-width: min(100%, 260px);
}

.legal-stack {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.project-grid,
.update-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.project-hero { min-height: calc(100svh - var(--header-height) - 140px); display: grid; align-items: center; }
.project-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.project-signal { display: grid; gap: 18px; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-panel); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-tight), var(--shadow-card-halo); }

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

.filter-button {
  min-height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-panel);
  color: var(--color-text);
  padding: 9px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active { border-color: var(--color-accent); box-shadow: var(--shadow-control-hover); }
.filter-button.is-active { background: var(--color-accent); color: #111; }
.filter-status { min-height: 1.5em; color: var(--color-muted); }
.legal-section { display: grid; gap: 10px; border-top: 1px solid var(--color-line); padding-top: 20px; }
.legal-section ul { display: grid; gap: 8px; padding-left: 1.25rem; }
.legal-meta { color: var(--color-muted); font-size: 0.95rem; }

.press-page,
.press-hero {
  background: var(--color-bg);
}

.docs-page,
.docs-hero {
  background: var(--color-bg);
}

.docs-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.docs-card,
.docs-panel,
.token-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  padding: 22px;
  box-shadow: var(--shadow-tight), var(--shadow-card-halo);
}

.docs-card {
  color: var(--color-text);
}

.docs-card:hover,
.docs-card:focus-visible {
  color: var(--color-text);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-halo);
}

.docs-card p:not(.tag),
.docs-panel p:not(.tag),
.token-card p {
  color: var(--color-muted);
}

.docs-content {
  display: grid;
  gap: 30px;
}

.docs-back {
  justify-self: start;
  min-width: min(100%, 230px);
}

.docs-chapter-heading {
  margin-top: 18px;
}

.docs-token-grid,
.component-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.token-card span {
  width: 100%;
  min-height: 86px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--swatch);
  box-shadow: var(--shadow-card-halo);
}

.docs-note {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.docs-note p {
  color: var(--color-muted);
}

.docs-stack {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

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

.color-example,
.type-scale-example,
.mini-card-example,
.layout-example,
.section-example,
.copy-example {
  display: grid;
  gap: 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface-raised);
  padding: 18px;
}

.color-example {
  grid-template-columns: 1fr auto;
  align-items: center;
  background: var(--color-surface);
}

.type-example {
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
  padding: 12px 0 12px 16px;
}

.type-example-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.45rem;
  line-height: 1.2;
}

.type-example-inter {
  font-family: "Inter", ui-sans-serif, system-ui, Arial, sans-serif;
  font-size: 1.12rem;
}

.docs-form-example {
  box-shadow: none;
}

.layout-example span,
.layout-example strong,
.section-example div {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.layout-example strong,
.section-example div:last-child {
  background: var(--color-surface);
  color: var(--color-text);
}

.copy-example strong {
  color: var(--color-accent-strong);
}

.press-kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.press-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  padding: 22px;
  box-shadow: var(--shadow-tight), var(--shadow-card-halo);
}

.press-card p:not(.tag) {
  color: var(--color-muted);
}

.press-card .button {
  justify-self: start;
  margin-top: 6px;
}

.placeholder-badge {
  justify-self: start;
  border: 1px solid var(--color-brand-secondary);
  border-radius: var(--radius);
  color: var(--color-brand-secondary-strong);
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 700;
}

.press-details {
  display: grid;
  gap: 8px;
}

.fact-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--color-line);
  padding-block: 14px;
}

.fact-list dt {
  color: var(--color-accent-strong);
  font-weight: 700;
}

.fact-list dd {
  margin: 0;
  color: var(--color-muted);
}

.newsletter-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.newsletter-layout > div {
  display: grid;
  gap: 10px;
}

.newsletter-form {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-glow);
}

.newsletter-form:focus-within {
  box-shadow: var(--shadow-halo);
}

.newsletter-form label {
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.form-row input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  padding: 11px 13px;
}

.form-row input::placeholder {
  color: var(--color-subtle);
}

.form-note {
  color: var(--color-subtle);
  font-size: 0.92rem;
  min-height: 1.5em;
}

.form-consent {
  color: var(--color-subtle);
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: -0.2rem;
}

.form-consent a {
  text-decoration: underline;
}

.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
  color: var(--color-muted);
  box-shadow: var(--shadow-footer);
  text-align: center;
}

.footer-layout {
  display: grid;
  justify-items: center;
  padding-block: 34px;
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
  width: 100%;
}

.footer-legal a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
}

.footer-legal a:hover {
  color: var(--color-accent-strong);
  text-decoration: none;
  text-shadow: var(--shadow-link-glow);
}

.footer-dot {
  color: var(--color-bar);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 14px;
  width: 100%;
}

.theme-toggle {
  justify-self: center;
  min-height: 42px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-panel);
  color: var(--color-accent);
  padding: 8px 13px;
  font-weight: 700;
}

.theme-toggle:hover {
  border-color: var(--color-accent-strong);
  box-shadow: var(--shadow-control-hover);
}

@media (max-width: 860px) {
  .project-hero-grid { grid-template-columns: 1fr; }
  :root {
    --page-gutter: clamp(18px, 5vw, 30px);
    --header-height: 68px;
  }

  body {
    font-size: 15px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .nav-menu-desktop {
    display: none;
  }

  .hamburger {
    display: block;
    flex: 0 0 auto;
  }

  .nav-menu-mobile {
    display: grid;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    background: var(--color-surface);
    opacity: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: max-height 220ms ease, opacity 180ms ease, border-color 180ms ease;
  }

  .nav-menu-mobile.is-open {
    max-height: calc(100svh - var(--header-height));
    border-top-color: var(--color-line);
    opacity: 1;
    padding: 12px var(--page-gutter) 18px;
  }

  .nav-menu-mobile a {
    display: block;
    border-radius: var(--radius);
    padding: 10px 0;
    font-size: 1.1rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-block: 58px;
  }

  .docs-hero-grid,
  .error-layout,
  .page-hero-grid,
  .contact-grid,
  .sign-in-grid,
  .intro-grid,
  .path-grid,
  .docs-card-grid,
  .docs-token-grid,
  .component-demo-grid,
  .color-example,
  .press-kit-grid,
  .newsletter-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 58px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 18px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.5rem);
  }

  h2 {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1rem;
  }

  .brand span {
    max-width: 210px;
    overflow-wrap: anywhere;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-items: center;
  }

  .button,
  .theme-toggle {
    width: 100%;
  }
}
