:root {
  color-scheme: dark;
  --night: #081a2b;
  --foreground: #c2bfbc;
  --muted: #85898f;
  --line: rgba(194, 191, 188, .22);
  --line-hover: rgba(194, 191, 188, .48);
  --focus: #e0d8ce;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--night);
  scrollbar-color: var(--muted) var(--night);
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--foreground);
  background: var(--night);
  text-rendering: optimizeLegibility;
}

::selection { color: var(--night); background: var(--foreground); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--muted); border: 3px solid var(--night); }

a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.landing {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 0;
}

.wordmark {
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: .17em;
  line-height: 1;
  text-decoration: none;
  text-indent: .17em;
}

.mark-stage {
  position: absolute;
  inset: 0;
  padding-bottom: clamp(6.75rem, 7.5vh, 7.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bunbury-mark {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
}

.landing-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3.875rem;
  padding: 0 1rem 2rem;
  text-align: center;
}

.statement {
  max-width: 34rem;
  margin: 0;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: -.015em;
  line-height: 1.5;
  text-wrap: balance;
}

.statement span { display: block; }
.statement span { transition: opacity .26s ease; }
.statement.is-changing span { opacity: 0; }
.statement-muted { color: var(--muted); }

.privacy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: .55rem 1rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px; /* impeccable-disable-line design-system-radius -- ATHOS reference capsule */
  font-size: .75rem;
  font-weight: 300;
  line-height: 1.3;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.privacy-link:hover { color: var(--foreground); border-color: var(--line-hover); }

/* The legal route stays in the same world, but earns a readable scroll. */
.legal-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.legal-page .topbar { justify-content: space-between; padding-right: 1.25rem; padding-left: 1.25rem; }
.legal-back { color: var(--muted); font-size: .75rem; font-weight: 300; text-decoration: none; }
.legal-back:hover { color: var(--foreground); }

.legal-content {
  width: min(calc(100% - 2rem), 44rem);
  margin: auto;
  padding: 6rem 0 5rem;
}

.legal-content h1 {
  margin: 0 0 2.5rem;
  color: var(--foreground);
  font-size: clamp(2rem, 5vw, 3.5rem); /* impeccable-disable-line design-system-font-size -- legal-route title scale */
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1;
}

.legal-content section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 { margin: 0 0 .75rem; color: var(--foreground); font-size: 1rem; font-weight: 400; }
.legal-content p, .legal-content li { margin: 0; color: var(--muted); font-size: .875rem; font-weight: 300; line-height: 1.65; }
.legal-content p + p { margin-top: .75rem; }
.legal-content ul { margin: 0; padding-left: 1.2rem; }
.legal-content a { color: var(--foreground); text-underline-offset: .2em; }
.legal-content .legal-date { color: var(--foreground); }

.not-found-content { padding-top: 8rem; }
.not-found-kicker { margin: 0 0 1.25rem; color: var(--muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.not-found-copy { max-width: 30rem; margin-bottom: 2rem !important; }
.not-found-link { color: var(--foreground); }

@media (min-width: 640px) {
  .topbar { padding-top: 3rem; }
  .bunbury-mark { width: 8rem; height: 8rem; }
  .landing-foot { padding-bottom: 2rem; }
  .legal-page .topbar { padding-right: 3rem; padding-left: 3rem; }
}

@media (max-width: 420px) {
  .statement { max-width: calc(100vw - 2rem); }
  .wordmark { font-size: 1.35rem; /* impeccable-disable-line design-system-font-size -- ATHOS reference wordmark scale */ }
  .statement { font-size: .98rem; /* impeccable-disable-line design-system-font-size -- ATHOS reference statement scale */ }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
