/* 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,
.gallery-hero img,
.home-hero img,
.portfolio-grid 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, grouped by year */

.destination-years {
  display: flex;
  flex-direction: column;
  gap: clamp(3.25rem, 7vh, 5.25rem);
}

.destination-year .year-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  max-width: var(--max);
  margin: 0 auto 1.85rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.14em;
  color: var(--ink, #2a2a2a);
}

.destination-year .year-heading::before,
.destination-year .year-heading::after {
  content: "";
  width: clamp(3rem, 8vw, 6rem);
  height: 1px;
  background: var(--muted);
}

.destination-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 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;
}


/* Home page — full-width hero, welcome, portfolio, coming-soon blocks */

.home-hero {
  position: relative;
  width: 100%;
  height: min(78vh, 44rem);
  min-height: 22rem;
  overflow: hidden;
  background: #2a2724;
}

.home-hero-media,
.home-hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom; /* keep the watermark in frame */
  cursor: default;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 2rem var(--space);
  text-align: center;
  background: linear-gradient(
    to top,
    rgba(22, 20, 18, 0.40) 0%,
    rgba(22, 20, 18, 0.16) 42%,
    rgba(22, 20, 18, 0.22) 100%
  );
}

.home-hero h1 {
  pointer-events: auto;
  margin: 0;
  color: #f6f3ee;
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.28);
}

.home-hero-tagline {
  pointer-events: auto;
  margin: 1rem 0 0;
  color: #f6f3ee;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.28);
}

.welcome-inner,
.coming-block-inner {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.welcome-copy {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  line-height: 1.75;
}

.destinations,
.portfolio,
.coming-block,
.contact {
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 32rem;
  margin: 0.9rem auto 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
}

.destination-card.is-soon {
  cursor: default;
}

.destination-card.is-soon .card-visual {
  background: linear-gradient(180deg, #efeae3 0%, var(--paper) 100%);
}

.soon-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
  padding: 0 1rem;
}

.soon-label {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.destination-card.is-live .tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2.25rem 0.9rem 1rem;
  text-align: center;
  background: linear-gradient(to top, rgba(22, 20, 18, 0.46) 0%, rgba(22, 20, 18, 0.08) 70%, transparent 100%);
  pointer-events: none;
}

.destination-card.is-live .tile-caption h3 {
  margin: 0;
  color: #f6f3ee;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

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

.portfolio-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--paper);
}

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

.portfolio-card picture,
.portfolio-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  cursor: default;
}

.coming-block-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.85;
}

.coming-block.newsletter {
  background: color-mix(in srgb, var(--paper) 55%, var(--bg));
}

/* 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 — editorial story */

.gallery-hero {
  position: relative;
  width: 100%;
  height: min(70vh, 42rem);
  min-height: 20rem;
  overflow: hidden;
  background: #2a2724;
}

.gallery-hero picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-hero img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  cursor: default;
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(22, 20, 18, 0.55) 0%,
    rgba(22, 20, 18, 0.22) 36%,
    rgba(22, 20, 18, 0.06) 62%,
    rgba(22, 20, 18, 0.16) 100%
  );
}

.gallery-hero h1 {
  pointer-events: auto;
  margin: 0 1.25rem 9%;
  color: #f6f3ee;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.28);
}

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

body.has-hero .gallery-header {
  padding-top: clamp(1.75rem, 4vh, 2.5rem);
  padding-bottom: 0;
}

body.has-hero .gallery-header h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gallery-intro {
  max-width: 38rem;
  margin: 1.75rem auto 0;
  padding: 0 var(--space) clamp(3.5rem, 8vh, 5.75rem);
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

.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 {
  display: table;
  width: auto;
  max-width: min(860px, 100%); /* ~80% of original 1080px column */
  margin: 0 auto;
}

.photo-story figure picture {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

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

@media (min-width: 721px) {
  .photo-story figure img {
    max-height: min(1270px, 80vh); /* portraits scaled with the 860px column */
  }
}

.photo-story figcaption {
  display: table-caption;
  caption-side: bottom;
  margin: 1.5rem 0 0;
  width: auto;
  max-width: none;
  padding: 0;
  text-align: center;
}

.photo-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.45;
}

.photo-location {
  margin: 0.4rem 0 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.5;
}

.photo-caption {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

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

.prints-note {
  margin: 0 auto clamp(4.5rem, 10vh, 7.5rem);
  padding: 0 var(--space);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.prints-note.is-not-for-sale {
  max-width: 28rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  line-height: 1.7;
}

/* Responsive */

@media (max-width: 1040px) {
  .site-nav {
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .destination-grid,
  .portfolio-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);
  }

  .gallery-hero {
    height: min(70vh, 32rem);
    min-height: 18rem;
  }

  .gallery-hero h1 {
    margin-bottom: 12%;
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .gallery-intro {
    margin-top: 1.5rem;
  }

  .home-hero {
    height: min(70vh, 32rem);
    min-height: 18rem;
  }

  .home-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }
}

@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;
  }
}
