:root {
  /* We use warm charcoal neutrals so every shade meets AAA on #faf8f5. */
  --color-black: #1c1917; /* 16.5:1 on white */
  --color-graphite: #44403c; /* 8.5:1 on white  */
  --color-slate: #544f4a; /* 7.5:1 on white */
  --color-ash: #6e6863; /* 5.2:1 on white. We use this only for large text / icons. */
  --color-muted: #9c9590; /* 2.7:1, decorative only. We never use this for informational text. */
  --color-silver: #c8c3be;
  --color-pearl: #e7e3de;
  --color-cream: #f4f1ec;
  --color-white: #faf8f5;

  /* We derive the accent from kente amber-gold at hue ~35, with AAA-compliant tiers. */
  --color-accent: #7a4f1a; /* 7.8:1 on white. We use this for primary text/button accent. */
  --color-accent-vivid: #c07a1e; /* 3.2:1, decorative only: large headings, icons, borders, backgrounds */
  --color-accent-light: #d4911f; /* decorative / hover highlights */
  --color-accent-dark: #5a3810; /* 10.8:1 on white, for small text emphasis */

  /* We mix charcoal with indigo warmth for the footer. */
  --color-deep-dark: #111118;

  --color-text-on-dark-muted: var(
    --color-silver
  ); /* ~8:1 on #1c1917, AAA compliant */

  --color-text-primary: var(--color-black);
  --color-text-secondary: var(--color-slate); /* 7.5:1 AAA on white */
  --color-text-muted: var(--color-ash); /* 5.2:1 AA, large text / icons only */
  --color-bg-primary: var(--color-white);
  --color-bg-secondary: var(--color-cream);
  --color-border: var(--color-silver);

  /* Font families */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  /* Optimal reading measure */
  --measure: 65ch;

  /* We use a minor third scale with an AAA floor of 0.8rem (12.8px). */
  --text-xs: clamp(0.8rem, 0.75rem + 0.25vw, 0.85rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  --text-xl: clamp(1.35rem, 1.15rem + 0.75vw, 1.7rem);
  --text-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --text-5xl: clamp(3rem, 2.2rem + 3.5vw, 5rem);

  /* Line heights */
  --leading-snug: 1.25;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-wide: 0.04em;

  /* Font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* We base spacing on an 8px scale. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-12: 16rem;

  /* Layout */
  --container-max: 1400px;
  --container-narrow: 900px;

  /* Radii */
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Z-index scale */
  --z-dropdown: 100;
  --z-skip: 500;

  /* Easing */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* Durations */
  --duration-fast: 120ms;
  --duration-normal: 200ms;

  /* Brand signature */
  --gold-gradient: linear-gradient(
    135deg,
    #7a4f1a 0%,
    #c07a1e 50%,
    #d4911f 100%
  );
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

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

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

p, h1, h2, h3 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

::selection {
  background: rgba(192, 122, 30, 0.15);
  color: var(--color-black);
}

@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--color-cream);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-silver);
    border-radius: 4px;
    border: 2px solid var(--color-cream);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-ash);
  }
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: var(--color-silver) var(--color-cream);
    scrollbar-width: thin;
  }
}

@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;
  }
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: var(--leading-normal);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: common-ligatures;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-9);
}

@media (min-width: 64em) {
  .section {
    padding-block: var(--space-10);
  }
}

.section--cream {
  background: var(--color-bg-secondary);
}

.heading-1 {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-medium);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  font-variation-settings: "opsz" 144;
}

p {
  max-width: var(--measure);
  text-wrap: pretty;
}

.text-secondary {
  color: var(--color-text-secondary);
}

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

.botcheck {
  display: none;
}

.skip-link:focus-visible {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: var(--z-skip);
  padding: var(--space-3) var(--space-5);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-md);
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: normal;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  padding: var(--space-4) 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-variation-settings: "opsz" 24;
  color: var(--color-black);
  letter-spacing: var(--tracking-tight);
  z-index: calc(var(--z-dropdown) + 1);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header__logo-z {
  color: var(--color-accent);
}

.header__logo:focus-visible {
  outline: 2px solid var(--color-accent-vivid);
  outline-offset: 2px;
}

.header__lang {
  display: flex;
  gap: var(--space-3);
}

.header__lang-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
}

.header__lang-link--active {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header__lang-sep {
  color: var(--color-text-muted);
}

.header__lang-link:hover {
  color: var(--color-text-primary);
}

.footer {
  background: var(--color-deep-dark);
  color: var(--color-text-on-dark-muted);
  padding: var(--space-9) 0 var(--space-7);
  position: relative;
}

.footer ::selection {
  background: rgba(192, 122, 30, 0.4);
  color: var(--color-white);
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}

@media (min-width: 48em) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
  }
}

.footer__logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-variation-settings: "opsz" 24;
  color: var(--color-white);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.footer__logo-z {
  color: var(--color-accent-light);
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  max-width: 320px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__links a:focus-visible {
  outline: 2px solid var(--color-accent-vivid);
  outline-offset: 2px;
}

.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
}

.launch-hero {
  padding: var(--space-12) 0 var(--space-9);
  text-align: center;
}

.launch-hero__content {
  max-width: 600px;
  margin: 0 auto;
}

.launch-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
}

.launch-hero__status {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.launch-notify {
  margin-block-start: var(--space-6);
}

.launch-notify__fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.launch-notify__email {
  flex-basis: 100%;
}

.launch-notify__country,
.launch-notify__submit {
  flex: 1;
  min-width: 0;
}

.launch-notify .form__select {
  width: 100%;
  padding-block: var(--space-3);
  padding-inline: var(--space-4);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color var(--duration-fast);
}

.launch-notify .form__select:hover {
  border-color: var(--color-border);
}

.launch-notify .form__select:focus-visible {
  outline: none;
  border-color: var(--color-accent-vivid);
  box-shadow: 0 0 0 3px rgba(192, 122, 30, 0.1);
}

.launch-notify__hint {
  font-size: var(--text-xs);
  margin-top: var(--space-3);
  text-align: center;
}

.launch-notify__success {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  padding: var(--space-6) 0;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-quart);
}

.launch-notify__success.is-visible {
  opacity: 1;
}

.launch-who {
  padding: var(--space-10) 0;
  background: var(--color-bg-secondary);
}

.launch-who__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.launch-who__heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  font-variation-settings: "opsz" 14;
  margin-bottom: var(--space-2);
}

.launch-who__item p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.launch-cta {
  padding: var(--space-9) 0;
  text-align: center;
}

.launch-cta__content {
  max-width: 600px;
  margin: 0 auto;
}

.launch-cta__content p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.launch-cta__link {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.launch-cta__link:hover {
  color: var(--color-accent-dark);
}

.launch-cta__link:focus-visible {
  outline: 2px solid var(--color-accent-vivid);
  outline-offset: 2px;
}

@media (max-width: 48em) {
  .launch-hero {
    padding: var(--space-12) 0 var(--space-8);
  }

  .launch-who__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-5);
}

.section__lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 620px;
}

.page-hero {
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.prose {
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.prose p + p {
  margin-top: var(--space-4);
}

.content-page {
  padding-top: var(--space-12);
  padding-bottom: var(--space-9);
}

.content-page__hero {
  text-align: center;
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-4);
}

.content-page__hero h1 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin-top: var(--space-3);
}

.content-body h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--space-10) + var(--space-4));
}

.content-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-body p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.content-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-body a:hover {
  color: var(--color-accent-dark);
}

.content-body__updated {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  text-decoration: none;
  transition:
    background var(--duration-fast) var(--ease-out-quart),
    color var(--duration-fast) var(--ease-out-quart),
    border-color var(--duration-fast) var(--ease-out-quart);
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--primary {
  background: var(--gold-gradient);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: var(--color-white);
  border-color: transparent;
}

.btn--primary:hover {
  background-position: 100% 50%;
  color: var(--color-white);
  border-color: transparent;
}

.btn--primary:active {
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-vivid);
  outline-offset: 2px;
}

.form__input {
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  min-height: 48px;
  transition: border-color var(--duration-fast);
}

.form__input:hover {
  border-color: var(--color-border);
}

.form__input:focus-visible {
  outline: none;
  border-color: var(--color-accent-vivid);
  box-shadow: 0 0 0 3px rgba(192, 122, 30, 0.1);
}

/* We use :user-invalid so the error state only appears after the
   user has interacted with the field, not on initial page load. */
.form__input:user-invalid,
.form__select:user-invalid {
  border-color: var(--color-accent-dark);
  box-shadow: 0 0 0 3px rgba(90, 56, 16, 0.08);
}

.form__input:user-valid,
.form__select:user-valid {
  border-color: var(--color-accent);
}
