:root {
  --paper: #f3f1eb;
  --ink: #171716;
  --muted: #696863;
  --line: #d8d5cc;
  --white: #fffef9;
  --accent: #485f4e;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-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.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

.site-header, footer {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { height: 88px; border-bottom: 1px solid var(--line); }

.wordmark { color: var(--ink); text-decoration: none; font: 500 25px/1 var(--sans); letter-spacing: -1.2px; }
.wordmark span { color: var(--accent); }

.text-link {
  border: 0;
  padding: 10px 0;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}
.text-link:hover { text-decoration-color: currentColor; }

.hero {
  width: min(100% - 48px, 1280px);
  min-height: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 0 110px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(72,95,78,.12); }
.sold-only { display: none !important; }
.sold .available-only { display: none !important; }
.sold .eyebrow.sold-only { display: inline-flex !important; }
.sold .hero h1.sold-only, .sold .hero .intro.sold-only { display: block !important; }
.sold .eyebrow.sold-only { color: var(--muted); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 1000px;
  margin-bottom: 30px;
  font: 400 clamp(72px, 9.4vw, 140px)/.85 var(--serif);
  letter-spacing: -.045em;
}
h1 em, .cta em { color: var(--accent); font-weight: 400; }

.intro { max-width: 550px; margin-bottom: 36px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.intro strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; }

.primary-button, .secondary-button, .light-button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.primary-button { color: var(--white); background: var(--ink); }
.primary-button span, .light-button span { margin-left: 18px; }
.primary-button:hover, .light-button:hover { transform: translateY(-2px); }
.secondary-button { background: transparent; }
.secondary-button:hover { color: var(--white); background: var(--ink); }

.meaning, .possibilities {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.meaning { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 110px 0 120px; }
.section-number { display: block; margin-bottom: 38px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.meaning h2, .section-heading h2 {
  margin-bottom: 0;
  font: 400 clamp(48px, 6vw, 82px)/.95 var(--serif);
  letter-spacing: -.035em;
}
.meaning-copy { padding-top: 55px; }
.meaning-copy p { max-width: 510px; margin-bottom: 28px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.meaning-copy strong { color: var(--ink); }

.possibilities { padding: 110px 0 130px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 80px; }
.section-heading .section-number { margin-bottom: 10px; }
.possibility-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.possibility-grid article { min-height: 255px; padding: 28px 36px 28px 0; border-right: 1px solid var(--line); }
.possibility-grid article + article { padding-left: 36px; }
.possibility-grid article:last-child { border-right: 0; }
.possibility-grid article > span { color: var(--muted); font-size: 11px; }
.possibility-grid h3 { margin: 74px 0 12px; font: 400 35px/1 var(--serif); }
.possibility-grid p { max-width: 285px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.cta {
  min-height: 660px;
  padding: 110px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
  text-align: center;
}
.section-number.light { color: #a4a39e; margin-bottom: 42px; }
.cta h2 { margin-bottom: 28px; font: 400 clamp(58px, 7.5vw, 105px)/.92 var(--serif); letter-spacing: -.035em; }
.cta h2 em { color: #bac8b9; }
.cta p { margin-bottom: 34px; color: #aaa9a4; }
.light-button { border-color: var(--white); color: var(--ink); background: var(--white); }
.light-button:hover { background: #e9e7df; }
.cta-actions { display: flex; align-items: center; gap: 20px; }
.cta-offer { border: 0; padding: 10px 0; color: var(--white); background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

footer { min-height: 150px; }
footer p { margin: 0; color: var(--muted); font-size: 12px; }

.offer-dialog {
  width: min(100% - 32px, 560px);
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.offer-dialog::backdrop { background: rgba(23,23,22,.66); backdrop-filter: blur(4px); }
.dialog-panel { position: relative; padding: 48px; }
.close-button { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #efede6; cursor: pointer; font-size: 24px; line-height: 1; }
.dialog-kicker { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.dialog-panel h2 { margin: 12px 0 10px; font: 400 54px/1 var(--serif); }
.dialog-intro { margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.dialog-panel label { display: block; margin: 16px 0 6px; font-size: 12px; font-weight: 600; }
.dialog-panel label span { color: var(--muted); font-weight: 400; }
.dialog-panel input, .dialog-panel textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #faf9f5; resize: vertical; }
.dialog-panel input:focus, .dialog-panel textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(72,95,78,.13); }
.primary-button.full { width: 100%; margin-top: 22px; }
.privacy-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; padding: 12px 18px; border-radius: 999px; color: var(--white); background: var(--ink); font-size: 13px; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #8aa08e; outline-offset: 3px; }

@media (max-width: 760px) {
  .site-header, footer, .hero, .meaning, .possibilities { width: min(100% - 32px, 1280px); }
  .site-header { height: 72px; }
  .hero { min-height: 650px; padding: 72px 0 90px; }
  h1 { font-size: clamp(62px, 20vw, 92px); }
  .intro { font-size: 16px; }
  .meaning { grid-template-columns: 1fr; gap: 40px; padding: 80px 0; }
  .meaning-copy { padding-top: 0; }
  .meaning-copy p { font-size: 17px; }
  .possibilities { padding: 80px 0; }
  .section-heading { display: block; margin-bottom: 50px; }
  .section-heading .section-number { margin-bottom: 30px; }
  .possibility-grid { grid-template-columns: 1fr; }
  .possibility-grid article, .possibility-grid article + article { min-height: 200px; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .possibility-grid article:last-child { border-bottom: 0; }
  .possibility-grid h3 { margin-top: 48px; }
  .cta { min-height: 560px; }
  .cta-actions { flex-direction: column; gap: 12px; }
  footer { min-height: 170px; flex-wrap: wrap; gap: 20px; }
  footer p { order: 3; width: 100%; }
  .dialog-panel { padding: 42px 24px 30px; }
  .dialog-panel h2 { font-size: 46px; }
}

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