/* MW Photography — light, airy gallery-wall design */

:root {
  --bg: #f6f3ee;
  --bg-elevated: #fffcf8;
  --paper: #ece7df;
  --paper-deep: #e2dcd3;
  --ink: #1c1b19;
  --ink-soft: #4a4742;
  --muted: #7a756c;
  --faint: #9a948a;
  --line: #ddd6cb;
  --accent: #8a6f4d;
  --accent-hover: #6f563b;
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.04);
  --header-h: 4.75rem;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 4vw, 2.75rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

/* Discourage casual save/drag of photographs; captions and nav stay selectable. */
.destination-card img,
.photo-story img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

h1, h2, h3, .logo {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.header-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.15rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.logo:hover {
  color: var(--ink);
  opacity: 0.7;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 1px;
  background: var(--ink);
  margin: 6px auto;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

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

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

/* Hero */

.hero {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(5rem, 14vh, 9rem) var(--space) clamp(4rem, 10vh, 7rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 9vw, 6.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.hero-intro {
  margin: 2.25rem auto 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  text-wrap: pretty;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vh, 6rem) var(--space);
}

.section-heading {
  margin-bottom: 2.75rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

.section-kicker {
  margin: 0.6rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Destination grid — gallery wall */

.destination-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
}

.destination-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.destination-card:hover {
  color: inherit;
}

.card-visual {
  aspect-ratio: 4 / 5;
  background: var(--paper);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-visual picture {
  position: absolute;
  inset: 0;
  display: block;
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}



.coming-soon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, #efeae3 0%, var(--paper) 100%);
  color: var(--faint);
}

.coming-soon-block .mark {
  width: 2.25rem;
  height: 1px;
  background: var(--paper-deep);
}

.coming-soon-block span {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0.1rem 0;
}

.card-meta h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
  text-wrap: balance;
}

.card-meta .status {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

/* About & contact */

.about,
.contact {
  border-top: 1px solid var(--line);
}

.about-inner,
.contact-inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.about-copy,
.contact-lead {
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.85;
}

.contact-email {
  margin: 1.5rem 0 2.5rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  word-break: break-word;
}

.contact-email a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1em;
}

.contact-email a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-hover);
}

.contact-email .placeholder-email {
  color: var(--muted);
  font-style: italic;
  border-bottom: 1px dashed var(--line);
}

.contact-form {
  text-align: left;
  display: grid;
  gap: 1.1rem;
}

.contact-form[hidden],
.contact-email[hidden] {
  display: none !important;
}

.form-note {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
  width: 100%;
  border-radius: 0;
}

.contact-form input:disabled,
.contact-form textarea:disabled,
.contact-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-form button {
  margin-top: 0.4rem;
  justify-self: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 0.85rem 1.8rem;
  cursor: pointer;
}

/* Footer */

.site-footer {
  padding: 2.5rem var(--space) 3.25rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-footer .footer-tagline {
  margin-top: 0.45rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* Gallery page */

.gallery-header {
  max-width: 90rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) var(--space) 1.5rem;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.back-link:hover {
  color: var(--ink);
}

.gallery-header h1 {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 400;
}

.gallery-root {
  margin: 0 auto;
  padding: 1.5rem var(--space) clamp(5rem, 10vh, 8rem);
  min-height: 50vh;
}

.gallery-section + .gallery-section {
  margin-top: 4.5rem;
}

.gallery-section-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  text-align: center;
}

.gallery-empty {
  max-width: 28rem;
  margin: 2rem auto 0;
  padding: clamp(5rem, 16vh, 8rem) 1.5rem;
  background: linear-gradient(180deg, #efeae3 0%, var(--paper) 100%);
  text-align: center;
  color: var(--muted);
}

.gallery-empty p {
  margin: 0.4rem 0 0;
}

.gallery-empty .label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Story / travel-blog layout */

.photo-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3.75rem, 9vh, 7rem);
}

.photo-story figure {
  margin: 0;
  width: 100%;
  max-width: 1080px;
}

.photo-story figure picture,
.photo-story figure img {
  width: 100%;
  height: auto;
  display: block;
  cursor: default;
  background: var(--paper);
}

.photo-story figcaption {
  margin: 1.15rem auto 0;
  max-width: 38rem;
  padding: 0 0.5rem;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.photo-story figcaption.is-empty {
  min-height: 1.7em;
}

/* Responsive */

@media (max-width: 900px) {
  .destination-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    z-index: 120;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }

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

  .site-nav a {
    font-size: 0.95rem;
    letter-spacing: 0.22em;
  }

  .gallery-root {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .photo-story {
    gap: clamp(3rem, 8vh, 4.5rem);
  }
}

@media (max-width: 520px) {
  .destination-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0.85rem;
  }

  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .card-meta h3 {
    font-size: 1.2rem;
  }

  .card-meta .status {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .destination-card:hover .card-visual img {
    transform: none;
  }
}
