:root {
  --bg: #fbfaf8;
  --fg: #16150f;
  --muted: #6b6a62;
  --rule: #e2ded6;
  --accent: #9a6b3f;
  --accent-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12110f;
    --fg: #f2f0ea;
    --muted: #9c9a92;
    --rule: #2c2a26;
    --accent: #d3a374;
    --accent-fg: #12110f;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 ui-serif, Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 24px;
}

.card {
  width: 100%;
  max-width: 34rem;
  text-align: center;
}

/* Small-caps utility used for eyebrows, buttons, footer */
.sans {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
}

.mark {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  /* A word-length mark, not two letters — sized to fit a narrow screen. */
  font-size: clamp(2.4rem, 11vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0;
}
.mark span { color: var(--accent); }

.rule {
  width: 3rem;
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 2rem auto;
}

.eyebrow {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.lede {
  margin: 0 auto;
  max-width: 26rem;
  color: var(--muted);
}

.title {
  font-weight: 400;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

/* Primary call to action */
.cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.95rem 2.4rem;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  border-radius: 999px;
  letter-spacing: 0.22em;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.cta:hover, .cta:focus-visible { transform: translateY(-2px); opacity: 0.9; }
.cta:active { transform: translateY(0); }

/* Longer button labels need tighter tracking to stay on one line */
.cta--wide { letter-spacing: 0.12em; padding-left: 1.8rem; padding-right: 1.8rem; }

/* Quiet secondary link */
.back {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  letter-spacing: 0.18em;
}
.back:hover, .back:focus-visible { color: var(--fg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .cta:hover, .cta:focus-visible { transform: none; }
}

/* Matches .sans's specificity so the tighter tracking actually wins — the
   credit line is long enough to wrap on a phone at .sans's 0.28em. */
footer.sans {
  color: var(--muted);
  text-align: center;
  padding: 1.5rem 24px 2.5rem;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}
