:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --white: #fff;
  --ink: #201f1c;
  --muted: #57544d;
  --gold: #cea55d;
  --line: #dedbd4;
  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  --space: clamp(3rem, 7vw, 7rem);
  --header-height: 6.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

body:has(dialog[open]) { overflow: hidden; }
main { flex: 1; min-block-size: 55svh; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
h1, h2 { margin: 0; line-height: .98; font-weight: 650; letter-spacing: -.065em; }
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2.25rem, 5.5vw, 4.75rem); }
.wrap { width: min(100% - var(--gutter) * 2, 90rem); margin-inline: auto; }
[id] { scroll-margin-top: calc(var(--header-height) + 1rem); }

.skip-link {
  position: fixed;
  z-index: 10;
  inset: .5rem auto auto .5rem;
  transform: translateY(-200%);
  padding: .6rem 1rem;
  color: var(--ink);
  background: var(--paper);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: calc(var(--header-height) - 1px);
  column-gap: .7rem;
  padding-block: .45rem 0;
}

.brand { display: inline-grid; align-items: center; justify-self: start; text-decoration: none; }
.brand-logo { width: clamp(4rem, 10vw, 6.75rem); height: auto; aspect-ratio: auto 918 / 512; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.45rem, 2.5vw, 1.5rem); }
.header-row [href^="tel:"] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-actions .button, .header-row a { font-size: .875rem; }
.header-row [href^="tel:"], #site-nav a { text-decoration: none; font-weight: 550; }
.header-row [href^="tel:"]:hover, #site-nav a:hover, #site-nav a[aria-current] { text-decoration: underline; }
.header-row [href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
.landing-header { grid-template-columns: 1fr auto; padding-block: .4rem; }

#site-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  gap: .35rem;
}

#site-nav a { display: grid; align-items: center; min-height: 44px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.header-actions .button { min-height: 44px; padding-inline: clamp(.45rem, 2.65vw, 1.1rem); }
.button:hover { background: color-mix(in srgb, var(--gold) 82%, white); border-color: var(--ink); }
.button:disabled { opacity: .6; cursor: default; }
.text-link { display: inline-block; width: fit-content; font-weight: 650; }

.site-footer { border-top: 1px solid var(--line); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-block: 1.6rem;
  font-size: .875rem;
}

.footer-row > * { overflow-wrap: anywhere; }
.footer-row .brand-logo { width: 5rem; }

.home-hero {
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--header-height));
  position: relative;
  isolation: isolate;
  padding: var(--gutter);
  background: var(--white);
}

.photo-hero > img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

.hero-copy {
  justify-self: start;
  width: min(100%, 39rem);
  padding: clamp(1.2rem, 4vw, 3.25rem);
  background: var(--paper);
  border-top: 3px solid var(--gold);
}

.hero-copy h1 { font-size: clamp(2.7rem, 5.25vw, 4.5rem); text-wrap: balance; }
.hero-copy p { margin-block: 1rem 1.35rem; font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); }
.home-kitchen-actions .home-kitchen-quote { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 37rem) {
  .home-hero { min-height: min(42rem, calc(100svh - var(--header-height))); padding-top: clamp(5rem, 26svh, 14rem); }
  .hero-copy h1 { font-size: clamp(2.4rem, 9vw, 3.2rem); line-height: 1.05; }
  .home-kitchen-actions { align-items: flex-start; flex-direction: column; }
}

.tile-grid {
  display: grid;
  gap: 2rem clamp(1rem, 2vw, 2rem);
  padding: var(--space) var(--gutter);
}

.tile { display: block; text-decoration: none; }
.tile span { display: block; padding-top: .7rem; font-size: clamp(1.85rem, 4vw, 3.75rem); font-weight: 650; letter-spacing: -.055em; }
.tile:hover span { text-decoration: underline; }
.tile img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.work-strip { padding-block: 0 var(--space); }
.work-strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.work-strip img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.photo-grid figcaption, .work-strip figcaption { padding-top: .4rem; font-size: .875rem; }

.process { border-block: 1px solid var(--line); }
.process ol { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; list-style: none; text-align: center; }
.process li { padding: clamp(1.25rem, 4vw, 3.5rem) 0; font-size: clamp(1.3rem, 3.5vw, 3rem); font-weight: 600; letter-spacing: -.045em; }
.process li + li { border-inline-start: 1px solid var(--line); }
.project-cta { padding-block: var(--space); background: color-mix(in srgb, var(--gold) 16%, var(--paper)); }
.project-cta > div, .project-cta > div > div { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.project-cta > div { justify-content: space-between; }

.gallery-page, .contact-layout, .prose { padding-block: var(--space); }
.page-intro, .contact-layout { display: grid; align-items: start; gap: 1.5rem 2rem; }
.page-intro { margin-bottom: clamp(1.75rem, 5vw, 4rem); }
.page-intro .button { justify-self: start; }
.page-intro p, .landing-copy > p { margin-top: .9rem; color: var(--muted); }
.kitchen-page .page-intro { grid-template-columns: minmax(0, 52rem); }
.kitchen-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; margin-top: 1rem; }
.kitchen-actions .button-outline { border-color: var(--ink); background: transparent; }
.kitchen-actions .button-outline:hover { background: color-mix(in srgb, var(--gold) 18%, var(--paper)); }
.kitchen-actions .kitchen-phone { display: inline-flex; align-items: center; min-height: 44px; }
.kitchen-guide-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: .65rem; font-size: .95rem; }

@media (max-width: 37rem) {
  .kitchen-page .page-intro .kitchen-actions .button { flex: 1 0 100%; }
}

.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.photo-grid a { display: block; }
.photo-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid [data-lightbox] { cursor: zoom-in; }

#lightbox {
  padding: clamp(.6rem, 2vw, 1rem);
  border: 0;
  width: min(72rem, calc(100% - 1.25rem));
  max-height: calc(100% - 1.25rem);
  background: var(--paper);
  color: var(--ink);
}

#lightbox::backdrop { background: rgb(32 31 28 / 88%); }
#lightbox img { width: 100%; height: min(70svh, 49rem); object-fit: contain; }
#lightbox figcaption { text-align: center; padding-top: .5rem; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; }
.lightbox-toolbar button { min-height: 44px; padding: .45rem .75rem; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.lightbox-toolbar button:hover { text-decoration: underline; }
.lightbox-controls { justify-content: space-between; }

.contact-layout { gap: 2rem var(--gutter); }
.contact-layout h1 { margin-bottom: 1rem; }
.contact-layout > div > a { font-size: 1.15rem; }

.quote-scope-links { display: flex; flex-wrap: wrap; gap: .55rem; margin: .85rem 0; }

.inquiry { display: grid; justify-items: start; gap: 1rem; width: 100%; }
.form-grid { display: grid; gap: 1rem; width: 100%; }
.inquiry label { display: grid; gap: .38rem; width: 100%; font-weight: 600; }
.inquiry .consent { display: flex; align-items: start; gap: .6rem; font-size: .875rem; font-weight: 400; }
.consent input { margin-top: .22rem; accent-color: var(--gold); }
.inquiry :is(input, select, textarea):not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: .55rem .75rem;
  border: 1px solid #88837a;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.inquiry textarea { resize: vertical; }
.inquiry [data-callback-details] { width: 100%; }
.inquiry [data-callback-details] summary { min-height: 44px; padding-block: .5rem; cursor: pointer; }
.inquiry [data-callback-details] .form-grid { margin-top: .75rem; }
.form-status:empty { margin-top: -1rem; }
.form-status { font-size: .875rem; }
.inquiry [data-phone-fallback]:not([hidden]) { display: inline-flex; justify-self: start; align-items: center; min-height: 44px; }

.landing-layout { display: grid; min-height: calc(100svh - var(--header-height)); }
.landing-photo { position: relative; min-height: clamp(12rem, 52vw, 24rem); }
.landing-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.landing-copy { align-self: center; padding: clamp(1.5rem, 4.5vw, 5rem) var(--gutter); }
.landing-copy h1 { font-size: clamp(2.5rem, 5.5vw, 5.2rem); }
.landing-copy .inquiry { margin-top: 1.5rem; }

.prose { max-width: 48rem; }
.prose h2 { margin-block: 2rem .8rem; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.kitchen-cost-guide h1 { font-size: clamp(2.3rem, 6vw, 4.35rem); line-height: 1.05; text-wrap: balance; }
.kitchen-cost-guide h1 + p, .kitchen-cost-guide p + p { margin-top: .9rem; }
.kitchen-cost-guide li + li { margin-top: .55rem; }
.kitchen-cost-guide .photo-grid { grid-template-columns: minmax(0, 1fr); margin-block: 1.35rem; }
.kitchen-video-guide figure { margin: 1.2rem 0; }
.delivery-video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: .65rem; background: #172d25; }
.kitchen-video-guide figcaption { margin-top: .6rem; font-size: .95rem; }
.prose > .button { margin-top: 1.5rem; }
.kitchen-page .page-intro h1 { font-size: clamp(2.65rem, 6vw, 5.75rem); line-height: 1.04; text-wrap: balance; }
.kitchen-details { padding-block-start: 0; }
.kitchen-details h3, .kitchen-details h4 { margin-block: 1.25rem .35rem; }
.kitchen-details p + p { margin-top: .9rem; }
.kitchen-case-study h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.04; text-wrap: balance; }
.kitchen-case-study h1 + p, .kitchen-case-study p + p { margin-top: .9rem; }
.kitchen-case-study .photo-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-block: 1.5rem; }

.resource-share { margin-top: 1.2rem; }
.resource-share button { min-height: 44px; padding: .35rem 0; border: 0; color: var(--ink); background: transparent; font: inherit; cursor: pointer; }
.resource-share label input { display: block; width: 100%; margin-top: .35rem; padding: .55rem; border: 1px solid var(--muted); background: var(--paper); color: var(--ink); font: inherit; }

@media (max-width: 22rem) {
  .header-row { column-gap: .35rem; }
  .header-row .brand-logo { width: 3.5rem; }
  .home-hero { padding-top: clamp(3.5rem, 14svh, 6rem); }
  .home-hero .hero-copy h1 { font-size: 2.25rem; }
  .home-kitchen-actions { margin-top: .6rem; gap: .3rem; }
  .kitchen-page .page-intro h1 { font-size: 2.5rem; }
  .kitchen-page .page-intro .kitchen-actions { margin-top: .7rem; }
}

@media (min-width: 37rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-strip-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .kitchen-case-study .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 52rem) {
  :root { --header-height: 5.25rem; }
  .header-row { grid-template-columns: 1fr auto 1fr; column-gap: clamp(1rem, 3vw, 3rem); padding-block: 0; }
  .landing-header { grid-template-columns: 1fr auto; }
  #site-nav { grid-column: auto; grid-row: auto; gap: clamp(1rem, 2.5vw, 2.4rem); }
  .hero-copy { margin-bottom: .5rem; }
  .page-intro { grid-template-columns: 1fr auto; align-items: end; }
  .contact-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .landing-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .landing-copy .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 72rem) {
  .landing-copy .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
