/* Palette inspired by reference work: cool canopy, warm arc, deep ground */
:root {
  --bg: #0a0f0c;
  --bg-elevated: #121a14;
  --surface: #1a241c;
  --text: #e6ebe7;
  --text-muted: #8fa090;
  --accent-warm: #d4653a;
  --accent-crimson: #9e2d3c;
  --accent-gold: #c9a227;
  --line: rgba(230, 235, 231, 0.08);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --radius: 2px;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: var(--accent-warm);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: #e8845c;
}

a:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100%;
  z-index: 200;
  padding: var(--space-xs) var(--space-sm);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 12, 0.92) 0%,
    rgba(10, 15, 12, 0.75) 70%,
    transparent 100%
  );
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 15, 12, 0.97);
  border-bottom-color: var(--line);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.logo:hover {
  color: var(--accent-warm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav__list {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(10, 15, 12, 0.98);
    padding: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 12, 0.35) 0%,
    rgba(10, 15, 12, 0.2) 35%,
    rgba(10, 15, 12, 0.75) 70%,
    rgba(10, 15, 12, 0.95) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--space-xl)) var(--space-md) var(--space-2xl);
  width: 100%;
}

.hero__eyebrow {
  margin: 0 0 var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.hero__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero__lede {
  margin: 0 0 var(--space-lg);
  max-width: 36ch;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--accent-warm);
  color: #0a0f0c;
}

.btn--primary:hover {
  background: #e07850;
  color: #0a0f0c;
}

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

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

.section__head {
  margin-bottom: var(--space-xl);
  max-width: 40rem;
}

.section__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  font-weight: 300;
}

/* Gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-md);
  }

  .gallery__item--featured {
    grid-column: span 4;
    grid-row: span 2;
  }

  .gallery__item:not(.gallery__item--featured) {
    grid-column: span 2;
  }
}

.gallery__link {
  display: block;
  height: 100%;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.gallery__link:not(.gallery__link--placeholder):hover .gallery__caption {
  opacity: 1;
}

.gallery__link:not(.gallery__link--placeholder):hover img {
  transform: scale(1.02);
}

.gallery__figure {
  position: relative;
  margin: 0;
  height: 100%;
  min-height: 200px;
}

.gallery__item--featured .gallery__figure {
  min-height: 320px;
}

@media (min-width: 768px) {
  .gallery__item--featured .gallery__figure {
    min-height: 520px;
  }
}

.gallery__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__figure--swatch {
  min-height: 220px;
}

.gallery__figure--ember {
  background: linear-gradient(
    145deg,
    #2a1812 0%,
    #8b2d20 40%,
    #d4653a 70%,
    #f0a050 100%
  );
}

.gallery__figure--canopy {
  background: linear-gradient(
    160deg,
    #0d1f18 0%,
    #1e4d3a 45%,
    #3d7a6a 70%,
    #7ab8c4 100%
  );
}

.gallery__figure--tide {
  background: linear-gradient(
    180deg,
    #1a2830 0%,
    #2a4a58 50%,
    #4a7a8a 100%
  );
}

.gallery__figure--thicket {
  background: linear-gradient(
    135deg,
    #080c0a 0%,
    #1a2418 40%,
    #0d120e 100%
  );
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 3px
  );
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-md);
  background: linear-gradient(transparent, rgba(10, 15, 12, 0.9));
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0.95;
  transition: opacity 0.3s var(--ease);
}

.gallery__link--placeholder .gallery__caption {
  opacity: 1;
}

.gallery__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.gallery__meta {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.about__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 280px;
    gap: var(--space-2xl);
  }
}

.about__text p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 42rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.about__stripe {
  flex: 1;
  min-height: 4rem;
}

.about__stripe--cool {
  background: linear-gradient(90deg, #1a3d32, #3d8a9e);
}

.about__stripe--warm {
  background: linear-gradient(90deg, #5c1a1a, #c94a28, #e8a040);
}

.about__stripe--deep {
  background: linear-gradient(90deg, #0a0c0a, #1a2818);
}

/* Contact */
.section--contact {
  text-align: center;
  border-top: 1px solid var(--line);
  padding-bottom: var(--space-2xl);
}

.section--contact .section__title {
  margin-bottom: var(--space-sm);
}

.contact__lede {
  margin: 0 auto var(--space-md);
  max-width: 28rem;
  color: var(--text-muted);
  font-weight: 300;
}

.contact__email {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.contact__email:hover {
  color: var(--accent-warm);
}

.contact__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.contact__social a {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__social a:hover {
  color: var(--accent-warm);
}

/* Footer */
.site-footer {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 15, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: min(95vw, 1400px);
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lightbox__close:hover {
  background: var(--accent-warm);
  color: #0a0f0c;
  border-color: var(--accent-warm);
}

body.lightbox-open {
  overflow: hidden;
}
