* { box-sizing: border-box; }
body { margin: 0; background: #f7f3ee; color: white; font-family: "Avenir Next", Avenir, Arial, sans-serif; }
.hero, .marriage { text-align: center; text-transform: uppercase; background-size: cover; }
.hero {
  min-height: clamp(420px, 45.6vw, 78svh);
  display: grid; align-items: end; justify-items: center;
  padding: 3rem 1rem clamp(4rem, 10vw, 16svh);
  background-image: linear-gradient(0deg, #25192d50, transparent 85%), url(images/pier.jpg);
  background-position: center 53%;
}
h1 { display: inline-block; border: 2px solid; margin: 0; padding: .12em .6em; font-size: clamp(1.7rem, 3.15vw, 4rem); font-weight: 450; letter-spacing: .085em; line-height: 1.35; }
.hero p { margin: .6em 0 0; font-size: clamp(.75rem, 1.35vw, 1.25rem); letter-spacing: .08em; }
.hero div { text-shadow: 0 1px 5px #231725; }
.marriage {
  padding: clamp(2rem, 3vw, 3.6rem) 1rem clamp(2.4rem, 4vw, 5rem);
  background-image: linear-gradient(#30304752, #30304761), url(images/coast.jpg);
  background-position: center 53%;
}
h2 { margin: 0; font-size: clamp(1.15rem, 2.1vw, 2.2rem); letter-spacing: .045em; line-height: 1.25; }
h2::after { content: ""; display: block; width: 3.7em; height: 2px; background: white; margin: .65em auto 1.4em; }
.counter { display: flex; justify-content: center; gap: clamp(.6rem, 2.6vw, 3rem); }
.counter div { font-size: clamp(.64rem, 1.26vw, 1rem); letter-spacing: .1em; }
.counter b { width: clamp(3.6rem, 7.8vw, 7.4rem); aspect-ratio: 1; border: 3px solid white; display: grid; place-items: center; margin: 0 auto .55rem; font-size: clamp(1.6rem, 3.2vw, 3.1rem); font-variant-numeric: tabular-nums; letter-spacing: 0; background: #302b4026; }
[hidden] { display: none; }
footer { padding: 1.5rem 1rem; text-align: center; color: #373137; font-size: .88rem; letter-spacing: .025em; }
a { color: inherit; text-underline-offset: .22em; }
@media (max-width: 580px) {
  .hero { min-height: 62svh; padding-bottom: 10svh; }
  .counter { display: grid; grid-template-columns: repeat(3, minmax(0, 5rem)); gap: 1.2rem .75rem; }
  .counter b { width: 4rem; }
}
