/* Palette and type follow the Stark Wayne brand guidelines (../brand/guidelines.md):
   Paper, Onyx, Mist, Graphite and a single Brass accent; Cormorant headings, Inter body. */
:root {
  --bg: #FAFAF7;          /* Paper */
  --card: #FFFFFF;
  --text: #0B0B0C;        /* Onyx */
  --muted: #6B6B70;       /* Graphite */
  --line: #E4E3DE;        /* Mist */
  --field: #FAFAF7;
  --accent: #9C7C4E;      /* Brass: rules, numerals, selected states */
  --accent-ink: #7E6238;  /* Brass Ink: small text and links */
  --selected: #F6F1E8;
  --button: #0B0B0C;
  --button-text: #FFFFFF;
  --logo-filter: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A1D;        /* Ink */
    --card: #222226;
    --text: #F2F1EC;
    --muted: #A3A3A8;
    --line: #34343A;
    --field: #1A1A1D;
    --accent: #B8976A;
    --accent-ink: #C9AB80;
    --selected: #2C2822;
    --button: #F2F1EC;
    --button-text: #0B0B0C;
    --logo-filter: invert(1);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 38rem; margin: 0 auto; padding: 2rem 16px 3rem; }
a { color: var(--accent-ink); }

/* Header */
.brand { display: block; width: 104px; margin: 0 auto 2rem; }
.brand img { display: block; width: 100%; height: auto; filter: var(--logo-filter); }
header { text-align: center; margin-bottom: 2.25rem; }
.eyebrow {
  margin: 0 0 .6rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
}
h1 {
  font-family: "Cormorant", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 8vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
}
.property { margin: 1rem 0 0; font-size: 1.15rem; font-weight: 600; }
.area { margin: .15rem 0 0; color: var(--muted); }
.rent {
  margin: .35rem 0 0;
  font-family: "Cormorant", Georgia, serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--accent);
}
.rule { width: 48px; height: 1px; background: var(--accent); border: 0; margin: 1.4rem auto; }
.intro { color: var(--muted); max-width: 30rem; margin: 0 auto; }

/* Sections */
fieldset {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.25rem 1.5rem;
  margin: 0 0 1rem;
  min-width: 0;
}
legend {
  float: left;
  width: 100%;
  padding: 0 0 .9rem;
  margin: 0 0 .2rem;
  border-bottom: 1px solid var(--line);
  font-family: "Cormorant", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
}
legend .num {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: .2rem;
}
legend + * { clear: both; }
fieldset > label:first-of-type, legend + .q { margin-top: 1rem; }

label { display: block; margin: 1.1rem 0 0; font-weight: 500; font-size: .95rem; }
.q { margin: 1.1rem 0 0; }
.q > p { margin: 0; font-weight: 500; font-size: .95rem; }
.req { color: var(--accent); }

input[type=text], input[type=email], input[type=tel], input[type=number], textarea {
  display: block;
  width: 100%;
  margin-top: .4rem;
  padding: .75rem .85rem;
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
textarea { resize: vertical; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.choices.stack { flex-direction: column; }
.choices:not(.stack) label { flex: 1 1 0; min-width: fit-content; }
.choices label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .95rem;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choices label:hover { border-color: var(--muted); }
.choices label:has(input:checked) { border-color: var(--accent); background: var(--selected); }
.choices label:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }

.sub { font-weight: 400; color: var(--muted); font-size: .9rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.consent input { margin-top: .2rem; }
.small { color: var(--muted); font-size: .85rem; margin: 1rem 0 0; }

button {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--button-text);
  background: var(--button);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity .15s;
}
button:hover { opacity: .88; }

/* Property list on the root page */
.card {
  display: block;
  padding: 1.25rem;
  margin: 0 0 .8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  text-align: left;
  transition: border-color .15s;
}
.card:hover { border-color: var(--accent); }
.card .eyebrow { margin: 0 0 .25rem; }
.card strong { display: block; font-family: "Cormorant", Georgia, serif; font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.card .rent { display: block; margin: .25rem 0 0; font-size: 1.25rem; }

footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
}
footer p { margin: .2rem 0; }

[hidden] { display: none !important; }
.followup { animation: reveal .2s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }
button:disabled { opacity: .6; cursor: progress; }

.hp { position: absolute; left: -9999px; }
