@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  color-scheme: light;
  --brand-forest-deep: #0b3029;
  --brand-forest: #123d35;
  --brand-forest-soft: #185747;
  --brand-coral: #e76f3c;
  --brand-coral-strong: #b94c20;
  --brand-coral-soft: #f4c5a8;
  --brand-mint: #83cdb7;
  --brand-mint-soft: #e7f0e8;
  --brand-cream: #f7f4ee;
  --page: #f1f2ed;
  --surface: #fffdf9;
  --surface-raised: #ffffff;
  --ink: #19352e;
  --muted: #61716b;
  --line: rgba(18, 61, 53, 0.16);
  --primary: var(--brand-forest);
  --primary-hover: var(--brand-forest-deep);
  --primary-text: #fffdf9;
  --accent: var(--brand-coral);
  --accent-text: var(--brand-coral-strong);
  --danger: #a43a2a;
  --radius-control: 13px;
  --radius-card: 18px;
  --radius-feature: 24px;
  --shadow-card: 0 10px 30px rgba(22, 55, 46, 0.07);
  --shadow-lift: 0 18px 42px rgba(22, 55, 46, 0.12);
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #0f1115;
  --surface: #1d2127;
  --surface-raised: #22272e;
  --ink: #f3f4f6;
  --muted: #b6bbc4;
  --line: #383d46;
  --primary: var(--brand-mint);
  --primary-hover: #9fddca;
  --primary-text: #102d26;
  --accent: #f2966c;
  --accent-text: #f2966c;
  --danger: #ff9c90;
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.22);
  --shadow-lift: 0 20px 46px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3 {
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.page-shell {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
}

.brand-name {
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.065em;
}

.header-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-toggle {
  display: inline-flex;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition:
    background 160ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.theme-toggle-icon {
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
}

.theme-toggle-icon svg,
.line-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.hero {
  display: grid;
  min-height: 650px;
  padding: 64px 0 96px;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(52px, 8vw, 112px);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: flex;
  margin: 0 0 20px;
  align-items: center;
  gap: 9px;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(4.3rem, 8vw, 7rem);
}

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

.keep-together {
  white-space: nowrap;
}

.hero-intro {
  max-width: 560px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.notify-form {
  max-width: 540px;
}

.notify-form > label:first-child {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 760;
}

.form-row {
  display: flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition:
    border-color 160ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.form-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.form-row input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.form-row input::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.form-row button,
.result-link,
.text-link {
  display: inline-flex;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-control);
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--primary);
  color: var(--primary-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  transition:
    background 160ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 160ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.form-row button:hover,
.result-link:hover,
.text-link:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.form-row button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.line-arrow {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.form-row .line-arrow,
.text-link .line-arrow {
  color: currentColor;
}

.turnstile-wrap {
  width: 100%;
  min-height: 0;
  margin-top: 14px;
}

.turnstile-wrap.is-interactive {
  min-height: 65px;
}

.turnstile-wrap[hidden] {
  display: none;
}

.notify-form .consent-row {
  display: grid;
  margin: 14px 3px 0;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.consent-row input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

.consent-row a,
.site-footer a {
  color: inherit;
  text-underline-offset: 3px;
}

.form-success,
.form-error {
  margin: 10px 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-success {
  color: var(--primary);
  font-weight: 700;
}

.form-error {
  color: var(--danger);
  font-weight: 700;
}

.hero-art {
  position: relative;
  display: grid;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin-left: auto;
  border: 1px solid color-mix(in srgb, var(--brand-mint) 42%, transparent);
  border-radius: var(--radius-feature);
  place-items: center;
  overflow: hidden;
  background: var(--brand-forest);
  box-shadow: var(--shadow-lift);
  isolation: isolate;
}

.orbit-track,
.orbit-motion {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.orbit-track {
  border: 1px solid rgba(255, 253, 249, 0.3);
}

.orbit-motion {
  animation: orbit 7s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  top: calc(50% - 7px);
  right: -7px;
  border-radius: 50%;
  background: var(--brand-coral);
  box-shadow: 0 0 0 5px rgba(231, 111, 60, 0.13);
}

.orbit-core {
  width: 82px;
  height: 82px;
  border: 13px solid var(--brand-cream);
  border-radius: 50%;
}

.art-caption {
  position: absolute;
  display: flex;
  right: 26px;
  bottom: 24px;
  left: 26px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 253, 249, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-caption strong {
  color: var(--brand-coral-soft);
  font-weight: 780;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

.promise {
  display: grid;
  padding: 92px 0 106px;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(54px, 9vw, 120px);
}

.promise h2,
.closing-card h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5vw, 5rem);
}

.name-meaning {
  max-width: 350px;
  margin-top: 38px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.name-meaning-title {
  margin: 0 0 8px;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.name-meaning-copy {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.name-meaning-copy span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.promise-list {
  display: grid;
}

.promise-item {
  display: grid;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
}

.promise-item + .promise-item {
  padding-top: 28px;
}

.promise-number {
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.1em;
}

.promise-item h3 {
  margin-bottom: 8px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.promise-item p {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.closing-card {
  position: relative;
  display: flex;
  min-height: 320px;
  margin-bottom: 34px;
  padding: 48px 52px;
  border: 1px solid color-mix(in srgb, var(--brand-mint) 36%, transparent);
  border-radius: var(--radius-feature);
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  background: var(--brand-forest-deep);
  color: var(--brand-cream);
}

.closing-card::after {
  position: absolute;
  width: 280px;
  aspect-ratio: 1;
  right: -55px;
  top: -80px;
  border: 1px solid rgba(244, 197, 168, 0.26);
  border-radius: 50%;
  content: '';
}

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

.eyebrow-light {
  color: var(--brand-coral-soft);
}

.closing-card h2 {
  color: var(--brand-cream);
}

.closing-card .text-link {
  border-color: var(--brand-mint);
  background: var(--brand-mint);
  color: var(--brand-forest-deep);
}

.site-footer {
  display: flex;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.result-page {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
  background: var(--page);
}

.result-page section {
  width: min(100%, 620px);
  padding: clamp(32px, 7vw, 68px);
  border: 1px solid var(--line);
  border-radius: var(--radius-feature);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.result-page .brand {
  width: fit-content;
  margin-bottom: 52px;
}

.result-page h1 {
  margin: 12px 0 20px;
  font-size: clamp(2.7rem, 9vw, 5rem);
}

.result-page p:not(.eyebrow) {
  max-width: 480px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.result-link {
  margin-top: 28px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.result-actions .result-link {
  margin-top: 0;
}

.result-actions .result-link-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.privacy-page {
  min-height: 100vh;
  padding: clamp(28px, 6vw, 76px) 24px;
  background: var(--page);
}

.privacy-page article {
  width: min(100%, 760px);
  margin: 0 auto;
}

.privacy-page .brand {
  width: fit-content;
  margin-bottom: clamp(60px, 10vw, 104px);
}

.privacy-page h1 {
  margin: 14px 0 28px;
  font-size: clamp(3rem, 9vw, 6.5rem);
}

.privacy-page h2 {
  margin: 42px 0 10px;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
}

.privacy-page p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.privacy-page .privacy-lead {
  color: var(--ink);
  font-size: clamp(18px, 3vw, 23px);
}

.privacy-page a:not(.brand):not(.result-link) {
  color: var(--primary);
  text-underline-offset: 3px;
}

.privacy-page .privacy-updated {
  margin-top: 48px;
  font-size: 13px;
}

:where(a, button, input):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-art {
    width: min(100%, 560px);
    margin: 0;
  }

  .promise {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

@media (max-width: 580px) {
  .page-shell {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 70px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .brand-name {
    font-size: 24px;
  }

  .header-note {
    display: none;
  }

  .theme-toggle {
    min-width: 44px;
    padding: 0;
  }

  .theme-toggle > span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 82px;
    gap: 38px;
  }

  h1 {
    font-size: clamp(3.45rem, 16vw, 4.8rem);
  }

  .hero-intro {
    font-size: 16px;
  }

  .form-row {
    display: grid;
    gap: 6px;
    padding: 7px;
  }

  .form-row input {
    min-height: 44px;
  }

  .hero-art {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-feature);
  }

  .orbit-track,
  .orbit-motion {
    width: 48%;
  }

  .orbit-core {
    width: 58px;
    height: 58px;
    border-width: 10px;
  }

  .art-caption {
    right: 20px;
    bottom: 19px;
    left: 20px;
    font-size: 9px;
  }

  .promise {
    padding: 80px 0 88px;
  }

  .promise h2 {
    font-size: clamp(2.75rem, 12vw, 3rem);
  }

  .name-meaning {
    max-width: none;
    margin-top: 28px;
  }

  .promise-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .closing-card {
    min-height: 350px;
    padding: 38px 26px;
    align-items: flex-start;
    flex-direction: column;
    gap: 44px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .orbit-motion {
    animation: none;
  }
}
