/*
Theme Name: Glitter Theatrical
Theme URI: https://glittertheatrical.co.uk
Author: Glitter Theatrical
Author URI: https://glittertheatrical.co.uk
Description: Playbill capitals, marquee bulbs and hot pink on an aubergine-black stage. A mobile-first block theme for Glitter Theatrical, the London fringe production company. Fonts (Six Caps, Mulish) are bundled and self-hosted.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glitter-theatrical
Tags: entertainment, one-column, custom-colors, custom-logo, block-patterns, dark
*/

/* Base colours, typography, layout widths and button colours live in
   theme.json (editable under Appearance → Editor → Styles).
   This file is the component layer: marquee bulbs, the billboard,
   playbill entries, and small polish the Styles panel can't express. */

:root {
  --gt-black:  var(--wp--preset--color--stage-black);
  --gt-black2: var(--wp--preset--color--raised-black);
  --gt-ink:    var(--wp--preset--color--warm-white);
  --gt-dust:   var(--wp--preset--color--dust);
  --gt-pink:   var(--wp--preset--color--hot-pink);
  --gt-pinkdn: #d81b6f;
  --gt-candy:  var(--wp--preset--color--candy-pink);
  --gt-gold:   var(--wp--preset--color--marquee-gold);
  --gt-line:   rgba(217, 169, 94, .28);
  --gt-display: var(--wp--preset--font-family--display);
  --gt-body:    var(--wp--preset--font-family--body);
}

/* ------------------------------------------------ base ---- */
html { scroll-behavior: smooth; }

body { -webkit-font-smoothing: antialiased; }

::selection { background: var(--gt-pink); color: #14060d; }

p { max-width: 34em; }

a { text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--gt-candy);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] { scroll-margin-top: 5rem; }

/* -------------------------------------- theme chrome ------ */
.gt-siteheader { padding: 1.1rem 1rem .3rem; }
.gt-siteheader .wp-block-site-logo img { max-width: min(190px, 52vw); height: auto; }

.gt-nav { font-weight: 600; font-size: .95rem; }
.gt-nav a { text-decoration: none; }

.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--gt-black);
}

.wp-block-separator,
hr {
  border: 0;
  border-top: 1px solid var(--gt-line);
  opacity: 1;
}

.gt-sitefooter { padding-bottom: 2.5rem; }

/* ------------------------------------------- buttons ------ */
.wp-block-button__link,
.wp-element-button {
  padding: .95rem 1.7rem;
  text-decoration: none;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
  background: var(--gt-pinkdn);
  color: #14060d;
}

/* the one glowing button — tickets / pitches */
.gt-btn-glow .wp-block-button__link {
  box-shadow: 0 0 22px rgba(255, 45, 135, .45);
}

/* quiet secondary button */
.gt-btn-ghost .wp-block-button__link {
  background: transparent;
  color: var(--gt-candy);
  box-shadow: inset 0 0 0 1px var(--gt-candy);
}
.gt-btn-ghost .wp-block-button__link:hover {
  background: rgba(255, 178, 251, .12);
  color: var(--gt-candy);
}

/* buttons go full-width on phones — big tap targets */
@media (max-width: 560px) {
  .wp-block-button { width: 100%; }
  .wp-block-button__link { display: block; width: 100%; text-align: center; }
}

/* --------------------------------------------- hero ------- */
.gt-hero { text-align: center; padding-top: 1.5rem; }
.gt-hero img { max-width: min(320px, 80vw); height: auto; }
.gt-strap {
  color: var(--gt-dust);
  font-size: 1.1rem;
  max-width: 26em;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------- marquee rail ------ */
/* a row of warm bulbs, straight off the A Little Bit of Life logo */
.gt-marquee {
  height: 12px;
  margin: 2.4rem auto;
  max-width: 42rem;
  background-image: radial-gradient(circle at 50% 50%,
      var(--gt-gold) 0 2.2px,
      rgba(217, 169, 94, .35) 3.2px,
      transparent 4.6px);
  background-size: 24px 12px;
  background-position: center;
  background-repeat: repeat-x;
  filter: drop-shadow(0 0 5px rgba(217, 169, 94, .55));
}

/* ---------------------------------------- billboard ------- */
/* the lit sign: what's on (or next) and where to book        */
.gt-billboard {
  position: relative;
  text-align: center;
  border: 1px solid var(--gt-line);
  border-radius: 14px;
  padding: 2.4rem 1.4rem 2.2rem;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 45, 135, .14), transparent 62%),
    var(--gt-black2);
  overflow: hidden;
}
.gt-billboard::before,
.gt-billboard::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 10px;
  background-image: radial-gradient(circle at 50% 50%,
      var(--gt-gold) 0 2px,
      rgba(217, 169, 94, .3) 3px,
      transparent 4.4px);
  background-size: 22px 10px;
  background-position: center;
  background-repeat: repeat-x;
  filter: drop-shadow(0 0 4px rgba(217, 169, 94, .6));
  animation: gt-twinkle 2.6s ease-in-out infinite alternate;
}
.gt-billboard::before { top: 10px; }
.gt-billboard::after { bottom: 10px; }

@keyframes gt-twinkle {
  from { opacity: 1; }
  to   { opacity: .45; }
}

.gt-billing {
  color: var(--gt-gold);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 0 auto .4rem;
}
.gt-billboard h2,
.gt-billboard h3.gt-show {
  font-family: var(--gt-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 14vw, 5.2rem);
  line-height: .92;
  letter-spacing: .03em;
  margin: 0 auto .3rem;
  color: var(--gt-ink);
  text-shadow:
    0 0 8px rgba(255, 45, 135, .55),
    0 0 30px rgba(255, 45, 135, .30);
}
.gt-billboard .gt-meta { margin-left: auto; margin-right: auto; }
.gt-billboard .wp-block-buttons { margin-top: 1.4rem; justify-content: center; }

@media (min-width: 700px) {
  .gt-billboard { padding: 3rem 2.5rem 2.6rem; }
}

/* --------------------------------------- meta & stars ----- */
.gt-meta { color: var(--gt-dust); font-size: .98rem; }
.gt-stars {
  color: var(--gt-gold);
  letter-spacing: .28em;
  font-size: 1.05rem;
  text-shadow: 0 0 8px rgba(217, 169, 94, .5);
  white-space: nowrap;
}

/* ------------------------------------ production list ----- */
/* past shows: playbill entries, not cards                    */
.gt-poster {
  border-top: 1px solid var(--gt-line);
  padding: 2.2rem 0 1.4rem;
  margin-top: 1rem;
}
.gt-poster h3,
.gt-poster .gt-show {
  font-family: var(--gt-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 10vw, 3.2rem);
  line-height: .95;
  letter-spacing: .03em;
  margin: 0 0 .3rem;
}
.gt-poster h3 a, .gt-poster .gt-show a { color: var(--gt-ink); text-decoration: none; }
.gt-poster h3 a:hover, .gt-poster .gt-show a:hover { color: var(--gt-candy); }
.gt-poster img { border-radius: 10px; }

/* ------------------------------------------ services ------ */
.gt-services { list-style: none; padding: 0; margin: 1.2rem 0; }
.gt-services li {
  padding: .55rem 0 .55rem 1.1rem;
  border-left: 2px solid var(--gt-pink);
  margin-bottom: .7rem;
  max-width: 36em;
}
.gt-services strong { color: var(--gt-ink); }

/* -------------------------------------------- extras ------ */
.gt-note { color: var(--gt-dust); font-size: .92rem; }

.gt-credits { color: var(--gt-dust); font-size: .95rem; max-width: 36em; }
.gt-credits strong { color: var(--gt-ink); font-weight: 600; }

.gt-footerline { text-align: center; color: var(--gt-dust); font-size: .95rem; }

/* ------------------------------------ calm settings ------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gt-billboard::before,
  .gt-billboard::after { animation: none; }
  * { transition: none !important; }
}
