:root {
  --kd-bg: #222222; --kd-surface: #2c2e32; --kd-text: #f5f5f3; --kd-muted: #a8a8a4;
  --kd-accent: #ae9780; --kd-on-accent: #2c1f12; --kd-accent-2: #e0bfb0; --kd-accent-ink: #ae9780;
}

/* Scale: one huge, one small, and a statement size between */
:root {
  --m: clamp(16px, 2.2vw, 32px);
  --gap: 16px;
  --section: clamp(112px, 13vw, 200px);
  --text: 1.125rem;
  --small: 0.9375rem;
  --display: clamp(2.5rem, 5vw, 5.5rem);
  --statement: clamp(1.375rem, 2.2vw, 2.25rem);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--kd-bg);
  color: var(--kd-text);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
figure { margin: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--kd-accent-2); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: 1600px; margin-inline: auto; padding-inline: var(--m); }
.muted { color: var(--kd-muted); }

.display {
  font-size: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.statement {
  font-size: var(--statement);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Actions */
.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--kd-accent);
  color: var(--kd-on-accent);
  font-weight: 500;
  font-size: var(--text);
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover { background: color-mix(in srgb, var(--kd-accent) 85%, var(--kd-text)); }
.btn:active { transform: scale(0.97); }
.btn--small { padding: 10px 20px; font-size: var(--small); }

.link {
  color: var(--kd-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 6px;
}
.link:hover { text-decoration-color: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.3s ease, transform 0.2s ease; }
  .link, .bar__nav a, .foot a, address a { transition: text-decoration-color 0.3s ease, color 0.3s ease, opacity 0.3s ease; }
}

/* Header: sits over the hero photo, with a soft scrim */
.bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: calc(var(--m) + 10px) calc(var(--m) * 2) 48px;
  background: color-mix(in srgb, var(--kd-bg) 78%, transparent);
}
.wordmark {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.bar__nav { display: none; gap: 24px; }
.bar__nav a { text-decoration: none; font-size: var(--small); opacity: 0.85; }
.bar__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 720px) { .bar__nav { display: flex; } }

/* Hero */
.hero {
  max-width: 1600px;
  margin-inline: auto;
  padding: var(--m);
}
.hero__frame {
  height: 50svh;
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__frame img { height: 100%; border-radius: 0; scale: 1.15; object-position: 50% 40%; }
.hero__text { padding-top: 20px; }
.hero__name {
  font-size: clamp(2.75rem, 14.5vw, 200px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.hero__headline {
  margin-top: 14px;
  font-size: var(--statement);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.hero__sub { margin-top: 8px; max-width: 34em; }
.hero__actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

@media (min-width: 720px) {
  .hero__frame { height: 56svh; }
  .hero__text { padding-top: 32px; }
  .hero__sub { margin-top: 12px; }
  .hero__actions { margin-top: 28px; }
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: calc(var(--m) * 1.5);
    min-height: 100svh;
  }
  .hero__frame { height: calc(100svh - var(--m) * 2); min-height: 560px; }
  .hero__text {
    align-self: end;
    padding: 0 0 calc(var(--m) * 1.5);
  }
  .hero__name { font-size: clamp(3.5rem, 8.4vw, 200px); line-height: 1.05; padding-bottom: 0.12em; }
}

/* Work */
.work { margin-top: var(--section); }
.work__head { display: grid; gap: 20px; margin-bottom: 48px; }
.work__head p { max-width: 36em; }
.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.work__grid img { aspect-ratio: 4 / 5; height: 100%; }
.work__grid .work__feature { grid-column: span 2; }

@media (min-width: 900px) {
  .work__head { grid-template-columns: repeat(12, 1fr); align-items: end; gap: var(--gap); margin-bottom: 64px; }
  .work__head h2 { grid-column: 1 / 7; }
  .work__head p { grid-column: 8 / 13; }
  .work__grid { grid-template-columns: 6fr 3fr 3fr; }
  .work__grid .work__feature { grid-column: 1; grid-row: span 2; aspect-ratio: auto; }
}

/* Services */
.services { margin-top: var(--section); display: grid; gap: 40px; }
.services__head { display: grid; gap: 20px; align-content: start; }
.services__head p { max-width: 34em; }
.services__list { display: grid; gap: 32px; }
.services__list h3 { font-size: var(--text); margin-bottom: 4px; }
.services__list p { max-width: 36em; }
.services__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: 24px;
}
.services__photos figure:first-child { grid-column: span 2; }
.services__photos figure:first-child img { aspect-ratio: 3 / 2; }
.services__photos img { aspect-ratio: 4 / 5; }
figcaption { margin-top: 10px; font-size: var(--small); color: var(--kd-muted); }

@media (min-width: 900px) {
  .services { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 96px; }
  .services__head { grid-column: 1 / 6; position: sticky; top: 48px; }
  .services__list { grid-column: 7 / 13; gap: 40px; }
  .services__photos { grid-column: 1 / 13; grid-template-columns: 6fr 3fr 3fr; margin-top: 0; }
  .services__photos figure:first-child { grid-column: auto; }
}

/* About: one black-and-white room, a step up in tone */
.about {
  margin-top: var(--section);
  background: var(--kd-surface);
  padding-block: clamp(96px, 11vw, 180px);
}
.about__inner { display: grid; gap: 48px; }
.about__photos {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto auto;
  gap: var(--gap);
}
.about__photos img { aspect-ratio: 1 / 1; }
.about__photos .about__portrait { grid-row: span 2; height: 100%; aspect-ratio: auto; object-position: 50% 30%; }
.about__text { display: grid; gap: 20px; align-content: start; }
.about__text p { max-width: 36em; }
.about__text .statement { margin-top: 8px; }

@media (min-width: 900px) {
  .about__inner { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
  .about__photos { grid-column: 1 / 6; }
  .about__text { grid-column: 7 / 13; }
}

/* Reviews */
.reviews { margin-top: var(--section); display: grid; gap: 48px; }
.reviews__head { display: grid; gap: 16px; }
.reviews__quotes { display: grid; gap: 40px; }
.reviews__quotes blockquote { margin: 0; max-width: 34em; }
.reviews__quotes .statement { max-width: 26em; }
.reviews__aside { display: grid; gap: 12px; align-content: start; }
.reviews__aside h3 { font-size: var(--text); margin-top: 8px; }
.reviews__frame img { aspect-ratio: 4 / 5; }
[data-count] { font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 64px; }
  .reviews__head { grid-column: 1 / 8; }
  .reviews__quotes { grid-column: 1 / 8; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 48px; }
  .reviews__quotes figure:first-child { grid-column: 1 / -1; }
  .reviews__aside { grid-column: 9 / 13; grid-row: 1 / 3; align-self: end; }
}

/* Price card: the warm stone room */
.prices {
  margin-top: var(--section);
  background: var(--kd-accent-2);
  color: var(--kd-on-accent);
  padding-block: clamp(96px, 11vw, 180px);
}
.prices__inner { display: grid; gap: 48px; }
.prices__head { display: grid; gap: 20px; align-content: start; }
.prices__head p { max-width: 30em; }
.prices__cards { display: grid; gap: 56px; }
.pricegroup h3 { font-size: var(--text); margin-bottom: 12px; }
.pricegroup table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pricegroup th, .pricegroup td { padding: 8px 0; vertical-align: top; text-align: left; }
.pricegroup th { font-weight: 400; padding-right: 16px; }
.pricegroup td { white-space: nowrap; text-align: right; }
.pricegroup td:first-of-type { color: color-mix(in srgb, var(--kd-on-accent) 72%, var(--kd-accent-2)); padding-right: 20px; }
.pricegroup .note {
  display: block;
  font-size: var(--small);
  color: color-mix(in srgb, var(--kd-on-accent) 72%, var(--kd-accent-2));
}
.pricegroup--policy ul { display: grid; gap: 12px; }
.pricegroup--policy li { max-width: 34em; }
.prices :focus-visible { outline-color: var(--kd-on-accent); }

@media (min-width: 900px) {
  .prices__inner { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .prices__head { grid-column: 1 / 5; position: sticky; top: 48px; }
  .prices__cards { grid-column: 6 / 13; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 64px; }
}

/* Visit */
.visit { margin-top: var(--section); display: grid; gap: 56px; }
.visit__main { display: grid; gap: 24px; align-content: start; }
.visit__main .statement { max-width: 24em; }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.visit__details { display: grid; gap: 40px; }
.visit__details h3 { font-size: var(--text); margin-bottom: 10px; color: var(--kd-muted); font-weight: 400; }
address { font-style: normal; margin-bottom: 12px; }
address a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 5px; }
address a:hover { text-decoration-color: currentColor; }
.visit__details .muted { font-size: var(--small); max-width: 30em; }
.hours { border-collapse: collapse; font-variant-numeric: tabular-nums; width: 100%; max-width: 360px; }
.hours th, .hours td { padding: 5px 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; }

@media (min-width: 900px) {
  .visit { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .visit__main { grid-column: 1 / 8; }
  .visit__details { grid-column: 9 / 13; }
}

/* Footer: the last shade */
.foot {
  margin-top: var(--section);
  background: var(--kd-surface);
  padding-block: 72px 40px;
}
.foot__name {
  font-size: clamp(2.75rem, 13vw, 200px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.foot__row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: var(--small);
  color: var(--kd-muted);
}
.foot__links { display: flex; gap: 24px; }
.foot__links a { color: var(--kd-text); text-decoration: none; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
