:root {
  --cream: #FEFEFC;
  --sage: #9BA493;
  --olive: #6D733D;
  --olive-dark: #545D1E;
  --anthracite: #3F302B;
  --dove-blue: #7F838B;
  --beige: #CBC5B0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--anthracite);
  font-family: 'Lora', serif;
  font-weight: 400;
  line-height: 1.6;
}

h1, h2 {
  font-family: 'Amatic SC', cursive;
  color: var(--olive-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(3rem, 10vw, 4.5rem);
  text-align: center;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 3rem);
  text-align: center;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--olive);
}

a:hover {
  color: var(--olive-dark);
}

/* Hero */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  z-index: 0;
  padding: 2rem;
}

.hero-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(63, 48, 43, 0.15);
  border-radius: 4px;
}

.hero-spacer {
  height: 100vh;
}

/* Content */

.content {
  position: relative;
  z-index: 1;
  background: var(--cream);
}

.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section.narrow {
  max-width: 560px;
}

.section.center {
  text-align: center;
}

.hero-repeat {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero-repeat .date,
.footer .date {
  text-align: center;
}

.date {
  font-family: 'Lora', serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--olive);
}

/* Divider */

.divider {
  max-width: 200px;
  margin: 0 auto;
  color: var(--beige);
}

.divider svg {
  width: 100%;
  height: 20px;
  display: block;
}

.divider svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Timeline */

.timeline {
  list-style: none;
  max-width: 320px;
  margin: 0 auto;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--beige);
}

.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.5rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -1.9rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--olive);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline .time {
  display: block;
  font-family: 'Amatic SC', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--olive-dark);
  line-height: 1.2;
}

.timeline .event {
  display: block;
  color: var(--anthracite);
}

/* Ceremony contact */

.contact-list a {
  text-decoration: none;
  font-weight: 500;
}

/* Location */

.address {
  text-align: center;
  font-size: 1.1rem;
}

.address-note {
  display: block;
  font-size: 0.85rem;
  color: var(--dove-blue);
}

.map-embed {
  margin-top: 1.5rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--beige);
}

/* Transport */

.transport-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.transport-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 30px;
  color: var(--olive);
}

.transport-icon svg {
  width: 100%;
  height: 100%;
}

.transport-item p {
  margin: 0;
}

.map-figure {
  margin: 2rem 0 0;
}

.map-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--beige);
}

.map-figure figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
}

/* Dresscode */

.dresscode {
  font-family: 'Amatic SC', cursive;
  font-size: 2.5rem;
  color: var(--olive-dark);
  text-align: center;
}

/* Gift */

.envelope-icon {
  display: block;
  width: 110px;
  margin: 0 auto;
  color: var(--olive);
}

.envelope-icon svg {
  width: 100%;
  height: auto;
}

/* Spotify */

.spotify-embed {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7em 1.6em;
  border: 1.5px solid var(--olive);
  border-radius: 999px;
  color: var(--olive-dark);
  text-decoration: none;
  font-family: 'Lora', serif;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--olive);
  color: var(--cream);
}

/* Footer */

.footer {
  position: relative;
  z-index: 1;
  background: var(--sage);
  color: var(--cream);
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
}

.footer p {
  margin: 0 0 0.6em;
}

.footer .date {
  color: var(--cream);
  opacity: 0.85;
}

.footer a {
  color: var(--cream);
  text-decoration: underline;
}

/* Responsive */

@media (min-width: 640px) {
  .section {
    padding: 4rem 2rem;
  }

  .transport-item {
    align-items: center;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 5rem 2rem;
  }
}
