@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', Helvetica, sans-serif;
  --color-bg: #fafafa;
  --color-text: #1a1a1a;
  --color-text-light: #888;
  --color-border: #e0e0e0;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Navigation ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
  height: var(--nav-height);
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav--scrolled {
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}

.nav--hero .nav__name {
  color: #fff;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}

.nav--hero .nav__links a {
  color: rgba(255, 255, 255, 0.9);
}

.nav__links a:hover {
  color: var(--color-text-light);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: background 0.3s, transform 0.3s;
}

.nav--hero .nav__hamburger span {
  background: #fff;
}

/* ─── Mobile Nav ─── */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

/* ─── Hero ─── */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 6vw, 80px);
  padding-bottom: clamp(48px, 8vw, 100px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* ─── Section shared ─── */

.section {
  padding: clamp(64px, 10vw, 140px) clamp(24px, 4vw, 64px);
}

.section__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 48px;
}

/* ─── Gallery Filters ─── */

.filters {
  display: flex;
  gap: 24px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.filters__btn {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.filters__btn:hover,
.filters__btn--active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

/* ─── Gallery ─── */

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1200px;
  margin: 0 auto;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  width: 100%;
}

.gallery__item--visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery__item--tall {
  max-width: 560px;
}

.gallery__item--medium,
.gallery__item--wide {
  max-width: 100%;
}

.gallery__item--full {
  max-width: 100%;
}

.gallery__pair {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  width: 100%;
}

.gallery__pair .gallery__item {
  flex: 1;
  max-width: none;
}

.gallery__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.02);
}

.gallery__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery__item:hover .gallery__meta {
  opacity: 1;
}

.gallery__meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gallery__meta-location {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.gallery__meta-date {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* ─── Gallery Like ─── */

.gallery__like {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s, transform 0.2s;
}

.gallery__like svg {
  width: 18px;
  height: 18px;
}

.gallery__like:hover {
  color: #fff;
  transform: scale(1.1);
}

.gallery__like--liked {
  color: #fff;
}

.gallery__like--liked svg {
  fill: currentColor;
}

.gallery__like-count {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ─── Lightbox ─── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.3s;
  font-family: var(--font-body);
  font-weight: 300;
}

.lightbox__close:hover {
  color: #fff;
}

.lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox__info {
  margin-top: 20px;
  text-align: center;
}

.lightbox__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: #fff;
}

.lightbox__details {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.lightbox__like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 8px 4px;
  margin-top: 12px;
  transition: color 0.3s, transform 0.2s;
  font-family: var(--font-body);
}

.lightbox__like:hover {
  color: #fff;
  transform: scale(1.1);
}

.lightbox__like--liked {
  color: #fff;
}

.lightbox__like--liked .lightbox__like-icon {
  fill: currentColor;
}

.lightbox__like-icon {
  width: 20px;
  height: 20px;
}

.lightbox__like-count {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
  cursor: pointer;
  padding: 16px;
  transition: color 0.3s;
  font-family: var(--font-body);
  font-weight: 300;
}

.lightbox__nav:hover {
  color: #fff;
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

/* ─── About ─── */

.about {
  max-width: 900px;
}

.about__inner {
  display: flex;
  gap: clamp(32px, 4vw, 64px);
  align-items: flex-start;
}

.about__photo {
  width: clamp(180px, 20vw, 260px);
  flex-shrink: 0;
  object-fit: cover;
}

.about__text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
}

.about__gear {
  margin-top: 48px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .about__inner {
    flex-direction: column;
  }

  .about__photo {
    width: 60%;
  }
}

/* ─── Contact ─── */

.contact {
  max-width: 680px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__link {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}

.contact__link:hover {
  color: var(--color-text-light);
}

/* ─── Notes / Guestbook ─── */

.notes {
  max-width: 680px;
}

.notes__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 56px;
}

.notes__input {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.notes__input::placeholder {
  color: var(--color-text-light);
  font-weight: 300;
}

.notes__input:focus {
  border-bottom-color: var(--color-text);
}

.notes__input--name {
  max-width: 280px;
}

.notes__submit {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  background: none;
  border: 1px solid var(--color-border);
  padding: 10px 28px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  margin-top: 4px;
}

.notes__submit:hover {
  border-color: var(--color-text);
}

.notes__submit:disabled {
  opacity: 0.4;
  cursor: default;
}

.notes__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.notes__item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}

.notes__item:last-child {
  border-bottom: none;
}

.notes__item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.notes__author {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.notes__author--anon {
  color: var(--color-text-light);
  font-style: italic;
}

.notes__date {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.notes__message {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
}

.notes__empty {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--color-text-light);
  font-style: italic;
}

/* ─── Footer ─── */

.footer {
  padding: 48px clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.footer__link {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--color-text);
}

/* ─── Placeholder for missing images ─── */

.gallery__placeholder,
.hero__placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #bbb;
}

.gallery__placeholder {
  background: #f0f0f0;
  aspect-ratio: 3 / 2;
}

.gallery__item--tall .gallery__placeholder { aspect-ratio: 2 / 3; }

.hero__placeholder {
  background: #2a2a2a;
  color: #666;
  position: absolute;
  inset: 0;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
  .gallery__item--tall {
    max-width: 80%;
  }
}

@media (max-width: 600px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .gallery__item--tall {
    max-width: 100%;
  }

  .gallery__pair {
    flex-direction: column;
  }

  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
}
