:root {
  color-scheme: light;
  --theme-color1: #263d52;
  --theme-color2: #f7f2e9;
  --ink: #182c3b;
  --muted: #4c575b;
  --wood: #7b553a;
  --line: #d9d0c2;
  --display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--theme-color2);
  color: var(--ink);
  font: 400 1rem/1.55 "DM Sans", system-ui, sans-serif;
}

a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
[id] { scroll-margin-top: 1.25rem; }

.shell { width: min(calc(100% - 2.5rem), 76rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; inset: .5rem auto auto .5rem; transform: translateY(-200%); padding: .5rem .75rem; background: var(--theme-color2); }
.skip-link:focus { transform: translateY(0); }
.preview-note {
  background: var(--ink);
  color: var(--theme-color2);
  padding: .35rem 1rem;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .05em;
}

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.masthead-inner { min-height: 4.5rem; }
.brand { display: inline-flex; gap: .6rem; align-items: center; text-decoration: none; }
.brand-monogram {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
  font: 400 1.8rem/1 var(--display);
}
.brand-name { font: 400 1.45rem/.9 var(--display); }
.brand-name span { display: block; margin-top: .35rem; font: 600 .58rem/1 "DM Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a, .footer a { font-size: .86rem; font-weight: 600; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-contact { border-bottom: 1px solid; padding-block: .35rem; white-space: nowrap; }

.hero { padding-block: 2.65rem 3.1rem; }
.hero-content { padding-block: .75rem 1.75rem; }
.eyebrow { color: var(--wood); font-size: .69rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .98; }
h1 { margin-block: .7rem 1.05rem; font-size: clamp(3rem, 10vw, 7.05rem); letter-spacing: -.035em; }
h1 em { color: var(--theme-color1); }
h2 { font-size: clamp(2.6rem, 6vw, 4.9rem); letter-spacing: -.025em; }
.hero-description { color: var(--muted); max-width: 29rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: 1.5rem; }
.button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .65rem 1.1rem;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease;
}
.button-dark { color: #fff; background: var(--theme-color1); }
.button-dark:hover { background: var(--ink); }
.button-dark:focus-visible { outline-color: var(--ink); }
.text-link { padding-block: .35rem; font-size: .87rem; font-weight: 700; text-underline-offset: .3em; }
.text-link span { margin-left: .25rem; }
.hero-figure { position: relative; background: #d9cfbf; aspect-ratio: 5/4; }
.hero-figure img { object-position: 49% 72%; }
.hero-figure figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: .65rem .85rem;
  background: var(--ink);
  color: var(--theme-color2);
  font-size: .72rem;
  font-weight: 600;
}
.hero-figure figcaption span { display: none; }

.projects { border-top: 1px solid var(--line); padding-block: 3rem 4rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-heading h2 { margin-top: .4rem; }
.project-grid { display: grid; gap: 1.85rem; }
.project-card img { height: auto; aspect-ratio: 4/3; background: #d9cfbf; }
.project-card img.project-kitchen { object-position: 63% 65%; }
.project-card figcaption { border-bottom: 1px solid var(--line); padding-block: .85rem 1rem; }
.project-card h3 { font-size: 2rem; }
.project-card p { color: var(--muted); font-size: .88rem; margin-top: .35rem; }

.quote { background: var(--ink); color: var(--theme-color2); }
.quote-inner { display: grid; gap: 1.4rem; padding-block: 3.6rem; }
.quote .eyebrow { color: #e5c1a6; margin-bottom: .8rem; }
.quote-content { max-width: 28rem; }
.quote-content > p { color: #e0dcd5; }
.button-light { color: var(--ink); background: var(--theme-color2); margin-top: 1.1rem; }
.button-light:hover { background: #e5c1a6; }
.button-light:focus-visible { outline-color: var(--theme-color2); }
.quote-content .quote-phone { font-size: .84rem; margin-top: .65rem; }
.footer { flex-wrap: wrap; padding-block: 1.55rem; font-size: .82rem; }
.footer p span { margin-left: .55rem; color: var(--muted); }

@media (max-width: 379px) {
  nav .nav-projects { display: none; }
}

@media (min-width: 665px) {
  .shell { width: min(calc(100% - 4.5rem), 76rem); }
  .masthead-inner { min-height: 5rem; }
  .hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1rem, 3vw, 3.5rem); align-items: center; padding-block: 3rem 4.25rem; }
  .hero-content { padding-block: 0; }
  h1 { font-size: clamp(3rem, 7.2vw, 7.05rem); }
  .hero-figure { aspect-ratio: 1.075; }
  .hero-figure figcaption { padding: .8rem 1rem; }
  .hero-figure figcaption span { display: inline-block; margin-left: .55rem; padding-left: .55rem; border-left: 1px solid #b5bfbd; font-weight: 400; }
  .projects { padding-block: 4rem 4.75rem; }
  .project-grid { grid-template-columns: 1.18fr 1fr; }
  .project-card img { height: clamp(15rem, 35vw, 24rem); }
  .quote-inner { grid-template-columns: 1.18fr 1fr; align-items: center; padding-block: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
