:root {
  --cream: #fbf7f0;
  --milk: #fffdf9;
  --bear: #ad7449;
  --bear-dark: #927b67;
  --cocoa: #3a271d;
  --blue: #c9ddeb;
  --blue-deep: #3f6f8d;
  --sage: #9fb39a;
  --rose: #d9a7a2;
  --line: rgba(110, 74, 51, 0.18);
  --shadow: 0 20px 45px rgba(83, 53, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(127, 158, 179, 0.36) 0 12px,
      rgba(255, 253, 249, 0.92) 12px 25px
    );
  color: var(--cocoa);
  font-family: "Nunito", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bear-dark);
  font-weight: 800;
  text-decoration: none;
}

.bear-mark {
  position: relative;
  width: 34px;
  height: 30px;
  border-radius: 50% 50% 46% 46%;
  background: var(--bear);
  box-shadow: inset 0 -4px 0 rgba(110, 74, 51, 0.12);
}

.bear-mark::before,
.bear-mark::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bear);
}

.bear-mark::before {
  left: -4px;
}

.bear-mark::after {
  right: -4px;
}

.nav-toggle {
  display: inline-grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  place-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--bear-dark);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  display: none;
  margin: 0;
  padding: 12px 18px 18px;
  list-style: none;
  background: var(--milk);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nav-menu.is-open {
  display: grid;
}

.nav-menu a {
  display: block;
  padding: 13px 0;
  color: var(--bear-dark);
  font-weight: 800;
  text-decoration: none;
}

.section {
  scroll-margin-top: 88px;
  padding: 46px 18px;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 28px;
  min-height: calc(100vh - 72px);
  align-items: center;
  background:
    linear-gradient(rgba(255, 253, 249, 0.74), rgba(255, 253, 249, 0.74)),
    repeating-linear-gradient(
      90deg,
      rgba(127, 158, 179, 0.38) 0 12px,
      rgba(255, 253, 249, 0.9) 12px 25px
    );
  align-items: center;
  justify-content: center;
}

.hero-media {
  order: 2;
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-track {
  display: flex;
  transition: transform 320ms ease;
}

.hero-slide {
  flex: 0 0 100%;
  margin: 0;
}

.hero-slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.carousel-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.carousel-btn,
.carousel-dot {
  border: 1px solid rgba(107, 66, 40, 0.2);
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 8px 20px rgba(58, 39, 29, 0.12);
  cursor: pointer;
}

.carousel-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--bear-dark);
  border-radius: 50%;
  font-size: 1.9rem;
  line-height: 1;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: rgba(255, 253, 249, 0.74);
  border-radius: 999px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
}

.carousel-dot.is-active {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.hero-content {
  max-width: 470px;
  min-height: 620px;
  padding: 42px 22px 30px;
  background: rgba(255, 253, 249, 0.88);
  border: 2px solid rgba(127, 158, 179, 0.58);
  border-radius: 240px 240px 10px 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--bear-dark);
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--blue-deep);
  font-size: clamp(2.8rem, 12vw, 5.2rem);
}

h2 {
  margin-bottom: 18px;
  color: var(--blue-deep);
  font-size: clamp(3rem, 12vw, 5rem);
}

h3 {
  margin-bottom: 8px;
  color: var(--bear-dark);
  font-size: 1.1rem;
  line-height: 1.2;
}

.hero-copy {
  margin-inline: auto;
  max-width: 560px;
  font-size: 1.08rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 560px;
  margin: 26px auto 0;
}

.countdown div {
  min-width: 0;
  padding: 12px 4px;
  text-align: center;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(83, 53, 36, 0.08);
}

.countdown span {
  display: block;
  color: var(--bear-dark);
  font-size: clamp(1.35rem, 9vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.countdown small {
  color: var(--blue-deep);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.soft-band {
  background: rgba(251, 247, 240, 0.92);
}

.blue-band {
  background: rgba(232, 245, 251, 0.92);
}

.two-column {
  display: grid;
  gap: 28px;
  align-items: center;
}

.rounded-image,
.photo-strip img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.rounded-image {
  aspect-ratio: 1.1 / 1;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 28px;
}

.venue-grid,
.attire-grid {
  display: grid;
  gap: 16px;
}

.info-panel {
  padding: 22px;
  background: var(--milk);
  border: 1px solid rgba(107, 66, 40, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(83, 53, 36, 0.08);
}

.text-link {
  color: var(--blue-deep);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.photo-strip {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.photo-strip img,
.pin-embed {
  aspect-ratio: 4 / 3;
}

.pin-embed {
  display: grid;
  width: 100%;
  min-height: 0;
  place-items: center;
  /* padding: 14px; */
  background: var(--milk);
  /* border: 1px solid rgba(107, 66, 40, 0.18); */
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pin-embed > span,
.pin-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
}

.check-list,
.x-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.x-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before,
.x-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
}

.check-list li::before {
  content: "+";
  color: var(--sage);
}

.x-list li::before {
  content: "x";
  color: var(--rose);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: var(--milk);
  border: 1px solid rgba(79, 143, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(54, 108, 138, 0.08);
}

.timeline time {
  color: var(--blue-deep);
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
}

.registry-wrap {
  max-width: 760px;
  padding: 34px 20px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(107, 66, 40, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 22px;
  color: white;
  background: var(--bear-dark);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.button:hover,
.button:focus-visible,
.nav-menu a:hover,
.nav-menu a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--blue-deep);
}

.button:hover,
.button:focus-visible {
  color: white;
  background: var(--cocoa);
}

.site-footer {
  padding: 28px 18px;
  text-align: center;
  color: var(--bear-dark);
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

@media (min-width: 800px) {
  /* .venue-grid,
  .attire-grid,
  .photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-strip img:first-child {
    grid-column: span 2;
  }

  .timeline li {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

@media (min-width: 880px) { */
  .countdown {
    gap: 10px;
  }

  .countdown div {
    padding: 16px 12px;
  }

  .countdown small {
    font-size: 0.72rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-menu a {
    padding: 8px 0;
  }

  .hero {
    grid-template-columns: minmax(0, 460px) minmax(430px, 560px);
    justify-content: center;
    gap: 34px;
    min-height: calc(100vh - 72px);
    padding-block: 32px;
    padding-inline: max(28px, calc((100vw - 1160px) / 2));
  }

  .hero-content {
    max-width: 460px;
    min-height: min(720px, calc(100vh - 136px));
    padding: 82px 34px 42px;
  }

  .hero-content h1 {
    font-size: clamp(3.25rem, 5vw, 4.15rem);
  }

  .hero-media {
    order: initial;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .hero-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 200px);
    gap: 14px;
    transform: none;
  }

  .hero-slide {
    min-height: 0;
    border: 7px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .hero-slide:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .hero-slide:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-slide:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .hero-slide:nth-child(4) {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .hero-slide img {
    height: 100%;
    aspect-ratio: auto;
  }

  .carousel-controls {
    display: none;
  }

  .hero-content {
    order: -1;
  }

  .two-column {
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
    gap: 58px;
  }

  .venue-grid,
  .attire-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0;
  }

  .photo-strip img:first-child {
    grid-column: auto;
  }
}

@media (min-width: 500px) and (max-width: 1199px) {
  .hero {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
    gap: 28px;
  }

  .hero-content {
    order: 0;
    justify-self: center;
  }

  .hero-media {
    order: 1;
    width: min(100%, 560px);
    margin: 0 auto;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .hero-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 170px);
    gap: 14px;
    transform: none;
  }

  .hero-slide {
    min-height: 0;
    border: 7px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .hero-slide:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .hero-slide:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-slide:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .hero-slide:nth-child(4) {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .hero-slide img {
    height: 100%;
    aspect-ratio: auto;
  }

  .carousel-controls {
    display: none;
  }
}
