:root {
  --ink: #15221d;
  --forest: #18372d;
  --forest-soft: #315449;
  --ivory: #f5f0e6;
  --paper: #fbf8f1;
  --bronze: #a77b45;
  --line: rgba(21, 34, 29, 0.16);
  --muted: #66706b;
  --white: #fffefb;
  --danger: #8a2d25;
  --success: #2c684f;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 5vw;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.4rem); }
.site-nav a { font-size: 0.9rem; text-decoration: none; }
.nav-quiet { color: var(--muted); }
.nav-button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}
.nav-button:hover, .button:hover { transform: translateY(-1px); background: var(--forest-soft); }
.button-light { background: var(--white); color: var(--forest); border-color: var(--white); }
.button-outline { background: transparent; color: var(--forest); }

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 86px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 24, 19, 0.94) 0%, rgba(10, 24, 19, 0.78) 33%, rgba(10, 24, 19, 0.1) 67%, rgba(10, 24, 19, 0.08) 100%), url("/assets/wise-dating-hero.png") center/cover no-repeat;
}
.hero-inner { position: relative; width: min(1180px, 90vw); margin: 0 auto; padding: 7rem 0; }
.hero-copy { width: min(590px, 100%); }
.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--bronze);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #e8cfae; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; }
h1 { font-size: clamp(3.1rem, 7vw, 6.9rem); }
h2 { font-size: clamp(2.3rem, 4.5vw, 4.35rem); }
h3 { font-size: clamp(1.45rem, 2.3vw, 2rem); }
.hero-lede { max-width: 540px; margin: 1.65rem 0 2rem; color: rgba(255,255,255,0.86); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-note { margin-top: 1.25rem; color: rgba(255,255,255,0.68); font-size: 0.82rem; }

.section { padding: clamp(5rem, 10vw, 9rem) 5vw; }
.section-inner { width: min(1180px, 100%); margin: 0 auto; }
.section-heading { max-width: 780px; margin-bottom: 3.5rem; }
.section-heading p:not(.eyebrow) { max-width: 660px; color: var(--muted); font-size: 1.1rem; }
.manifesto { background: var(--ivory); }
.manifesto-grid { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.manifesto-copy { font-family: var(--serif); font-size: clamp(2.1rem, 4.5vw, 4.6rem); line-height: 1.08; }
.principles { display: grid; gap: 2.2rem; }
.principle { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.principle span { display: block; margin-bottom: 0.65rem; color: var(--bronze); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.12em; }
.principle p { margin: 0.65rem 0 0; color: var(--muted); }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.path-card { min-height: 320px; padding: 2.4rem; background: var(--paper); }
.path-card .number { color: var(--bronze); font-family: var(--serif); font-size: 1.35rem; }
.path-card h3 { margin-top: 5rem; }
.path-card p { color: var(--muted); }
.note-bar { padding: 1.1rem 5vw; text-align: center; background: #e8dfcf; color: #514c45; font-size: 0.85rem; }
.cta-section { background: var(--forest); color: var(--white); }
.cta-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: end; }
.cta-grid p { color: rgba(255,255,255,0.72); }

.page-hero { padding: clamp(5rem, 9vw, 8rem) 5vw; background: var(--ivory); border-bottom: 1px solid var(--line); }
.page-hero-inner { width: min(980px, 100%); margin: 0 auto; }
.page-hero p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 1.15rem; }
.prose { width: min(800px, 90vw); margin: 0 auto; padding: 5rem 0 8rem; }
.prose h2 { margin-top: 3.5rem; font-size: 2rem; }
.prose h3 { margin-top: 2.4rem; font-size: 1.35rem; }
.prose p, .prose li { color: #46504b; }
.prose a { text-decoration-color: var(--bronze); text-underline-offset: 0.2em; }
.legal-meta { color: var(--muted); font-size: 0.9rem; }

.auth-shell { min-height: calc(100vh - 86px); display: grid; grid-template-columns: 0.9fr 1.1fr; }
.auth-intro { padding: clamp(4rem, 8vw, 8rem); background: var(--forest); color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.auth-intro p { max-width: 520px; color: rgba(255,255,255,0.72); }
.auth-card-wrap { padding: clamp(3rem, 7vw, 7rem); display: flex; align-items: center; justify-content: center; }
.auth-card { width: min(480px, 100%); }
.auth-card h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
.auth-card > p { color: var(--muted); }
.form-field { display: grid; gap: 0.45rem; margin: 1.15rem 0; }
.form-field label { font-size: 0.86rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 52px; padding: 0.8rem 0.95rem; border: 1px solid #b8bdb9; border-radius: 4px; background: var(--white); color: var(--ink); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(167, 123, 69, 0.22); border-color: var(--bronze); }
.form-help { margin-top: 0; color: var(--muted); font-size: 0.8rem; }
.contact-consent { display: grid; grid-template-columns: 20px 1fr; gap: 0.7rem; align-items: start; margin: 1.25rem 0; color: var(--muted); font-size: 0.86rem; }
.contact-consent input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--forest); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-message { padding: 0.8rem 1rem; border-left: 3px solid var(--danger); background: rgba(138,45,37,0.08); color: var(--danger); }
.form-message[data-kind="success"] { border-color: var(--success); background: rgba(44,104,79,0.08); color: var(--success); }
.form-submit { width: 100%; margin-top: 0.75rem; border: 0; cursor: pointer; }
.form-submit:disabled { opacity: 0.65; cursor: wait; }
.site-footer { padding: 4rem 5vw 2rem; background: #10241d; color: var(--white); }
.footer-inner { width: min(1180px, 100%); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.16); }
.footer-brand { max-width: 420px; }
.footer-brand p { color: rgba(255,255,255,0.62); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 0.75rem 2rem; }
.footer-links a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; color: rgba(255,255,255,0.48); font-size: 0.8rem; }

@media (max-width: 880px) {
  .site-header { min-height: 76px; }
  .site-nav a:not(.nav-button) { display: none; }
  .hero { min-height: 760px; align-items: end; }
  .hero::before { background: linear-gradient(180deg, rgba(10,24,19,0.05) 0%, rgba(10,24,19,0.28) 38%, rgba(10,24,19,0.94) 78%), url("/assets/wise-dating-hero.png") 68% center/cover no-repeat; }
  .hero-inner { padding: 20rem 0 4rem; }
  .manifesto-grid, .cta-grid, .auth-shell { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 240px; }
  .path-card h3 { margin-top: 3rem; }
  .auth-intro { min-height: 390px; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 1rem; }
  .nav-button { min-height: 42px; padding: 0.6rem 0.9rem; }
  .section, .page-hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-inner { width: calc(100% - 2.5rem); }
  .hero-actions .button { width: 100%; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr; }
  .auth-intro, .auth-card-wrap { padding: 3rem 1.25rem; }
}

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