/* My Gay Dad — Saltmarsh Pictures
   Palette pulled from the poster: pale sky, cloud white, poster indigo, sawgrass, denim. */
:root {
  --sky: #d7e1ec;
  --sky-deep: #bfcddc;
  --cloud: #f4f6f9;
  --indigo: #1d1360;
  --indigo-soft: #3a2f88;
  --sawgrass: #a9955f;
  --denim: #38507f;
  --bandana: #d4877a;
  --ink: #1c1a2e;
  --muted: #5d6273;
  --serif: "Newsreader", "Times New Roman", Georgia, serif;
  --measure: 62ch;
}

/* Bedtime: the whole site goes to night */
body.night {
  --sky: #0e1229;
  --sky-deep: #0a0d1f;
  --cloud: #151a3a;
  --indigo: #e8e4ff;
  --indigo-soft: #cfc7ff;
  --ink: #e6e6f0;
  --muted: #9aa0bb;
  --sawgrass: #c4b07a;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--sky);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s ease, color .6s ease;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

h1,h2,h3 { font-weight: 500; line-height: 1.05; margin: 0; color: var(--indigo); }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.01em; }

/* Masthead */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--sky) 82%, transparent);
  backdrop-filter: blur(10px);
}
.studio { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--indigo); font-size: 1.05rem; user-select: none; }
.studio svg { transition: transform .25s; }
.studio:active svg { transform: translateY(-3px) rotate(-8deg); }
.masthead nav { display: flex; gap: 1.6rem; font-size: 1.02rem; }
.masthead nav a { text-decoration: none; color: var(--ink); opacity: .8; }
.masthead nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .2em; }
.lights { background: none; border: 1px solid color-mix(in srgb, var(--indigo) 35%, transparent); border-radius: 999px; padding: .3rem .75rem .3rem .55rem; display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; font-size: .92rem; color: var(--indigo); }
.lights-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #f5d77a; box-shadow: 0 0 10px #f5d77a; }
body.night .lights-dot { background: #4a4f70; box-shadow: none; }
@media (max-width: 640px) { .masthead nav { display: none; } .studio span { display: none; } }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 20% 0%, var(--cloud) 0%, transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 100%);
}
.hero-copy { max-width: 40rem; position: relative; z-index: 2; }
.presents { margin: 0 0 1.5rem; font-size: 1.05rem; color: var(--muted); font-style: italic; }
.title {
  font-size: clamp(5rem, 12.5vw, 10.5rem);
  line-height: .86;
  letter-spacing: -.035em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--indigo);
  margin-left: -.06em;
}
.tagline { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.25; margin: 1.75rem 0 .75rem; font-style: italic; color: var(--indigo-soft); }
.date-line { margin: 0 0 1.5rem; font-size: 1.1rem; color: var(--muted); }
.date-line strong { color: var(--ink); font-weight: 500; }

.countdown { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); margin-bottom: 2rem; }
.countdown div { display: flex; flex-direction: column; }
.countdown b { font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; color: var(--indigo); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .9rem; color: var(--muted); margin-top: .3rem; }

.button {
  display: inline-block; text-decoration: none;
  background: var(--indigo); color: #fff;
  padding: .85rem 1.5rem; border-radius: 2px;
  font-size: 1.05rem;
}
.button:hover { background: var(--indigo-soft); }
body.night .button { background: var(--indigo); color: var(--sky-deep); }

.poster-wrap { position: relative; margin: 0; justify-self: center; width: min(100%, 26rem); }
.poster { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 30px 60px -20px rgba(29,19,96,.45), 0 2px 4px rgba(29,19,96,.15); }
body.night .poster { filter: brightness(.55) saturate(.7); }
/* The hotspot sits exactly where Wes is pointing: just off the right edge of the poster. */
.hotspot { position: absolute; right: -5%; top: 43%; width: 12%; aspect-ratio: 1; border: 0; background: transparent; cursor: help; border-radius: 50%; }
.hotspot:hover, .hotspot:focus-visible { background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); }

/* Stars, only at night */
.stars { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s; }
body.night .stars { opacity: 1; }
.stars i, .star-btn { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }
.star-btn { pointer-events: auto; width: 14px; height: 14px; border: 0; cursor: pointer; background: #fff8c9; box-shadow: 0 0 12px 3px #fff8c9; }
.stars i:nth-child(odd) { animation: twinkle 3.2s ease-in-out infinite; }
.stars i:nth-child(3n) { animation-delay: 1.1s; }
@keyframes twinkle { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .stars i { animation: none; } }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .poster-wrap { order: -1; width: min(80vw, 22rem); }
  .title { font-size: clamp(4.6rem, 22vw, 7rem); }
}

/* The film */
.film { background: var(--cloud); padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 3rem); }
.film-inner { max-width: var(--measure); margin: 0 auto; }
.lede { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; color: var(--indigo); margin: 0 0 2.5rem; font-weight: 400; }
.synopsis p { font-size: 1.2rem; margin: 0 0 1.25rem; }
.whisper { color: transparent; text-shadow: 0 0 9px color-mix(in srgb, var(--ink) 70%, transparent); cursor: pointer; transition: color .4s, text-shadow .4s; }
.whisper:hover, .whisper:focus-visible, .whisper.revealed { color: var(--indigo); text-shadow: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem 2rem; margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--indigo) 18%, transparent); }
.facts dt { font-style: italic; color: var(--muted); font-size: .98rem; }
.facts dd { margin: .15rem 0 0; font-size: 1.08rem; }

/* Watch */
.watch { padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 3rem); text-align: center; }
.watch-note { max-width: 44ch; margin: 1rem auto 3rem; color: var(--muted); font-size: 1.08rem; }
.phones { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(1.5rem, 4vw, 3.5rem); }
.phone { margin: 0; width: min(100%, 20rem); }
.phone video { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; border-radius: 22px; box-shadow: 0 25px 50px -20px rgba(29,19,96,.5); }
.phone figcaption { display: flex; justify-content: space-between; margin-top: .9rem; font-size: 1rem; color: var(--ink); padding: 0 .25rem; }
.phone figcaption span { color: var(--muted); font-variant-numeric: tabular-nums; }
.more-soon { margin: 3rem 0 0; font-style: italic; color: var(--muted); }

/* Cast */
.cast { background: var(--cloud); padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 3rem); }
.cast h2 { text-align: center; margin-bottom: 3rem; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem 3rem; max-width: 66rem; margin: 0 auto; }
.cast h3 { font-size: 1.7rem; }
.role { margin: .2rem 0 .9rem; font-style: italic; color: var(--muted); }
.cast p { margin: 0; font-size: 1.05rem; }
.crew { padding-top: .35rem; border-top: 1px solid color-mix(in srgb, var(--indigo) 18%, transparent); }
.crew h3 { font-size: 1.1rem; font-style: italic; font-weight: 400; color: var(--muted); margin: .6rem 0; }

/* Laurels */
.laurels { padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 3rem); text-align: center; }
.laurel-list { list-style: none; padding: 0; margin: 0 auto 3.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3.5rem; max-width: 60rem; }
.laurel-list li { display: flex; flex-direction: column; font-size: 1.05rem; color: var(--ink); }
.laurel-list span { font-style: italic; color: var(--sawgrass); font-size: 1rem; }
.laurel-list li::before, .laurel-list li::after { content: ""; display: block; width: 3rem; height: 1px; background: var(--sawgrass); margin: .4rem auto; }
blockquote { margin: 0 auto; max-width: 48ch; }
blockquote p { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; color: var(--indigo); margin: 0 0 1rem; }
blockquote cite { font-style: normal; color: var(--muted); }
blockquote cite i { font-style: italic; }

/* Field notes */
.notes { background: var(--cloud); padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 3rem); }
.notes-head { max-width: var(--measure); margin: 0 auto 2.5rem; }
.notes-head p { font-size: 1.15rem; color: var(--muted); margin: .75rem 0 0; }
.finds { list-style: none; margin: 0 auto; padding: 0; max-width: var(--measure); }
.finds li { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px dashed color-mix(in srgb, var(--indigo) 25%, transparent); font-size: 1.1rem; color: var(--muted); }
.finds li b { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px solid var(--sawgrass); flex: none; position: relative; }
.finds li.found { color: var(--ink); }
.finds li.found b { background: var(--bandana); border-color: var(--bandana); }
.finds li.found b::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.finds-count { max-width: var(--measure); margin: 1.25rem auto 0; font-style: italic; color: var(--muted); }

.unlock { max-width: var(--measure); margin: 3rem auto 0; }
.unlock h3 { font-size: 2rem; }
.unlock p { font-size: 1.15rem; }
.pass {
  margin-top: 1.5rem; display: grid; gap: .3rem;
  padding: 1.5rem 1.75rem; border-radius: 4px;
  background: var(--indigo); color: #fff;
  box-shadow: 0 30px 60px -25px rgba(29,19,96,.6);
  background-image: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.06) 22px 23px);
}
body.night .pass { color: var(--sky-deep); }
.pass-title { text-transform: uppercase; letter-spacing: -.02em; font-size: 2rem; line-height: 1; }
.pass-sub { font-style: italic; opacity: .85; }
.pass-code { font-size: 1.6rem; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.pass-fine { font-size: .9rem; opacity: .75; margin-top: .75rem; }

/* Footer */
.foot { padding: 3rem clamp(1rem, 4vw, 3rem) 4rem; }
.foot-inner { max-width: 66rem; margin: 0 auto; display: grid; gap: 1rem; }
.foot-studio { display: inline-flex; align-items: center; gap: .5rem; color: var(--indigo); margin: 0; font-size: 1.1rem; }
.foot-links { display: flex; gap: 1.75rem; margin: 0; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { margin: 0; font-size: .9rem; color: var(--muted); }
.psst { opacity: 0; transition: opacity 1.2s; }
.psst.show { opacity: 1; }
.psst a { color: var(--indigo); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); background: var(--indigo); color: #fff; padding: .7rem 1.1rem; border-radius: 3px; font-size: 1rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 30; max-width: min(90vw, 34rem); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
body.night .toast { color: var(--sky-deep); }

/* Sub pages */
.page { max-width: var(--measure); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem) 6rem; }
.page h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.6rem; margin: 3rem 0 1rem; }
.page p, .page li { font-size: 1.12rem; }
.page .kicker { font-style: italic; color: var(--muted); margin: 0 0 .5rem; }
.downloads { list-style: none; padding: 0; margin: 0; }
.downloads li { padding: .75rem 0; border-bottom: 1px dashed color-mix(in srgb, var(--indigo) 25%, transparent); display: flex; justify-content: space-between; gap: 1rem; }
.downloads a { color: var(--indigo); }
.downloads span { color: var(--muted); font-size: 1rem; }
