/* Candor Properties
   Colors and type from the Candor style tile v2.0: spring green, clarity blue,
   speed orange; Avenir. Blueprint art from the Candor brand folder. */

:root {
  --spring: #A6CE39;
  --spring-ink: #1E2B05;
  --blue: #0B8AD2;
  --blue-ink: #075E91;
  --blue-deep: #064A73;
  --blue-tint: #E8F4FC;
  --orange: #F5A23A;
  --orange-ink: #8A4A05;
  --text: #22303C;
  --muted: #5F6B76;
  --line: #D9E3EA;
  --paper: #FFFFFF;
  --bg: #F6F9FB;
  --rule: rgba(11, 138, 210, .09);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Avenir Next", Avenir, "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; font-weight: 600; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 21px; }
p + p { margin-top: 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; margin-top: 14px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* Band and hero */
.band {
  background: var(--blue) url("assets/blueprint-1800.jpg") center top / cover no-repeat;
  color: #fff;
}
.band.short { padding-bottom: 56px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { height: 34px; width: auto; }
.brand span { font-size: 25px; font-weight: 500; letter-spacing: -0.01em; }
.nav ul { display: flex; gap: 26px; list-style: none; }
.nav a.link { color: #fff; text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a.link:hover { border-bottom-color: var(--spring); }

.hero { padding: 64px 0 0; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); max-width: 15ch; text-shadow: 0 1px 14px rgba(0, 40, 80, .28); }
.hero p { font-size: clamp(18px, 1.7vw, 21px); max-width: 54ch; margin-top: 20px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 40, 80, .3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: 6px; border: 2px solid transparent;
}
.btn.primary { background: var(--spring); color: var(--spring-ink); }
.btn.primary:hover { background: #B7DB55; }
.btn.ghost { border-color: #fff; color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.btn.blue { background: var(--blue-ink); color: #fff; }
.btn.blue:hover { background: var(--blue-deep); }

button.btn { font-family: inherit; cursor: pointer; }
.btn.outline { border-color: var(--blue-ink); color: var(--blue-ink); background: transparent; }
.btn.outline:hover { background: var(--blue-tint); }
.fold { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fold summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 19px; color: var(--blue-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; font-size: 26px; font-weight: 400; line-height: 1; }
.fold[open] summary::after { content: "\2212"; }
.fold .trades { padding: 10px 0 34px; }

/* Drawing sheet: a photo framed like a sheet from a plan set */
.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px;
  position: relative;
  box-shadow: 0 18px 44px rgba(6, 60, 100, .18);
}
.sheet img { width: 100%; height: auto; }
.titleblock {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border: 1px solid var(--blue-ink); border-top: 0; margin-top: 10px;
  border-top: 1px solid var(--blue-ink);
  font-family: var(--mono); font-size: 12.5px; color: var(--blue-deep);
}
.titleblock div { padding: 8px 12px; border-right: 1px solid var(--blue-ink); }
.titleblock div:last-child { border-right: 0; }
.titleblock b { display: block; font-family: var(--sans); font-size: 15.5px; color: var(--text); font-weight: 600; }
.hero-sheet { margin-top: 48px; transform: translateY(72px); margin-bottom: 0; }
.after-hero { padding-top: 120px; }

/* Sections */
section { padding: 84px 0; }
.ruled {
  background-color: var(--blue-tint);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 28px 28px;
}
.head { margin-bottom: 38px; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--paper); }
.stats div { padding: 22px 24px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 34px; font-weight: 600; color: var(--blue-ink); line-height: 1.1; }
.stats span { color: var(--muted); font-size: 15px; }

/* Featured listing */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: start; }
.pill {
  display: inline-block; font-size: 13.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: var(--spring); color: var(--spring-ink);
}
.pill.leased { background: #E3EAF0; color: #3D4A56; }
.pill.owner { background: #FFE9CC; color: var(--orange-ink); }
.price { font-size: 40px; font-weight: 600; line-height: 1.1; margin-top: 14px; }
.price small { font-size: 17px; font-weight: 500; color: var(--muted); }
.spec { width: 100%; border-collapse: collapse; margin-top: 22px; background: var(--paper); border: 1px solid var(--blue-ink); }
.spec th, .spec td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--blue-deep); width: 38%; padding-top: 13px; border-right: 1px solid var(--line); }
.caption { font-size: 14.5px; color: var(--muted); margin-top: 10px; }

/* Portfolio */
.portfolio { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: start; }
.plan { background: var(--blue-ink); padding: 22px; color: #fff; }
.plan svg { width: 100%; height: auto; display: block; }
.plan p { font-family: var(--mono); font-size: 12.5px; margin-top: 10px; opacity: .9; }
.homes { list-style: none; border-top: 1px solid var(--line); }
.homes li { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.homes h3 { font-size: 20px; }
.homes p { color: var(--muted); font-size: 16px; grid-column: 1 / -1; margin: 0; }
.homes .where { font-family: var(--mono); font-size: 12.5px; color: var(--blue-deep); grid-column: 1 / -1; }

/* Project record */
.record { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.record figure { background: var(--paper); border: 1px solid var(--line); padding: 8px; }
.record img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.record figcaption { font-size: 14.5px; padding: 10px 4px 4px; }
.record figcaption b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--blue-deep); }
.scope { columns: 2; column-gap: 44px; margin-top: 34px; list-style: none; }
.scope li { break-inside: avoid; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); position: relative; }
.scope li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 9px; border: 2px solid var(--blue); }

/* Trades */
.trades { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.card { background: var(--paper); border: 1px solid var(--blue-ink); padding: 28px; }
.card h3 { margin-bottom: 12px; }
.card ul { list-style: none; }
.card li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.card li:last-child { border-bottom: 0; }
.card li b { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--blue-deep); }

/* About and contact */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.contact { background: var(--blue) url("assets/blueprint-1800.jpg") center / cover no-repeat; color: #fff; }
.contact h2 { max-width: 20ch; }
.contact p { max-width: 56ch; margin-top: 14px; font-weight: 500; font-size: 19px; }
.contact a.mail { color: #fff; font-weight: 700; }

footer { background: #16222C; color: #B9C4CE; font-size: 14.5px; padding: 34px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; align-items: center; }
footer img { height: 22px; width: auto; }
footer a { color: #fff; }

/* Listing page */
.crumbs { font-size: 15px; font-weight: 600; }
.crumbs a { color: #fff; }
.listing-head { padding: 30px 0 0; }
.listing-head h1 { font-size: clamp(34px, 4.6vw, 54px); text-shadow: 0 1px 14px rgba(0, 40, 80, .28); }
.listing-head p { font-size: 19px; font-weight: 500; margin-top: 10px; }
.listing { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.listing .side { position: sticky; top: 24px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 10px 0 0 20px; }
.prose li { padding: 3px 0; }
.note { border-left: 4px solid var(--orange); background: #FFF6EA; padding: 14px 18px; margin-top: 18px; font-size: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.gallery button { border: 1px solid var(--line); background: var(--paper); padding: 6px; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
dialog { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); margin: auto; }
dialog::backdrop { background: rgba(8, 20, 30, .88); }
dialog img { max-height: 86vh; width: auto; max-width: 100%; margin: 0 auto; background: #fff; padding: 8px; }
dialog p { color: #fff; text-align: center; padding: 12px; font-size: 16px; }
dialog form { text-align: center; }
dialog button { font: inherit; font-weight: 700; padding: 8px 18px; border-radius: 6px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }

@media (max-width: 900px) {
  .feature, .portfolio, .trades, .about, .listing { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .record { grid-template-columns: 1fr 1fr; }
  .scope { columns: 1; }
  .listing .side { position: static; }
  .nav ul { gap: 16px; }
  .nav li.opt { display: none; }
  section { padding: 60px 0; }
  .hero { padding-top: 36px; }
  .hero-sheet { transform: translateY(48px); }
  .after-hero { padding-top: 92px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { flex-wrap: wrap; gap: 8px 20px; padding: 16px 0; }
  .nav a.link { font-size: 14.5px; }
  .brand img { height: 26px; }
  .brand span { font-size: 20px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide { grid-row: auto; }
  .homes li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Photo flag */
.flag {
  position: absolute; top: 26px; left: -8px; z-index: 1;
  background: var(--spring); color: var(--spring-ink);
  font-weight: 700; font-size: 16px; padding: 9px 18px 9px 20px;
  box-shadow: 0 4px 12px rgba(6, 60, 100, .25);
}
.flag::after { content: ""; position: absolute; left: 0; bottom: -8px; border-top: 8px solid #6F8E1E; border-left: 8px solid transparent; }

/* Contact form */
.form-wrap { max-width: 680px; }
.form { background: var(--paper); border: 1px solid var(--blue-ink); padding: 32px; display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-weight: 600; font-size: 15.5px; }
.form label span { font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; color: var(--text);
  padding: 11px 12px; border: 1px solid #9FB2C0; border-radius: 6px; background: #fff;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(11, 138, 210, .35); border-color: var(--blue); }
.form .hp { position: absolute; left: -9999px; }
.form-status { font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: #3F6212; }
.form-status.bad { color: #A23B0A; }
.sent { background: var(--paper); border: 1px solid var(--blue-ink); padding: 32px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } .form { padding: 22px; } }
