/* The Appointment official site
   Mobile-first layout. The phone version intentionally shows the full poster image.
*/

:root {
  --black: #000;
  --white: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.72);
  --red: #b00000;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  overflow-x: hidden;
}

.site-shell {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 38%, rgba(120,0,0,.12), rgba(0,0,0,0) 40%),
    #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
}

/* MOBILE-FIRST NAV */
.top-nav {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 13px;
  padding: 2px 0 12px;
  z-index: 5;
}

.top-nav a {
  color: rgba(255,255,255,.95);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .13em;
  line-height: 1;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  text-shadow: 0 2px 12px rgba(0,0,0,.95);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-bottom-color: rgba(255,255,255,.72);
}

/* MOBILE POSTER: no crop */
.hero {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero picture {
  width: 100%;
  display: block;
}

.poster {
  width: 100%;
  height: auto;
  max-height: 58svh;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: contrast(1.04) brightness(.95);
}

.desktop-vignette,
.desktop-copy {
  display: none;
}

.mobile-copy {
  width: 100%;
  max-width: 520px;
  margin: 14px auto 0;
  padding: 0 8px;
  text-align: center;
}

.mobile-copy p,
.desktop-copy p {
  margin: 0;
  color: rgba(255,255,255,.94);
  font-size: clamp(15px, 4vw, 19px);
  line-height: 1.38;
  text-shadow: 0 2px 14px rgba(0,0,0,.98);
}

.audio-controls {
  width: 100%;
  max-width: 520px;
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.site-button,
.home-button {
  display: inline-block;
  background: rgba(0,0,0,.58);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  line-height: 1;
  padding: 13px 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background .22s ease, border-color .22s ease, opacity .22s ease;
}

.site-button:hover,
.site-button:focus-visible,
.home-button:hover,
.home-button:focus-visible {
  background: rgba(85,0,0,.45);
  border-color: rgba(176,0,0,.78);
}

.site-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.footer {
  width: 100%;
  max-width: 520px;
  margin: auto auto 0;
  padding-top: 18px;
  text-align: center;
  color: rgba(255,255,255,.74);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer a {
  color: rgba(255,255,255,.82);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* COMING SOON PAGE */
.coming-soon-body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(130,0,0,.2), rgba(0,0,0,0) 42%),
    #000;
}

.coming-soon-page {
  width: min(92vw, 980px);
  text-align: center;
  padding: 34px 18px;
}

.coming-soon-page h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  color: var(--red);
  text-transform: uppercase;
  font-size: clamp(52px, 16vw, 150px);
  line-height: .86;
  letter-spacing: .03em;
  text-shadow: 0 2px 0 #5a0000, 0 10px 34px rgba(150,0,0,.5);
}

.coming-soon-page p {
  margin: 24px 0 34px;
  color: rgba(255,255,255,.88);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: clamp(15px, 3.8vw, 24px);
}

/* SMALL PHONES */
@media (max-width: 390px) {
  .top-nav {
    gap: 7px 10px;
  }

  .top-nav a {
    font-size: 9px;
    letter-spacing: .11em;
  }

  .poster {
    max-height: 54svh;
  }

  .mobile-copy p {
    font-size: 14px;
  }

  .audio-controls {
    gap: 8px;
  }

  .site-button {
    padding: 12px 12px;
    font-size: 9px;
    letter-spacing: .18em;
  }
}

/* DESKTOP ENHANCEMENT */
@media (min-width: 901px) {
  .site-shell {
    display: block;
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 720px;
    padding: 0;
    overflow: hidden;
  }

  .top-nav {
    position: fixed;
    top: 24px;
    right: 28px;
    width: auto;
    max-width: none;
    justify-content: flex-end;
    gap: 18px;
    padding: 0;
    z-index: 8;
  }

  .top-nav a {
    font-size: 12px;
    letter-spacing: .18em;
    padding: 10px 0;
  }

  .hero {
    position: absolute;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    margin: 0;
    overflow: hidden;
  }

  .hero picture {
    width: 100%;
    height: 100%;
  }

  .poster {
    width: 100vw;
    height: 100vh;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    animation: slowBreath 18s ease-in-out infinite;
  }

  .desktop-vignette {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 58% 46%, rgba(0,0,0,0) 26%, rgba(0,0,0,.34) 72%, rgba(0,0,0,.9) 100%),
      linear-gradient(to bottom, rgba(0,0,0,.24), rgba(0,0,0,.12) 48%, rgba(0,0,0,.62));
  }

  .mobile-copy {
    display: none;
  }

  .desktop-copy {
    display: block;
    position: fixed;
    z-index: 7;
    left: 34px;
    bottom: 94px;
    max-width: 460px;
  }

  .desktop-copy p {
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.35;
    letter-spacing: .02em;
  }

  .audio-controls {
    position: fixed;
    z-index: 9;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: auto;
    max-width: none;
    margin: 0;
  }

  .footer {
    position: fixed;
    z-index: 9;
    left: 24px;
    bottom: 24px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 11px;
    letter-spacing: .16em;
  }
}

@keyframes slowBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}
