/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
  font-family: "Moderno FB";
  src: url("fonts/ModernoFBCondensed/ModernoFBCondLight.woff2") format("woff2"),
       url("fonts/ModernoFBCondensed/ModernoFBCondLight.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham News";
  src: url("fonts/Gotham Narrow/GothamNarrowNews.woff2") format("woff2"),
       url("fonts/Gotham Narrow/GothamNarrowNews.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Narrow";
  src: url("fonts/Gotham Narrow/GothamNarrowBook.woff2") format("woff2"),
       url("fonts/Gotham Narrow/GothamNarrowBook.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Narrow";
  src: url("fonts/Gotham Narrow/GothamNarrowMedium.woff2") format("woff2"),
       url("fonts/Gotham Narrow/GothamNarrowMedium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Narrow";
  src: url("fonts/Gotham Narrow/GothamNarrowBold.woff2") format("woff2"),
       url("fonts/Gotham Narrow/GothamNarrowBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   Base (mobile first)
   ========================================================================== */


html {
  background-color: #000;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: "Gotham Narrow", "Gotham News", "Gotham", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-synthesis: none;
}

h1, h2 {
  font-family: "Moderno FB", "Bodoni 72", "Bodoni MT", Didot, "Didot LT STD", "Times New Roman", Georgia, serif;
}

h1, h3 {
  font-weight: normal;
}


/* Main section ------------------------------------------------------------ */

#main-uc {
  width: 100%;
  height: 100vh;
  /* Largest viewport: extends under the iOS Safari bars */
  height: 100lvh;
  background-image: url("orafol-uc-hero-mobile.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}


/* Header ------------------------------------------------------------------ */

header {
  width: 100%;
  padding-top: 10%;
  display: flex;
  justify-content: center;
}

.logo img {
  max-width: 240px;
  height: auto;
}


/* Headline ---------------------------------------------------------------- */

.coming-soon {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

h1 {
  margin: 0;
  padding: 0 30px;
  font-size: clamp(40px, 15.385vw, 80px);
  line-height: 0.9;
}


h3 {
  margin: auto 0;
  padding: 0 24px;
  text-align: center;
  font-size: clamp(18px, 1.510vw, 29px);
}


.br-desktop {
  display: none;
}


/* Countdown --------------------------------------------------------------- */

.countdown {
  text-align: center;

  margin-top: 0;
  margin-bottom: auto;
}

.countdown-label {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 20px;
}

.countdown-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  padding: 0.5em 0.85em;
  border: 2px solid white;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}


.countdown-timer > span {
  text-box: trim-both cap alphabetic;
}


@supports not (text-box: trim-both cap alphabetic) {
  .countdown-timer {
    padding: 0.4em 0.85em 0.3em;
  }
}


/* Footer ------------------------------------------------------------------ */

footer {
  margin-bottom: 2.5%;
  margin-bottom: calc(2.5% + (100lvh - 100dvh) + env(safe-area-inset-bottom, 0px));
  padding: 0 24px;
  text-align: center;
}

footer p {
  margin: 0;
}

.disclaimer {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.85;
}

.disclaimer sup {
  font-size: 0.9em;
  line-height: 0;
}

/* Line breaks only on wider screens, text wraps freely on mobile */
.disclaimer br {
  display: none;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.copyright {
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease-in-out;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #E0CAA4;
}


/* ==========================================================================
   Tablet and up (744px = iPad mini portrait)
   ========================================================================== */

@media (min-width: 744px) {
  #main-uc {
    background-image: url("orafol-uc-hero.webp");
  }

  header {
    padding-top: 6%;
  }

  .coming-soon {
    margin-top: 7%;
  }

  /* 118px at 1920px wide (118 / 1920 x 100 = 6.146vw) */
  h1 {
    margin-bottom: 2.3%;
    font-size: clamp(40px, 6.146vw, 118px);
  }

  /* Directly under the h1 */
  h3 {
    margin: 0;
  }

  .br-desktop {
    display: inline;
  }

  .br-mobile {
    display: none;
  }

  /* Centered vertically between the h3 and the footer */
  .countdown {
    margin-top: auto;
  }

  /* Scales to 26px label and 40px digits at 1920px */
  .countdown-label {
    font-size: clamp(20px, 1.354vw, 26px);
    margin-bottom: clamp(16px, 1.25vw, 24px);
  }

  .countdown-timer {
    font-size: clamp(30px, 2.083vw, 40px);
  }

  footer {
    padding: 0 3%;
    text-align: left;
  }

  .disclaimer {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    font-size: 13px;
  }

  .disclaimer br {
    display: inline;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 28px;
  }

  .copyright,
  .footer-links a {
    font-size: 17px;
  }

  .footer-links {
    gap: 40px;
  }
}


/* Logo on large screens ------------------------------------------------------ */

@media (min-width: 1200px) {
  .logo img {
    max-width: 310px;
  }
}

@media (min-width: 1400px) {
  .logo img {
    max-width: 350px;
  }
}

@media (min-width: 1900px) {
  .logo img {
    max-width: 100%;
  }
}


/* ==========================================================================
   Special cases (order matters: these override the rules above)
   ========================================================================== */

/* Short laptop screens: less space above the headline */
@media (min-width: 744px) and (max-height: 799px) {
  .coming-soon {
    margin-top: 5.5%;
  }
}

/* Narrow tablets (iPad mini portrait): tighter footer row so it fits on one line */
@media (min-width: 744px) and (max-width: 819px) {
  .copyright,
  .footer-links a {
    font-size: 15px;
  }

  .footer-links {
    gap: 24px;
  }
}

/* iPads (mini, 11", 13"): center the h1 + h3 block between the logo and the countdown.
*/
@media (min-width: 744px) and (max-width: 1032px) and (orientation: portrait),
       (min-width: 1133px) and (max-width: 1376px) and (min-height: 600px) and (max-aspect-ratio: 9/5) {
  .coming-soon {
    margin-top: auto;
  }

  h3 {
    margin-bottom: 8%;
  }

  .countdown {
    margin-top: 0;
  }
}

/* Phones in landscape: content is taller than the screen, so allow scrolling */
@media (orientation: landscape) and (max-height: 500px) {
  html {
    overflow: auto;
    overscroll-behavior: auto;
  }

  #main-uc {
    height: auto;
    min-height: 100lvh;
  }

  .coming-soon {
    margin-top: 32px;
  }

  /* Keep the headline clear of the notch / Dynamic Island */
  h1 {
    padding-left: max(30px, env(safe-area-inset-left));
    padding-right: max(30px, env(safe-area-inset-right));
  }

  .countdown {
    padding: 40px 0;
  }

  footer {
    margin-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    padding-left: max(3%, env(safe-area-inset-left));
    padding-right: max(3%, env(safe-area-inset-right));
  }
}
