/* Andrea & Mattia — wedding guide, in the same proudly retro universe as the gift list. */
:root {
  --pink-100: #fff0f8;
  --pink-200: #ffd2e9;
  --pink-400: #f16baa;
  --pink-600: #b71969;
  --purple-100: #f2e5ff;
  --purple-500: #7d3cab;
  --purple-800: #55205f;
  --yellow-100: #fffbd0;
  --blue-700: #173b87;
  --white: #ffffff;
  --focus: #113fbd;
  --font-party: "Comic Sans MS", "Chalkboard SE", "Chalkboard", "Marker Felt", sans-serif;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body.home-page {
  margin: 0;
  padding: 20px;
  overflow-x: hidden;
  background-color: #ffccff;
  background-image: url("https://web.archive.org/web/20090829054404im_/http://geocities.com/heartland/park/5765/star.gif");
  color: var(--purple-800);
  font-family: var(--font-party);
  line-height: 1.6;
}

a {
  color: var(--blue-700);
}

a:hover {
  color: var(--pink-600);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--white);
  border: 3px outset var(--pink-400);
  font-weight: bold;
}

.skip-link:focus {
  transform: translateY(0);
}

.home-container {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 5px ridge var(--pink-400);
}

.language-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 14px;
  padding: 10px;
  background: linear-gradient(to right, #ff9dcd, #ce9fff, #9ed6ff);
  border: 3px outset var(--pink-400);
}

.language-bar a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  text-decoration: none;
}

.language-bar a[aria-current="page"] {
  background: var(--yellow-100);
  border: 2px inset var(--pink-400);
}

.welcome-strip {
  overflow: hidden;
  margin: 12px 0 20px;
  padding: 7px 10px;
  background: var(--yellow-100);
  border: 2px dashed var(--pink-400);
  color: var(--pink-600);
  font-weight: bold;
  text-align: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.site-nav a,
.retro-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: linear-gradient(to bottom, #ff7db8, #c72f77);
  border: 3px outset #ffacd3;
  color: var(--white);
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px #7d164b;
}

.site-nav a:hover,
.retro-button:hover {
  background: linear-gradient(to bottom, #a46ddd, #7143a7);
  color: var(--white);
}

.hero {
  text-align: center;
}

.hero h1 {
  margin: 12px auto 8px;
  color: var(--pink-600);
  font-family: var(--font-party);
  font-size: clamp(2.3rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 2px 2px var(--pink-200);
}

.hero h1 span {
  font-size: 0.48em;
  vertical-align: middle;
}

.hero__subtitle {
  margin: 0 auto 22px;
  color: var(--purple-500);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: bold;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(280px, 1.22fr);
  gap: 22px;
  align-items: stretch;
  text-align: left;
}

.hero__photo {
  min-height: 340px;
  margin: 0;
  padding: 8px;
  background: var(--pink-100);
  border: 5px double var(--pink-600);
}

.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: cover;
  object-position: center;
}

.hero__facts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 22px;
  background: var(--purple-100);
  border: 4px ridge #bd85e4;
}

.hero__facts div {
  padding: 12px 0;
  border-bottom: 2px dotted #c470ac;
}

.hero__facts div:last-child {
  border-bottom: 0;
}

.hero__facts dt {
  color: var(--pink-600);
  font-weight: bold;
}

.hero__facts dd {
  margin: 2px 0 0;
  font-size: 1.08rem;
}

.divider {
  margin: 30px 0;
  color: var(--pink-600);
  font-size: 1.3rem;
  text-align: center;
}

.wedding-home section {
  scroll-margin-top: 20px;
}

.section-title {
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 3px dotted #ed87bb;
  color: var(--purple-500);
  font-family: var(--font-party);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  text-wrap: balance;
}

.event-timeline {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 18px;
}

.event-block {
  padding: 20px;
  background: var(--pink-100);
  border: 4px double var(--pink-600);
}

.event-block--wedding {
  background: var(--yellow-100);
  border-style: dashed;
}

.event-block h3 {
  margin: 0 0 10px;
  color: var(--pink-600);
  font-size: 1.35rem;
}

.event-block p {
  margin: 8px 0;
}

.event-block .retro-button {
  margin-top: 10px;
}

.practical-list {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
}

.practical-list article {
  padding: 18px 20px;
}

.practical-list article:first-child {
  background: #eaf5ff;
  border: 4px groove #78a9df;
}

.practical-list article:last-child {
  background: var(--purple-100);
  border: 4px ridge #ae76d4;
}

.practical-list h3,
.dress-code h3,
.madrid-stop h3 {
  margin-top: 0;
  color: var(--pink-600);
}

.plain-list {
  margin: 12px 0 0;
  padding-left: 24px;
}

.plain-list li + li {
  margin-top: 6px;
}

.dress-code {
  padding: 24px;
  background: linear-gradient(135deg, #fff7b8, #ffd4ed 48%, #dfccff);
  border: 5px ridge #ff75b4;
  text-align: center;
}

.dress-code__name {
  display: inline-block;
  margin: 4px 0 10px;
  padding: 5px 10px;
  background: #000080;
  border: 3px outset #d8d8d8;
  color: #ffff00;
  font-family: "Courier New", monospace;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: bold;
}

.dress-code p:last-child {
  max-width: 66ch;
  margin: 0 auto;
}

.madrid-route {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 4px double var(--purple-500);
}

.madrid-stop {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: var(--white);
  border-bottom: 2px dotted #ca93d2;
}

.madrid-stop:nth-child(even) {
  background: var(--pink-100);
}

.madrid-stop:last-child {
  border-bottom: 0;
}

.madrid-stop__emoji {
  font-size: 2rem;
  text-align: center;
}

.madrid-stop h3,
.madrid-stop p {
  margin-bottom: 0;
}

.madrid-stop p {
  margin-top: 4px;
}

.source-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--yellow-100);
  border: 2px dashed var(--pink-400);
  color: var(--purple-800);
  text-align: center;
}

.gift-callout {
  padding: 24px;
  background: var(--pink-100);
  border: 4px double var(--pink-600);
  text-align: center;
}

.gift-callout p {
  max-width: 66ch;
  margin-right: auto;
  margin-left: auto;
}

.contact-section,
.footer {
  text-align: center;
}

.contact-section {
  margin-top: 28px;
  padding: 18px;
  background: var(--yellow-100);
  border: 3px dashed var(--pink-400);
  color: var(--purple-800);
}

.footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 3px dotted #ed87bb;
}

.visitor-counter {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  background: #000;
  color: #76ff52;
  font-family: "Courier New", monospace;
}

@media (max-width: 720px) {
  body.home-page {
    padding: 8px;
  }

  .home-container {
    padding: 14px;
    border-width: 4px;
  }

  .hero__layout,
  .event-timeline,
  .practical-list {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    min-height: 0;
  }

  .hero__photo img {
    max-height: 420px;
  }

  .site-nav a {
    flex: 1 1 42%;
  }
}

@media (max-width: 430px) {
  .site-nav a {
    flex-basis: 100%;
  }

  .madrid-stop {
    grid-template-columns: 1fr;
  }

  .madrid-stop__emoji {
    text-align: left;
  }
}

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

/* The original 2000s skin is loaded only when the flower button enables it. */
html[data-theme="retro"] .retro-only {
  display: inline;
}

html[data-theme="retro"] .topbar {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-theme="retro"] .hero__editorial-title,
html[data-theme="retro"] .hero__date,
html[data-theme="retro"] .hero__art > :not(.hero__retro-photo),
html[data-theme="retro"] .footer > img {
  display: none;
}

html[data-theme="retro"] .mini-mark {
  display: block;
  width: min(270px, calc(100% - 92px));
  margin: 0 auto 14px;
  padding: 8px 14px;
  border: 3px ridge var(--pink-400);
  background: var(--white);
}

html[data-theme="retro"] .mini-mark img {
  width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: center;
}

html[data-theme="retro"] .theme-toggle {
  position: fixed;
  z-index: 50;
  top: 12px;
  right: 12px;
  padding: 8px 12px;
  border: 3px outset #ff99cc;
  background: #ffff99;
  color: #990055;
  font-family: var(--font-party);
}

html[data-theme="retro"] .theme-toggle svg {
  width: 24px;
  fill: #cc0066;
}

html[data-theme="retro"] .welcome-strip {
  display: block;
}

html[data-theme="retro"] .welcome-strip span + span::before {
  content: " 💕 ";
}

html[data-theme="retro"] .hero {
  display: block;
  min-height: 0;
}

html[data-theme="retro"] .hero__copy {
  display: block;
  padding: 0;
}

html[data-theme="retro"] .hero__retro-title {
  display: block;
}

html[data-theme="retro"] .hero__art {
  min-height: 0;
  overflow: visible;
  background: transparent;
}

html[data-theme="retro"] .hero__retro-photo {
  display: block;
}

html[data-theme="retro"] .hero__facts {
  text-align: left;
}

html[data-theme="retro"] .event-section,
html[data-theme="retro"] .madrid-section,
html[data-theme="retro"] .practical-section {
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

html[data-theme="retro"] .section-heading {
  display: block;
  margin: 0 0 18px;
}

html[data-theme="retro"] .section-heading > p {
  max-width: none;
}

html[data-theme="retro"] .section-heading--light .section-title {
  color: var(--purple-500);
}

html[data-theme="retro"] .event-block time {
  display: block;
  padding: 0;
  border: 0;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

html[data-theme="retro"] .event-block time span {
  font: inherit;
}

html[data-theme="retro"] .flower-sketch-divider {
  display: block;
}

html[data-theme="retro"] .flower-sketch-divider::before {
  content: "✨ 💕 ✨ 💕 ✨";
}

html[data-theme="retro"] .flower-sketch-divider > * {
  display: none;
}

html[data-theme="retro"] .flower-sketch {
  display: none;
}

html[data-theme="retro"] .practical-list article {
  padding: 18px 20px;
}

html[data-theme="retro"] .plain-list li {
  display: list-item;
  padding: 0;
  border: 0;
}

html[data-theme="retro"] .plain-list li + li {
  margin-top: 6px;
}

html[data-theme="retro"] .plain-list span {
  display: inline;
}

html[data-theme="retro"] .plain-list strong::after {
  content: ": ";
}

html[data-theme="retro"] .dress-code {
  display: block;
  min-height: 0;
}

html[data-theme="retro"] .dress-copy {
  display: block;
  padding: 0;
}

html[data-theme="retro"] .colour-notes {
  justify-content: center;
  margin: 16px 0 0;
}

html[data-theme="retro"] .colour-notes span {
  border: 3px outset #ffacd3;
  border-radius: 0;
  background: linear-gradient(to bottom, #ff7db8, #c72f77);
  color: var(--white);
  text-shadow: 1px 1px #7d164b;
}

html[data-theme="retro"] .dress-gallery {
  display: block;
  min-height: 0;
  margin-top: 18px;
  padding: 8px;
  background: var(--pink-100);
  border: 4px ridge var(--pink-400);
}

html[data-theme="retro"] .dress-lookbook {
  display: block;
  width: min(100%, 620px);
  margin: 0 auto;
  border: 3px double var(--pink-600);
}

html[data-theme="retro"] .dress-lookbook img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

html[data-theme="retro"] .dress-lookbook figcaption {
  position: static;
  border: 2px outset #ffacd3;
  font-family: var(--font-party);
}

html[data-theme="retro"] .madrid-route {
  grid-template-columns: 1fr;
}

html[data-theme="retro"] .madrid-stop::before {
  margin-bottom: 8px;
  font-family: var(--font-party);
  font-size: 1rem;
}

html[data-theme="retro"] .contact-section {
  display: block;
}

html[data-theme="retro"] .contact-section h2 {
  color: var(--pink-600);
  font-family: var(--font-party);
  font-size: 1.35rem;
}

html[data-theme="retro"] .contact-section address {
  display: block;
  margin-top: 12px;
  border: 0;
}

html[data-theme="retro"] .contact-section address a {
  display: inline;
  min-height: 0;
  border: 0;
}

html[data-theme="retro"] .contact-section address a + a::before {
  content: " · ";
}

html[data-theme="retro"] .contact-section address span::after {
  content: " · ";
}

html[data-theme="retro"] .footer {
  min-height: 0;
}

@media (max-width: 720px) {
  html[data-theme="retro"] .site-nav {
    display: flex;
    width: auto;
    margin: 0 0 24px;
    padding: 0;
    overflow: visible;
    border: 0;
  }

  html[data-theme="retro"] .dress-lookbook {
    width: 100%;
  }
}
