:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --ink: #222923;
  --muted: #48554b;
  --rule: #cbcfc0;
  --dark: #1b3028;
  --lime: #dce9af;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #688d38; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.mast, .foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 19px; }
.brand { font: 1.65rem Georgia, serif; text-decoration: none; }
.brand i { color: #526442; }
nav { display: flex; flex-wrap: wrap; gap: clamp(.7rem, 3vw, 2rem); }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { color: #fffdf2; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .73rem; font-weight: 700; }
.hero .eyebrow { color: var(--lime); }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.3rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.045em; }
h3 { font-size: 1.7rem; letter-spacing: -.03em; }
.lede { max-width: 32ch; font-size: 1.15rem; margin-block: 1.5rem 2rem; }
.button { display: inline-flex; align-items: center; gap: 1.2rem; border: 0; border-radius: 2px; padding: .8rem 1.15rem; background: var(--lime); color: #172719; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.button:hover { background: #c9dc91; }
.section { padding-block: clamp(56px, 8vw, 106px); }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.75rem, 8vw, 8rem); }
.services article { padding-block: 1.3rem; border-top: 1px solid var(--rule); }
.services p, .section-note, .cards article p { color: var(--muted); }
.services p { margin-bottom: 0; }
.work { background: #e9ecdf; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.05rem; margin-top: 2rem; }
.cards article { background: var(--paper); padding: 1.35rem; border-top: 3px solid #78906c; display: flex; flex-direction: column; }
.cards article a { margin-top: auto; font-size: .93rem; }
address { font-style: normal; }
form, label { display: grid; gap: .55rem; }
form { align-content: start; gap: 1rem; }
form .button { justify-self: start; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
input, select, textarea { width: 100%; min-height: 45px; padding: .55rem .65rem; font: inherit; color: inherit; border: 1px solid #9da795; border-radius: 2px; background: #fffdf7; }
textarea { resize: vertical; }
footer { border-top: 1px solid var(--rule); }
@media (max-width: 730px) {
  .split, .cards { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .wrap { width: calc(100% - 32px); }
  .mast { align-items: flex-start; flex-direction: column; }
  .fields { grid-template-columns: 1fr; }
}

/* Residential homepage */
:root {
  --paper: #fbf7f0;
  --dark: #232c25;
  --lime: #ebd5ab;
  --rule: #d7cfc0;
}
.hero { position: relative; background: var(--dark); isolation: isolate; overflow: hidden; }
.hero-image {
  z-index: -2;
  position: absolute;
  inset: 0 0 0 35%;
  background: #3e493d url("hero-home.jpg") center / cover no-repeat;
}
.hero-image p {
  position: absolute;
  right: 18px;
  bottom: 12px;
  margin: 0;
  padding: .25rem .55rem;
  background: #232c25d9;
  color: #fff;
  font-size: .72rem;
}
.hero::before {
  z-index: -1;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #232c25 23%, #232c25e8 38%, #232c2580 56%, transparent 79%);
  pointer-events: none;
}
.hero-content { padding-block: clamp(90px, 13vw, 180px); }
.hero .lede { max-width: 38ch; }
.button:hover { background: #e5c88d; }
.intro { max-width: 57ch; margin-bottom: 2.2rem; }
.intro > p:last-child { color: var(--muted); }
.design-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--rule); }
.design-grid article { display: flex; flex-direction: column; background: #f8f0e4; padding: clamp(1rem, 2.1vw, 2rem); }
.design-grid article p { color: var(--muted); }
.design-grid article a { margin-top: auto; font-size: .9rem; font-weight: 650; }
.service-mark { font-size: 1.85rem; color: #805928; margin-bottom: .8rem; }
.process { background: #e9e9dd; }
.process .split { align-items: start; }
.steps { margin: 0; padding-left: 2rem; }
.steps li { padding: 1.25rem .4rem; border-top: 1px solid #abb1a1; }
.steps li::marker { color: #655235; font-weight: 700; }
.steps p { margin-bottom: 0; }
.faq h3 { margin-bottom: 1rem; }
.faq details { padding: .85rem 0; border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin-bottom: .2rem; }
.work { background: #f1e9dc; }
.cards article { border-top-color: #9a7c51; }

@media (max-width: 900px) {
  .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-content { padding-block: 54px 38px; }
  .hero-image { z-index: auto; position: relative; inset: auto; min-height: 250px; }
  .hero::before { display: none; }
}
@media (max-width: 400px) {
  .design-grid { grid-template-columns: 1fr; }
}

.portfolio-intro { background: var(--dark); color: #fffdf2; }
.portfolio-intro .eyebrow { color: var(--lime); }
.portfolio-intro .lede { max-width: 56ch; }
.portfolio-intro nav a { text-decoration: underline; }
.portfolio-section + .portfolio-section { border-top: 1px solid var(--rule); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1rem; margin-top: 2rem; }
.project-card { border: 1px solid var(--rule); background: #fffdf8; min-width: 0; }
.project-card figure { margin: 0; background: #eee7da; }
.project-card img { display: block; aspect-ratio: 5 / 3; width: 100%; height: auto; object-fit: cover; }
.project-card figcaption { padding: .35rem 1rem; color: var(--muted); font-size: .78rem; }
.project-card-body { padding: 1.25rem; }
.record-link { display: block; width: fit-content; margin-top: .55rem; font-size: .9rem; }
.project-note { color: var(--muted); font-size: .9rem; }

.service-copy { max-width: 760px; }
.service-copy section + section { margin-top: 2.75rem; }
.service-copy h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.service-copy li { margin-block: .45rem; }
.call-checklist { margin-block: 1.1rem 1.35rem; }

.design-image-link { display: block; }
.design-visual {
  aspect-ratio: 16 / 9;
  background-color: #e9e1d1;
  background-image: url("/design-concepts.jpg");
  background-size: 200% 200%;
  background-repeat: no-repeat;
}
.design-addition { background-position: left top; }
.design-remodel { background-position: right top; }
.design-adu { background-position: left bottom; }
.design-outdoor { background-position: right bottom; }
.design-custom { background: #e9e1d1 url("/hero-home.jpg") center / cover no-repeat; }
.design-plan { background: var(--dark) url("/elevation.svg") center / cover no-repeat; }
.service-image { margin: 0 0 2rem; }
.service-image figcaption { color: var(--muted); font-size: .85rem; padding-top: .45rem; }

/* San Diego landing pages */
.lp-hero { background: var(--dark); color: #fffdf2; }
.lp-hero .eyebrow { color: var(--lime); }
.lp-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.lp-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.lp-hero .lede { max-width: 40ch; }
.crumbs { display: block; font-size: .85rem; margin-bottom: 1rem; color: #d9d4c6; }
.crumbs a { text-decoration: underline; }
.lp-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.lp-call { font-weight: 600; }
.lp-photo, .lp-plan { margin: 0; }
.lp-photo img, .lp-plan img { display: block; width: 100%; height: auto; }
.lp-photo img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.lp-photo figcaption { font-size: .75rem; color: #d9d4c6; padding-top: .4rem; }
.lp-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.lp-copy { max-width: none; }
.lp-plan { margin-block: 2.5rem; border: 1px solid var(--rule); }
.lp-plan figcaption { color: var(--muted); font-size: .85rem; padding: .55rem .8rem; border-top: 1px solid var(--rule); }
.lp-faq { margin-top: 2.75rem; }
.lp-aside { position: sticky; top: 20px; }
.lp-aside form { background: #f1e9dc; padding: 1.5rem; border-top: 4px solid #9a7c51; }
.lp-aside h2 { font-size: 1.75rem; letter-spacing: -.03em; }
.form-note { color: var(--muted); font-size: .9rem; margin: 0; }
.lp-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.lp-rel { display: block; background: #fffdf8; border: 1px solid var(--rule); text-decoration: none; font-weight: 650; }
.lp-rel img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.lp-rel span { display: block; padding: .9rem 1rem; }
@media (max-width: 900px) {
  .lp-hero-grid, .lp-body { grid-template-columns: 1fr; }
  .lp-aside { position: static; }
  .lp-related { grid-template-columns: 1fr; }
}

/* ADU quiz */
.qz { max-width: 820px; }
.qz-bar { height: 6px; background: var(--rule); margin-bottom: 2rem; }
.qz-bar span { display: block; height: 100%; width: 0; background: #9a7c51; transition: width .25s; }
.qz-step { border: 0; padding: 0; margin: 0; }
.qz-step legend { font: 400 clamp(1.8rem, 4vw, 2.6rem)/1.1 Georgia, serif; letter-spacing: -.03em; margin-bottom: 1.4rem; padding: 0; }
.qz-count { display: block; font: 700 .73rem system-ui, sans-serif; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.qz-opts { display: grid; gap: .65rem; }
.qz-opt { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; background: #fffdf8; border: 1px solid var(--rule); cursor: pointer; font-weight: 550; }
.qz-opt:hover, .qz-opt:has(input:checked) { border-color: #9a7c51; background: #f6ecd9; }
.qz-opt input { width: 1.1rem; min-height: 0; accent-color: #9a7c51; margin: 0; }
.qz-back, .qz-restart { margin-top: 1.25rem; background: none; border: 0; padding: .4rem 0; font: inherit; text-decoration: underline; cursor: pointer; color: var(--ink); }
.qz-headline { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 1.5rem; }
.qz-sub { font-size: 1.4rem; margin: 1.75rem 0 .8rem; }
.qz-options { list-style: none; padding: 0; display: grid; gap: .8rem; margin: 0; }
.qz-options li { background: #fffdf8; border: 1px solid var(--rule); border-left: 4px solid #9a7c51; padding: 1.1rem 1.25rem; }
.qz-options h3 { font-size: 1.35rem; }
.qz-options p { color: var(--muted); margin: .4rem 0; }
.qz-options a { font-weight: 650; font-size: .92rem; }
.qz-notes li { margin-block: .45rem; }
.qz-cta form { background: #f1e9dc; padding: 1.5rem; border-top: 4px solid #9a7c51; margin-top: 2rem; }
.qz-cta h2 { font-size: 1.9rem; }
.lp-quiz-callout { background: #f1e9dc; border-left: 4px solid #9a7c51; padding: 1.1rem 1.3rem; margin-top: 2.5rem; }
.lp-quiz-callout p { margin: 0 0 .7rem; }
.design-grid article a + a { margin-top: .45rem; }
