/* Residences. Change the colors here. */
:root {
  --stone: #f4f1ec;
  --paper: #fbfaf7;
  --navy: #1d2a3a;
  --navy-2: #24344a;
  --ink: #1d2a3a;
  --muted: #5d6573;
  --line: #ddd7cc;
  --brass: #b8935a;
  --brass-dark: #8a6a37;
  --blueprint-line: rgb(255 255 255 / 0.06);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass-dark); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 100vh; }

.content { padding: clamp(28px, 5vw, 64px); }
.logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(40px, 7vw, 80px); color: var(--navy); text-decoration: none; }
.logo svg { width: 34px; height: 34px; color: var(--brass); }
.logo span { display: flex; flex-direction: column; font-family: ui-serif, Georgia, Cambria, serif; font-size: 1.3rem; line-height: 1.1; letter-spacing: 0.04em; }
.logo small { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }

.eyebrow { margin: 0 0 14px; color: var(--brass-dark); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
h1 { max-width: 560px; margin: 0 0 18px; font-family: ui-serif, Georgia, Cambria, serif; font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 400; line-height: 1.1; }
.lead { max-width: 540px; margin: 0 0 32px; color: var(--muted); font-size: 1.05rem; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 580px; margin: 0 0 36px; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--paper); }
.facts svg { flex: none; width: 22px; height: 22px; color: var(--brass); }
.facts span { display: flex; flex-direction: column; color: var(--muted); font-size: 0.82rem; line-height: 1.3; }
.facts strong { color: var(--ink); font-size: 0.98rem; }

.interest { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; max-width: 580px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field:nth-child(3) { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; }
.interest input:not([type="checkbox"]), .interest select { height: 48px; padding: 0 12px; border: 1px solid #c9c2b5; background: var(--paper); color: var(--ink); font: inherit; }
.interest input:focus-visible, .interest select:focus-visible { outline-offset: 0; border-color: var(--brass); }
.check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.interest button {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px;
  border: 0;
  background: var(--navy);
  color: var(--paper);
  font: inherit; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem;
  cursor: pointer;
}
.interest button svg { width: 18px; height: 18px; transition: transform 0.2s; }
.interest button:hover { background: var(--navy-2); }
.interest button:hover svg { transform: translateX(4px); }
.note { grid-column: 1 / -1; min-height: 1.6em; margin: 0; color: var(--brass-dark); font-weight: 600; }

.foot { max-width: 580px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.foot p { margin: 0 0 4px; }

.plan-side {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 4vw, 56px);
  background:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--navy);
  color: var(--paper);
}
.plan { width: min(520px, 100%); margin: 0; }
.plan svg { display: block; width: 100%; height: auto; }
.rooms rect { fill: rgb(255 255 255 / 0.03); stroke: rgb(255 255 255 / 0.55); stroke-width: 2; }
.walls { fill: none; stroke: var(--paper); stroke-width: 7; }
.balcony { fill: none; stroke: var(--brass); stroke-width: 2; stroke-dasharray: 6 5; }
.windows path { stroke: var(--brass); stroke-width: 7; fill: none; }
.doors path { fill: none; stroke: var(--brass); stroke-width: 1.5; }
.kitchen rect { fill: rgb(184 147 90 / 0.25); stroke: var(--brass); stroke-width: 1; }
.labels text { fill: var(--paper); font: 600 12px ui-sans-serif, system-ui, sans-serif; text-anchor: middle; letter-spacing: 0.04em; }
.labels .dim { fill: var(--brass); font-weight: 400; font-size: 10px; }
.compass circle { fill: none; stroke: rgb(255 255 255 / 0.5); }
.compass path { fill: var(--brass); }
.compass text { fill: var(--paper); font: 700 10px ui-sans-serif, system-ui, sans-serif; text-anchor: middle; }
.plan figcaption { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / 0.2); color: var(--brass); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; }
.walls { stroke-dasharray: 1240; animation: draw 2.2s ease-out both; }

@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .plan-side { order: -1; }
}
@media (max-width: 520px) {
  .facts, .interest { grid-template-columns: 1fr; }
}

@keyframes draw { from { stroke-dashoffset: 1240; } }

@media (prefers-reduced-motion: reduce) {
  .walls { animation: none; }
  .interest button svg { transition: none; }
}
