/* Kelly Edwards, East Bay real estate. Black and white with a champagne accent. */
:root {
  --black: #000;
  --white: #fff;
  --sand: #f4f0e9;
  --sand-deep: #e8e2d6;
  --gray: #555;
  --line: #dcd6ca;
  --accent: #b08d57;      /* gold for dark backgrounds, hairlines, focus */
  --accent-ink: #8a6a35;  /* darker gold for large text on light backgrounds */
  --display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font: 400 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; line-height: 1.15; }
.brand-text { display: flex; flex-direction: column; }
.brand-mark { height: 2.75rem; width: auto; flex: none; }
.foot-mark { height: 3.25rem; width: auto; margin-bottom: 1.1rem; }
.team-logo { width: min(100%, 22rem); height: auto; margin-top: 1.75rem; }
.brand-name { font: 400 1.65rem/1.1 var(--display); letter-spacing: -.01em; }
.brand-sub { font-size: .78rem; color: var(--gray); margin-top: .2rem; }
.brand-logo { height: 2.6rem; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.5rem; }
.site-nav li a { text-decoration: none; font-size: .95rem; padding-block: .35rem; border-bottom: 1px solid transparent; }
.site-nav li a:hover, .site-nav li a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-toggle { display: none; font: 500 .95rem var(--text); background: none; border: 1px solid var(--black); padding: .5rem .9rem; border-radius: 2px; cursor: pointer; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block; font: 600 .95rem/1.2 var(--text); text-decoration: none; text-align: center;
  padding: .9rem 1.5rem; border: 1px solid var(--black); border-radius: 2px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--black); color: var(--white); }
.btn--solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); }
.btn--line { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta { padding: .7rem 1.1rem; font-size: .9rem; }
.link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-ink); padding-bottom: .1rem; transition: border-color .2s; }
.link:hover { border-bottom-color: var(--black); }
.section--dark .link { border-bottom-color: var(--accent); }
.section--dark .link:hover { border-bottom-color: var(--white); }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-block: clamp(3rem, 7vw, 6.5rem) 0; }
.hero-copy { padding-bottom: clamp(3rem, 7vw, 6.5rem); }
.hero h1 { font-weight: 400; }
.hero-name {
  display: block; font: 400 clamp(3.4rem, 10.2vw, 9.25rem)/.92 var(--display);
  letter-spacing: -.03em; font-variation-settings: "opsz" 96;
  animation: rise 1s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-desc {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem;
  font: 500 clamp(1.05rem, 2vw, 1.45rem)/1.3 var(--text);
  animation: rise 1s .15s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-desc::before { content: ""; width: 3.25rem; height: 1px; background: var(--accent); flex: none; }
.hero-lede { margin-top: 1.5rem; max-width: 34rem; color: rgba(255,255,255,.82); font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.hero-photo .photo { aspect-ratio: 4 / 5; }
@keyframes rise { from { opacity: 0; transform: translateY(.16em); } to { opacity: 1; transform: none; } }

/* ---------- Photos ---------- */
.photo { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; background: var(--sand-deep); }
.photo--bottom { object-position: center bottom; }
.photo--wide, .split-photo .photo.photo--wide { aspect-ratio: 3 / 2; }
.photo--empty { display: flex; align-items: flex-end; padding: 1rem; font-size: .8rem; color: var(--gray); }
.hero .photo--empty { background: #111; outline: 1px solid rgba(176,141,87,.45); outline-offset: -1px; color: rgba(255,255,255,.5); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--black); color: var(--white); }
h2 { font: 400 clamp(2rem, 4.2vw, 3.4rem)/1.08 var(--display); letter-spacing: -.012em; }
.section-title { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split--form { align-items: start; }
.split-photo .photo { aspect-ratio: 4 / 5; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.prose > h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: .6rem; }
.prose { max-width: 40rem; }
.prose a { text-decoration-color: var(--accent-ink); text-underline-offset: 3px; }
.section--dark h2 + p { margin-top: 1.25rem; max-width: 30rem; color: rgba(255,255,255,.82); }

/* paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.paths li { border-top: 1px solid var(--accent-ink); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.paths h3 { font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--display); }
.paths p { color: var(--gray); }
.paths .link { margin-top: auto; }

/* city index */
.city-index > li { border-top: 1px solid var(--line); }
.city-index > li:last-child { border-bottom: 1px solid var(--line); }
.city-index a { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) 11.5rem; gap: 1.5rem; align-items: baseline; padding-block: 1.5rem; text-decoration: none; }
.ci-go { justify-self: end; }
.ci-name { font: 400 clamp(2.1rem, 5.4vw, 4.25rem)/1 var(--display); letter-spacing: -.02em; transition: transform .3s cubic-bezier(.2, .7, .2, 1), color .2s; }
.ci-line { color: var(--gray); max-width: 28rem; }
.ci-go { font-size: .95rem; font-weight: 600; border-bottom: 1px solid var(--accent-ink); }
.city-index a:hover .ci-name { transform: translateX(.6rem); color: var(--accent-ink); }
.city-index--dark > li { border-color: rgba(255,255,255,.2); }
.city-index--dark .ci-line { color: rgba(255,255,255,.72); }
.city-index--dark .ci-go { border-color: var(--accent); }
.city-index--dark a:hover .ci-name { color: var(--accent); }

/* quotes */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin-bottom: 2rem; }
.quotes--stack { grid-template-columns: 1fr; }
.quote p { font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.3 var(--display); }
.quote footer { margin-top: 1.1rem; color: var(--gray); font-size: .95rem; }
.quote { border-top: 1px solid var(--accent-ink); padding-top: 1.5rem; }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 2.5rem 1.4rem 0; color: var(--gray); max-width: 44rem; }
.section .narrow > .faq + p { margin-top: 1.75rem; }

/* steps and lists */
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4rem 1fr; column-gap: 1rem; border-top: 1px solid var(--line); padding-block: 1.6rem; }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font: 400 2.4rem/1 var(--display); color: var(--accent-ink); }
.steps h3 { font: 600 1.15rem/1.3 var(--text); }
.steps p { color: var(--gray); margin-top: .35rem; max-width: 42rem; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.plain-list > li { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.plain-list > li:last-child { border-bottom: 1px solid var(--line); }
.section--sand .plain-list > li, .section--sand .steps li { border-color: var(--sand-deep); }
.plain-list + .section-title { margin-top: 3.5rem; }
.aside h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.25rem; }

/* page head */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head h1, .post-title { font: 400 clamp(2.5rem, 6.2vw, 5rem)/1.02 var(--display); letter-spacing: -.02em; margin-top: 1rem; }
.lede { margin-top: 1.25rem; max-width: 40rem; font-size: 1.25rem; color: var(--gray); line-height: 1.5; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; color: var(--gray); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--accent-ink); }
article .crumbs { margin-bottom: 1rem; }
.meta { color: var(--gray); font-size: .9rem; margin-top: .9rem; }
.post-title + .meta { margin-bottom: 2.25rem; }

/* blog */
.post-list > li { border-top: 1px solid var(--line); }
.post-list > li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding-block: 1.75rem; text-decoration: none; }
.post-list h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); transition: color .2s; }
.post-list a:hover h2 { color: var(--accent-ink); }
.post-list p { margin-top: .6rem; color: var(--gray); max-width: 40rem; }

/* ---------- Forms ---------- */
.lead-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; }
.opt { font-weight: 400; opacity: .7; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--black); background: var(--white); width: 100%;
  border: 1px solid #b9b3a6; border-radius: 2px; padding: .8rem .9rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--black); }
.consent { font-size: .82rem; color: var(--gray); margin: 1.1rem 0 1.25rem; max-width: 34rem; }
.section--dark .consent { color: rgba(255,255,255,.72); }
.section--dark .btn--solid { background: var(--white); color: var(--black); border-color: var(--white); }
.section--dark .btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.form-status { margin-top: 1rem; min-height: 1.4rem; font-weight: 500; }
.form-status.is-error { color: #b3261e; }
.section--dark .form-status.is-error { color: #ffb4ab; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-top: clamp(3rem, 6vw, 5rem); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding-bottom: 3rem; }
.foot-name { font: 400 2rem/1.1 var(--display); margin-bottom: .75rem; }
.foot-h { font: 600 .95rem var(--text); margin-bottom: .9rem; color: var(--accent); letter-spacing: 0; }
.site-footer li + li { margin-top: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.foot-brand p + p { margin-top: .35rem; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.2); padding-block: 1.5rem 2.5rem; font-size: .85rem; color: rgba(255,255,255,.75); display: grid; gap: .6rem; }
.foot-legal a { margin-right: 1.25rem; }
.foot-eho { display: flex; align-items: center; gap: .6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem var(--gutter) 1.75rem; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .25rem; }
  .site-nav li a { display: block; padding-block: .6rem; font-size: 1.05rem; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-photo { max-width: 22rem; }
  .hero-copy { padding-bottom: 3rem; }
  .split, .quotes { grid-template-columns: 1fr; }
  .split-photo { max-width: 26rem; }
  .paths { grid-template-columns: 1fr; }
  .city-index a { grid-template-columns: 1fr; gap: .4rem; }
  .ci-go { justify-self: start; margin-top: .4rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lead-form .fields { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 3rem 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-name, .hero-desc { animation: none; }
  .ci-name, .btn, .link { transition: none; }
}
