/* Palette comes from the property: white clapboard, slate roofs, granite wall, pines. See DESIGN.md. */
:root {
  --paper: #ffffff;
  --ink: #151718;
  --slate: #2f3639;
  --slate-2: #3d4549;
  --granite: #eeefec;
  --rule: #d3d6d2;
  --muted: #565d5a;
  --pine: #1f3d31;
  --pine-dark: #142a21;
  --needle: #9fc2a8;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --band-pad: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }

h1, h2, h3, .name-mark, .wordmark, nav, .button, dt, th, label, figcaption, .fine, .footer, .times {
  font-family: var(--sans);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 750;
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1em; max-width: 62ch; }

:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-stretch: 70%;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark img { width: 30px; height: 30px; }
.masthead nav { display: flex; gap: clamp(12px, 2.5vw, 32px); font-size: 0.95rem; flex-wrap: wrap; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { color: var(--pine); font-weight: 650; }

/* Hero */
.hero-photo img {
  height: min(74vh, 780px);
  object-fit: cover;
  object-position: 50% 45%;
}
.hero-text {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: start;
}
.hero-name { grid-column: 1 / 8; }
.name-mark {
  display: inline-block;
  max-width: none;
  white-space: nowrap;
  margin: calc(-0.42 * clamp(3.2rem, 7.2vw, 8.5rem)) 0 0;
  padding: 0.08em 0.2em 0 0;
  background: var(--paper);
  justify-self: start;
  align-self: start;
  position: relative;
  font-size: clamp(3.2rem, 7.2vw, 8.5rem);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.82;
  letter-spacing: -0.02em;
}
.hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 750;
  font-stretch: 75%;
  line-height: 1.02;
  margin: 0 0 1rem;
}
.hero .place-line { margin: 18px 0 0; font-family: var(--sans); font-size: 1.15rem; color: var(--muted); }
.hero-lead { grid-column: 8 / 13; padding-top: 28px; }
.facts {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  border-top: 2px solid var(--ink);
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
}
.facts li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.guest ul { margin: 0; padding-left: 1.1em; }
.guest li { padding: 3px 0; }
.guest li::marker { color: var(--pine); }

.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 1.5rem; }
.button {
  display: inline-block;
  padding: 14px 26px;
  background: var(--pine);
  color: #fff;
  border: 0;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--pine-dark); }
.phone { font-family: var(--sans); font-weight: 600; text-decoration: none; }

/* Apartments */
.apartments {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 10vw, 140px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.apt-photo-main { grid-column: 1 / 8; grid-row: 1; }
.apt-copy { grid-column: 8 / 13; grid-row: 1 / 3; padding-left: clamp(0px, 2vw, 24px); }

.spec { margin: 2rem 0 0; border-top: 2px solid var(--ink); }
.spec div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.spec dt { font-weight: 650; font-size: 0.95rem; }
.spec dd { margin: 0; font-size: 1rem; }

.apt-mosaic {
  grid-column: 1 / 8;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-areas: "living porch" "living kitchen";
  gap: 12px;
}
.m-living { grid-area: living; }
.m-porch { grid-area: porch; }
.m-kitchen { grid-area: kitchen; }
.apt-mosaic figure { display: flex; flex-direction: column; }
.apt-mosaic img { flex: 1; min-height: 0; object-fit: cover; }
.m-living img { height: 100%; }
figcaption { font-size: 0.85rem; color: var(--muted); padding-top: 6px; }

/* Guests */
.guests {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}
.guests-head { grid-column: 1 / 5; }
.guests-head p { font-size: 1rem; color: var(--muted); }
.highlights-photo { margin-top: 8px; }
.highlights-photo img { aspect-ratio: 1 / 1; object-fit: cover; }
.highlight-list { grid-column: 5 / 13; align-self: start; margin: 0; }
.guest {
  grid-column: 5 / 13;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px;
  padding: 24px 0 12px;
  border-top: 1px solid var(--rule);
}
.guests-head + .guest { border-top: 2px solid var(--ink); }
.guests-head { grid-row: 1 / span 4; align-self: start; position: sticky; top: 24px; }

/* Location */
.location {
  background: var(--slate);
  color: #f2f3f1;
  padding: clamp(64px, 9vw, 128px) var(--band-pad);
}
.location-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.location .fine { color: #c9cfcc; font-size: 0.95rem; margin: 0; }

.times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 64px;
  margin-top: 40px;
}
.times h3 { color: var(--needle); font-size: 1rem; margin-bottom: 12px; }
.times ol { list-style: none; margin: 0; padding: 0; }
.times li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--slate-2);
  font-size: 1.05rem;
}
.times li:last-child { border-bottom: 1px solid var(--slate-2); }
.times .min { font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }


.walk { margin: 48px 0 0; color: #e4e7e5; max-width: 72ch; }

/* Rates */
.rates {
  background: var(--granite);
  padding: clamp(64px, 9vw, 120px) var(--band-pad);
}
.rates > * { max-width: 980px; }
.rates table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.rates th, .rates td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid #cfd2cd; }
.rates th { width: 11rem; font-weight: 650; font-size: 1rem; padding-right: 24px; }
.rates td strong { font-family: var(--sans); font-size: 1.35rem; font-weight: 750; }

/* Inquiry */
.inquire {
  background: var(--pine);
  color: #fff;
  padding: clamp(64px, 9vw, 128px) var(--band-pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}
.inquire-copy { grid-column: 1 / 5; }
.contact { font-family: var(--sans); font-weight: 600; margin-top: 2rem; }
.form {
  grid-column: 6 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.form label { display: block; font-size: 0.95rem; font-weight: 600; }
.form .opt { font-weight: 400; color: #c9dccf; }
.form .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 2px;
  padding: 12px 12px;
  width: 100%;
  display: block;
  margin-top: 6px;
}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--needle); outline-offset: 2px; }
.form [aria-invalid="true"] { box-shadow: inset 0 0 0 3px #b3261e; }
.field-error { display: block; margin-top: 6px; font-weight: 600; color: #ffd9d2; }
.inquire :focus-visible { outline-color: var(--needle); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.inquire .button { background: #fff; color: var(--pine); }
.inquire .button:hover { background: var(--granite); }
.inquire .button[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; font-family: var(--sans); font-size: 0.98rem; }

/* Footer */
.footer {
  padding: 28px var(--gutter) 40px;
  display: flex;
  gap: 8px 32px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer p { margin: 0; }

/* Narrow screens */
@media (max-width: 900px) {
  .hero-text, .apartments, .guests, .inquire { grid-template-columns: 1fr; }
  .hero-name, .hero-lead, .apt-photo-main, .apt-copy, .apt-mosaic, .guests-head, .guest, .highlight-list,
  .inquire-copy, .form {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .apt-copy { padding-left: 0; }
  .hero-photo img { height: 52vh; }
  .name-mark { white-space: normal; }
  .guests-head { position: static; }
  .guest { grid-template-columns: 1fr; gap: 4px; }
  .name-mark { display: block; }
  .times { grid-template-columns: 1fr; gap: 40px; }
  .inquire-copy { margin-bottom: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .form { grid-template-columns: 1fr; }
  .rates th { width: 7.5rem; padding-right: 12px; }
  .spec div { grid-template-columns: 6rem 1fr; }
}
