@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* Brand palette */
:root {
  --navy: #14304a;
  --navy-deep: #0d2236;
  --teal: #1f9e8f;
  --mist: #eef3f6;
  --white: #ffffff;
  --gutter: clamp(16px, 4vw, 40px);
  --face: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Dark theme (default) */
:root,
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b1b2b;
  --glow: rgb(31 158 143 / 0.16);
  --text: #eef3f6;
  --text-soft: #a7b9c8;
  --line: #22405a;
  --accent: #4cc5b6;
  --hex-back: #16334d;
  --shadow: rgb(0 0 0 / 0.45);
}

/* Light theme */
:root[data-theme='light'] {
  color-scheme: light;
  --bg: var(--mist);
  --glow: rgb(31 158 143 / 0.12);
  --text: var(--navy);
  --text-soft: #4a5f72;
  --line: #d5e0e7;
  --accent: #167a6e;
  --hex-back: var(--white);
  --shadow: rgb(20 48 74 / 0.22);
}

:root[data-theme='light'] .on-dark,
:root:not([data-theme='light']) .on-light {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(50rem 32rem at 50% 48%, var(--glow), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--face);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
}

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

::selection {
  background: var(--teal);
  color: var(--white);
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

/* ---------- top bar ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}
.top .brand img {
  width: clamp(140px, 36vw, 190px);
}

.theme-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-theme='light'] .icon-sun,
:root:not([data-theme='light']) .icon-moon {
  display: none;
}

/* ---------- coming soon ---------- */
.soon {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
  text-align: center;
}
.soon-inner {
  max-width: 40rem;
}
.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(9rem, 26vw, 13rem);
  aspect-ratio: 1;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
}
.emblem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hex-back);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
  transform: rotate(8deg);
}
.emblem img {
  position: relative;
  width: 78%;
  filter: drop-shadow(0 18px 24px var(--shadow));
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
}
.soon h1 {
  font-size: clamp(2.5rem, 1.4rem + 5vw, 4.5rem);
  font-weight: 800;
}
.soon .lead {
  max-width: 34ch;
  margin: 1.25rem auto 0;
  text-wrap: balance;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
}
.contact {
  margin-top: 2rem;
  color: var(--text-soft);
  font-size: 0.9375rem;
}
.contact a {
  font-weight: 600;
}

/* Marks content that is still a placeholder */
.gap {
  display: inline-block;
  padding: 0.05em 0.5em;
  border: 1.5px dashed currentColor;
  border-radius: 6px;
  font-weight: 500;
  opacity: 0.8;
}

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.875rem;
}
.foot a {
  color: var(--text-soft);
}
.foot a:hover {
  color: var(--accent);
}

/* ---------- privacy page ---------- */
.legal-page {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
}
.legal-page .eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-page h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.25rem);
  font-weight: 800;
}
.legal-page h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
  font-weight: 700;
}
.legal-page p {
  margin-top: 0.75rem;
}
.legal-page .meta {
  color: var(--text-soft);
}
.back {
  display: inline-block;
  margin-top: 3rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .emblem img {
    animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .emblem::before {
    animation: turn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes turn {
  from {
    opacity: 0;
    transform: rotate(-12deg) scale(0.92);
  }
}

/* ---------- plain coming-soon ---------- */
.top-plain {
  justify-content: flex-end;
}
.soon h1.plain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  font-size: inherit;
}
.plain img {
  width: min(78vw, 26rem);
}
.soon-text {
  color: var(--text-soft);
  font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.foot-plain {
  border-top: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .plain {
    animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
