:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #1a1f1a;
  --ink-soft: #4a544a;
  --ink-mute: #7a8278;
  --line: #e3ddd2;
  --line-strong: #c9c2b3;
  --accent: #3a5a3a;
  --accent-hover: #2c452c;
  --warn: #8a4a2a;
  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1120px;
  --maxw-narrow: 680px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--ink);
}

/* ===== Hero ===== */
.hero {
  padding: clamp(56px, 10vw, 120px) clamp(20px, 4vw, 48px) clamp(48px, 8vw, 88px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 60% at 80% 0%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%),
    var(--bg);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  max-width: 18ch;
  margin-bottom: 18px;
}
.hero-sub {
  display: block;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 6px;
  font-weight: 400;
}
.hero-lead {
  max-width: 60ch;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 28px;
  max-width: 720px;
}
.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.hero-meta strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

/* ===== Sections ===== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container-narrow {
  max-width: var(--maxw-narrow);
}
section {
  padding: clamp(56px, 9vw, 96px) 0;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
}
.section-lead {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 36px;
}

/* ===== Property cards ===== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-wide {
  grid-column: 1 / -1;
  background: color-mix(in oklab, var(--warn) 6%, var(--surface));
  border-color: color-mix(in oklab, var(--warn) 25%, var(--line));
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}
.card p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 14px;
}
.card-foot {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 12px;
}
.card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 6px;
  column-gap: 16px;
  font-size: 13px;
}
.card dt {
  color: var(--ink-mute);
}
.card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

/* ===== Redevelopment ===== */
.redev {
  background: color-mix(in oklab, var(--accent) 4%, var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.redev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.checklist {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
}
.checklist li {
  margin-bottom: 6px;
}

/* ===== Documents ===== */
.documents {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.doc-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.doc-link:hover {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 4%, var(--bg));
}
.doc-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.doc-meta {
  display: flex;
  flex-direction: column;
}
.doc-meta strong {
  font-weight: 500;
  font-size: 15px;
}
.doc-meta em {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 2px;
}

/* ===== Form ===== */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-wide {
  grid-column: 1 / -1;
}
.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
}
.form-note.ok {
  color: var(--accent);
}
.form-note.err {
  color: var(--warn);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 56px;
  background: var(--bg);
}
.footer-inner {
  color: var(--ink-mute);
  font-size: 13px;
}
.footnote {
  margin-top: 8px;
  max-width: 70ch;
  font-size: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .site-nav {
    gap: 18px;
  }
  .contact-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

/* ===== Site context (aerial image + flowing text) ===== */
.site-context {
  margin: 1.5rem 0 2.5rem;
}
.site-context__figure {
  margin: 0 0 1rem 0;
  float: none;
}
.site-context__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.site-context__zoom:hover,
.site-context__zoom:focus-visible {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
  outline: none;
}
.site-context__zoom img {
  display: block;
  width: 100%;
  height: auto;
}
.site-context__figure figcaption {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
  margin-top: 0.5rem;
  font-style: italic;
}
.site-context__body p {
  margin: 0 0 1rem 0;
}
.site-context__body p:last-child {
  margin-bottom: 0;
}

/* Desktop: image floats right, text wraps on left */
@media (min-width: 768px) {
  .site-context {
    overflow: hidden; /* contain the float */
  }
  .site-context__figure {
    float: right;
    width: 48%;
    margin: 0 0 1rem 1.75rem;
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox[hidden] {
  display: none;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}
