@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600&family=Work+Sans:wght@300;400;500;600&display=swap");

:root {
  color-scheme: light;
  --ink: #1b1b1b;
  --muted: #5f5f5f;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(50, 45, 30, 0.16);
  --accent: #6f98a5;
  --soft: #f4efe7;
  --peach: #f0d8c6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f9f3e7 0%, #f7f2ee 35%, #eef3f5 60%, #f6f1ec 100%);
  min-height: 100vh;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.7) 0%, rgba(244, 231, 214, 0.35) 40%, rgba(211, 229, 236, 0.45) 100%);
  z-index: -1;
}

.hero {
  max-width: 960px;
  padding: 72px 24px 32px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 3vw + 1.8rem, 4rem);
  margin: 0 0 18px;
}

.subhead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

.gallery {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 24px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 16px 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid rgba(208, 194, 178, 0.35);
  pointer-events: none;
}

.thumb {
  width: 100%;
  border-radius: 16px;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  margin: 0;
}

.card-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(111, 152, 165, 0.35);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(247, 242, 237, 0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px;
}

.modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  max-width: min(860px, 92vw);
  background: white;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.modal-card img {
  width: 100%;
  border-radius: 18px;
  background: var(--soft);
}

.modal-card figcaption {
  font-family: "Fraunces", serif;
  text-align: center;
  color: var(--muted);
}

.modal-close {
  align-self: start;
  justify-self: end;
  border: 1px solid rgba(120, 120, 120, 0.3);
  background: transparent;
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}

.modal-link {
  justify-self: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 52px;
  }

  .modal-card {
    padding: 18px;
  }
}
