/* edfulford.com — shared styles */
:root {
  --ink: #15243A;         /* navy, matches headshot backdrop family */
  --night: #0C0C1A;       /* hero background, sampled from photo backdrop */
  --paper: #F7F8F6;
  --white: #FFFFFF;
  --slate: #56677A;
  --mist: #E3E9EE;
  --fir: #2E5A4C;         /* actions */
  --fir-dark: #23473C;
  --pinot: #6A2E40;       /* Willamette Valley pinot noir, used sparingly */
  --line: #CFD8E0;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fir); text-underline-offset: 3px; }
a:hover { color: var(--fir-dark); }
:focus-visible { outline: 3px solid #7FB5A3; outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--night); color: var(--white); }
.site-header.has-valley { padding-bottom: 64px; background: var(--night) url(img/valley-strip.svg) center bottom / 100% 64px no-repeat; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.brand-logo { height: 56px; width: 56px; display: block; border-radius: 50%; padding: 0; flex: none; }
.brand-text { display: block; }
@media (max-width: 520px) { .brand-logo { height: 44px; width: 44px; } .brand { gap: 10px; font-size: 1.2rem; } }
.brand:hover { color: var(--white); }
.reg { font-size: .6em; vertical-align: super; line-height: 0; margin-left: 1px; }
.brand small { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 400; color: #AEBBCB; letter-spacing: 0; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #DCE4EC; text-decoration: none; padding: 8px 12px; border-radius: 4px; font-size: .95rem; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 #7FB5A3; border-radius: 0; }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 4px; font-weight: 600; text-decoration: none; font-size: 1rem; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); }
.btn-primary { background: var(--fir); color: var(--white); }
.btn-primary:hover { background: var(--fir-dark); color: var(--white); }
.btn-quiet { border-color: currentColor; color: inherit; background: transparent; }
.on-dark .btn-quiet { color: var(--white); border-color: rgba(255,255,255,.5); }
.on-dark .btn-quiet:hover { border-color: var(--white); color: var(--white); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Hero (home) */
.hero { background: var(--night); color: var(--white); overflow: hidden; position: relative; --valley-h: clamp(120px, 13vw, 190px); }
.hero .wrap { position: relative; z-index: 2; }
.hero .valley { position: absolute; left: 0; right: 0; bottom: 0; height: var(--valley-h); z-index: 3; pointer-events: none;
  background: url(img/valley.svg) center bottom / cover no-repeat; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 32px; }
.hero-text { padding: 72px 0 calc(var(--valley-h) + 40px); }
.hero-text p { color: #C9D3DE; font-size: 1.15rem; }
.hero-text h1 { max-width: 15ch; }
.hero-photo { align-self: end; }
.hero-photo img { width: 100%; max-width: 460px; margin-left: auto;
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 46%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 62% at 50% 46%, #000 62%, transparent 100%); }

/* Sections */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lede { font-size: 1.15rem; color: var(--slate); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 32px; }
.trio h3 { margin-bottom: .35em; }
.trio p { color: #3C4C5E; font-size: 1rem; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* Listings */
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.listing { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.listing-photo { aspect-ratio: 3 / 2; background: var(--mist); position: relative; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.status { position: absolute; left: 12px; top: 12px; background: var(--white); color: var(--ink); font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 3px; }
.status-pending { background: #F3E7C6; }
.status-sold { background: var(--ink); color: var(--white); }
.listing-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.address { font-weight: 600; }
.facts { color: var(--slate); font-size: .95rem; margin: 0; }
.listing-body p { font-size: .97rem; margin: 6px 0 0; }
.listing-body .more { margin-top: auto; padding-top: 10px; font-weight: 600; }

.empty { background: var(--white); border: 1px dashed var(--line); border-radius: 6px; padding: 36px 28px; }
.empty h3 { margin-bottom: .3em; }
.empty p { color: #3C4C5E; margin-bottom: .6em; }

/* About */
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.about-grid img { border-radius: 6px; width: 100%; }
.creds { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.creds li { padding-left: 18px; border-left: 3px solid var(--fir); }
.creds strong { display: block; }
.creds span { color: var(--slate); font-size: .95rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

/* The route — ten moves ending in Corvallis */
.route { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); position: relative; counter-reset: stop; }
.route::before { content: ""; position: absolute; left: 5%; right: 5%; top: 9px; height: 2px;
  background: repeating-linear-gradient(to right, var(--slate) 0 8px, transparent 8px 14px); }
.route li { position: relative; text-align: center; padding: 30px 4px 0; font-size: .92rem; line-height: 1.3; counter-increment: stop; }
.route li::before { content: ""; position: absolute; top: 2px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--slate); }
.route .place { display: block; font-weight: 600; }
.route .state { display: block; color: var(--slate); font-size: .85rem; }
.route li.home::before { width: 26px; height: 26px; margin-left: -13px; top: -3px; background: var(--pinot); border-color: var(--pinot); box-shadow: 0 0 0 5px rgba(106,46,64,.18); }
.route li.home .place { color: var(--pinot); font-family: var(--serif); font-size: 1.15rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.contact-list .label { display: block; color: var(--slate); font-size: .9rem; }
.contact-list a, .contact-list .value { font-size: 1.2rem; font-weight: 600; }
form.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #AEBAC6; border-radius: 4px; font: inherit; font-size: 1rem; background: var(--white); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.hint { color: var(--slate); font-size: .9rem; margin-top: 10px; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D3DE; padding: 48px 0 32px; font-size: .93rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer strong { color: var(--white); }
.site-footer p { margin: 0 0 .5em; }
.footer-logo { display: block; height: 72px; width: 72px; margin-top: 16px; border-radius: 50%; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: #AEBBCB; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { flex: none; }

/* Service area */

.where h2 { margin-bottom: .25em; }
.towns { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 0; }
.towns li { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; color: var(--ink); }
.towns li + li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pinot); margin: 0 18px; vertical-align: middle; }
.creds a { color: inherit; text-decoration-color: var(--pinot); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .about-grid, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .hero-text { padding: 48px 0 8px; }
  .hero { --valley-h: 110px; }
  .hero-photo img { max-width: 320px; margin: 0 auto; }
  .trio { grid-template-columns: 1fr; gap: 24px; }
  .about-grid img { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; margin-left: 4px; }
  .route::before { left: 8px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto;
    background: repeating-linear-gradient(to bottom, var(--slate) 0 8px, transparent 8px 14px); }
  .route li { text-align: left; padding: 0 0 18px 36px; }
  .route li::before { left: 1px; margin-left: 0; top: 3px; }
  .route li.home::before { left: -4px; margin-left: 0; top: 0; }
  .route .place, .route .state { display: inline; }
  .route .state::before { content: ", "; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Small utilities (kept as classes so the security policy can block inline styles) */
.mt-32 { margin-top: 32px; }
.mt-0 { margin-top: 0; }
.m-0 { margin: 0; }
.h-small { font-size: 1.5rem; }

/* Strengths grid (home) */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; margin-top: 32px; }
.quad h3 { margin-bottom: .35em; }
.quad p { color: #3C4C5E; font-size: 1rem; }
@media (max-width: 900px) { .quad { grid-template-columns: 1fr; gap: 24px; } }

/* Town cards (Where I work) */
.town-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.town img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--mist); }
.town h3 { margin: 14px 0 4px; }
.town p { margin: 0; color: #3C4C5E; font-size: .97rem; }
@media (max-width: 900px) { .town-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 520px) { .town-grid { grid-template-columns: 1fr; } }

/* Home hero: Ed's photo of Marys Peak at sunset. Peak and moon sit left; text sits right. */
.hero.hero-photo-bg {
  --valley-h: 0px;
  background-color: var(--night);
  background-image:
    linear-gradient(270deg, rgba(10,10,22,.88) 0%, rgba(10,10,22,.66) 34%, rgba(10,10,22,.15) 56%, rgba(10,10,22,0) 72%),
    linear-gradient(to bottom, rgba(12,12,26,1) 0%, rgba(12,12,26,0) 12%),
    url(img/hero-marys-peak.jpg);
  background-size: cover;
  background-position: center 46%;
}
.hero.hero-photo-bg .wrap { grid-template-columns: 1fr minmax(0, 520px); align-items: center; min-height: clamp(560px, 66vh, 660px); }
.hero.hero-photo-bg .hero-text { grid-column: 2; padding: 56px 0 72px; }
.hero.hero-photo-bg .hero-text h1 { max-width: 14ch; }
.hero.hero-photo-bg .hero-text p { color: #E6EBF0; }
.hero-avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: 50% 22%;
  border: 2px solid rgba(255,255,255,.75); box-shadow: 0 10px 30px rgba(0,0,0,.45); margin-bottom: 22px; }
.photo-credit { position: absolute; left: var(--gutter); bottom: 10px; margin: 0; font-size: .75rem; color: rgba(255,255,255,.72); z-index: 2; }

@media (max-width: 900px) {
  .hero.hero-photo-bg {
    background-image:
      linear-gradient(to bottom, rgba(12,12,26,0) 0, rgba(12,12,26,0) calc(76vw - 10px), rgba(12,12,26,1) calc(76vw + 1px)),
      url(img/hero-marys-peak-mobile.jpg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center top;
  }
  .hero.hero-photo-bg .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero.hero-photo-bg .hero-text { grid-column: 1; padding: calc(76vw - 30px) 0 56px; }
  .hero-avatar { width: 88px; height: 88px; }
  .photo-credit { bottom: 16px; }
}

/* Inner pages: the same skyline across the header */
.site-header.has-valley {
  padding-bottom: 96px;
  background-color: var(--night);
  background-image: linear-gradient(to bottom, rgba(12,12,26,1) 0%, rgba(12,12,26,.65) 45%, rgba(12,12,26,.05) 100%), url(img/header-marys-peak.jpg);
  background-size: cover;
  background-position: center 62%;
}

@media (max-width: 900px) {
  .site-header.has-valley { padding-bottom: 64px; }
}

/* Long-form copy sections */
.narrow { max-width: 760px; }
.intro-lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 600; color: var(--ink); }
.intro-lead strong { font-weight: 600; }
.intro-cta { font-weight: 600; font-size: 1.1rem; margin-top: 1.4em; }
.h-sub { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; color: var(--slate); letter-spacing: 0; margin: -.2em 0 1.1em; }
.two-col h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.closing .actions { margin-top: 20px; }
.hero.hero-photo-bg .hero-text h1 { max-width: 19ch; }
.intro .intro-lead { font-family: var(--sans); font-weight: 400; font-size: clamp(1.15rem, 1.8vw, 1.32rem); line-height: 1.6; color: var(--ink); }

/* Hero v4: whole group up and right; portrait in the dark upper-right, all above the fold */
.hero.hero-photo-bg {
  overflow: hidden; z-index: 1;
  background-image:
    linear-gradient(250deg, rgba(10,10,22,.78) 0%, rgba(10,10,22,.5) 26%, rgba(10,10,22,.1) 50%, rgba(10,10,22,0) 64%),
    linear-gradient(to bottom, rgba(12,12,26,.9) 0%, rgba(12,12,26,0) 7%),
    url(img/hero-marys-peak.jpg);
  background-position: center 56%;
}
.hero.hero-photo-bg .wrap {
  max-width: 1520px;
  grid-template-columns: minmax(64%, 1fr) minmax(0, 1fr);
  column-gap: 0;
  align-items: start;
  min-height: max(520px, min(44vw, calc(100vh - 150px)));
}
.hero.hero-photo-bg .hero-text { grid-column: 2; padding: clamp(48px, 8vh, 96px) 0 48px; text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.35); }
.hero-portrait {
  margin-left: 28px; align-self: flex-start;
  width: 180px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 30%;
  border-radius: 6px; border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
/* Mid-size screens: keep the text clear of the moon (it sits ~39% across the photo) */
@media (max-width: 1500px) and (min-width: 901px) {
  .hero.hero-photo-bg .hero-text h1 { font-size: clamp(2rem, 3.1vw, 3rem); }
  .hero-portrait { width: 160px; }
}
@media (max-width: 1200px) and (min-width: 901px) {
  .hero.hero-photo-bg .wrap { grid-template-columns: minmax(46%, 1fr) minmax(0, 1fr); }
  .hero-portrait { width: 140px; margin-left: 20px; }
}
.intro { padding-top: 72px; }
.intro-col { max-width: 640px; }
/* Intro + current listing side by side (only when listings are on) */
.intro-split { display: grid; grid-template-columns: minmax(0, 640px) minmax(300px, 380px); justify-content: space-between; gap: 56px; align-items: start; }
.intro-listing .section-head { margin-bottom: 14px; }
.intro-listing .section-head h2 { font-size: 1.35rem; }
.intro-listing .listings { grid-template-columns: 1fr; gap: 20px; }
@media (max-width: 900px) {
  .hero.hero-photo-bg {
    background-image:
      linear-gradient(to bottom, rgba(12,12,26,0) 0, rgba(12,12,26,0) calc(76vw - 10px), rgba(12,12,26,1) calc(76vw + 1px)),
      url(img/hero-marys-peak-mobile.jpg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center top;
  }
  .hero.hero-photo-bg .wrap { min-height: 0; grid-template-columns: 1fr; }
  .hero.hero-photo-bg .hero-text { grid-column: 1; padding: calc(76vw + 8px) 0 28px; text-shadow: none; }
  .hero-portrait { flex-basis: 100%; width: min(230px, 62vw); max-width: min(230px, 62vw); margin: 12px 0 0; }
  .intro { padding-top: 56px; }
  .intro-col { max-width: none; }
  .intro-split { grid-template-columns: 1fr; gap: 40px; }
}

.hero.hero-photo-bg .actions { align-items: flex-start; flex-wrap: nowrap; }
@media (max-width: 900px) { .hero.hero-photo-bg .actions { flex-wrap: wrap; } }

/* Listing cards: clickable photo, status note, coming-soon badge */
a.listing-photo { display: block; }
.status-coming-soon { background: var(--pinot); color: var(--white); }
.status-note { font-weight: 400; margin-left: 6px; padding-left: 6px; border-left: 1px solid currentColor; opacity: .9; }

/* Listing detail page */
.crumb { margin: 0 0 20px; font-size: .95rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.gallery { min-width: 0; }
.gallery-main { position: relative; background: var(--mist); border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #1B2230; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; width: 96px; height: 72px; overflow: hidden; flex: 0 0 auto; scroll-snap-align: start; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--fir); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(27, 34, 48, .6); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.gallery-nav:hover, .gallery-nav:focus-visible { background: rgba(27, 34, 48, .85); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; background: rgba(27, 34, 48, .7); color: #fff; font-size: .8rem; padding: 3px 8px; border-radius: 3px; }
.listing-credit { margin: 6px 0 0; font-size: .78rem; color: var(--slate); }
.detail-side .price { font-size: 2.2rem; }
.detail-address { font-size: 1.6rem; margin: 6px 0 2px; }
.detail-facts { margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.detail-facts div { border-top: 1px solid var(--line); padding-top: 8px; }
.detail-facts dt { color: var(--slate); font-size: .85rem; }
.detail-facts dd { margin: 0; font-weight: 600; }
.detail-desc { max-width: 720px; margin-top: 40px; }
.detail-desc p { font-size: 1.05rem; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; gap: 24px; } }
