/* ==========================================================================
   Kortum Ranch, site styles (v5)
   BRAND SETTINGS: change the brand here, in one place.
   - Colors and fonts: the custom properties below.
   - Logo: replace /assets/brand/logo-light.png (on dark) and
     /assets/brand/logo-dark.png (on light). Same file names, nothing else to edit.
   - Font files are loaded in each page <head> from Google Fonts (Fraunces +
     Source Sans 3). If the fonts change, update that one <link> line and the
     two --font-* values below.
   ========================================================================== */
:root {
  /* Palette: the land at dusk */
  --charcoal: #241F1B;        /* dusk / dark bands */
  --charcoal-deep: #181512;   /* footer */
  --bark: #6A4E33;            /* bark brown, links and small accents */
  --oak-green: #6F7B5A;       /* oak green */
  --redwood-green: #3E4A37;   /* redwood green */
  --stone: #E4D8C6;           /* warm stone */
  --cream: #F3EEE4;           /* page background */
  --paper: #FAF6F0;
  --fog: #E7D3AE;             /* warm fog, text on dark */
  --ink: #2C241C;             /* body text on light */
  --ink-soft: #5A5248;

  /* Type: one serif for headlines, one sans for text */
  --font-serif: "Fraunces", "Times New Roman", Times, serif;
  --font-sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --measure: 38rem;
  --wide: 72rem;
  --gutter: clamp(1.25rem, 5vw, 2rem);

  /* Motion: slow fades only */
  --fade: 1400ms;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
:focus-visible { outline: 2px solid var(--fog); outline-offset: 3px; }
.on-light :focus-visible, .section :focus-visible { outline-color: var(--bark); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cream); color: var(--ink);
  padding: 0.6rem 1rem; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem var(--gutter) 1rem;
}
.site-header.is-solid { position: relative; background: var(--charcoal); }
.logo { display: block; height: 4.5rem; flex-shrink: 0; }
.logo img { height: 100%; width: auto; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 1.5rem; list-style: none; }
.nav a {
  text-decoration: none; color: var(--cream);
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(24, 21, 18, 0.35);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fog); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: var(--cream);
  background: var(--charcoal); display: flex; align-items: flex-end; overflow: hidden;
}
.hero--short { min-height: 72svh; }
.hero picture, .hero > img, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(24,21,18,0.38) 0%, rgba(24,21,18,0.08) 36%, rgba(24,21,18,0.2) 60%, rgba(24,21,18,0.74) 100%);
}
.hero-inner { position: relative; z-index: 1; width: min(100%, 52rem); padding: 0 var(--gutter) 5.5rem; }
.eyebrow {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fog); margin-bottom: 0.85rem;
}
.hero h1 { font-size: clamp(2.35rem, 6vw, 4.6rem); line-height: 1.08; max-width: 14ch; }
.hero .dek {
  margin-top: 1.15rem; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; color: var(--fog); max-width: 30ch;
}
.text-link {
  display: inline-block; margin-top: 1.6rem; color: var(--cream);
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid rgba(231, 211, 174, 0.6); padding-bottom: 0.2rem;
}
.text-link:hover { color: var(--fog); border-bottom-color: var(--fog); }
.section .text-link, .topic .text-link, .on-light .text-link { color: var(--bark); border-bottom-color: rgba(106, 78, 51, 0.45); }
.section .text-link:hover, .topic .text-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Text sections ---------- */
.section { padding: clamp(4.25rem, 10vw, 7rem) var(--gutter); }
.section .inner { width: min(100%, var(--measure)); margin: 0 auto; }
.section h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); margin-bottom: 1.5rem; color: var(--ink); }
.section h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 2.75rem 0 1rem; color: var(--ink); }
.section p { color: var(--ink-soft); }
.section p + p { margin-top: 1.25rem; }
.section--stone { background: var(--stone); }
.section--paper { background: var(--paper); }
.lead {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.35; color: var(--ink) !important; letter-spacing: -0.01em;
}
.quiet { margin-top: 2rem; color: var(--ink) !important; }

/* Image + text pair */
.pair {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  width: min(100%, var(--wide)); margin: 0 auto;
}
.pair figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone); }
.pair .copy { max-width: var(--measure); }
@media (min-width: 860px) {
  .pair { grid-template-columns: 1.15fr 1fr; }
  .pair--flip figure { order: 2; }
}

/* Full-width image bands */
.bleed { width: 100%; height: clamp(16rem, 42vw, 34rem); object-fit: cover; background: var(--stone); }
.bleed-wrap { position: relative; }
.bleed--tall { height: clamp(22rem, 60vw, 44rem); }

/* 2x2 topic grid (Calistoga page); stacks in source order on small screens.
   At desktop widths, each cell uses subgrid so the photo row starts on the
   same line across a pair, regardless of how much text sits above. */
.topic-grid { display: grid; }
.topic {
  display: flex;
  flex-direction: column;
  padding: clamp(3.25rem, 6vw, 5.25rem) var(--gutter);
  background: var(--cream);
}
@media (min-width: 860px) {
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .topic {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2; /* topic-copy, then topic-photo */
  }
}
/* Gentle checkerboard on the Calistoga 2x2: two close cream/stone tones,
   not the full --stone band, which read as a darker tan square. */
.topic--warm { background: #EEE8DC; }
.topic--paper { background: var(--paper); }
.topic--stone { background: var(--stone); }
.topic-copy { width: min(100%, 32rem); }
.topic h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); margin-bottom: 1.5rem; color: var(--ink); }
.topic p { color: var(--ink-soft); }
.topic p + p { margin-top: 1.25rem; }
.topic-photo { width: 100%; margin-top: 1.75rem; }
.topic-photo picture,
.topic-photo img { width: 100%; display: block; }
.topic-photo img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--stone);
}
.photo-credit {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
  font-style: italic;
}
/* Reserve two caption lines in every cell so images stay the same height
   and credits sit in the same place, even when a photo has no credit. */
.topic-photo > .photo-credit {
  min-height: calc(0.82rem * 1.45 * 2);
}
.photo-credit a { color: inherit; }

/* Detail image (portrait) beside text */
.detail { width: min(100%, 22rem); margin: 2.5rem auto 0; }
.detail img { width: 100%; height: auto; }

/* Captions */
figcaption, .caption {
  margin-top: 0.7rem; font-size: 0.82rem; line-height: 1.45; color: var(--ink-soft); font-style: italic;
}

/* Concept image block */
.concept { width: min(100%, 52rem); margin: 2.5rem auto 0; }
.concept img { width: 100%; height: auto; }
.concept-placeholder {
  aspect-ratio: 3 / 2; display: grid; place-items: center; text-align: center; padding: 2rem;
  border: 1px dashed var(--bark); color: var(--ink-soft); font-size: 0.9rem;
}

/* ---------- Video band (The Land) ---------- */
.film {
  position: relative; width: 100%; height: clamp(18rem, 50vw, 40rem);
  background: var(--charcoal); overflow: hidden;
}
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film video { opacity: 0; transition: opacity var(--fade) ease; }
.film video.is-playing { opacity: 1; }

/* ---------- Stay in touch ---------- */
.signup { background: var(--charcoal); color: var(--cream); padding: clamp(4.5rem, 10vw, 6.5rem) var(--gutter) clamp(4rem, 9vw, 5.5rem); }
.signup .inner { width: min(100%, var(--measure)); margin: 0 auto; }
.signup h2, .signup h1 { color: var(--cream); font-size: clamp(2rem, 3.6vw, 2.85rem); margin-bottom: 1.5rem; }
.signup p { color: var(--fog); }
.interest-form { margin-top: 2.25rem; display: grid; gap: 1.15rem; }
.interest-form .field { display: grid; gap: 0.35rem; }
.interest-form label {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog);
}
.interest-form input {
  font: inherit; font-size: 1.05rem; color: var(--cream); background: transparent;
  border: 0; border-bottom: 1px solid rgba(231, 211, 174, 0.45); border-radius: 0;
  padding: 0.45rem 0 0.55rem; width: 100%;
}
.interest-form input:focus { outline: none; border-bottom-color: var(--fog); box-shadow: 0 1px 0 var(--fog); }
.btn {
  justify-self: start; margin-top: 0.75rem; font: inherit; font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal);
  background: var(--fog); border: 1px solid var(--fog); padding: 0.8rem 1.6rem; cursor: pointer;
}
.btn:hover { background: var(--cream); }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.btn:disabled { opacity: 0.65; cursor: wait; }
.consent { font-size: 0.85rem !important; line-height: 1.55; color: #CDBB9A !important; max-width: 32rem; }
.consent a { color: var(--fog); }
.thanks {
  display: none; margin-top: 1.5rem; font-family: var(--font-serif); font-style: italic;
  font-size: 1.25rem; color: var(--fog);
}
.thanks.is-visible { display: block; }
.interest-form.is-sent { display: none; }
.form-error { display: none; margin-top: 1.25rem; font-size: 1rem; line-height: 1.5; color: var(--fog); }
.form-error.is-visible { display: block; }

/* ---------- Legal pages ---------- */
.legal-page .inner { width: min(100%, 44rem); }
.legal-page h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.legal-page h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.legal-page ul { margin: 0.75rem 0 0 1.25rem; color: var(--ink-soft); }
.legal-page li + li { margin-top: 0.4rem; }
.placeholder-banner {
  border: 1px solid var(--bark); background: var(--paper); padding: 1rem 1.25rem; margin: 0 0 2rem;
  font-size: 0.95rem; color: var(--ink) !important;
}
.tbd { background: #F1E2C2; padding: 0 0.2em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-deep); color: #B5A794;
  padding: 2.75rem var(--gutter) 3rem; text-align: center; font-size: 0.9rem; line-height: 1.6;
}
.site-footer .mark { height: 3.5rem; width: auto; margin: 0 auto 1.15rem; opacity: 0.95; }
.site-footer strong { display: block; color: var(--cream); font-weight: 500; letter-spacing: 0.02em; }
.footer-links { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.1rem; }
.footer-links a { color: var(--fog); }
.social { list-style: none; display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.social a { display: inline-flex; color: var(--fog); }
.social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.site-footer .legal {
  margin: 1.35rem auto 0; max-width: 34rem; font-size: 0.75rem; line-height: 1.55; color: #8D8274;
}
.site-footer .copy { margin-top: 1rem; font-size: 0.75rem; }

/* ---------- Slow fades (only when JS is on and motion is allowed) ---------- */
.js .reveal { opacity: 0; transition: opacity var(--fade) ease; }
.js .reveal.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transition: none; }
  .film video { display: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .site-header { padding: 1rem 1.15rem 0.75rem; align-items: flex-start; }
  .logo { height: 3.5rem; }
  .nav { gap: 0.2rem 0.9rem; max-width: 13rem; }
  .nav a { font-size: 0.88rem; }
  .hero-inner { padding-bottom: 3.75rem; }
  .hero--short { min-height: 62svh; }
}


/* ==========================================================================
   v6 additions (16 November 2026) — low-resolution property photographs
   Anthony's frames are about 792px wide. Do not display them wider than ~1000px.
   ========================================================================== */

.media-frame {
  width: min(calc(100% - 2 * var(--gutter)), 62.5rem);
  margin-inline: auto;
}
.media-frame img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--stone);
}

/* Full-width charcoal field, sharp photo contained at max 1000px,
   with a blurred, darkened copy filling the margins. Typography sits
   under the photograph so it is not laid over an upscaled image. */
.hero--framed {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--charcoal);
  color: var(--cream);
}
.hero--framed::after { display: none; }
.hero--framed .hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero--framed .hero-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(32px) saturate(0.8) brightness(0.45);
  transform: scale(1.14);
}
.hero--framed .hero-photo {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2 * var(--gutter)), 62.5rem);
  margin: 6.25rem auto 0;
}
.hero--framed .hero-photo picture,
.hero--framed .hero-photo img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.hero--framed .hero-inner {
  position: relative;
  z-index: 1;
  padding: 2rem var(--gutter) 3.25rem;
}
.hero--framed .hero-caption {
  width: min(calc(100% - 2 * var(--gutter)), 62.5rem);
  margin: 0.55rem auto 0;
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #CDBB9A;
  font-style: italic;
}

.photo-row {
  display: grid;
  gap: 0.7rem;
  width: min(calc(100% - 2 * var(--gutter)), 62.5rem);
  margin: 0 auto;
}
.photo-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--stone);
  display: block;
}
@media (min-width: 700px) {
  .photo-row--2 { grid-template-columns: 1fr 1fr; }
  .photo-row--3 { grid-template-columns: 1fr 1fr 1fr; }
}
.photo-row-wrap {
  padding: clamp(0.25rem, 2vw, 0.75rem) 0 clamp(2rem, 5vw, 3.5rem);
}

/* Option C typographic intro (no overlaid hero) */
.page-intro { padding-top: clamp(3rem, 8vw, 5rem); }
.page-intro h1 {
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  margin-bottom: 1.15rem;
  max-width: 14ch;
}
.page-intro .dek {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 30ch;
}
.lead-photo { padding: 0 0 clamp(1rem, 3vw, 2rem); }

.gallery-grid {
  display: grid;
  gap: 0.7rem;
  width: min(calc(100% - 2 * var(--gutter)), 62.5rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .gallery-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--stone);
  display: block;
}

/* Home Calistoga teaser: wide crop of the town, valley, and mountains */
.pair .calistoga-hill img {
  object-position: center 40%;
  aspect-ratio: 16 / 9;
}

/* Contained bleed substitute on Home */
.media-band {
  background: var(--charcoal-deep);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.media-band .media-frame img { background: transparent; }

@media (max-width: 640px) {
  .hero--framed .hero-photo { margin-top: 5.25rem; }
  .hero--framed .hero-inner { padding-bottom: 2.5rem; }
}

/* Keep the ground (meadow, clearing) in frame when a pair photo is taller than 3:2. */
.pair--ground img { object-position: center bottom; }

/* The redwoods trees crop is only 790px wide (1.25× of a 632px source crop). */
.media-frame--790 {
  width: min(calc(100% - 2 * var(--gutter)), 49.375rem);
}
