/* ============================================================
   Winston Dane — Base styles & primitives
   Depends on tokens.css. Establishes reset, type, layout helpers,
   and the reusable UI primitives (buttons, eyebrow, rule, cards).
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--wd-sans);
  font-weight: 400;
  font-size: var(--wd-body-size);
  line-height: var(--wd-body-lh);
  color: var(--wd-body);
  background: var(--wd-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Headlines: Cormorant Garamond, weight 400 only, never bold ---- */
h1, h2, h3, .wd-display {
  font-family: var(--wd-serif);
  font-weight: 400;          /* NEVER bold a Garamond — scale up instead */
  color: var(--wd-ink);
  line-height: 1.08;
  letter-spacing: 0.005em;
}
h1 { font-size: var(--wd-h1); }
h2 { font-size: var(--wd-h2); }
h3 { font-size: var(--wd-h3); line-height: 1.2; }

p { max-width: var(--wd-maxw-text); }

/* ---- Eyebrow / label — the small gold-or-slate kicker above headlines ---- */
.wd-eyebrow {
  font-family: var(--wd-sans);
  font-weight: 500;
  font-size: var(--wd-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wd-slate-400);
}
.wd-eyebrow--gold { color: var(--wd-gold); }

/* ---- Hairline rule — the single gold accent line ---- */
.wd-rule {
  width: 56px;
  height: 2px;
  background: var(--wd-gold);
  border: 0;
}

/* ---- Layout helpers ---- */
.wd-wrap { width: 100%; max-width: var(--wd-maxw); margin-inline: auto; padding-inline: var(--wd-gutter); }
.wd-section { padding-block: var(--wd-section-y); }
.wd-section--dark { background: var(--wd-slate-900); }
.wd-section--dark h1, .wd-section--dark h2, .wd-section--dark h3 { color: #fff; }
.wd-section--dark p { color: #c7cbd8; }

/* ---- Buttons ---- */
.wd-btn {
  display: inline-block;
  font-family: var(--wd-sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border-radius: var(--wd-radius);   /* square */
  transition: background var(--wd-dur) var(--wd-ease), color var(--wd-dur) var(--wd-ease), border-color var(--wd-dur) var(--wd-ease);
}
.wd-btn--gold  { background: var(--wd-gold); color: var(--wd-gold-ink); border: 1px solid var(--wd-gold); }
.wd-btn--gold:hover { background: var(--wd-gold-deep); border-color: var(--wd-gold-deep); }
.wd-btn--ghost { background: transparent; color: var(--wd-ink); border: 1px solid var(--wd-ink); }
.wd-btn--ghost:hover { background: var(--wd-ink); color: #fff; }
.wd-btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.7); }
.wd-btn--ghost-light:hover { background: #fff; color: var(--wd-ink); border-color: #fff; }

/* ---- Link with animated gold underline ---- */
.wd-link {
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--wd-ink);
  border-bottom: 1px solid var(--wd-gold);
  padding-bottom: 2px;
  transition: color var(--wd-dur) var(--wd-ease);
}
.wd-link:hover { color: var(--wd-gold); }

/* ---- Stat block ---- */
.wd-stat__num { font-family: var(--wd-serif); font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem); color: var(--wd-ink); line-height: 1; }
.wd-stat__label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wd-slate-400); margin-top: 0.6rem; }

/* ---- Listing card ---- */
.wd-card { background: #fff; border: 1px solid var(--wd-rule); }
.wd-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.wd-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--wd-ease); }
.wd-card:hover .wd-card__media img { transform: scale(1.05); }
.wd-card__body { padding: 1.4rem 1.5rem 1.7rem; }
.wd-card__price { font-family: var(--wd-serif); font-size: 1.6rem; color: var(--wd-ink); }
.wd-card__addr { font-size: 0.95rem; color: var(--wd-body); margin-top: 0.2rem; }
.wd-card__meta { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wd-slate-400); margin-top: 0.9rem; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
