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

:root {
  --paper: #f4f1eb;
  --ink: #20201e;
  --muted: #77746e;
  --line: #dedad1;
  --accent: #a66f4f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  height: 82px;
  padding: 0 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.logo, .footer-logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .08em;
}
.logo span, .footer-logo span { color: var(--accent); }
.main-nav { display: flex; gap: 34px; color: var(--muted); font-size: 13px; }
.main-nav a:hover, .text-link:hover { color: var(--accent); }
.profile {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  border: 2px solid white;
}
.profile img { width: 100%; height: 100%; object-fit: cover; }

.hero {
  min-height: 570px;
  padding: 75px 10vw 85px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}
h1, h2 { font-family: 'Playfair Display', serif; font-weight: 500; }
h1 { font-size: clamp(43px, 5.2vw, 72px); line-height: 1.08; margin: 22px 0; }
h1 em { color: var(--accent); }
.hero-text { color: var(--muted); font-size: 15px; margin-bottom: 34px; }
.text-link { font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 8px; }
.text-link span { color: var(--accent); margin-left: 12px; }
.hero-image-wrap { position: relative; }
.hero-image { width: 100%; height: 390px; object-fit: cover; display: block; }
.image-caption { position: absolute; right: 0; bottom: -27px; color: var(--muted); font-size: 9px; letter-spacing: .17em; }

.gallery-section { padding: 85px 10vw 100px; background: #ebe7df; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
h2 { font-size: clamp(36px, 4vw, 51px); margin: 10px 0 0; }
.section-note, .gallery-hint { color: var(--muted); font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 35px 0 28px; }
.filter-btn {
  border: 1px solid #cbc5ba;
  background: transparent;
  color: var(--muted);
  padding: 9px 17px;
  border-radius: 30px;
  font-size: 11px;
  cursor: pointer;
  transition: .2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--ink); color: white; border-color: var(--ink); }
.gallery-grid { columns: 3 230px; column-gap: 18px; }
.photo-card { break-inside: avoid; margin: 0 0 18px; position: relative; overflow: hidden; cursor: pointer; background: #ddd; }
.photo-card img { width: 100%; display: block; transition: transform .5s; }
.photo-card:hover img { transform: scale(1.035); }
.photo-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 35px 16px 15px; color: white; font-size: 13px; background: linear-gradient(transparent, #0009); }
.gallery-hint { margin-top: 20px; }

.about-section { padding: 90px 10vw; display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; align-items: start; }
.about-section > p { color: var(--muted); line-height: 1.9; font-size: 14px; max-width: 520px; margin-top: 22px; }

.footer { background: #20201e; color: #f4f1eb; text-align: center; padding: 48px 20px 38px; }
.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer p { max-width: 720px; margin: 8px auto; color: #c9c5bd; font-size: 12px; line-height: 1.7; }
.footer .copyright { color: white; font-weight: 600; }
.footer .copyright-warning { color: #f0c6a9; }
.footer .footer-small { margin-top: 20px; color: #88847d; font-size: 10px; letter-spacing: .04em; }

.lightbox { display: none; position: fixed; inset: 0; z-index: 10; background: #111e; align-items: center; justify-content: center; padding: 55px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 85vw; max-height: 85vh; text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox figcaption { color: white; margin-top: 12px; font-size: 13px; }
.lightbox-close, .lightbox-arrow { position: absolute; border: 0; background: transparent; color: white; cursor: pointer; }
.lightbox-close { top: 20px; right: 30px; font-size: 38px; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); font-size: 52px; padding: 15px; }
.lightbox-arrow.prev { left: 15px; }
.lightbox-arrow.next { right: 15px; }

@media (max-width: 700px) {
  .site-header { height: 70px; padding: 0 5vw; }
  .logo { font-size: 15px; }
  .main-nav { gap: 14px; font-size: 11px; }
  .profile { width: 36px; height: 36px; }
  .hero { padding: 60px 7vw 75px; grid-template-columns: 1fr; gap: 45px; }
  .hero-image { height: 330px; }
  .gallery-section { padding: 65px 7vw 75px; }
  .section-heading { display: block; }
  .section-note { margin-top: 12px; }
  .about-section { padding: 65px 7vw; grid-template-columns: 1fr; gap: 10px; }
  .lightbox { padding: 45px 15px; }
  .lightbox-arrow.prev { left: 0; }
  .lightbox-arrow.next { right: 0; }
}
