@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@400;500;600&display=swap');

:root {
  --paper: rgb(235, 222, 198);
  --ink: #4e4035;
  --muted: #77695d;
  --accent: #9a7165;
  --line: rgba(126, 101, 82, 0.42);
  --card: rgba(255, 252, 245, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Montserrat', Arial, sans-serif;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  color: rgba(154, 113, 101, 0.16);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 10rem;
  line-height: 1;
  pointer-events: none;
}

body::before {
  top: 1rem;
  left: 1rem;
  content: '❧';
  transform: rotate(-28deg);
}

body::after {
  right: 1rem;
  bottom: 1rem;
  content: '❧';
  transform: rotate(152deg);
}

.page-shell {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  padding: 3.5rem 0 2rem;
}

.hero {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.hero-ornament {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 1.5rem;
}

.eyebrow,
.intro {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.gift h3,
footer p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
}

.hero h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(3.7rem, 9vw, 7rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
}

.hero h1 span {
  color: var(--accent);
  font-style: italic;
}

.hero h2 {
  margin: 1.1rem 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: 0.08em;
}

.intro {
  margin: 0 auto;
  letter-spacing: 0.08em;
  text-transform: none;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: min(100%, 290px);
  margin: 1.15rem auto;
  color: var(--accent);
}

.divider i {
  display: block;
  flex: 1;
  height: 1px;
  background: var(--line);
}

.gift-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.35rem;
}

.gift {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 1.75rem 0 2rem;
  border-bottom: 1px dashed var(--line);
  text-align: center;
}

.gift h3 {
  min-height: 2.5rem;
  margin: 0 0 0.9rem;
  font-size: 1.55rem;
  line-height: 1;
}

.gift img {
  display: block;
  width: 100%;
  height: 210px;
  border-radius: 2px;
  object-fit: contain;
  background: var(--card);
  box-shadow: 0 7px 18px rgba(91, 67, 51, 0.11);
}

.item-link {
  margin-top: 1rem;
  color: var(--accent);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  text-decoration: none;
}

a.item-link {
  text-decoration: underline;
  text-decoration-color: rgba(154, 113, 101, 0.45);
  text-underline-offset: 0.17em;
}

.item-link:hover,
.item-link:focus-visible {
  color: var(--ink);
}

.item-link span {
  display: inline-block;
  margin-left: 0.15rem;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
}

.gift p:not(.item-link) {
  max-width: 32rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

footer {
  padding-top: 2.2rem;
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--accent);
  font-size: 1.35rem;
  font-style: italic;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 1.5rem, 560px);
    padding-top: 2.25rem;
  }

  .gift-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.9rem;
  }

  .gift {
    padding-top: 1.4rem;
  }

  .gift img {
    height: 165px;
  }
}

@media (max-width: 430px) {
  body::before,
  body::after {
    font-size: 6rem;
  }

  .gift-list {
    display: block;
  }

  .gift {
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }

  .gift img {
    height: 220px;
  }
}
