@font-face {
  font-family: 'Dancing Script';
  src: url('fonts/DancingScript-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream:      #FAF6F0;
  --blush:      #E5D9C3;  /* warm oat — accent band (no pink) */
  --terracotta: #A67C52;
  --charcoal:   #2C2825;
  --muted:      #7A736A;
  --nav-link:   #5C4F3D;
  --nav-h:      52px;
  --border:     #EBE4D8;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: #fff;
}

/* ── Hero header ── */
.hero {
  background: linear-gradient(
    180deg,
    var(--cream) 0%,
    var(--blush) 38%,
    var(--blush) 58%,
    var(--cream) 100%
  );
  text-align: center;
  padding: 60px 24px 40px;
}
.hero h1 {
  font-family: 'Sacramento', cursive;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--terracotta);
  line-height: 1.1;
}
.hero p {
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Featured Sophie photo ── */
.featured-photo {
  background: var(--cream);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 24px;
}
.featured-photo img {
  display: block;
  max-width: 520px;
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (min-width: 900px) {
  .featured-photo img { max-width: 680px; }
}

/* ── About brief ── */
.about-brief {
  background: var(--cream);
  padding: 40px 24px 48px;
}
.about-brief-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-mission {
  font-family: 'Dancing Script', cursive;
  font-weight: normal;
  font-size: clamp(1.15rem, 3vw, 1.38rem);
  line-height: 1.45;
  color: #5a534c;
  text-align: center;
  max-width: 34em;
  margin: 0 auto 36px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 56px;
  width: fit-content;
  max-width: 100%;
}
@media (min-width: 640px) {
  .about-grid { grid-template-columns: auto auto; }
}
.about-block h2 {
  font-family: 'Sacramento', cursive;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 400;
  color: var(--terracotta);
  margin-bottom: 14px;
  text-align: center;
}
.about-block ul {
  list-style: none;
}
.about-block li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--charcoal);
  padding-left: 1em;
  position: relative;
  margin-bottom: 10px;
}
.about-block li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--terracotta);
}
.about-block li:last-child { margin-bottom: 0; }
.qual-item strong {
  display: block;
  font-weight: 400;
}
.qual-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}
.exp-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 20px;
  font-size: 0.86rem;
  line-height: 1.4;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(166, 124, 82, 0.18);
}
.exp-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.exp-item .exp-place {
  font-weight: 400;
}
.exp-item .exp-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .exp-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .exp-item .exp-date { white-space: normal; }
}

/* ── Sticky nav wafer ── */
.nav-wafer {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blush);
  border-bottom: 1px solid rgba(166, 124, 82, 0.15);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 72px);
  padding: 0 16px;
  margin: 0;
}
.nav-wafer a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nav-link);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .nav-wafer {
    justify-content: space-between;
    gap: 4px;
    padding: 6px 8px;
  }
  .nav-wafer a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    padding: 8px 0;
  }
}
@media (max-width: 400px) {
  .nav-wafer {
    gap: 2px;
    padding: 6px 4px;
  }
  .nav-wafer a {
    font-size: 0.54rem;
    letter-spacing: 0.04em;
  }
}
.nav-wafer a:hover,
.nav-wafer a.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

/* ── Section ── */
.section {
  padding: 64px 24px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.section-sophie {
  padding: 0;
  max-width: none;
}
.section-title {
  font-family: 'Sacramento', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--terracotta);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ── Photo grid — JS masonry (shortest-column packing) ── */
.photo-grid {
  display: flex;
  gap: 4px;
  align-items: flex-start;
}
.masonry-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.photo-grid figure {
  overflow: hidden;
  cursor: pointer;
}
.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.photo-grid figure:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 200;
  cursor: pointer;
  opacity: 0.6;
  padding: 12px 18px;
  transition: opacity 0.2s;
  user-select: none;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
footer a { color: var(--terracotta); text-decoration: none; }
footer a:hover { text-decoration: underline; }
