/* ==========================================================================
   Self-hosted display face: Cormorant Garamond (variable, wght 300-700)
   Subset to Latin + punctuation. Licensed under the SIL Open Font License;
   see /fonts/OFL.txt, which must remain published alongside the font files.
   ========================================================================== */
@font-face {
  font-family: "Cormorant Garamond";
  /* WOFF2-UPRIGHT — fonts/make-woff2.sh inserts the woff2 source above this line */
  src: url("/fonts/cormorant-garamond-var.woff") format("woff-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  /* WOFF2-ITALIC — fonts/make-woff2.sh inserts the woff2 source above this line */
  src: url("/fonts/cormorant-garamond-italic-var.woff") format("woff-variations");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   PasoRoblesRealEstateGuide.com — site stylesheet
   Palette: charcoal #1A1715 · wine #6E2233 / #4A1622 · brass #B88A4A / #D4A968
            cream #F0E9DF
   Type:    Cormorant Garamond (display) · Jost (body / UI)
   ========================================================================== */

:root {
  --charcoal: #1a1715;
  --charcoal-soft: #2a2522;
  --wine: #6e2233;
  --wine-deep: #4a1622;
  --brass: #b88a4a;
  --brass-light: #d4a968;
  --cream: #f0e9df;
  --cream-raised: #f8f4ed;
  --cream-deep: #e5dccf;
  --ink: #0e0c0b;
  --body: #3a332e;
  --muted: #6b625a;

  --rule: rgba(184, 138, 74, 0.32);
  --rule-soft: rgba(26, 23, 21, 0.12);

  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;
  --wrap: 1140px;
  --wrap-narrow: 800px;

  --step: clamp(1.75rem, 4vw, 3rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.68;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.3rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.45rem); }
h4 {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--charcoal);
}
h2 em, h1 em { font-style: italic; color: var(--wine); }
p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--wine); text-decoration-color: var(--rule); text-underline-offset: .18em; }
a:hover { color: var(--wine-deep); text-decoration-color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
strong { font-weight: 500; color: var(--charcoal); }
small { font-size: .82rem; }

ul, ol { max-width: var(--measure); padding-left: 1.15em; margin: 0 0 1.3em; }
li { margin-bottom: .5em; }
li::marker { color: var(--brass); }

.eyebrow {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--wine);          /* 8.98:1 on cream; brass was 2.57:1 */
  margin: 0 0 .9rem;
  display: block;
}
.section--dark .eyebrow,
.hero .eyebrow,
.pagehead .eyebrow { color: var(--brass-light); }   /* 8.22:1 on charcoal */
.lede { font-size: 1.12rem; line-height: 1.6; color: var(--charcoal-soft); }
.note {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding: .1rem 0 .1rem 1rem;
  margin: 1.6rem 0;
  max-width: var(--measure);
}
.note strong { color: var(--charcoal); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding: var(--step) 0; }
.section-lg { padding: calc(var(--step) * 1.5) 0; }
.section--raised { background: var(--cream-raised); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--dark { background: var(--charcoal); color: var(--cream-deep); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark h2 em { color: var(--brass-light); }
.section--dark a { color: var(--brass-light); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: var(--charcoal);
  padding: .6rem 1rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- header ---------- */
.masthead {
  background: var(--charcoal);
  border-bottom: 1px solid rgba(184, 138, 74, 0.42);
  position: sticky; top: 0; z-index: 50;
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-top: .9rem; padding-bottom: .9rem;
}
.logo { text-decoration: none; display: block; line-height: 1.05; }
.logo__name {
  font-family: var(--display);
  font-size: 1.22rem;
  max-width: 20ch;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--cream);
  display: block;
}
.logo__sub {
  font-family: var(--sans);
  font-size: .54rem;
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-top: .32rem;
  white-space: nowrap;
}
@media (max-width: 420px) { .masthead .logo__sub { display: none; } }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a {
  font-size: .715rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cream-deep);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--brass); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(240,233,223,.32); color: var(--cream);
  font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .5rem .8rem; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brass); }

@media (max-width: 1150px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--charcoal); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem 1.5rem 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: .7rem 0; border-bottom: 1px solid rgba(240,233,223,.1); }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--charcoal); overflow: hidden; }
.hero__art { position: absolute; inset: 0; }
.hero__art svg { width: 100%; height: 100%; display: block; }
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 58%;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(101deg,
      rgba(26,23,21,.90) 0%,
      rgba(26,23,21,.78) 26%,
      rgba(26,23,21,.46) 52%,
      rgba(26,23,21,.20) 76%,
      rgba(26,23,21,.10) 100%),
    linear-gradient(to top, rgba(26,23,21,.34) 0%, rgba(26,23,21,0) 32%);
}
@media (max-width: 760px) {
  /* Narrow screens put the headline over the middle of the frame, so the
     horizontal gradient stops helping — darken evenly instead. */
  .hero__scrim {
    background:
      linear-gradient(to bottom, rgba(26,23,21,.80) 0%, rgba(26,23,21,.66) 55%, rgba(26,23,21,.74) 100%);
  }
}
.hero__inner {
  position: relative;
  padding-top: clamp(3.25rem, 8vw, 5.75rem);
  padding-bottom: clamp(2.75rem, 7vw, 5rem);
}
.hero__inner .eyebrow { color: var(--brass-light); }
.hero h1 { color: var(--cream); max-width: 15ch; margin-bottom: .45em; }
.hero h1 em { color: var(--brass-light); }
.hero__sub {
  color: var(--cream-deep); font-size: clamp(1rem, 1.6vw, 1.14rem);
  max-width: 46ch; margin-bottom: 1.9rem; line-height: 1.6;
}
@media (max-width: 430px) {
  .hero .btn { font-size: .68rem; padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* ---------- page header (interior) ---------- */
.pagehead { background: var(--charcoal); padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(1.9rem, 4vw, 2.9rem); }
.pagehead--photo { position: relative; overflow: hidden; padding-top: clamp(3rem, 6vw, 4.75rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.pagehead--photo > .wrap { position: relative; z-index: 2; }
.pagehead__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%; z-index: 0;
}
.pagehead__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(101deg,
      rgba(26,23,21,.92) 0%,
      rgba(26,23,21,.80) 30%,
      rgba(26,23,21,.52) 58%,
      rgba(26,23,21,.26) 82%,
      rgba(26,23,21,.16) 100%),
    linear-gradient(to bottom, rgba(26,23,21,.38) 0%, rgba(26,23,21,0) 40%);
}
@media (max-width: 760px) {
  .pagehead__scrim {
    background: linear-gradient(to bottom, rgba(26,23,21,.84) 0%, rgba(26,23,21,.70) 60%, rgba(26,23,21,.78) 100%);
  }
}
.pagehead h1 { color: var(--cream); max-width: 20ch; }
.pagehead .eyebrow { color: var(--brass-light); }
.pagehead__sub { color: var(--cream-deep); max-width: 58ch; font-size: 1.05rem; margin: 0; }

/* ---------- breadcrumbs ---------- */
.crumbs {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding-top: 1rem;
}
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; max-width: none; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; color: var(--brass); margin-right: .45rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--wine); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .74rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .82rem 1.5rem;
  border: 1px solid var(--brass);
  color: var(--charcoal);
  background: var(--brass);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--charcoal); }
.btn--ghost { background: transparent; color: var(--brass-light); border-color: rgba(184,138,74,.6); }
.btn--ghost:hover { background: transparent; border-color: var(--brass-light); color: var(--cream); }
.btn--quiet { background: transparent; color: var(--wine); border-color: var(--rule); }
.btn--quiet:hover { background: transparent; border-color: var(--brass); color: var(--wine-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- rules ---------- */
.rule { border: 0; height: 1px; background: var(--rule); margin: 2.5rem 0; max-width: none; position: relative; }
.rule::after {
  content: ""; position: absolute; left: 50%; top: -3px;
  width: 6px; height: 6px; background: var(--brass);
  transform: translateX(-50%) rotate(45deg);
}
.rule--left::after { left: 0; transform: rotate(45deg); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream-raised);
  border: 1px solid var(--rule);
  padding: 1.75rem 1.6rem 1.6rem;
  display: flex; flex-direction: column;
}
.card h3, .card__title { margin-bottom: .55rem; }
.card__title { font-family: var(--display); font-weight: 500; line-height: 1.12; color: var(--charcoal); font-size: clamp(1.22rem, 2vw, 1.45rem); }
.card p { font-size: .94rem; flex: 1; margin-bottom: 1.35rem; max-width: none; }
.card .btn { align-self: flex-start; }
.card__num {
  font-family: var(--sans); font-size: .66rem; letter-spacing: .2em;
  color: var(--wine); text-transform: uppercase; display: block; margin-bottom: .8rem;
}

/* compact link cards */
.linkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 860px) { .linkgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .linkgrid { grid-template-columns: 1fr; } }
.linkgrid a {
  background: var(--cream-raised); padding: 1.35rem 1.4rem; text-decoration: none;
  display: block; transition: background .18s ease;
}
.linkgrid a:hover { background: #fff; }
.linkgrid span {
  display: block; font-family: var(--display); font-size: 1.22rem; color: var(--charcoal); margin-bottom: .25rem;
}
.linkgrid small { color: var(--muted); font-size: .84rem; line-height: 1.5; display: block; }

/* ---------- editor block ---------- */
.editor { display: grid; grid-template-columns: 300px 1fr; gap: 2.75rem; align-items: start; }
@media (max-width: 800px) { .editor { grid-template-columns: 1fr; gap: 1.75rem; } }
.editor__photo {
  background: linear-gradient(160deg, var(--cream-deep), var(--cream-raised));
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.editor__photo img { width: 100%; height: 100%; object-fit: cover; }
.editor__dre {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 1.4rem;
}

/* ---------- prose / long-form ---------- */
.prose { max-width: var(--wrap-narrow); }
.prose h2 { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 2rem; color: var(--charcoal); }
.prose > p:first-of-type { font-size: 1.1rem; color: var(--charcoal-soft); }

.callout {
  background: var(--cream-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
  max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }
.callout__label {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--wine); margin: 0 0 .6rem;
}

/* checklists */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.5rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg);
}

/* ---------- FAQ ---------- */
.faq { max-width: var(--wrap-narrow); }
.faq__item { border-bottom: 1px solid var(--rule); padding: 1.5rem 0; }
.faq__item:first-of-type { border-top: 1px solid var(--rule); }
.faq__item h2 { font-size: 1.28rem; margin-bottom: .6rem; }
.faq__item p:last-child { margin-bottom: 0; }

/* ---------- data table (market) ---------- */
.datatable { width: 100%; border-collapse: collapse; margin: 1.5rem 0 1rem; font-size: .94rem; }
.datatable caption { text-align: left; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); padding-bottom: .8rem; }
.datatable th, .datatable td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.datatable th { font-weight: 500; color: var(--charcoal); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.datatable td:first-child { color: var(--charcoal); }
.pending { color: var(--muted); font-style: italic; }
.updated {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--rule); padding: .55rem .9rem; display: inline-block; margin-bottom: 1.5rem;
}

/* ---------- resource lists ---------- */
.resources { max-width: var(--wrap-narrow); }
.resource-group { margin-bottom: 2.6rem; }
.resource-group h3 { padding-bottom: .7rem; border-bottom: 1px solid var(--rule); }
.resource-list { list-style: none; padding: 0; max-width: none; }
.resource-list li { padding: .85rem 0; border-bottom: 1px solid var(--rule-soft); margin: 0; }
.resource-list a {
  font-family: var(--display); font-size: 1.14rem; color: var(--charcoal);
  text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .22em;
}
.resource-list a:hover { color: var(--wine); text-decoration: underline; text-decoration-color: var(--brass); }
.resource-list small { display: block; color: var(--muted); font-size: .87rem; line-height: 1.55; margin-top: .2rem; }
.resource-list .flag { color: var(--wine); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- next/prev reading ---------- */
.related { border-top: 1px solid var(--rule); padding-top: 1.75rem; margin-top: 3rem; }
.related__label {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--wine); margin: 0 0 1rem;
}
.related ul { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
@media (max-width: 620px) { .related ul { columns: 1; } }
.related li { margin-bottom: .55rem; }
.related a { font-family: var(--display); font-size: 1.06rem; color: var(--charcoal); text-decoration: none; }
.related a:hover { color: var(--wine); text-decoration: underline; text-decoration-color: var(--brass); }

/* ---------- footer ---------- */
.foot { background: var(--charcoal); color: var(--cream-deep); padding: 3rem 0 2rem; border-top: 1px solid var(--rule); }
.foot__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .foot__top { grid-template-columns: 1fr; gap: 2rem; } }
.foot__brand .logo__name { font-size: 1.2rem; }
.foot__brand p { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; max-width: 34ch; }
.foot__h {
  font-family: var(--sans); font-weight: 500; color: var(--brass);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  margin: 0 0 1rem;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .55rem; }
.foot a { color: var(--cream-deep); text-decoration: none; font-size: .89rem; }
.foot a:hover { color: var(--brass-light); }
.foot__base {
  border-top: 1px solid rgba(240,233,223,.14);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .78rem; color: var(--muted);
}
.foot__base p { margin: 0; max-width: none; }

/* ---------- utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- visible review date on guide pages ---------- */
.reviewed {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border-top: 1px solid var(--rule);
  padding-top: 1.1rem; margin: 0 0 2.5rem; max-width: none;
}
