/* FireKraker Productions: night show-bill */
:root {
  --night: #14223B;
  --ink: #0E182B;
  --bar: #060A13;
  --cream: #F2E8D0;
  --smoke: #A9B4C8;
  --gold: #F2B33D;
  --ember: #E0532A;
  --rule: rgba(242, 232, 208, 0.16);
  --display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: min(1200px, calc(100% - 2rem));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
p { margin: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--ink); }

.skip {
  position: absolute; left: 1rem; top: 1rem; z-index: 10;
  padding: .75rem 1rem; background: var(--gold); color: var(--ink);
  font-weight: 700; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Shared widths */
.masthead, .hero, .earlier, .software, .about, .site-footer {
  width: var(--page);
  margin-inline: auto;
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; text-decoration: none; }
.flame { width: 1.85rem; height: 2.2rem; flex: none; margin-top: -.25rem; }
.brand-name { font-family: var(--display); font-size: 1.6rem; line-height: 1; letter-spacing: .005em; }
.brand-sub { font-style: italic; color: var(--smoke); font-size: 1rem; align-self: flex-end; padding-bottom: .1rem; }

/* Masthead */
.masthead {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem 2rem; padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.6rem; }
.site-nav a {
  text-decoration: none; font-size: 1.02rem; padding: .55rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); }
.site-nav .nav-yt {
  padding: .5rem 1rem; border: 1.5px solid var(--gold); border-radius: 6px; color: var(--gold); font-weight: 700;
}
.site-nav .nav-yt:hover { background: var(--gold); color: var(--ink); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: .8rem 1.5rem; border-radius: 6px; border: 1.5px solid var(--gold);
  background: var(--gold); color: var(--ink);
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
}
.btn:hover { background: var(--cream); border-color: var(--cream); }
.btn-quiet { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-quiet:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.text-link {
  display: inline-block; padding: .55rem 0; font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 2px; text-underline-offset: .4em;
}
.text-link:hover { color: var(--gold); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center;
  gap: 3rem 4rem; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
}
.presents { font-style: italic; color: var(--smoke); font-size: 1.1rem; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: .98; letter-spacing: -.005em; }
.hero h1 .line { display: block; }
.hero h1 .line + .line { margin-top: .12em; }
.lede { color: var(--smoke); font-size: 1.2rem; max-width: 34ch; margin-top: 1.6rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.2rem; }

/* Coming-soon poster (hero right) */
.poster {
  position: relative; overflow: hidden; background: var(--ink);
  border: 1px solid var(--rule); border-radius: 8px;
  min-height: clamp(20rem, 38vw, 30rem); display: grid; place-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2.5rem); text-align: center;
}
.burst {
  position: absolute; left: 50%; top: 50%; width: 150%; height: auto;
  transform: translate(-50%, -50%); pointer-events: none;
}
.burst path { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; opacity: .18; }
.poster-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.poster h2 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: .95; }
.redacted { margin: 1.5rem 0 1.4rem; width: min(26rem, 92%); }
.redacted span {
  display: block; height: clamp(2.2rem, 4.2vw, 3.4rem); background: var(--bar); border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(242, 179, 61, .22), 0 0 2.5rem rgba(224, 83, 42, .22);
  transform: rotate(-.6deg);
}
.poster-copy { font-size: 1.08rem; max-width: 30ch; color: var(--cream); }

/* Earlier work */
.earlier { padding: clamp(4rem, 8vw, 6rem) 0; border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1; }
.section-head p { color: var(--smoke); }
.earlier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.75rem; }
.act-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.act h3 { font-size: 1.3rem; line-height: 1.1; margin: .6rem 0 .15rem; }
.act h3 a { display: inline-block; padding: .35rem 0; text-decoration: none; }
.act h3 a:hover { color: var(--gold); }
.act p { color: var(--smoke); font-size: .98rem; }
.small-print { margin-top: 2.5rem; color: var(--smoke); font-size: .98rem; font-style: italic; }
.small-print a { color: var(--cream); font-style: normal; text-decoration-color: var(--gold); text-underline-offset: .3em; display: inline-block; padding: .4rem 0; }

/* Software */
.software { padding: clamp(4rem, 8vw, 6rem) 0; }
.software h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1; }
.tool {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
  margin-top: 2rem; padding: 2rem clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--rule); border-radius: 8px;
}
.tool h3 { font-size: 1.6rem; line-height: 1.1; }
.tool p { color: var(--smoke); max-width: 54ch; margin-top: .6rem; }

/* About */
.about {
  display: grid; grid-template-columns: 1fr 1.45fr; gap: 1.5rem 3.5rem;
  padding: clamp(4rem, 8vw, 6rem) 0; border-top: 1px solid var(--rule);
}
.about h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1; }
.about-copy p { font-size: 1.2rem; line-height: 1.65; max-width: 50ch; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy .contact { color: var(--smoke); font-size: 1.05rem; margin-top: 2rem; }
.about-copy .contact a { color: var(--gold); text-underline-offset: .3em; overflow-wrap: anywhere; display: inline-block; padding: .55rem 0; }

/* Footer */
.site-footer {
  display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 2rem;
  padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--rule); color: var(--smoke); font-size: .98rem;
}
.brand-small .flame { width: 1.4rem; height: 1.7rem; }
.brand-small .brand-name { font-size: 1.25rem; color: var(--cream); }
.site-footer .fine { margin-left: auto; }
.site-footer .fine a { color: var(--cream); display: inline-block; padding: .6rem 0; }

/* One orchestrated moment: the flame catches on load */
@media (prefers-reduced-motion: no-preference) {
  .masthead .flame { transform-origin: 50% 100%; animation: catch .8s cubic-bezier(.2, .8, .2, 1.2) .2s both; }
}
@keyframes catch { 0% { transform: scale(.15, .05); opacity: 0; } 60% { transform: scale(1.04, 1.12); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero, .about { grid-template-columns: 1fr; }
  .hero { gap: 2.5rem; }
  .hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
  .earlier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .masthead { padding-top: 1.1rem; }
  .site-nav { gap: .1rem 1.1rem; }
  .site-nav a { font-size: .98rem; }
  .brand-sub { display: none; }
  .hero h1 { font-size: 9vw; }
  .earlier-grid { gap: 1.5rem 1rem; }
  .act h3 { font-size: 1.1rem; }
  .act p { font-size: .92rem; }
  .site-footer .fine { margin-left: 0; }
}
