@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
  --ink: #0b0b45;
  --paper: #f7f5f2;
  --cream: #fffdf9;
  --red: #800020;
  --blue: #0b0b45;
  --gold: #aaa9ad;
  --line: rgba(11, 11, 69, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; width: 100%; }

.site-header {
  min-height: 78px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; font-weight: 700; letter-spacing: .15em; }
.wordmark small { font-size: .7rem; color: var(--red); }
nav { display: flex; gap: clamp(.9rem, 2.1vw, 2rem); }
nav a { text-decoration: none; font-weight: 600; font-size: .92rem; }
nav a:hover, nav a:focus-visible { color: var(--red); }

.hero {
  min-height: calc(100vh - 78px);
  padding: clamp(3.5rem, 7vw, 7rem) 5vw;
  display: grid;
  grid-template-columns: minmax(285px, .72fr) minmax(600px, 1.55fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  overflow: hidden;
  position: relative;
}
.eyebrow { margin: 0 0 1.1rem; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--red); }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; margin: 0; line-height: .95; }
h1 { font-size: clamp(3.9rem, 7vw, 7.7rem); letter-spacing: -.055em; }
h1 em { color: var(--blue); font-weight: 700; }
.intro { max-width: 36rem; font-size: clamp(1.1rem, 1.7vw, 1.35rem); margin: 2rem 0; }
.start-link { display: inline-flex; gap: .75rem; align-items: center; font-weight: 700; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .35rem; }

.postcards {
  min-height: 590px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.7rem, 1.3vw, 1.2rem);
  align-items: center;
}
.postcard {
  margin: 0;
  position: relative;
  width: 100%;
  padding: 12px 12px 44px;
  background: var(--cream);
  box-shadow: 0 22px 55px rgba(34, 27, 19, .2);
  transition: transform .35s ease, z-index 0s;
}
.postcard img {
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.card-venice img { object-position: 45% center; }
.postcard figcaption { position: absolute; bottom: 13px; left: 18px; font-family: "Playfair Display", serif; font-style: italic; font-size: .9rem; }
.card-rome { transform: rotate(-4deg) translateY(20px); }
.card-rome img {
  object-position: center 58%;
}
.card-tuscany {
  width: 88%;
  justify-self: center;
  transform: rotate(3deg) translateY(-24px);
}
.card-venice { transform: rotate(1deg) translateY(28px); }
.postcard:hover,
.postcard:focus-within { transform: rotate(0) translateY(-8px); z-index: 10; }
.card-tuscany:hover,
.card-tuscany:focus-within {
  transform: rotate(0) translateY(-20px);
  z-index: 10;
}

.cities { padding: clamp(5rem, 10vw, 9rem) 5vw; background: var(--ink); color: var(--cream); }
.section-heading { display: grid; grid-template-columns: .5fr 1fr 1fr; gap: 2rem; align-items: end; padding-bottom: 3.5rem; }
.section-heading h2, .recipes h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.section-heading > p:last-child { max-width: 36rem; color: rgba(255,250,240,.72); }
.city-grid { border-top: 1px solid rgba(255,255,255,.2); }
.city-card { min-height: 230px; display: grid; grid-template-columns: .5fr 1fr 1fr; gap: 2rem; align-items: center; border-bottom: 1px solid rgba(255,255,255,.2); }
.city-number { font-family: "DM Sans", sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--gold); }
.city-card > div { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; align-items: center; }
.dates { grid-column: 1 / -1; margin: 0; color: rgba(255,250,240,.62); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.city-card h3 { font-size: clamp(3rem, 6vw, 6rem); }
.city-card h3 a { text-decoration: none; }
.city-card h3 a:hover, .city-card h3 a:focus-visible { color: var(--gold); }
.city-card p { max-width: 34rem; }
.status { grid-column: 2; justify-self: start; padding: .45rem .8rem; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; font-size: .78rem; color: rgba(255,250,240,.68); text-decoration: none; }

.trip-recap { padding: clamp(5rem, 9vw, 8rem) 5vw; background: var(--cream); }
.recap-intro { display: grid; grid-template-columns: .5fr 1fr 1fr; gap: 2rem; align-items: start; padding-bottom: 3.5rem; }
.recap-intro h2, .full-album h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.recap-intro > p:last-child { max-width: 39rem; margin: .2rem 0 0; font-size: 1.08rem; }
.recap-rankings { display: grid; grid-template-columns: 1.35fr 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ranking-card { padding: 2.4rem clamp(1.2rem, 2.5vw, 2.5rem); border-left: 1px solid var(--line); }
.ranking-card:first-child { padding-left: 0; border-left: 0; }
.recap-label { margin: 0 0 1.2rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.ranking-card ol { margin: 0; padding: 0; list-style: none; counter-reset: recap-rank; }
.ranking-card li { counter-increment: recap-rank; display: grid; grid-template-columns: 2rem 1fr; gap: .55rem; padding: .42rem 0; }
.ranking-card li::before { content: counter(recap-rank, decimal-leading-zero); color: var(--gold); font-weight: 700; }
.recap-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.recap-notes article { padding: 2.5rem clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--line); }
.recap-notes article:first-child { padding-left: 0; border-left: 0; }
.recap-notes p:last-child { margin: 0; }

.full-album { padding: clamp(4rem, 7vw, 6rem) 5vw; display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 7vw, 7rem); align-items: end; color: var(--cream); background: var(--red); }
.full-album .eyebrow { color: var(--gold); }
.full-album h2 { margin-bottom: 1.25rem; }
.full-album div > p:last-child { max-width: 49rem; margin-bottom: 0; color: rgba(255,255,255,.78); }
.album-link { display: inline-flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; border: 1px solid rgba(255,255,255,.52); color: white; text-decoration: none; font-weight: 700; white-space: nowrap; }
.album-link:hover, .album-link:focus-visible { color: var(--blue); background: var(--cream); }

.recipes { padding: clamp(4rem, 8vw, 7rem) 5vw; display: grid; grid-template-columns: .5fr 1.4fr .6fr; gap: 2rem; align-items: center; border-bottom: 1px solid var(--line); }
.recipes div p { max-width: 37rem; }
.coming-soon { justify-self: end; padding: .85rem 1.2rem; background: var(--red); color: white; font-weight: 700; transform: rotate(-2deg); }
footer { padding: 2.5rem 5vw; display: flex; justify-content: space-between; font-size: .9rem; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; padding-top: 1.1rem; padding-bottom: 1.1rem; gap: 1.5rem; }
  nav { flex-wrap: wrap; justify-content: flex-end; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .postcards { min-height: 610px; margin-top: 1rem; }
  .section-heading { grid-template-columns: 1fr; gap: .7rem; }
  .section-heading h2 { margin-bottom: 1rem; }
  .city-card { grid-template-columns: 4rem 1fr; padding: 2.5rem 0; align-items: start; }
  .city-card > div { grid-column: 2; display: block; }
  .city-card h3 { margin: .35rem 0 1rem; }
  .status { display: inline-block; margin-top: .5rem; }
  .recap-intro { grid-template-columns: 1fr; gap: .7rem; }
  .recap-intro h2 { margin-bottom: 1rem; }
  .recap-rankings { grid-template-columns: 1fr; }
  .ranking-card, .ranking-card:first-child { padding: 2rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .ranking-card:first-child { border-top: 0; }
  .recap-notes { grid-template-columns: 1fr 1fr; }
  .recap-notes article, .recap-notes article:first-child { padding: 2rem; border: 0; border-top: 1px solid var(--line); }
  .recap-notes article:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .full-album { grid-template-columns: 1fr; align-items: start; }
  .album-link { justify-self: start; }
  .recipes { grid-template-columns: 1fr; }
  .coming-soon { justify-self: start; }
}

@media (max-width: 600px) {
  .site-header { min-height: 66px; }
  .wordmark small { display: none; }
  .hero { min-height: auto; padding: 3rem 5vw 5rem; }
  h1 { font-size: clamp(3.3rem, 16vw, 5rem); }
  .postcards { min-height: 460px; display: block; }
  .postcard { position: absolute; width: 58vw; padding: 8px 8px 34px; }
  .postcard img { height: 300px; aspect-ratio: auto; }
  .card-rome { left: -5%; top: 12%; transform: rotate(-6deg); }
  .card-tuscany { left: 22%; top: 0; transform: rotate(4deg); z-index: 2; }
  .card-venice { right: -6%; left: auto; bottom: 0; transform: rotate(1deg); z-index: 3; }
  .city-card { grid-template-columns: 2.5rem 1fr; }
  .recap-notes { grid-template-columns: 1fr; }
  .recap-notes article, .recap-notes article:first-child, .recap-notes article:nth-child(odd) { padding: 1.7rem 0; border-right: 0; }
  footer { flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .postcard { transition: none; }
}
