:root {
  --background: #f1f6f7;
  --hero-start: #ddeef2;
  --hero-end: #f5f8f7;
  --text: #26343b;
  --muted: #668894;
  --accent: #668894;
  --accent-dark: #26343b;
  --surface: #ffffff;
  --border: #d9e5e8;
  --focus: #668894;
  --shadow: 0 18px 55px rgb(45 76 86 / 8%);
  --font: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --shell: 76rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --hero-image-desktop: none;
  --hero-image-mobile: var(--hero-image-desktop);
  --hero-position-desktop: center center;
  --hero-position-mobile: 62% center;
  --hero-overlay: linear-gradient(90deg, rgb(221 238 242 / 96%) 0%, rgb(221 238 242 / 84%) 44%, rgb(245 248 247 / 50%) 100%);
}

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

html {
  min-width: 20rem;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.06em;
}

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

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--surface);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  color: var(--surface);
  transform: translateY(0);
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(102 136 148 / 18%);
  background: var(--hero-start);
}

.site-header .shell {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
}

.wordmark {
  display: inline-flex;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-decoration: none;
}

.hero {
  background: linear-gradient(118deg, var(--hero-start) 0%, var(--hero-end) 100%);
}

/*
  Optional future photograph:
  1. Put responsive local files in /assets/images/.
  2. Set --hero-image-desktop and --hero-image-mobile above, for example:
     --hero-image-desktop: url("../images/hero-2000.jpg");
     --hero-image-mobile: url("../images/hero-900.jpg");
  3. Add .has-hero-image to the hero section.
  4. Tune --hero-position-desktop and --hero-position-mobile for cropping.
  The first background layer is a contrast-preserving blue-grey overlay.
*/
.hero.has-hero-image {
  background-image: var(--hero-overlay), var(--hero-image-desktop);
  background-position: center, var(--hero-position-desktop);
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-layout {
  display: grid;
  min-height: clamp(37rem, 76vh, 50rem);
  align-items: center;
  grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(5rem, 11vw, 9rem);
}

.hero-copy {
  max-width: 45rem;
}

.eyebrow,
.error-code {
  margin: 0 0 1.4rem;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.2rem, 7.3vw, 6.5rem);
  font-weight: 450;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-description {
  max-width: 39rem;
  margin: clamp(1.8rem, 4vw, 2.8rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
}

.launch-status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 2.3rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(102 136 148 / 30%);
  border-radius: 999px;
  background: rgb(255 255 255 / 52%);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.28rem rgb(102 136 148 / 13%);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  padding-block: 2.5rem;
}

.footer-brand,
.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-brand {
  margin-bottom: 0.7rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.13em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}

.legal-page {
  display: flex;
  flex-direction: column;
}

.legal-header {
  background: var(--background);
}

.legal-main {
  width: 100%;
  flex: 1;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}

.legal-document {
  width: min(100%, 50rem);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: clamp(1rem, 3vw, 1.5rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.legal-copy {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.legal-copy p {
  margin: 0 0 1rem;
}

.legal-effective-date {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-section {
  margin-top: 2.25rem;
}

.legal-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 1.625rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.legal-section h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.legal-list {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.legal-list li {
  padding-left: 0.25rem;
}

.legal-list li + li {
  margin-top: 0.65rem;
}

.legal-copy strong {
  font-weight: 650;
}

.not-found-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: linear-gradient(145deg, var(--hero-start), var(--hero-end));
}

.not-found-main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 4rem var(--gutter) 7rem;
}

.not-found-content {
  max-width: 38rem;
  text-align: center;
}

.error-code {
  margin-bottom: 1rem;
}

.not-found-content h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 450;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.not-found-content > p:not(.error-code) {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.text-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.text-button:hover {
  border-color: var(--text);
  background: rgb(255 255 255 / 44%);
}

@media (max-width: 48rem) {
  .site-header .shell {
    min-height: 4.5rem;
  }

  .hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: clamp(4.5rem, 19vw, 7rem);
  }

  .hero.has-hero-image {
    background-image: var(--hero-overlay), var(--hero-image-mobile);
    background-position: center, var(--hero-position-mobile);
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .copyright {
    max-width: 28rem;
  }
}

@media (max-width: 28rem) {
  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 3.75rem);
  }

  .launch-status {
    align-items: flex-start;
    border-radius: 0.85rem;
  }

  .status-dot {
    flex: 0 0 auto;
    margin-top: 0.37rem;
  }

  .legal-main {
    padding-inline: 0.75rem;
  }

  .legal-document {
    padding-inline: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
