:root {
  --ink: #2d2a26;
  --soft-ink: #4b3f36;
  --wash-1: #f7f2ea;
  --wash-2: #e9f0f4;
  --wash-3: #f4e9df;
  --accent: #8aa7b1;
  --paper: #faf7f2;
  --shadow: rgba(45, 42, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.8), transparent 60%),
    linear-gradient(200deg, rgba(233, 240, 244, 0.7), transparent 55%),
    linear-gradient(340deg, rgba(244, 233, 223, 0.7), transparent 45%);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 8px);
  mix-blend-mode: multiply;
  opacity: 0.4;
  z-index: -2;
}

.wash {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 60vh;
  background: radial-gradient(circle at 20% 30%, rgba(138, 167, 177, 0.25), transparent 60%),
    radial-gradient(circle at 80% 10%, rgba(244, 233, 223, 0.45), transparent 55%),
    radial-gradient(circle at 60% 70%, rgba(233, 240, 244, 0.65), transparent 60%);
  z-index: -1;
  filter: blur(2px);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  padding: 4rem 8vw 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3vw + 1.5rem, 4rem);
  margin: 0.4rem 0 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.overline {
  font-family: "Zeyada", cursive;
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0;
}

.subhead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--soft-ink);
  max-width: 38rem;
}

.note-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 1.8rem 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow);
  border: 1px solid rgba(138, 167, 177, 0.25);
}

.note-title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--accent);
}

.note-body {
  margin: 0.8rem 0 0;
  font-size: 1.1rem;
  color: var(--soft-ink);
  line-height: 1.5;
}

main {
  padding: 0 8vw 4rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 14px 30px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(45, 42, 38, 0.18);
}

.card img {
  width: 100%;
  border-radius: 14px;
  display: block;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figcaption {
  font-size: 1rem;
  color: var(--soft-ink);
}

.actions {
  display: flex;
  gap: 0.8rem;
}

.actions button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.actions button:hover,
.open-full:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(29, 28, 26, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 50;
}

.lightbox.show {
  display: flex;
}

.lightbox-inner {
  background: rgba(255, 255, 255, 0.92);
  padding: 2rem;
  border-radius: 24px;
  max-width: 920px;
  width: min(92vw, 920px);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.lightbox-inner img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.caption {
  margin: 0 0 1.2rem;
  color: var(--soft-ink);
  font-size: 1.1rem;
}

.open-full {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.close {
  background: transparent;
  border: 1px solid rgba(138, 167, 177, 0.6);
  color: var(--soft-ink);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.footer {
  padding: 1.5rem 8vw 3rem;
  color: var(--soft-ink);
  text-align: center;
  font-size: 1rem;
}

.no-scroll {
  overflow: hidden;
}

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

  .actions {
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
