/* Layout: one narrow reading column, full-bleed bands for hero and CTA.
   Brand tokens from Agent-OS/11-Brand-System/11-Visual-Identity.md.
   Action green is for calls to action ONLY. */
:root {
  --surface: #F7F2EA;
  --surface-2: #EFE7DA;
  --ink: #2C2C2A;
  --ink-soft: #5B5750;
  --line: #DCD2C2;
  --accent: #D85A30;
  --accent-text: #A8431F; /* same terracotta, darkened so small text passes WCAG AA (5.4:1) */
  --action: #0F6E56;
  --action-ink: #FFFFFF;
  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 68rem;
  --measure: 38rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1E1D1B; --surface-2: #282624; --ink: #F1ECE3; --ink-soft: #B9B2A6;
    --line: #3C3934; --accent: #E8764F; --accent-text: #E8764F; --action: #0F6E56; --action-ink: #FFFFFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #1E1D1B; --surface-2: #282624; --ink: #F1ECE3; --ink-soft: #B9B2A6;
  --line: #3C3934; --accent: #E8764F; --accent-text: #E8764F; --action: #0F6E56; --action-ink: #FFFFFF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 2.5rem; }
.stack > *, .stack-lg > *, .wrap > * { min-width: 0; }
.brand-name { min-width: 0; }
.measure { max-width: var(--measure); }
.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
}
.soft { color: var(--ink-soft); }

/* draft banner (preview build only) */
.draft-bar {
  background: var(--ink); color: var(--surface); font-size: .85rem; text-align: center;
  padding: .5rem 16px;
}

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--body); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; font-weight: 700; font-size: .95rem; }
.nav a { text-decoration: none; padding-block: .25rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* buttons: action color only */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--action); color: var(--action-ink); border: 0; border-radius: 6px;
  padding: .85rem 1.3rem; font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-quiet {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--accent); text-underline-offset: 4px;
}

/* hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.hero-photo { position: relative; max-width: 360px; justify-self: center; }
.hero-photo img { border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-photo figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }
.page-hero { padding-block: clamp(2.25rem, 5vw, 3.5rem) 1rem; }
.page-hero .wrap { display: grid; gap: 1rem; }

/* the phone line: the one thing every page wants you to do */
.call-card {
  display: grid; gap: .75rem; padding: 1.25rem 1.4rem; border: 2px solid var(--action); border-radius: 8px;
  background: var(--surface); max-width: 30rem;
}
.call-card .label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.call-card .number { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.3rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.call-card .actions { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; }

/* sections */
.band { padding-block: clamp(2.5rem, 6vw, 4rem); }
.band-alt { background: var(--surface-2); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.cols-3 { display: grid; gap: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { display: grid; gap: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.path { display: grid; gap: .6rem; align-content: start; padding-top: 1rem; border-top: 3px solid var(--accent); min-width: 0; }
.path a.btn-quiet { margin-top: .25rem; }
.list { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.list li::marker { color: var(--accent); }

/* towns */
.towns { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.towns h3 { font-size: 1.05rem; font-family: var(--body); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .6rem; }
.town-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.town-list li { font-family: var(--display); font-size: 1.2rem; padding: .2rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

/* quote + story */
.quote { font-family: var(--display); font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.4; font-style: italic; }
.quote-by { font-size: .95rem; color: var(--ink-soft); margin-top: .75rem; }
.story { border-left: 3px solid var(--accent); padding-left: 1.25rem; display: grid; gap: .8rem; }

/* guide download */
.guide {
  display: grid; gap: 1.5rem; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.guide-cover {
  width: 110px; aspect-ratio: 8.5 / 11; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-2);
  display: grid; place-items: center; text-align: center; padding: .6rem;
  font-family: var(--display); font-size: .95rem; line-height: 1.2; border-top: 6px solid var(--accent);
}
.guide-body { display: grid; gap: .6rem; min-width: 0; }

/* data table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .98rem; }
th, td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: grid; gap: .2rem; border-top: 3px solid var(--accent); padding-top: .8rem; }
.stat b { font-family: var(--display); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* form */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: .7rem .8rem; width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
.form-note { font-size: .9rem; color: var(--ink-soft); }
.form-done { padding: 1rem 1.2rem; border: 2px solid var(--action); border-radius: 8px; }

/* items still waiting on Dayna (visible in preview only) */
.confirm { background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 3px; padding-inline: .15rem; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--surface); padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--surface); max-width: 30rem; }
.cta-band .number { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.4rem); font-variant-numeric: tabular-nums; }

/* footer */
.site-foot { padding-block: 2rem 2.5rem; font-size: .9rem; color: var(--ink-soft); }
.site-foot .wrap { display: grid; gap: .6rem; }
.site-foot strong { color: var(--ink); }
.socials { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin: .1rem 0 .15rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.15rem; height: 2.15rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); background: var(--surface); text-decoration: none;
}
.socials a:hover { color: var(--accent-text); border-color: var(--accent); }
.socials svg { width: 1.05rem; height: 1.05rem; display: block; }

@media (max-width: 760px) {
  .hero .wrap, .cols-3, .cols-2, .towns, .stats, .field-row { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 260px; justify-self: start; }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide-cover { width: 90px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.site-foot .brokerage { width: 220px; height: auto; border-radius: 6px; margin-bottom: .4rem; }
.eho { display: flex; align-items: flex-start; gap: .65rem; }
.eho-mark { width: 2.25rem; height: 2.25rem; flex: none; margin-top: .1rem; }
.cols-2 .quote + .quote-by + .quote { margin-top: 1.5rem; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.town-list a { text-decoration: none; }
.town-list li:has(a) { border-color: var(--accent); }
[id] { scroll-margin-top: 1rem; }
.wide-photo { margin: 1rem 0 0; }
.wide-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 4px; }
.inline-photo { margin: .5rem 0; }
.inline-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.hero-photo img { object-position: center 20%; }
@media (max-width: 720px) { .wide-photo img { aspect-ratio: 4 / 3; } }

/* accessibility */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--surface); padding: .6rem 1rem; border-radius: 4px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.path h2 { font-size: 1.25rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; cursor: pointer; }
.notice { max-width: min(42rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.notice::backdrop { background: rgb(0 0 0 / .55); }
.notice-body { padding: 1.5rem; display: grid; gap: .9rem; font-size: 1rem; }
.notice-body ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .6rem; }
.optin { display: grid; gap: .45rem; }
.optin label { font-weight: 700; font-size: .95rem; }
.optin-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.optin-row input { flex: 1 1 14rem; min-width: 0; }
.form-done { display: grid; gap: .7rem; justify-items: start; }
.post-card { display: grid; gap: .35rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.post-card h2 { font-size: 1.4rem; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.post-body h2 { margin-top: 1rem; }
.post-cta { margin-top: 1rem; padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--surface-2); }
.contact-quote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); }
.contact-quote blockquote { margin: 0; }
.review-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.review { margin: 0; padding: 1.25rem; background: var(--surface-2); border-radius: 8px; display: grid; gap: .6rem; }
.review blockquote { margin: 0; font-size: 1.05rem; }
.stars { color: var(--accent-text); letter-spacing: .15em; margin: 0; }
.listing-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.listing { display: grid; gap: .5rem; align-content: start; padding: 1.25rem; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; background: var(--surface); }
.listing h3 { font-size: 1.3rem; }
.listing-town { display: block; font-family: var(--body); font-size: .95rem; font-weight: 700; color: var(--ink-soft); margin-top: .2rem; }
.listing-price { font-family: var(--display); font-size: 1.6rem; font-weight: 600; }
.sold-year { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.sold-year summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 800; font-size: 1.05rem; }
.sold-year .table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.listing { padding-top: 0; overflow: hidden; }
.listing-photo { max-width: none; object-position: center 35%; width: calc(100% + 2.5rem); margin: 0 -1.25rem .5rem; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.listing-nophoto { display: grid; place-items: center; background: var(--surface-2); color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.river-selfie { max-width: 22rem; justify-self: center; }
.river-selfie img { aspect-ratio: 3 / 4; object-position: center 40%; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.photo-pair img { aspect-ratio: 3 / 4; }
.listing-stats { font-weight: 700; }
.listing-by { font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .2rem; }
.fine-print { font-size: .85rem; }
.site-head .wrap { column-gap: 1.25rem; }
.head-c21 { height: 46px; width: auto; border-radius: 4px; margin-right: auto; }
@media (max-width: 520px) { .head-c21 { height: 36px; } }

/* Sold photos: homes Dayna listed, with a red SOLD across the photo */
.sold-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); padding: 1rem 1.1rem 1.25rem; }
.sold-card { margin: 0; display: grid; gap: .45rem; align-content: start; }
.sold-photo { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--surface-2); }
.sold-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.sold-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg); padding: .1rem .7rem; border: 4px solid #D3202F; border-radius: 6px; color: #D3202F; background: rgb(255 255 255 / .82); font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 6vw, 2.6rem); letter-spacing: .08em; line-height: 1.1; pointer-events: none; }
.sold-card figcaption { display: grid; gap: .1rem; font-size: .92rem; }
.sold-card figcaption span { color: var(--ink-soft); }

.listing-photo-wrap { position: relative; width: calc(100% + 2.5rem); margin: 0 -1.25rem .5rem; }
.listing-photo-wrap .listing-photo { width: 100%; margin: 0; }

/* spam trap: hidden from people, bots fill it in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Green Country newsletter band above the text-me band on every page */
.news-band { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3rem); }
.news-band .wrap { display: grid; gap: 1.25rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: center; }
