:root {
  --bg: #0d0c0b;
  --bg-elevated: #161412;
  --text: #f3eee8;
  --text-muted: rgba(243, 238, 232, 0.62);
  --accent: #ffffff;
  --border: rgba(243, 238, 232, 0.14);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --radius: 2px;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  z-index: 1000;
  font-weight: 500;
  border: 1px solid var(--accent);
}

.skip-link:focus {
  left: 0.5rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(13, 12, 11, 0.92);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__mark {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  line-height: 1;
}

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

.site-nav__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0.2rem 0.35rem;
  color: var(--text-muted);
  line-height: 0;
  transition: color 0.2s var(--ease);
}

.site-nav__social:hover,
.site-nav__social:focus-visible {
  color: var(--accent);
}

.site-nav__social:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-nav__icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  flex-shrink: 0;
  transform: translateY(-0.06em);
}

main {
  padding-top: var(--header-h);
}

.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: end;
  padding-top: 4rem;
  padding-bottom: 3.5rem;
  padding-right: clamp(1.75rem, 6vw, 3.5rem);
  padding-left: clamp(2.75rem, 11vw, 6.5rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  pointer-events: none;
  overflow: hidden;
}

/* Real <img> scales more cleanly than background-image cover in most browsers */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(
      to top,
      var(--bg) 0%,
      rgba(13, 12, 11, 0.58) 52%,
      rgba(13, 12, 11, 0.28) 72%,
      rgba(13, 12, 11, 0.12) 100%
    ),
    linear-gradient(
      to right,
      rgba(13, 12, 11, 0.48) 0%,
      rgba(13, 12, 11, 0.18) 42%,
      transparent 68%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 640px;
  z-index: 2;
}

.hero__eyebrow,
.hero__title,
.hero__lede {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 32ch;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: opacity 0.2s ease;
}

.hero__cta:hover {
  opacity: 0.92;
}

.hero__cta:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

.gallery-section,
.about-section,
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
}

.section-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.65rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  border: 1px solid transparent;
  padding: 0;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  aspect-ratio: 4 / 3;
  transition: border-color 0.15s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--border);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.gallery-empty code {
  font-size: 0.9em;
  color: var(--accent);
}

.about-section {
  border-top: 1px solid var(--border);
}

.about__inner {
  max-width: 52ch;
}

.about__text {
  margin: 0;
  color: var(--text-muted);
}

.contact-section {
  border-top: 1px solid var(--border);
  padding-bottom: 5rem;
}

.contact__text {
  margin: 0;
  font-size: 1.1rem;
}

.contact__text a {
  color: var(--accent);
  text-decoration: none;
}

.contact__text a:hover {
  text-decoration: underline;
}

.contact__sep {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

.site-footer {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  background: rgba(5, 4, 3, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(85vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__caption {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 48ch;
}

.lightbox__caption:empty {
  display: none;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  opacity: 1;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 2.25rem;
}

.lightbox__prev {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
}

.lightbox__next {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
}

@media (max-width: 600px) {
  .site-nav {
    gap: 1rem;
    font-size: 0.72rem;
  }

  .lightbox__prev,
  .lightbox__next {
    font-size: 2rem;
  }
}
