/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

@font-face {
  font-family: "ppmori";
  src: url("../fonts/PPMori-Regular.woff2") format('woff2');
}

@font-face {
  font-family: "ppmori";
  src: url("../fonts/PPMori-SemiBold.woff2") format('woff2');
  font-weight: bold;
}

@font-face {
  font-family: "ppmori";
  src: url("../fonts/PPMori-SemiBoldItalic.woff2") format('woff2');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "ppmori";
  src: url("../fonts/PPMori-RegularItalic.woff2") format('woff2');
  font-style: italic;
}

body {
  margin: 0;
  padding: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

#wrapper {
  display: flex;
  justify-content: center;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  flex-direction: column;
  padding-bottom: 2rem;
}

#container {
  flex: 1;
  display: flex;
  margin-left: 1rem;
  margin-right: 1rem;
  width: 100%;
  max-width: 50rem;
  flex-direction: column;
  align-self: center;
}


#hero-names,
#main-title {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

#hero-names {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(1.5rem, 3vh, 2.5rem) 0 clamp(2rem, 5vh, 3rem);
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100vh;
}

.hero-names-text {
  margin: 0;
  white-space: pre;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08em;
  font-size: clamp(4.4rem, 13.5vw, 14rem);
  font-weight: 900;
  color: rgba(150, 150, 150, 0.28);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.05em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 3px rgba(180, 180, 180, 0.22);
  filter: blur(1.4px);
  user-select: none;
  pointer-events: none;
}

#hero-names .arrow-down-absolute {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  margin-top: clamp(0.75rem, 2.2vh, 1.5rem);
}

.hero-names-plus {
  font-size: 0.72em;
  font-weight: 900;
  line-height: 0.7;
}

.section {
  min-height: 100svh; /* Better mobile viewport behavior */
  min-height: 100dvh; /* Dynamic viewport for Android/iOS browser UI */
  min-height: 100vh; /* Ensure the section is at least as tall as the viewport */
  height: auto; /* Allow the section to grow taller if content overflows */
  position: relative; /* Ensure the parent container is positioned */
}

#logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  max-width: 100%;
  transform: none;
  position: relative;
  z-index: 1;
}

#logo-container p {
  margin: 0;
  max-width: 42rem;
}

.intro-greeting {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 1.15rem;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-weight: 600;
}

.intro-heart {
  color: #c01f1f;
  font-weight: 700;
}

#logo {
  width: 100%;
  max-width: 30rem; /* Ensure the image scales within the container */
  max-height: 30rem; /* Ensure the image respects the container's height */
  height: auto; /* Maintain aspect ratio */
}

.lineup {
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
}

.google-map > iframe {
  width: 100%;
  height: 350px; /* Set a fixed height for the map */
  border: none; /* Remove default border */
}

.wedding-map {
  margin-bottom: 1.5rem;
}

.map-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.calendar-button-row {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.25rem;
}

.arrow-down-absolute {
  position: absolute;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  bottom: 1.75rem;
  background-color: transparent;
  border: none;
  padding: 0;
  display: block;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.chevron {
  width: clamp(56px, 7vw, 136px);
  height: clamp(56px, 7vw, 136px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(150, 150, 150, 0.52);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: clamp(3.2rem, 5.8vw, 8rem);
  font-weight: 700;
  line-height: 1;
  filter: blur(1.6px);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.chevron::before {
  content: "\2193";
}

.arrow-down-absolute:active {
  transform: translate3d(-50%, 0, 0);
}

.arrow-down-secondary .chevron {
  color: #000000;
  filter: none;
}

h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-weight: 600;
}

h1, h2 {
  text-align: center;
}

.event-title {
  margin-top: 0;
  font-weight: bold;
  line-height: 1.4;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin-top: 0.5rem;
  list-style: none;
  padding-left: 0;
  text-indent: 0;
}

.faq-list li {
  margin-top: 1.25rem;
}

.parking-note {
  margin-bottom: 1.4rem;
}

.parking-note + p,
.parking-note + .map-links {
  margin-top: 0;
}

.arrow-down-block {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  padding: 0.5rem;
  background-color: #f5f5f5;
}

.section-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.section-arrow {
  height: 4rem;
  display: none;
  justify-content: center;
  align-items: center;
}
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
  .section-arrow {
    display: flex;
  }

  .h3 {
    margin-top: 3rem;
  }
}

@media only screen and (max-width: 35em) {
  #hero-names,
  #main-title {
    padding-bottom: max(4.5rem, calc(env(safe-area-inset-bottom) + 4rem));
    box-sizing: border-box;
  }

  #hero-names {
    padding-bottom: 0;
  }

  .hero-names-text {
    font-size: clamp(4.2rem, 22vw, 9rem);
    filter: blur(1.9px);
    color: rgba(150, 150, 150, 0.24);
    transform: translateY(-5vh);
  }

  .arrow-down-absolute {
    bottom: max(5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
  }

  .arrow-down-secondary {
    bottom: max(7.25rem, calc(env(safe-area-inset-bottom) + 6.75rem));
  }

  #hero-names .arrow-down-absolute {
    position: absolute;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    bottom: max(7.25rem, calc(env(safe-area-inset-bottom) + 6.75rem));
    margin: 0;
  }

  #logo-container {
    padding: 1.25rem;
    transform: translateY(-4vh);
  }
}

@supports (-webkit-touch-callout: none) {
  @media only screen and (max-width: 35em) {
    #hero-names {
      padding-bottom: 0;
    }

    .hero-names-text {
      transform: translateY(-7vh);
    }

    #hero-names .arrow-down-absolute {
      bottom: max(8.5rem, calc(env(safe-area-inset-bottom) + 8rem));
    }

    .arrow-down-secondary {
      bottom: max(8.5rem, calc(env(safe-area-inset-bottom) + 8rem));
    }
  }
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
