/* Lake Holly — live view. Dark by default for a night-capable camera feed. */

:root {
  --navy:   #062B45;
  --deeper: #041E30;
  --cream:  #F6E8D2;
  --peach:  #F4BE87;
  --orange: #EE925B;
  --coral:  #EB5F4B;
  --teal:   #48A6C2;

  --brand: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --sans: "Avenir Next", Avenir, Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--deeper);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ── header ───────────────────────────────────────────────────────────────── */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 2rem);
  background: var(--navy);
  border-bottom: 1px solid rgba(72, 166, 194, .22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: inherit;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; }

.brand-name {
  font-family: var(--brand);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bar-right { display: inline-flex; align-items: center; gap: .85rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem .3rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(72, 166, 194, .42);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pill-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.pill[data-state="watching"] { border-color: rgba(235, 95, 75, .6); }
.pill[data-state="watching"] .pill-dot { background: var(--coral); }

.clock {
  font-variant-numeric: tabular-nums;
  font-size: .875rem;
  color: rgba(246, 232, 210, .7);
}

/* ── player ───────────────────────────────────────────────────────────────── */
.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.frame {
  position: relative;
  /* Cap the width by the height that is actually left over, so a 16:9 box
     never grows tall enough to push the footer below the fold. */
  width: min(100%, 1400px, max(320px, calc((100vh - 13rem) * 16 / 9)));
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
}

.player,
.placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, #10516473 0%, transparent 70%),
    var(--navy);
}

.placeholder-mark { width: clamp(64px, 9vw, 88px); height: auto; opacity: .9; }

.placeholder h1 {
  margin: .75rem 0 0;
  font-family: var(--brand);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  letter-spacing: .035em;
}

.placeholder p {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(.9rem, 2vw, 1rem);
  line-height: 1.6;
  color: rgba(246, 232, 210, .7);
}

/* ── footer ───────────────────────────────────────────────────────────────── */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem;
  font-size: .8125rem;
  color: rgba(246, 232, 210, .58);
}

.foot p { margin: 0; }
.foot-links { display: inline-flex; gap: 1.25rem; }

.foot-links a {
  color: rgba(246, 232, 210, .76);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 203, 212, .3);
  padding-bottom: 1px;
}

.foot-links a:hover { color: var(--cream); border-bottom-color: var(--teal); }

a:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── prose (privacy) ──────────────────────────────────────────────────────── */
.prose {
  flex: 1;
  width: 100%;
  max-width: 62ch;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  line-height: 1.65;
}

.prose h1 {
  margin: 0 0 1.5rem;
  font-family: var(--brand);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  letter-spacing: .035em;
}

.prose h2 {
  margin: 2.25rem 0 .6rem;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
}

.prose p { margin: 0 0 1rem; color: rgba(246, 232, 210, .84); }
.prose a { color: var(--teal); }

@media (max-width: 560px) {
  .brand-name { display: none; }
  .stage { padding: 0; }
  .frame { border-radius: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
