:root {
  --bg: #fdf6e8;
  --bg-alt: #f8e0c8;
  --paper: rgba(255, 251, 245, 0.84);
  --ink: #27211d;
  --muted: #66574a;
  --accent: #dd5f3b;
  --accent-2: #efb53f;
  --accent-3: #0e7c7b;
  --line: rgba(39, 33, 29, 0.12);
  --shadow: 0 18px 45px rgba(79, 51, 31, 0.15);
  --shadow-strong: 0 24px 65px rgba(79, 51, 31, 0.22);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 181, 63, 0.3), transparent 26%),
    radial-gradient(circle at top right, rgba(14, 124, 123, 0.18), transparent 30%),
    linear-gradient(180deg, #fff5e7 0%, #fdf6e8 52%, #f4dfcb 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.page-shell::before {
  top: -6rem;
  left: -4rem;
  background: rgba(221, 95, 59, 0.2);
}

.page-shell::after {
  right: -5rem;
  bottom: 10vh;
  background: rgba(14, 124, 123, 0.18);
}

.hero,
.gallery-section,
.note-section,
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 1rem 0 4rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand,
.topbar-links a {
  text-decoration: none;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.topbar-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
}

.hero-copy {
  max-width: 44rem;
  padding-top: 5rem;
  animation: rise 700ms ease-out both;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(239, 181, 63, 0.22);
  color: #7d5200;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(3.8rem, 10vw, 8rem);
  letter-spacing: -0.05em;
}

.hero-subtitle {
  margin: 1rem 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--accent);
}

.hero-text,
.section-heading p,
.note-card p,
.intro-band p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.hero-text {
  max-width: 36rem;
  margin: 1.25rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.72);
}

.hero-collage {
  position: relative;
  min-height: 29rem;
  margin-top: 2rem;
}

.polaroid {
  position: absolute;
  width: min(31vw, 21rem);
  padding: 0.8rem 0.8rem 1.1rem;
  border-radius: 0.4rem;
  background: #fffaf5;
  box-shadow: var(--shadow-strong);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.2rem;
}

.polaroid-a {
  top: -1rem;
  right: 12%;
  transform: rotate(-8deg);
}

.polaroid-b {
  top: 9rem;
  right: 36%;
  transform: rotate(7deg);
}

.polaroid-c {
  top: 2rem;
  right: -1%;
  transform: rotate(9deg);
}

.intro-band {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px dashed rgba(39, 33, 29, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 251, 245, 0.55);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.intro-band p {
  margin: 0;
}

.gallery-section,
.note-section {
  padding: 4rem 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin-top: 0.9rem;
}

.gallery-grid {
  columns: 4 220px;
  column-gap: 1rem;
}

.gallery-card {
  position: relative;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.65rem;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
  break-inside: avoid;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.gallery-card:nth-child(4n + 1) {
  transform: rotate(-1.5deg);
}

.gallery-card:nth-child(4n + 2) {
  transform: rotate(1.4deg);
}

.gallery-card:nth-child(4n + 3) {
  transform: rotate(-0.7deg);
}

.gallery-card:nth-child(4n + 4) {
  transform: rotate(1deg);
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: var(--shadow-strong);
  background: rgba(255, 251, 245, 0.95);
}

.gallery-card img {
  width: 100%;
  border-radius: 18px;
}

.gallery-card-caption {
  display: block;
  padding: 0.7rem 0.4rem 0.25rem;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: 1rem;
  text-align: left;
}

.note-card {
  position: relative;
  max-width: 52rem;
  padding: 2rem;
  border: 1px solid rgba(39, 33, 29, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.92), rgba(255, 242, 226, 0.9)),
    #fff;
  box-shadow: var(--shadow-strong);
}

.note-card::before {
  content: "Love note";
  position: absolute;
  top: -0.9rem;
  left: 1.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.signature {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  padding: 0 0 3rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.lightbox {
  width: min(92vw, 1100px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: rgba(24, 20, 18, 0.94);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.4);
}

.lightbox::backdrop {
  background: rgba(22, 18, 16, 0.78);
  backdrop-filter: blur(4px);
}

.lightbox-figure {
  margin: 0;
  padding: 4.2rem 1rem 1rem;
}

.lightbox img {
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 16px;
}

.lightbox-caption {
  margin: 1rem auto 0;
  max-width: min(90%, 42rem);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-collage {
    min-height: 25rem;
  }

  .polaroid {
    width: min(40vw, 18rem);
  }

  .polaroid-a {
    right: 12%;
  }

  .polaroid-b {
    top: 8rem;
    right: 40%;
  }

  .polaroid-c {
    right: -1%;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 0.8rem 1rem;
  }

  .topbar-links {
    gap: 0.75rem;
    font-size: 0.94rem;
  }

  .hero {
    padding-bottom: 2.5rem;
  }

  .hero-collage {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
  }

  .polaroid {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .polaroid-c {
    grid-column: 1 / -1;
  }

  .gallery-section,
  .note-section {
    padding: 3rem 0;
  }

  .gallery-grid {
    columns: 2 160px;
  }

  .note-card {
    padding: 1.6rem;
  }
}

@media (max-width: 520px) {
  .hero,
  .gallery-section,
  .note-section,
  .site-footer {
    width: min(100% - 1rem, 1180px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .gallery-grid {
    columns: 1;
  }

  .lightbox {
    width: calc(100vw - 1rem);
  }

  .lightbox-figure {
    padding-top: 4rem;
  }
}
