:root {
  color-scheme: light;
  --ink: #1c2330;
  --muted: #6d7179;
  --cream: #fbfaf7;
  --line: rgba(28, 35, 48, 0.1);
  --max-width: 1240px;
  --brand-font: "Baskerville", "Libre Baskerville", "Times New Roman", serif;
  --body-font: "Source Serif 4", "Georgia", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}

.site-header {
  padding: 34px 0 20px;
  border-bottom: 1px solid var(--line);
}

.site-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.brand-stack-title {
  font-family: "Libre Baskerville", Baskerville, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

.fern-image {
  width: 54px;
  height: auto;
  object-fit: contain;
}

.footer-centered .fern-image,
.footer-centered img:first-child:not(.footer-wordmark) {
  width: 54px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.nav-links-centered {
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--ink);
  border-bottom-color: rgba(28, 35, 48, 0.42);
}

.hero {
  margin: 28px 0 0;
}

.hero-image {
  width: 100%;
  height: clamp(430px, 72vh, 860px);
  object-fit: cover;
  border-radius: 0;
}

.page-hero {
  padding: 26px 0 16px;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--brand-font);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
  font-weight: 400;
}

.section {
  padding: 34px 0 58px;
}

.section--tight {
  padding-top: 8px;
}

.page-hero-image {
  width: 100%;
  height: clamp(320px, 40vw, 520px);
  object-fit: cover;
}

.split {
  display: grid;
  grid-template-columns: minmax(290px, 420px) minmax(380px, 1fr);
  gap: 58px;
  align-items: start;
}

.portrait-image {
  width: 100%;
  height: clamp(420px, 48vw, 620px);
  object-fit: cover;
  border-radius: 10px;
}

h2 {
  margin: 0 0 14px;
  font-family: var(--brand-font);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 400;
}

.lead {
  color: var(--muted);
  margin: 0 0 18px;
}

.list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  margin: 24px 0 0;
}

.contact-simple {
  max-width: 720px;
}

.contact-simple p {
  margin: 0 0 14px;
}

.contact-simple a {
  border-bottom: 1px solid rgba(28, 35, 48, 0.2);
}

.portfolio-grid-curated {
  column-count: 3;
  column-gap: 18px;
}

.portfolio-item {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 8px;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-item:hover img {
  transform: scale(1.012);
}

.portfolio-item:focus-visible {
  outline: 2px solid rgba(28, 35, 48, 0.45);
  outline-offset: 4px;
}

.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 15, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
  padding: 24px;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-shell {
  width: min(1360px, 100%);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 14px;
  align-items: center;
}

.lightbox-content {
  position: relative;
}

.lightbox-content img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.lightbox-close,
.lightbox-arrow {
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 24px;
}

.lightbox-arrow {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 32px;
}

.site-footer {
  margin-top: 56px;
  padding: 34px 0 54px;
  border-top: 1px solid var(--line);
}

.footer-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}


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

  .nav-links {
    justify-content: flex-start;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portfolio-grid-curated {
    column-count: 2;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .container {
    padding: 0 20px;
  }

  .fern-image {
  width: 82px;
  height: auto;
  object-fit: contain;
}

  .footer-wordmark {
  display: block;
  width: min(360px, 72vw);
  height: auto;
  object-fit: contain;
}

  .nav-links {
    gap: 14px;
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .hero-image {
    height: clamp(300px, 48vh, 520px);
  }

  .portfolio-grid-curated {
    column-count: 1;
  }

  .lightbox-shell {
    grid-template-columns: 1fr;
  }

  .lightbox-arrow {
    display: none;
  }
}


.footer-wordmark {
  display: block;
  width: min(360px, 72vw);
  height: auto;
  object-fit: contain;
}
