:root {
  /* Brand neutrals (design direction 2.2). */
  --paper: #F7F3EC;
  --paper-2: #EFE9DF;
  --ink: #1C1B19;
  --ink-2: #4A4742;
  --rule: #D9D2C5;
  /* The 10% offer pills share the logo's green (Jay, 2026-10-28); paper lettering on it is 10.8:1. */
  --offer: #263B32;
  --offer-ink: var(--paper);

  /* Type scale (design direction 2.1). Phone value first, desktop value last. */
  --t-display: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem);
  --t-h2: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  --t-h3: 1.25rem;
  --t-lede: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-eyebrow: 0.75rem;

  /* Spacing scale (design direction 2.3), 4px base. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
}

/* Per-area accents (design direction 2.2). A house or area-guide page sets these on
   <body data-area>; the home page's grid shows houses from every area at once, so each
   card carries its own data-area instead and picks up the accent that way. */
body[data-area="mendocino-coast"], .card[data-area="mendocino-coast"] {
  --accent: #2B5F6B;
  --accent-text: #2B5F6B;
  --tint: #DCE7E9;
}
body[data-area="san-diego"], .card[data-area="san-diego"] {
  --accent: #A64E2E;
  --accent-text: #A64E2E;
  --tint: #F3E1D6;
}
body[data-area="tucson"], .card[data-area="tucson"] {
  --accent: #5F7A5B;
  --accent-text: #3E5A3A;
  --tint: #E3E9DC;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-normal-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  /* Backstop for a full-bleed element that still manages to overrun the viewport; the fix is
     giving .bleed a full-width parent, not this. */
  overflow-x: clip;
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  font-size: var(--t-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--accent, var(--ink)); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
main { max-width: 1280px; margin: 0 auto; padding: 0 20px var(--s8); }
@media (min-width: 768px) { main { padding-inline: 40px; } }
@media (min-width: 1440px) { main { padding-inline: 64px; } }
/* .bleed's parent (the hero figure sits directly in <body>, outside <main>) is already full
   width with no padding, so this only needs to fill it; no 100vw/negative-margin trick needed. */
.bleed { width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s4);
  min-height: 64px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.375rem;
  text-decoration: none;
  color: var(--ink);
}
.site-header .wordmark img { width: auto; height: 40px; }
.site-header nav { display: none; gap: var(--s5); }
.site-header nav a {
  display: flex;
  align-items: center;
  height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 720px) { .site-header nav { display: flex; } }

.offer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s5);
  border-radius: 999px;
  background: var(--offer);
  color: var(--offer-ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s ease, visibility .15s;
}
/* visibility, not opacity alone, so a hidden pill also leaves the tab order. */
.offer-pill.is-hidden { opacity: 0; visibility: hidden; }

.site-footer { color: var(--ink-2); background: var(--paper-2); padding: var(--s7) 20px; }
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h2 { font-size: var(--t-h3); margin: 0 0 var(--s3); }
.site-footer nav a, .footer-contact a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}
.site-footer nav a:hover, .footer-contact a:hover { color: var(--ink); text-decoration: underline; }
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-variation-settings: "SOFT" 50;
}
h1 { font-size: var(--t-display); line-height: 1.05; letter-spacing: -0.01em; margin: 24px 0 8px; }
h2 { font-size: var(--t-h2); line-height: 1.15; }
h3 { font-size: var(--t-h3); line-height: 1.3; font-weight: 500; }
p { max-width: 65ch; }
.eyebrow {
  display: block;
  font-family: "Instrument Sans", sans-serif;
  font-size: var(--t-eyebrow);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.lede, .tagline {
  font-family: "Instrument Sans", sans-serif;
  font-size: var(--t-lede);
  line-height: 1.5;
  font-weight: 400;
}
.small, .facts, .rating, .quotes footer { font-size: var(--t-small); line-height: 1.5; }
.facts, .quotes footer { color: var(--ink-2); }
.facts { margin-top: 0; }
.rating { color: var(--ink); }
.photos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 640px);
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: start; border-radius: 0; }

.hero { margin: 0; }
.hero img { width: 100%; display: block; object-fit: cover; aspect-ratio: 16 / 9; max-height: 640px; }
@media (max-width: 719px) { .hero img { aspect-ratio: 4 / 5; max-height: none; } }

.house .title { padding-top: var(--s6); }

.book {
  margin: 0;
  scroll-margin-top: var(--s5);
  background: var(--tint, var(--paper-2));
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: var(--s5);
}
.book .pill {
  display: inline-block;
  border-radius: 999px;
  background: var(--offer);
  color: var(--offer-ink);
  padding: 2px var(--s3);
  font-weight: 600;
}
.ownerrez-widget:empty { min-height: 480px; }
.ownerrez-widget:empty::before { content: "Loading availability…"; color: var(--ink-2); }
.calendar-details summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
}
@media (min-width: 720px) {
  .calendar-details summary { display: none; }
  .calendar-details .ownerrez-widget { display: block; }
}
.widget-fallback { font-size: var(--t-small); color: var(--ink-2); margin-top: var(--s4); }
.tagline { margin: 0 0 4px; }
.rating { font-weight: 700; margin: 4px 0 12px; }
.book-row { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin: 0 0 var(--s4); }
.book-note { font-size: var(--t-small); color: var(--ink-2); }
.check-dates {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 719px) { .price-label { display: none; } }
.house-grid > section { border-top: 1px solid var(--rule); padding-top: var(--s7); margin-top: var(--s7); }
.house-grid > section:first-child { border-top: none; margin-top: var(--s6); padding-top: 0; }
/* The section rule above outranks .book, so the panel restates its own padding at the same
   specificity; without this it took the sections' top padding at every width. */
.house-grid > section.book { padding: var(--s5); }
@media (min-width: 960px) {
  .house-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s8); align-items: start; }
  .house-grid > section { grid-column: 1; }
  .house-grid > section.book {
    grid-column: 2;
    /* grid-row: 1 / -1 only spans to the explicit grid's last row, and this grid defines none, so
       it collapses to row 1; span the 10 column-1 sections by count instead (photos, quotes,
       description, sleeping, faq, area, cancellation, offer, reviews, contact). */
    grid-row: 1 / span 10;
    align-self: start;
    position: sticky;
    /* The panel, with its calendar, is far taller than a window. Pinned at full height, the part
       below the window could not be reached until the page ran out, so it scrolls inside itself.
       build.py's script sets --header-height; the fallback is the one-row header's height. */
    top: calc(var(--header-height, 72px) + var(--s4));
    max-height: calc(100vh - var(--header-height, 72px) - 2 * var(--s4));
    overflow-y: auto;
    margin-top: 0;
  }
}
.quotes { margin: 24px 0; }
.quotes blockquote { margin: 0 0 var(--s5); padding: 0; }
.quotes blockquote p { margin: 0 0 8px; }
.quotes blockquote.pull {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.3;
  margin-bottom: var(--s6);
}
.quotes blockquote.pull footer {
  font-family: "Instrument Sans", sans-serif;
  font-style: normal;
}
.quotes blockquote:not(.pull) {
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}
.faq dt { font-weight: 700; margin-top: 12px; }
.faq dd { margin: 0; }
.offer { font-weight: 500; background: var(--tint, var(--paper-2)); padding: var(--s5); }

.panel { position: relative; z-index: 1; background: var(--paper); max-width: 640px; padding: var(--s5); }
@media (min-width: 960px) { .panel { margin-left: var(--s6); } }
/* The logo sits on the hero photo just above the panel; its paper ring separates it from the image. */
.panel-logo { position: absolute; left: var(--s5); top: calc(-100px - var(--s4)); width: auto; height: 100px; }
.pill {
  display: inline-block;
  border-radius: 999px;
  background: var(--offer);
  color: var(--offer-ink);
  padding: var(--s2) var(--s5);
  text-decoration: none;
  font-weight: 600;
}

.home-cards {
  list-style: none;
  padding: 0;
  margin: var(--s9) 0;
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .home-cards { grid-template-columns: 1fr 1fr; }
}

.where-to-go { margin: var(--s9) 0; }
.where-to-go-list {
  list-style: none;
  padding: 0;
  margin: var(--s5) 0 0;
  display: grid;
  gap: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.where-to-go-list a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.where-to-go-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.where-to-go-list .eyebrow { margin-top: var(--s3); color: var(--ink-2); }
.where-to-go-list .link-text {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--t-h3);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}
.where-to-go-list a:hover .link-text,
.where-to-go-list a:focus-visible .link-text { text-decoration-color: currentColor; }

.why-direct { text-align: center; padding: var(--s7) 0; background: var(--paper-2); }
.why-direct p { max-width: 40ch; margin: 0 auto var(--s4); }

.guide-list { list-style: none; padding: 0; }
/* An area guide reads as one column about 55 characters wide at body size (Jay, 2026-10-29): the
   title, intro and lists share its right edge, and the title steps down so it wraps inside it. */
.area-guide > h1, .area-guide > p, .guide-list { max-width: 39rem; }
.area-guide > h1 { font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem); text-wrap: balance; }
.guide-list li { margin: 0 0 10px; padding-left: 1.8em; text-indent: -1.8em; }
.guide-list .emoji { display: inline-block; width: 1.8em; text-indent: 0; }
/* A place's link is heavy and coloured, with no underline (Jay, 2026-10-29): the area's text accent
   until visited, then ink-2. The weight is what sets a link apart from body text: slate (2.4:1), sage
   (2.2:1) and ink-2 (1.9:1) differ from ink by less than the 3:1 WCAG 1.4.1 asks of a colour-only cue,
   so it stays on every link. */
.guide-list a { font-weight: 700; color: var(--accent-text); text-decoration: none; }
.guide-list a:visited { color: var(--ink-2); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.cards, .home-cards { list-style: none; padding: 0; }
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card a { text-decoration: none; color: inherit; display: block; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.card .eyebrow { margin-top: var(--s3); color: var(--accent-text, var(--ink-2)); }
.card h3 {
  margin: 4px 0 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}
.card a:hover h3, .card a:focus-visible h3 { text-decoration-color: currentColor; }
.card p { margin: 0; color: var(--ink-2); }
.signup { display: grid; gap: 8px; max-width: 420px; margin: var(--s3) 0 0; text-align: left; }
.signup input[type=email] { height: 48px; padding: 0 12px; font: inherit; border: 1px solid var(--rule); }
.signup .consent { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.signup .consent input[type=checkbox] { width: 24px; height: 24px; flex-shrink: 0; }
.signup button {
  justify-self: start;
  min-height: 48px;
  padding: 0 20px;
  font: inherit;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  border: none;
}
