:root {
  color-scheme: light;
  --ink: #171412;
  --muted: #70665f;
  --cream: #f7f1e8;
  --paper: #fffaf2;
  --sand: #d8b58c;
  --cognac: #9b5c31;
  --espresso: #2b211c;
  --line: rgba(23, 20, 18, 0.16);
  --shadow: 0 24px 70px rgba(43, 33, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 250, 242, 0.18);
  background: rgba(23, 20, 18, 0.82);
  color: var(--paper);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav a:hover {
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: calc(100svh - 70px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--espresso);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 20, 18, 0.86) 0%, rgba(23, 20, 18, 0.5) 42%, rgba(23, 20, 18, 0.12) 100%),
    linear-gradient(0deg, rgba(23, 20, 18, 0.88), rgba(23, 20, 18, 0.05) 52%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 40px));
  padding: clamp(44px, 8vw, 92px) clamp(20px, 5vw, 64px);
  color: var(--paper);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cognac);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sand);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(4rem, 11vw, 9.5rem);
  max-width: 760px;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 5vw, 5rem);
}

h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.1;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 22px;
  border: 1px solid rgba(255, 250, 242, 0.42);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button:hover {
  background: rgba(255, 250, 242, 0.12);
}

.button-dark {
  border-color: var(--ink);
  color: var(--ink);
}

.button-dark:hover {
  background: var(--ink);
  color: var(--paper);
}

.intro,
.collection,
.process,
.commission,
.story-hero,
.story-section,
.story-nav {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 64px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.intro > p,
.commission > p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading p:not(.section-kicker) {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 110px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  grid-column: span 3;
  grid-row: span 2;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--espresso);
  box-shadow: var(--shadow);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 18, 0.26), rgba(23, 20, 18, 0));
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.gallery-item.tall {
  grid-row: span 4;
}

.gallery-item.wide {
  grid-column: span 6;
}

.gallery-item.focus-top img {
  object-position: center top;
}

.gallery-item.focus-right img {
  object-position: right center;
}

.gallery-item.focus-bottom img {
  object-position: center bottom;
}

.steps p,
.story-copy p,
.materials li,
.footer {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.steps article {
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
}

.steps span {
  display: block;
  margin-bottom: 38px;
  color: var(--cognac);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.commission {
  background: var(--cream);
}

.commission h2 {
  max-width: 980px;
}

.owner-commission {
  padding: clamp(44px, 7vw, 82px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(216, 181, 140, 0.38), rgba(255, 250, 242, 0.82)),
    var(--cream);
}

.owner-commission h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

.owner-commission p:not(.section-kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.story-body {
  background: var(--paper);
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: calc(100svh - 70px);
}

.story-media {
  position: relative;
}

.story-media img {
  width: 100%;
  max-height: 76svh;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-copy {
  max-width: 720px;
}

.story-copy h1 {
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 7.5rem);
}

.story-copy p {
  font-size: clamp(1.03rem, 1.5vw, 1.25rem);
}

.story-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0;
}

.meta-box {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 241, 232, 0.72);
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-box strong {
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta-box a {
  color: var(--cognac);
  font-weight: 700;
}

.meta-box a:hover {
  color: var(--ink);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  border-top: 1px solid var(--line);
}

.materials {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.materials li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.materials strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.story-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: var(--espresso);
  color: var(--paper);
}

.story-nav a {
  color: rgba(255, 250, 242, 0.78);
}

.story-nav a:hover {
  color: var(--paper);
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header,
  .footer,
  .story-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

  .intro,
  .story-hero,
  .story-section,
  .story-meta,
  .steps {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: span 1;
  }

  .hero {
    min-height: 760px;
  }

  .hero-copy {
    padding-bottom: 52px;
  }

  .story-media img {
    max-height: none;
  }
}
