@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Dancing+Script:wght@400;500&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #b8c4a4;
  --text: #3a3a33;
  --text-light: #5a5a52;
  --accent: #4a5240;
}

html {
  font-size: 18px;
  min-height: 100%;
}

body {
  min-height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
}

/* ── Navigation ── */
nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 1rem 1.5rem;
}

nav a {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.6;
}

nav a.active {
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

/* ── Page wrapper ── */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── Hero (index) ── */
.hero {
  text-align: center;
  padding: 5rem 2rem 6rem;
  max-width: 860px;
  margin: 0 auto;
}

.hero-names {
  font-family: "Dancing Script", cursive;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.hero-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.hero-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-image {
  background-color: rgba(58, 58, 51, 0.08);
  aspect-ratio: 3 / 4;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.hero-nav a {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(58, 58, 51, 0.3);
  padding-bottom: 3px;
  transition:
    opacity 0.2s,
    border-color 0.2s;
}

.hero-nav a:hover {
  opacity: 0.6;
  border-color: transparent;
}

@media (max-width: 640px) {
  .hero-lower {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Inner pages ── */
.page-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.page-header .site-name {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  display: block;
  margin-bottom: 0.3rem;
  text-decoration: none;
}

.page-header .site-name:hover {
  opacity: 0.7;
}

.page-header .site-date {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-light);
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text);
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.8rem;
  margin-top: 2.5rem;
}

h2:first-of-type {
  margin-top: 0;
}

p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}

/* ── Program timeline ── */
.timeline {
  list-style: none;
  margin-top: 0.5rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(58, 58, 51, 0.12);
  align-items: baseline;
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline .time {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  font-style: normal;
}

.timeline .event {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
}

.timeline .nb {
  display: block;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}

.timeline .event small {
  display: block;
  font-size: 0.88rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}

/* ── Wish list ── */
.wish-list {
  list-style: none;
}

.wish-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(58, 58, 51, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.wish-list li:last-child {
  border-bottom: none;
}

.wish-list .wish-name {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
}

.wish-list .wish-link {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 58, 51, 0.25);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.wish-list .wish-link:hover {
  opacity: 0.5;
}

/* ── Image pair ── */
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.image-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ── Inline text link ── */
.text-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 58, 51, 0.4);
  padding-bottom: 1px;
  font-style: italic;
  transition: opacity 0.2s;
}

.text-link:hover {
  opacity: 0.5;
}

/* ── Divider ── */
.divider {
  text-align: center;
  margin: 2.5rem 0;
  color: rgba(58, 58, 51, 0.3);
  font-size: 1rem;
  letter-spacing: 0.4em;
}

/* ── Info section ── */
.info-block {
  margin-bottom: 2rem;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  nav {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

.timeline li {
    grid-template-columns: 4rem 1fr;
  }
}
