@font-face {
  font-family: "IranSans";
  src: url("./assets/font.woff") format("woff");
}
@font-face {
  font-family: "body";
  src: url("./assets/amiri.woff");
}

@font-face {
  font-family: "IranNastaliq";
  src: url("./assets/IranNastaliq.woff");
}

:root {
  --bg-base: #000000;
  --text: #f8f9fa;
  --muted: #e5e7eb;
  --primary: #ffffff;

  --font-head: "IranNastaliq", "IranSans", sans-serif;
  --font-body: "body", "IranSans", sans-serif;

  --radius: 20px;
  --glass-bg: rgba(0, 0, 0, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-body);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

a {
  color: inherit;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

* {
  font-style: normal;
}

.low-profile-link {
  text-decoration: none;
  color: inherit;
}

.low-profile-link:hover {
  opacity: 0.9;
}

.hidden-icon {
  display: none;
}

.glass-panel,
.section-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
}

@supports not (backdrop-filter: blur(12px)) {
  .glass-panel,
  .section-card {
    background: rgba(0, 0, 0, 0.85);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#app {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  max-width: none;
  padding: 0;
  margin: 0;
}

section,
footer {
  height: 100vh;
  min-height: 600px;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

section::before,
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
}

section > *,
footer > * {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

@media (min-width: 1024px) {
  .hero-slide {
    background-position: center center;
  }
}

@media (min-width: 1440px) {
  .hero-slideshow {
    max-width: 1400px;
    margin: 0 auto;
  }
}

.hero-slide.active {
  opacity: 1;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-meta {
  font-size: 1.3rem;
  font-weight: 400;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#calendar-actions {
  margin-top: 1rem;
  font-size: 1rem;
}

#google-calendar-link {
  color: inherit;
  opacity: 0.8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

#google-calendar-link:hover {
  opacity: 1;
}

.primary-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.location address {
  font-style: normal;
  margin-top: 1rem;
}

#venue-name::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

#maps-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

#schedule-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

#schedule-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
}

#schedule-list li:last-child {
  border-bottom: none;
}

@media (max-width: 640px) {
  #schedule-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    justify-content: flex-start;
  }

  #schedule-list li time,
  #schedule-list li span:first-child {
    flex: 0 0 72px;
    min-width: 72px;
    font-weight: 600;
    white-space: nowrap;
  }

  #schedule-list li span:last-child {
    flex: 1;
    text-align: left;
    word-break: break-word;
  }
}

#rsvp {
  justify-content: flex-start;
  padding-top: clamp(2rem, 8vh, 5rem);
}

#rsvp > * {
  max-width: 800px;
}

#rsvp h2 {
  margin-bottom: 0.25rem;
}

#rsvp p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.form-embed {
  background: #fff;
  border-radius: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  height: auto;
  max-height: 75vh;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.form-embed::-webkit-scrollbar {
  width: 8px;
}

.form-embed::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 12px 12px 0;
}

.form-embed::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

.form-embed::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.form-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 5px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hosted-by {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0;
  opacity: 0.8;
}

.copyright,
.repo-info {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text);
  font-weight: 300;
}

.repo-info {
  margin-top: 0.5rem;
  opacity: 0.8;
}

#footer-text {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-top: 1rem;
}

.audio-fab,
.accessibility-fab {
  position: fixed;
  bottom: 2rem;

  width: 52px;
  height: 52px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) brightness(0.8);
  -webkit-backdrop-filter: blur(12px) brightness(0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.audio-fab svg,
.accessibility-fab svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .audio-fab,
  .accessibility-fab {
    width: 44px;
    height: 44px;
    bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .audio-fab {
    right: 1.25rem;
  }

  .accessibility-fab {
    left: 1.25rem;
  }

  .audio-fab svg,
  .accessibility-fab svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 380px) {
  .audio-fab,
  .accessibility-fab {
    width: 40px;
    height: 40px;
  }
}

.audio-fab {
  right: 2rem;
}

.accessibility-fab {
  left: 2rem;
}

.accessibility-fab.scrolled-out,
#simple-mode-toggle.scrolled-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
}

@media (hover: hover) and (pointer: fine) {
  .audio-fab:hover,
  .accessibility-fab:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }
}

[data-tooltip] {
  position: relative;
}

.audio-fab[data-tooltip],
.accessibility-fab[data-tooltip] {
  position: fixed;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1001;
  font-family: var(--font-body);
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.audio-fab[data-tooltip]::after {
  display: none;
  right: 0;
}

.accessibility-fab[data-tooltip]::after {
  left: 0;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-8px);
}

section > * {
  animation: fadeIn 1s ease-out forwards;
}

section h1 {
  animation-delay: 0.1s;
}

section .subtitle {
  animation-delay: 0.3s;
}

section .hero-meta {
  animation-delay: 0.5s;
}

section .primary-btn {
  animation-delay: 0.7s;
}

footer .footer-logo {
  animation-delay: 0.2s;
}

footer .footer-info {
  animation-delay: 0.4s;
}

.countdown {
  margin-top: 0.6rem;
  padding: 1rem 1.25rem;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.countdown-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(60px, 1fr));
  gap: 1rem;
  text-align: center;
}

.countdown-unit strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.countdown-unit span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .countdown-grid {
    gap: 0.75rem;
  }

  .countdown-unit strong {
    font-size: 1.4rem;
  }

  .event-datetime p {
    margin: 0.1rem 0;
  }
}

@media (max-width: 360px) {
  .countdown-grid {
    grid-template-columns: repeat(4, minmax(48px, 1fr));
    gap: 0.5rem;
  }

  .countdown-unit span {
    font-size: 0.6rem;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
  }
}

.event-datetime {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.event-datetime > div {
  line-height: 1.25;
}

.section h2 + .event-datetime {
  margin-top: -0.75rem;
}

.event-datetime {
  margin-bottom: 0.75rem;
}

.event-datetime > div {
  margin: 0;
}

#quotes-section {
  justify-content: center;
}

.quotes-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.quote-item {
  position: relative;
  padding: 2rem 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 0.75rem;
  font-weight: 300;
}

.quote-author {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  font-style: normal;
  font-weight: 400;
}

.quote-author::before {
  content: "\2014 ";
}

@media (max-width: 640px) {
  .quote-item {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  .quote-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 380px) {
  .quote-item {
    padding: 1.25rem 1rem 1rem;
  }
  .quote-text {
    font-size: 1rem;
  }
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .social-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .social-link svg {
    width: 16px;
    height: 16px;
  }
}

/* ========================================
   MEDIA SECTIONS
   ======================================== */

.media-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  color: #fff;
}

/* Video background */
.section-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  /* Grayscale video */
  filter: grayscale(100%);

  z-index: -3;
}

/* Image background */
.section-image {
  position: absolute;
  inset: 0;

  background-image: url("assets/wedding_photo.jpg");
  background-size: cover;
  background-position: center;

  /* Grayscale image */
  filter: grayscale(100%);

  z-index: -3;
}

/* Dark overlay over media */
.media-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.42);

  z-index: -2;
}

/* Content above video/image */
.section-content {
  position: relative;
  z-index: 1;
}

/* ========================================
   HERO
   ======================================== */

.hero {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}

/* ========================================
   EVENT DETAILS
   ======================================== */

.event-details {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}

/* ========================================
   QUOTES
   ======================================== */

.quotes-section {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 768px) {
  .section-video {
    /*
         * On mobile, video can be cropped more aggressively
         * because of the portrait aspect ratio.
         */
    object-position: center;
  }

  .section-image {
    background-position: center;
  }
}

@font-face {
  font-family: "IranSans";
  src: url("./assets/font.woff") format("woff");
}

@font-face {
  font-family: "body";
  src: url("./assets/amiri.woff");
}

@font-face {
  font-family: "IranNastaliq";
  src: url("./assets/IranNastaliq.woff");
}

:root {
  --bg-base: #000000;
  --text: #f8f9fa;
  --muted: #e5e7eb;
  --primary: #ffffff;

  --font-head: "IranNastaliq", "IranSans", sans-serif;
  --font-body: "body", "IranSans", sans-serif;

  --radius: 20px;
  --glass-bg: rgba(0, 0, 0, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-body);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

p {
  line-height: 1.8;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

a {
  color: inherit;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

.low-profile-link {
  text-decoration: none;
  color: inherit;
}

.low-profile-link:hover {
  opacity: 0.9;
}

.hidden-icon {
  display: none;
}

.glass-panel,
.section-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
}

@supports not (backdrop-filter: blur(12px)) {
  .glass-panel,
  .section-card {
    background: rgba(0, 0, 0, 0.85);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#app {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  max-width: none;
  padding: 0;
  margin: 0;
}

section,
footer {
  height: 100vh;
  min-height: 600px;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

section::before,
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
}

section > *,
footer > * {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

@media (min-width: 1024px) {
  .hero-slide {
    background-position: center center;
  }
}

@media (min-width: 1440px) {
  .hero-slideshow {
    max-width: 1400px;
    margin: 0 auto;
  }
}

.hero-slide.active {
  opacity: 1;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-meta {
  font-size: 1.3rem;
  font-weight: 400;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#calendar-actions {
  margin-top: 1rem;
  font-size: 1rem;
}

#google-calendar-link {
  color: inherit;
  opacity: 0.8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

#google-calendar-link:hover {
  opacity: 1;
}

.primary-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.location address {
  font-style: normal;
  margin-top: 1rem;
}

#venue-name::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

#maps-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  #schedule-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    justify-content: flex-start;
  }

  #schedule-list li time,
  #schedule-list li span:first-child {
    flex: 0 0 72px;
    min-width: 72px;
    font-weight: 600;
    white-space: nowrap;
  }

  #schedule-list li span:last-child {
    flex: 1;
    text-align: left;
    word-break: break-word;
  }
}

#rsvp {
  justify-content: flex-start;
  padding-top: clamp(2rem, 8vh, 5rem);
}

#rsvp > * {
  max-width: 800px;
}

#rsvp h2 {
  margin-bottom: 0.25rem;
}

#rsvp p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.form-embed {
  background: #fff;
  border-radius: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  height: auto;
  max-height: 75vh;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.form-embed::-webkit-scrollbar {
  width: 8px;
}

.form-embed::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 12px 12px 0;
}

.form-embed::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

.form-embed::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.form-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 5px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hosted-by {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0;
  opacity: 0.8;
}

.copyright,
.repo-info {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text);
  font-weight: 300;
}

.repo-info {
  margin-top: 0.5rem;
  opacity: 0.8;
}

#footer-text {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-top: 1rem;
}

.audio-fab,
.accessibility-fab {
  position: fixed;
  bottom: 2rem;

  width: 52px;
  height: 52px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) brightness(0.8);
  -webkit-backdrop-filter: blur(12px) brightness(0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.audio-fab svg,
.accessibility-fab svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .audio-fab,
  .accessibility-fab {
    width: 44px;
    height: 44px;
    bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .audio-fab {
    right: 1.25rem;
  }

  .accessibility-fab {
    left: 1.25rem;
  }

  .audio-fab svg,
  .accessibility-fab svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 380px) {
  .audio-fab,
  .accessibility-fab {
    width: 40px;
    height: 40px;
  }
}

.audio-fab {
  right: 2rem;
}

.accessibility-fab {
  left: 2rem;
}

.accessibility-fab.scrolled-out,
#simple-mode-toggle.scrolled-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
}

@media (hover: hover) and (pointer: fine) {
  .audio-fab:hover,
  .accessibility-fab:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }
}

[data-tooltip] {
  position: relative;
}

.audio-fab[data-tooltip],
.accessibility-fab[data-tooltip] {
  position: fixed;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1001;
  font-family: var(--font-body);
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.audio-fab[data-tooltip]::after {
  display: none;
  right: 0;
}

.accessibility-fab[data-tooltip]::after {
  left: 0;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-8px);
}

section > * {
  animation: fadeIn 1s ease-out forwards;
}

section h1 {
  animation-delay: 0.1s;
}

section .subtitle {
  animation-delay: 0.3s;
}

section .hero-meta {
  animation-delay: 0.5s;
}

section .primary-btn {
  animation-delay: 0.7s;
}

footer .footer-logo {
  animation-delay: 0.2s;
}

footer .footer-info {
  animation-delay: 0.4s;
}

.countdown {
  margin-top: 0.6rem;
  padding: 1rem 1.25rem;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.countdown-label {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(60px, 1fr));
  gap: 1rem;
  text-align: center;
}

.countdown-unit strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.countdown-unit span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .countdown-grid {
    gap: 0.75rem;
  }

  .countdown-unit strong {
    font-size: 1.4rem;
  }

  .event-datetime p {
    margin: 0.1rem 0;
  }
}

@media (max-width: 360px) {
  .countdown-grid {
    grid-template-columns: repeat(4, minmax(48px, 1fr));
    gap: 0.5rem;
  }

  .countdown-unit span {
    font-size: 0.75rem;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
  }
}

.event-datetime {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.event-datetime > div {
  line-height: 1.25;
}

.section h2 + .event-datetime {
  margin-top: -0.75rem;
}

.event-datetime {
  margin-bottom: 0.75rem;
}

.event-datetime > div {
  margin: 0;
}

#quotes-section {
  justify-content: center;
}

.quotes-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.quote-item {
  position: relative;
  padding: 2rem 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 0.75rem;
  font-weight: 300;
}

.quote-author {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  font-style: normal;
  font-weight: 400;
}

.quote-author::before {
  content: "\2014 ";
}

@media (max-width: 640px) {
  .quote-item {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  .quote-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 380px) {
  .quote-item {
    padding: 1.25rem 1rem 1rem;
  }
  .quote-text {
    font-size: 1rem;
  }
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .social-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .social-link svg {
    width: 16px;
    height: 16px;
  }
}

/* ========================================
   MEDIA SECTIONS
   ======================================== */

.media-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  color: #fff;
}

/* Video background */
.section-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  /* Grayscale video */
  filter: grayscale(100%);

  z-index: -3;
}

/* Image background */
.section-image {
  position: absolute;
  inset: 0;

  background-image: url("assets/wedding_photo.jpg");
  background-size: cover;
  background-position: center;

  /* Grayscale image */
  filter: grayscale(100%);

  z-index: -3;
}

/* Dark overlay over media */
.media-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.42);

  z-index: -2;
}

/* Content above video/image */
.section-content {
  position: relative;
  z-index: 1;
}

/* ========================================
   HERO
   ======================================== */

.hero {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}

/* ========================================
   EVENT DETAILS
   ======================================== */

.event-details {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}

/* ========================================
   QUOTES
   ======================================== */

.quotes-section {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 768px) {
  .section-video {
    /*
         * On mobile, video can be cropped more aggressively
         * because of the portrait aspect ratio.
         */
    object-position: center;
  }

  .section-image {
    background-position: center;
  }
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: #111;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.9s ease,
    visibility 0.9s ease;
}

/* -----------------------------------------
   Background
   ----------------------------------------- */

.welcome-backdrop {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.08),
      transparent 55%
    ),
    linear-gradient(rgba(15, 14, 13, 0.72), rgba(15, 14, 13, 0.94));

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Subtle film/grain effect */
.welcome-backdrop::after {
  content: "";

  position: absolute;
  inset: -50%;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");

  opacity: 0.12;
  pointer-events: none;
}

/* -----------------------------------------
   Card
   ----------------------------------------- */

.welcome-card {
  position: relative;
  z-index: 2;

  width: min(90%, 430px);

  padding: 55px 35px 45px;

  text-align: center;

  color: #f4eee5;

  border: 1px solid rgba(220, 190, 140, 0.35);

  background: linear-gradient(
    145deg,
    rgba(35, 33, 30, 0.92),
    rgba(18, 17, 16, 0.96)
  );

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  animation: welcomeCardIn 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Decorative corners */
.welcome-card::before,
.welcome-card::after {
  content: "";

  position: absolute;

  width: 35px;
  height: 35px;

  border-color: rgba(220, 190, 140, 0.55);
  border-style: solid;
}

.welcome-card::before {
  top: 15px;
  right: 15px;

  border-width: 1px 1px 0 0;
}

.welcome-card::after {
  bottom: 15px;
  left: 15px;

  border-width: 0 0 1px 1px;
}

/* -----------------------------------------
   Decoration
   ----------------------------------------- */

.welcome-decoration {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  margin-bottom: 25px;
}

.welcome-decoration span:first-child,
.welcome-decoration span:last-child {
  width: 45px;
  height: 1px;

  background: linear-gradient(to right, transparent, rgba(220, 190, 140, 0.7));
}

.welcome-decoration span:last-child {
  background: linear-gradient(to left, transparent, rgba(220, 190, 140, 0.7));
}

.welcome-decoration span:nth-child(2) {
  color: #d8b77c;

  font-size: 22px;

  line-height: 1;
}

/* -----------------------------------------
   Small title
   ----------------------------------------- */

.welcome-small-title {
  margin: 0 0 10px;

  color: #d8b77c;

  font-family: var(--font-body), sans-serif;

  font-size: 0.9rem;

  letter-spacing: 0.08em;

  opacity: 0.9;
}

/* -----------------------------------------
   Main title
   ----------------------------------------- */

.welcome-title {
  margin: 0;

  color: #f5eee4;

  font-family: var(--font-head), serif;

  font-size: clamp(3rem, 12vw, 4.8rem);

  font-weight: 400;

  line-height: 1.35;

  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

/* -----------------------------------------
   Message
   ----------------------------------------- */

.welcome-message {
  margin: 22px 0 32px;

  color: rgba(245, 238, 228, 0.72);

  font-family: var(--font-body), sans-serif;

  font-size: 0.95rem;

  line-height: 2;
}

/* -----------------------------------------
   Enter button
   ----------------------------------------- */

.welcome-button {
  position: relative;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 18px;

  min-width: 190px;

  padding: 14px 25px;

  border: 1px solid rgba(216, 183, 124, 0.7);

  border-radius: 50px;

  background: transparent;

  color: #ead5ad;

  font-family: var(--font-body), sans-serif;

  font-size: 0.95rem;

  cursor: pointer;

  overflow: hidden;

  transition:
    color 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.welcome-button::before {
  content: "";

  position: absolute;
  inset: 0;

  background: #d8b77c;

  transform: translateX(105%);

  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: -1;
}

.welcome-button:hover {
  color: #1a1816;

  border-color: #d8b77c;

  transform: translateY(-2px);

  box-shadow: 0 10px 30px rgba(216, 183, 124, 0.18);
}

.welcome-button:hover::before {
  transform: translateX(0);
}

.welcome-button:active {
  transform: translateY(0) scale(0.97);
}

.welcome-arrow {
  display: inline-block;

  font-size: 1.2rem;

  transition: transform 0.3s ease;
}

.welcome-button:hover .welcome-arrow {
  transform: translateX(-5px);
}

/* -----------------------------------------
   Bottom decoration
   ----------------------------------------- */

.welcome-decoration.bottom {
  margin-top: 35px;
  margin-bottom: 0;

  opacity: 0.65;
}

/* -----------------------------------------
   Closing animation
   ----------------------------------------- */

.welcome-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;

  pointer-events: none;
}

/* -----------------------------------------
   Card entrance animation
   ----------------------------------------- */

@keyframes welcomeCardIn {
  from {
    opacity: 0;

    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

/* -----------------------------------------
   Mobile
   ----------------------------------------- */

@media (max-width: 600px) {
  .welcome-card {
    width: calc(100% - 35px);

    padding: 45px 25px 38px;
  }

  .welcome-title {
    font-size: 3.4rem;
  }

  .welcome-message {
    font-size: 0.9rem;
  }

  .welcome-button {
    min-width: 180px;
  }
}

/* -----------------------------------------
   Accessibility
   ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .welcome-card {
    animation: none;
  }

  .welcome-overlay,
  .welcome-button,
  .welcome-button::before {
    transition: none;
  }
}
