:root {
  --paper: #f7f2e8;
  --paper-deep: #ebe1d1;
  --ink: #1e1c18;
  --muted: #665f55;
  --line: #d8cbb8;
  --rust: #9b4f2e;
  --green: #536b55;
  --steel: #5d6565;
  --white: #fffaf2;
  --shadow: 0 20px 60px rgba(46, 38, 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.55;
}

body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(88, 74, 56, 0.16);
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: blur(12px);
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 17px;
}

.nav {
  gap: 6px;
}

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: clamp(34px, 6vw, 86px) clamp(18px, 5vw, 72px) clamp(30px, 5vw, 68px);
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
  container-type: inline-size;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 0.94;
  letter-spacing: 0;
}

@supports (font-size: 1cqi) {
  h1 {
    font-size: clamp(34px, 12.5cqi, 88px);
  }
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.text-panel p,
.material-panel p,
.market p,
.contact p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary,
.mail-link {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-image {
  margin: 0;
  min-width: 0;
  align-self: stretch;
  min-height: 460px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  max-height: 760px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.intro-band > div {
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
}

.stat {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.intro-band p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.tab-button {
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.empty-state {
  max-width: 720px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.empty-state h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.empty-state p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.empty-state .button {
  margin-top: 12px;
}

.gallery {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--paper-deep);
  cursor: pointer;
}

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

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-item:hover img {
  filter: saturate(1.04);
  transform: scale(1.025);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--white);
}

.text-panel {
  max-width: 700px;
}

.material-panel {
  min-width: 0;
  width: min(100%, 620px);
  justify-self: end;
}

.material-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.material-panel img.profile-photo {
  object-position: center 28%;
}

.market,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.market {
  background: #ece4d4;
}

.contact {
  background: var(--green);
  color: var(--paper);
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 250, 242, 0.82);
}

.contact .mail-link {
  justify-self: stretch;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  padding: 22px 26px;
  border-color: var(--paper);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.mail-link-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mail-link-label {
  color: var(--rust);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.mail-link-address {
  font-size: clamp(19px, 2vw, 30px);
  overflow-wrap: anywhere;
}

.mail-link-arrow {
  flex: 0 0 auto;
  font-size: 34px;
  font-weight: 500;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 48px 76px 24px;
  background: rgba(20, 18, 14, 0.88);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-content {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: min(1100px, 100%);
  max-height: 100%;
  margin: 0;
}

.lightbox-content img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 8px;
  object-fit: contain;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  width: 100%;
  color: var(--paper);
  font-size: 15px;
}

.lightbox-counter {
  flex: 0 0 auto;
  color: rgba(255, 250, 242, 0.72);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.7);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.12);
  color: var(--paper);
  font-size: 22px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.7);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.12);
  color: var(--paper);
  font-size: 25px;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(255, 250, 242, 0.24);
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .hero,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-image {
    min-height: 420px;
    max-height: 720px;
  }

  .material-panel {
    width: min(100%, 720px);
    justify-self: start;
  }
}

@media (max-width: 980px) {
  .market,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 360px;
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    padding-inline: 8px;
  }

  .tabs {
    width: 100%;
  }

  .tab-button {
    flex: 1;
    padding-inline: 10px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 34px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 340px;
  }

  .hero-image {
    min-height: 320px;
  }

  .lightbox {
    padding: 58px 12px 84px;
  }

  .lightbox-content img {
    max-height: calc(100vh - 180px);
  }

  .lightbox-caption {
    padding-inline: 4px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 54px);
  }

  .lightbox-next {
    right: calc(50% - 54px);
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 34px;
  }
}
