/* Jim Lanatti: client settings and page styles on top of the GDD estate system.
   Type: Newsreader (display, 300 for titles) and Source Sans 3 (text). Rufina lives only in the
   lockup artwork. Palette: warm paper and light limestone, selected by Greg on October 20. */
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-72-300-400-latin.woff2") format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-variable.woff2") format("woff2"); font-weight: 401 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-variable.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
:root {
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-text: "Source Sans 3", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --display-weight: 300;
  --heading-weight: 400;
  --paper: #f8f6f1; --linen: #eee9e1; --stone: #dfd7cb; --line: #d9d2c8; --line-strong: #b9afa1;
  --ink: #2d2b29; --ink-soft: #514c47; --ink-mute: #686058;
  --brand: #4a443d; --brand-deep: #2d2b29; --accent: #89663c; --accent-soft: #ded0b9;
  --scrim: 34, 31, 27; --paper-rgb: 248, 246, 241; --brand-rgb: 74, 68, 61; --brand-deep-rgb: 45, 43, 41;
  --feature-surface: #e7e4dc; --feature-ink: #30393a; --feature-muted: #535d5e; --feature-rule: #b2b7b4;
  --lockup-w: 280px; --lockup-w-phone: 200px; --lockup-w-footer: 320px;
}
::selection { background: #e0d6c6; color: var(--ink); }
h1, h2, h3, h4 { letter-spacing: -.03em; }
body { font-size: 1.0625rem; }

/* Home */
/* Rural property stays on one full-width photograph, with the questions secondary. */
.rural-feature { isolation: isolate; margin-top: var(--section); overflow: hidden; position: relative; scroll-margin-top: var(--header-h-solid); }
.rural-photo { inset: 0; position: absolute; z-index: -1; }
.rural-photo picture, .rural-photo img { height: 100%; width: 100%; }
.rural-photo img { object-fit: cover; object-position: 12% 50%; }
.rural-photo::after { background: linear-gradient(90deg, rgba(var(--scrim), .76), rgba(var(--scrim), .52) 52%, rgba(var(--scrim), .72)); content: ""; inset: 0; position: absolute; }
.rural-photo figcaption { bottom: 18px; color: rgba(255, 255, 255, .85); font-size: 11px; letter-spacing: .03em; position: absolute; right: var(--gutter); z-index: 1; }
.rural-feature-inner { align-content: center; align-items: start; display: grid; gap: clamp(60px, 9vw, 140px); grid-template-columns: 1.1fr 1fr; margin: 0 auto; max-width: 1480px; min-height: 640px; padding: 90px var(--gutter); }
.rural-feature-copy h2 { font-size: clamp(36px, 3.5vw, 54px); max-width: 17ch; }
.rural-intro { color: rgba(255, 255, 255, .9); font-size: 17px; line-height: 1.7; margin: 24px 0 30px; max-width: 44ch; }
.rural-feature .estate-link:hover { color: var(--accent-soft); opacity: 1; }
.rural-field-notes { min-width: 0; }
.rural-field-notes .estate-label { margin-bottom: 22px; }
.rural-field-notes .answers-toc a { align-items: center; border-color: rgba(255, 255, 255, .3); font-size: clamp(21px, 1.7vw, 25px); line-height: 1.35; padding: 20px 0; }
.rural-field-notes .answers-toc li:last-child a { border-color: rgba(255, 255, 255, .3); }
.rural-field-notes .answers-toc a::after { flex: 0 0 auto; font-size: 18px; }
.rural-field-notes .answers-toc a:hover { color: var(--accent-soft); }
.rural-field-notes > .estate-link { margin-top: 28px; }
.home-closing { margin-top: var(--section); scroll-margin-top: var(--header-h-solid); }
@media (max-width: 900px) {
  .rural-feature-inner { gap: 48px; grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 76px; }
  .rural-feature-copy h2 { max-width: 20ch; }
  .rural-photo::after { background: linear-gradient(180deg, rgba(var(--scrim), .63), rgba(var(--scrim), .78)); }
}
@media (max-width: 480px) {
  .rural-photo img { object-position: 8% 50%; }
}

/* Portrait: the current 200 × 300 directory photograph, shown at its own size */
.portrait { justify-self: start; width: 200px; }
.portrait img { height: 300px; object-fit: cover; width: 200px; }
.portrait figcaption { color: var(--ink-mute); font-size: 12px; margin-top: 12px; }
.intro-proof { border-top: 1px solid var(--line); color: var(--ink-mute); display: flex; flex-wrap: wrap; font-size: 13px; gap: 10px 22px; margin-top: 26px; padding-top: 23px; }
.about-opening { align-items: center; display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.about-opening .meet-montage { height: clamp(420px, 40vw, 600px); }
.about-opening h1 { margin-bottom: 1rem; }
@media (max-width: 900px) { .about-opening { grid-template-columns: 1fr; } }

/* Service pages: on-page navigation and the short opening statement */
.subnav { background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 18px 0; }
.subnav a { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.subnav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.answer-lead { color: var(--ink); font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); line-height: 1.5; max-width: 52ch; }
.sources { color: var(--ink-mute); font-size: 14px; line-height: 1.6; margin-top: 24px !important; }
.sources a { border-bottom: 1px solid var(--line-strong); color: var(--ink); }
.fine { color: var(--ink-mute); font-size: 14px; line-height: 1.6; }
.process .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process .steps .step p { font-size: .9375rem; }
.print-link { background: none; border: 0; padding: 0; }
@media (max-width: 1160px) { .process .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .process .steps { grid-template-columns: 1fr; } }

/* Questions as disclosures (service and place pages) */
.answers { max-width: 980px; }
.answer { scroll-margin-top: 110px; }
.answer summary .q { display: block; }
.answer .a { color: var(--ink-soft); max-width: 66ch; padding: 0 0 1.75rem; }
.answer .a p { font-size: 1rem; }
.answer .a .answer-lead { font-size: 1.15rem; }

/* Answers & field notes */
.reference-layout { align-items: start; display: grid; gap: clamp(2.5rem, 5vw, 5rem); grid-template-columns: 260px minmax(0, 1fr); }
.reference-layout aside { position: sticky; top: 100px; }
.answers-toc a { border-top: 1px solid var(--line); display: flex; font: var(--heading-weight) 1.1rem/1.4 var(--font-display); gap: 20px; justify-content: space-between; padding: 16px 0; }
.answers-toc a::after { content: ""; width: 20px; height: 20px; background: currentColor; mask: url("/assets/arrow-diagonal.svg") center/contain no-repeat; -webkit-mask: url("/assets/arrow-diagonal.svg") center/contain no-repeat; }
.answers-toc li:last-child a { border-bottom: 1px solid var(--line); }
.answers-toc.large a { font-size: clamp(1.2rem, 1.6vw, 1.5rem); padding: 20px 0; }
.field-note { border-bottom: 1px solid var(--line); margin-bottom: 56px; max-width: 840px; padding: 0 0 56px; scroll-margin-top: 110px; }
.field-note:last-of-type { border-bottom: 0; margin-bottom: 0; }
.field-note h2 { font-size: clamp(28px, 2.6vw, 38px); margin: 0 0 20px; }
.field-note > p { color: var(--ink-soft); margin-top: 16px; }
.field-note > p.answer-lead { color: var(--ink); margin-top: 0; }
@media (max-width: 900px) { .reference-layout { grid-template-columns: 1fr; } .reference-layout aside { display: none; } }

/* Reviews page */
.review-group { border-top: 1px solid var(--line-strong); }
.review-group summary { align-items: baseline; display: flex; font: var(--heading-weight) clamp(24px, 2.2vw, 31px)/1.25 var(--font-display); gap: 14px; list-style: none; padding: 24px 0; }
.review-group summary::-webkit-details-marker { display: none; }
.review-group summary span { color: var(--ink-mute); font: 400 13px var(--font-text); }
.review-group summary::after { content: "−"; margin-left: auto; }
.review-group:not([open]) summary::after { content: "+"; }
.review-group .review-grid { padding-bottom: 2rem; }

/* Territory map (places index) */
.map-frame { margin: 0 auto; max-width: 900px; }
.map-frame svg { height: auto; width: 100%; }
.territory-map .county { fill: var(--linen); stroke: var(--line-strong); stroke-width: 1.2; }
.territory-map .county-sonoma { fill: var(--stone); }
.territory-map .pin { fill: var(--brand); stroke: var(--paper); stroke-width: 1.5; }
.territory-map .pin.major { fill: var(--accent); }
.territory-map .label { fill: var(--ink); font: 400 13px var(--font-text); }
.territory-map .label.major { font-size: 15px; font-weight: 600; }
.territory-map .map-credit { fill: var(--ink-mute); font: 400 10px var(--font-text); }
.territory-map a:hover .label { fill: var(--accent); }
.place-links { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 30px; }
.place-links a { border-bottom: 1px solid var(--line-strong); font-size: 15px; }

/* Property pages */
.property-story { align-items: start; display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.property-story .facts { grid-template-columns: 1fr; }
.property-story .fact { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
.property-story .fact:first-child { border-top: 0; }
.property-story .fact dt { padding-top: .2rem; }
@media (max-width: 900px) { .property-story { grid-template-columns: 1fr; } }

/* Recognition lists that carry a link */
.recognition-list li { display: grid; align-content: start; }
.recognition-list .text-link { justify-self: start; margin-top: 14px; }

/* Credits */
.photo-credits { display: grid; gap: .6rem; }
.photo-credits li { border-top: 1px solid var(--line); font-size: .9375rem; padding-top: .6rem; }
.photo-credits a { border-bottom: 1px solid var(--line-strong); }
.u-measure-wide { max-width: 50rem; }

/* Print the rural checklist alone */
@media print {
  body.print-checklist main > *:not(#checklist) { display: none !important; }
}
