:root {
  --paper: #f4f1eb;
  --ink: #242722;
  --muted: #555b4e;
  --olive: #5e6855;
  --olive-soft: #aeb69e;
  --line: #d8d2c6;
  --night: #171d17;
  --night-line: #c8cabb;
  --white: #f6f4ee;
  --serif: "Cormorant Garamond", "Bodoni 72", "Didot", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-400.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./assets/fonts/inter-400.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/inter-800.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  font-family: var(--sans);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

[contenteditable="true"] {
  outline: none;
}

.is-editing [data-edit] {
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(94, 104, 85, 0.35), 0 0 0 5px rgba(174, 182, 158, 0.15);
  cursor: text;
}

.is-editing [data-edit]:hover,
.is-selected-editable {
  box-shadow: 0 0 0 1px rgba(36, 39, 34, 0.72), 0 0 0 5px rgba(94, 104, 85, 0.2) !important;
}

.editor-open,
.editor-panel button {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 800 12px/1 var(--sans);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
}

.editor-open {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  min-width: 72px;
  min-height: 42px;
  box-shadow: 0 12px 30px rgba(23, 29, 23, 0.2);
}

.editor-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: none;
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(36, 39, 34, 0.18);
  border-radius: 8px;
  background: rgba(246, 244, 238, 0.97);
  box-shadow: 0 22px 60px rgba(23, 29, 23, 0.22);
  color: var(--ink);
}

.editor-panel.is-open {
  display: block;
}

.editor-panel__header,
.editor-panel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.editor-panel__header {
  margin-bottom: 14px;
}

.editor-panel__header strong {
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.editor-panel__header button {
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  font-size: 16px;
}

.editor-panel label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.editor-panel__field-picker {
  padding: 10px;
  border: 1px solid rgba(94, 104, 85, 0.35);
  border-radius: 8px;
  background: rgba(174, 182, 158, 0.18);
}

.editor-panel__field-picker span {
  color: var(--ink);
}

.editor-panel select,
.editor-panel textarea,
.editor-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: 400 14px/1.45 var(--sans);
}

.editor-panel textarea {
  resize: vertical;
  padding: 10px;
}

.editor-panel input,
.editor-panel select {
  min-height: 38px;
  padding: 0 10px;
}

.editor-panel select {
  min-height: 44px;
  border-color: rgba(94, 104, 85, 0.55);
  background-color: #fffdfa;
  font-weight: 800;
}

.editor-panel__actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.editor-panel__actions button {
  min-height: 34px;
  padding: 0 12px;
  background: var(--olive);
}

.editor-panel [data-editor-status] {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  padding: 0 40px 0 68px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 128px;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.location svg,
.email-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.section-shell {
  padding-right: 40px;
  padding-left: 40px;
}

.eyebrow,
.section-index,
.homes-heading p,
.dre,
.footer-bottom p,
.listing-main p,
.listing-price {
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.6px;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero {
  min-height: 584px;
  padding-top: 110px;
  padding-left: 50px;
}

.hero .eyebrow {
  margin: 0 0 28px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.intro h2,
.homes h2,
.site-footer h2,
.listing h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: 72px;
  line-height: 0.97;
}

.hero-copy {
  max-width: 710px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.42;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 242px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.button .arrow {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.intro {
  display: grid;
  grid-template-columns: 210px minmax(0, 650px);
  gap: 28px;
  min-height: 292px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.section-index {
  margin: 0;
}

.intro h2 {
  max-width: 640px;
  margin-bottom: 20px;
  font-size: 42px;
  line-height: 0.98;
}

.intro-copy p {
  max-width: 580px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.homes {
  padding-top: 79px;
  padding-bottom: 76px;
}

.homes-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.homes h2 {
  margin-bottom: 0;
  font-size: 49px;
  line-height: 1;
}

.homes-heading p {
  margin-bottom: 4px;
  white-space: nowrap;
}

.listing {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.listing-number {
  color: var(--olive);
  font-size: 14px;
  font-weight: 700;
}

.listing h3 {
  margin-bottom: 3px;
  color: #505148;
  font-size: 34px;
  line-height: 1;
}

.listing-main p,
.listing-price {
  margin-bottom: 0;
}

.listing-price {
  color: var(--ink);
}

.site-footer {
  background: var(--night);
  color: var(--white);
}

.footer-cta {
  min-height: 454px;
  padding: 92px 40px 50px;
}

.footer-cta .eyebrow {
  margin-bottom: 25px;
  color: var(--olive-soft);
}

.site-footer h2 {
  max-width: 660px;
  margin-bottom: 38px;
  font-size: 62px;
  line-height: 0.94;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 38px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.email-link svg {
  color: var(--olive-soft);
}

.dre {
  margin: 0;
  color: var(--olive-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 26px 40px 20px;
  border-top: 1px solid rgba(246, 244, 238, 0.72);
}

.footer-bottom p {
  margin: 0;
  color: var(--olive-soft);
}

@media (max-width: 900px) {
  .site-header {
    min-height: 100px;
    padding-right: 28px;
    padding-left: 42px;
  }

  .hero,
  .section-shell {
    padding-right: 28px;
    padding-left: 28px;
  }

  .hero {
    min-height: 520px;
    padding-top: 86px;
  }

  h1 {
    max-width: 690px;
    font-size: 64px;
  }

  .intro {
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 270px;
  }

  .intro h2 {
    font-size: 38px;
  }

  .homes h2 {
    font-size: 42px;
  }

  .homes-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .homes-heading p {
    white-space: normal;
  }

  .site-footer h2 {
    font-size: 56px;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    min-height: 92px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .brand {
    width: 112px;
  }

  .location {
    gap: 6px;
    margin-top: 0;
    font-size: 9px;
    letter-spacing: 1.8px;
  }

  .location svg {
    width: 13px;
    height: 13px;
  }

  .hero,
  .section-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .eyebrow,
  .section-index,
  .homes-heading p,
  .dre,
  .footer-bottom p,
  .listing-main p,
  .listing-price {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero {
    min-height: 548px;
    padding-top: 74px;
  }

  .hero .eyebrow {
    margin-bottom: 22px;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 48px;
    line-height: 0.98;
  }

  .hero-copy {
    margin-bottom: 29px;
    font-size: 17px;
  }

  .hero-copy br {
    display: none;
  }

  .button {
    min-width: 218px;
    min-height: 43px;
    font-size: 12px;
  }

  .intro {
    display: block;
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 58px;
  }

  .intro .section-index {
    margin-bottom: 30px;
  }

  .intro h2 {
    margin-bottom: 18px;
    font-size: 38px;
    line-height: 1;
  }

  .intro-copy p {
    font-size: 15px;
  }

  .homes {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .homes-heading {
    padding-bottom: 28px;
  }

  .homes h2 {
    font-size: 40px;
  }

  .listing {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 132px;
    padding: 22px 0;
  }

  .listing-number {
    align-self: start;
    padding-top: 4px;
  }

  .listing h3 {
    font-size: 31px;
  }

  .listing-price {
    grid-column: 2;
    margin-top: 14px;
  }

  .footer-cta {
    min-height: 426px;
    padding: 70px 20px 42px;
  }

  .footer-cta .eyebrow {
    margin-bottom: 24px;
  }

  .site-footer h2 {
    margin-bottom: 34px;
    font-size: 47px;
    line-height: 0.96;
  }

  .footer-bottom {
    min-height: 86px;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
  }
}

@media (max-width: 390px) {
  .location span {
    max-width: 96px;
    white-space: normal;
  }

  h1 {
    font-size: 42px;
  }

  .intro h2,
  .homes h2 {
    font-size: 35px;
  }

  .site-footer h2 {
    font-size: 41px;
  }
}
