:root {
  color-scheme: dark;
  --background: #061510;
  --surface: #0b2a21;
  --surface-soft: #10362b;
  --accent: #e3d49a;
  --accent-strong: #f3e7b7;
  --text: #f5f2e8;
  --muted: #b7c6bd;
  --line: rgba(227, 212, 154, 0.22);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 3%, rgba(227, 212, 154, 0.1), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
}

nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
.footer-links a:hover {
  color: var(--accent-strong);
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 9vw, 112px);
  padding: 80px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(4.2rem, 12vw, 8.5rem);
  color: var(--accent-strong);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.3;
}

.hero-detail {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.02rem;
}

.button {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 19px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--background);
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
}

.match-card {
  position: relative;
  padding: clamp(26px, 5vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(227, 212, 154, 0.08), transparent 50%),
    var(--surface);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}

.match-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(227, 212, 154, 0.08);
  border-radius: 18px;
  pointer-events: none;
}

.card-label,
.fiction-note {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 46px 0;
  text-align: center;
}

.score span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.score strong {
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1;
}

.score i {
  color: var(--muted);
  font-size: 0.6em;
  font-style: normal;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.card-stats span {
  color: var(--muted);
  font-size: 0.75rem;
}

.card-stats strong {
  display: block;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.fiction-note {
  margin: 24px 0 0;
  font-size: 0.62rem;
}

.section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.step-number {
  display: block;
  margin-bottom: 55px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.steps p,
.status p,
.legal-heading p,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.bounded {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 9vw, 120px);
  align-items: start;
}

.bounded-copy {
  padding: 32px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(227, 212, 154, 0.08), transparent);
  font-size: 1.12rem;
}

.bounded-copy p:last-child,
.status p:last-child,
.legal-content p:last-child {
  margin-bottom: 0;
}

.status {
  max-width: 820px;
  margin-right: auto;
}

.status p {
  max-width: 680px;
  font-size: 1.12rem;
}

footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 54px 0 64px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-brand {
  width: fit-content;
}

.legal {
  max-width: 940px;
}

.legal-heading {
  padding: 90px 0 64px;
  border-bottom: 1px solid var(--line);
}

.legal-heading h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.legal-heading p:last-child {
  max-width: 680px;
  font-size: 1.15rem;
}

.legal-content {
  max-width: 760px;
  padding: 34px 0 110px;
}

.legal-content section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content section:last-child {
  border-bottom: 0;
}

.legal-content h2 {
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.legal-content li + li {
  margin-top: 7px;
}

.legal-content a {
  color: var(--accent-strong);
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    padding: 22px 0;
  }

  .site-header nav {
    justify-content: flex-end;
    gap: 10px 16px;
  }

  .hero,
  .bounded {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 84px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: auto;
  }

  .step-number {
    margin-bottom: 30px;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    display: block;
  }

  .site-header nav {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .score {
    gap: 8px;
  }

  .section {
    padding: 78px 0;
  }

  .bounded-copy {
    padding: 25px 22px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

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