/* Half Past Sunset: shared styles for the public page and the EPK. */

:root {
  --night: #170f2e;
  --dusk: #2a1650;
  --plum: #6b1d5c;
  --ember: #f97316;
  --gold: #fbbf24;
  --cream: #fff7ed;
  --muted: #cfc3e0;
  --line: rgba(255, 247, 237, 0.16);
  --max: 64rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.05rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999rem;
  top: 0;
  background: var(--gold);
  color: var(--night);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* Hero */

.hero {
  background: linear-gradient(var(--night), var(--dusk));
  text-align: center;
}

.hero__content {
  padding: clamp(3rem, 10vh, 6rem) 0 2.5rem;
}

.hero__kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero__logo {
  width: min(28rem, 80%);
  margin: 0 auto 1rem;
}

.hero__pitch {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 2rem;
}

/* The setting sun under the hero text. Decorative only. */
.hero__sun {
  height: clamp(7rem, 22vh, 13rem);
  background: radial-gradient(
    ellipse 60% 100% at 50% 100%,
    var(--gold) 0%,
    var(--ember) 28%,
    var(--plum) 62%,
    transparent 100%
  );
  border-bottom: 3px solid var(--gold);
}

.hero--compact .hero__content {
  padding: 3rem 0 2rem;
}

.hero--compact .hero__title {
  font-size: clamp(2.25rem, 8vw, 4.5rem);
}

.hero--compact .hero__sun {
  height: 5rem;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.actions--start {
  justify-content: flex-start;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.button--ghost {
  background: transparent;
  color: var(--cream);
}

.button--ghost:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

/* Sections */

.section {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.section--first {
  border-top: 0;
}

.section__lead {
  color: var(--muted);
  max-width: 42rem;
}

.prose {
  max-width: 42rem;
}

.pitch {
  font-size: 1.25rem;
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  max-width: 42rem;
}

/* Fact list on the EPK */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 0;
}

.facts div {
  background: rgba(255, 247, 237, 0.05);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
}

.facts dt {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.facts dd {
  margin: 0.25rem 0 0;
}

/* Videos */

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.videos--single {
  grid-template-columns: minmax(0, 46rem);
}

.video-card__title {
  margin: 0.6rem 0 0;
  font-weight: 700;
}

.video-card__credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dusk), var(--plum));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.video__placeholder {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.45);
}

.video__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.8rem 0 0.8rem 1.3rem;
  border-color: transparent transparent transparent var(--night);
}

.video__play:hover .video__icon {
  background: var(--cream);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Set list and line-up */

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.list span {
  color: var(--muted);
}

.lineup {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.lineup li {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
}

.lineup strong {
  display: block;
}

.lineup span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
