:root {
  --page-bg: #f3efe7;
  --surface: #fbf8f2;
  --surface-strong: #e0eadf;
  --text: #1f2520;
  --muted: #566157;
  --rule: rgba(31, 37, 32, 0.14);
  --accent: #6c8a76;
  --accent-warm: #b47d49;
  --shadow: 0 30px 70px rgba(27, 32, 28, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(180deg, #ece6db 0%, var(--page-bg) 100%);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--sans);
}

main,
.site-header,
.site-footer,
.lightbox {
  transition: opacity 70ms ease, transform 70ms ease;
}

.page-shell {
  animation: page-fade-in 90ms ease;
}

body.page-is-leaving .site-header,
body.page-is-leaving main,
body.page-is-leaving .site-footer {
  opacity: 0;
  transform: translateY(8px);
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.page-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 36px;
  border-bottom: 1px solid var(--rule);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.brand-home-link {
  display: inline-flex;
  text-decoration: none;
}

.brand-logo {
  width: 110px;
  height: auto;
}

.brand-lockup h1,
.section-heading h2,
.contact-band h2,
.hero-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.brand-lockup h1 {
  max-width: 12ch;
  margin: 6px 0 0;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.1;
}

.eyebrow,
.section-label,
.header-meta,
.category-meta,
.contact-grid dt {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.eyebrow,
.section-label,
.header-meta,
.supporting-copy,
.hero-text,
.category-meta,
.contact-grid dt {
  color: var(--muted);
}

.header-meta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: nowrap;
  max-width: none;
  padding-top: 8px;
  justify-content: flex-end;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-trigger,
.nav-dropdown-toggle,
.header-meta > a,
.nav-dropdown-menu a {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
}

.nav-dropdown-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  min-width: 180px;
  padding: 12px;
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: var(--shadow);
  gap: 10px;
  z-index: 20;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: var(--text);
}

.hero,
.category-overview,
.feature-strip,
.contact-band {
  margin-top: 28px;
  background: rgba(251, 248, 242, 0.8);
  border: 1px solid rgba(31, 37, 32, 0.08);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  max-width: none;
}

.hero-copy h2 {
  margin: 12px 0;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  line-height: 1.02;
}

.hero-text {
  margin: 0 0 22px;
  max-width: none;
  line-height: 1.65;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}

.service-list li {
  padding: 10px 14px;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-size: 0.9rem;
}

.hero-media {
  margin: 0;
  min-height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: 10px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 0;
}

.section-heading h2,
.contact-band h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}

.category-card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(224, 234, 223, 0.55));
}

.category-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.category-card h3 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1;
}

.category-card-link:hover,
.category-card-link:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.category-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--muted);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 14px;
  justify-content: flex-end;
}

.site-footer-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  color: var(--text);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.category-meta {
  display: block;
}

.feature-strip {
  padding-bottom: 28px;
}

.split-heading {
  align-items: start;
}

.supporting-copy {
  max-width: 48ch;
  line-height: 1.65;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 18px;
  padding: 28px;
}

.feature {
  margin: 0;
  background: var(--surface);
}

.feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-large {
  min-height: 520px;
}

.feature:not(.feature-large) {
  min-height: 320px;
}

@media (max-width: 960px) {
  .site-header,
  .hero,
  .section-heading,
  .split-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-meta {
    justify-content: start;
    max-width: none;
  }

  .nav-dropdown-menu {
    left: 0;
    right: auto;
  }

  .category-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-card-link {
    grid-template-columns: 1fr;
  }

  .category-card img {
    height: 240px;
  }

  .feature-large,
  .feature:not(.feature-large) {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1320px);
    padding-bottom: 40px;
  }

  .site-header,
  .hero,
  .category-overview,
  .feature-strip,
  .contact-band {
    margin-top: 18px;
  }

  .hero,
  .section-heading,
  .category-grid,
  .feature-grid,
  .contact-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 18px;
  }

  .brand-lockup h1 {
    max-width: 12ch;
  }
}
