/* Anino Shadowplay Collective — base styles.
   Mobile-first, system fonts only, no external requests.
   Change the look by editing the custom properties below. */

:root {
  --color-bg: #0d0d0d;
  --color-surface: #161616;
  --color-text: #f5f5f5;
  --color-muted: #bdbdbd;
  --color-accent: #90b900;
  --color-border: #3a3a3a;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --measure: 68ch;
  --wide: 72rem;
  --space: 1rem;
  --radius: 2px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 1.0625rem/1.65 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; max-width: var(--wide); margin: 0 auto; padding: calc(var(--space) * 2) var(--space); }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0 0 var(--space); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: calc(var(--space) * 2.5) 0 var(--space); }
h3 { font-size: 1.25rem; margin: 0 0 0.25rem; }

a { color: var(--color-accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

img, picture, iframe { display: block; max-width: 100%; height: auto; }

blockquote { margin: var(--space) 0; padding-left: var(--space); border-left: 3px solid var(--color-accent); color: var(--color-muted); }

.skip-link { position: absolute; left: var(--space); top: -10rem; padding: 0.5rem 1rem; background: var(--color-accent); color: #000; z-index: 10; }
.skip-link:focus { top: var(--space); }

/* Header & footer */
.site-header, .site-footer { width: 100%; max-width: var(--wide); margin: 0 auto; padding: var(--space); }
.site-header { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center; justify-content: space-between; }
.site-title img { display: block; height: 2.75rem; width: auto; }
.site-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--color-text); text-decoration: none; }
.nav-list, .inline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.nav-list a { color: var(--color-text); text-decoration: none; padding: 0.25rem 0; display: inline-block; }
.nav-list a:hover, .nav-list a[aria-current] { color: var(--color-accent); text-decoration: underline; }
.site-footer { color: var(--color-muted); font-size: 0.9375rem; text-align: center; }
.site-footer p { margin: 0.5rem 0; }

/* Content */
.prose { max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--color-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem; color: var(--color-muted); margin: 0 0 0.5rem; }
.eyebrow a { color: inherit; }
figure { margin: calc(var(--space) * 1.5) 0; }
.portrait { max-width: 24rem; }
.placeholder-note { border: 1px dashed var(--color-accent); padding: 0.75rem 1rem; color: var(--color-muted); font-size: 0.9375rem; }

.hero { padding: var(--space) 0 calc(var(--space) * 2); }
.hero__media { margin-bottom: calc(var(--space) * 1.5); }
.hero__title { font-size: clamp(2.5rem, 9vw, 5rem); max-width: 14ch; }
.hero__lede { font-size: 1.25rem; max-width: 40ch; color: var(--color-muted); }

.grid { display: grid; gap: calc(var(--space) * 1.5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space); }
.card__media { margin: calc(var(--space) * -1) calc(var(--space) * -1) var(--space); }
.card__title a { color: var(--color-text); text-decoration: none; }
.card__title a:hover { color: var(--color-accent); text-decoration: underline; }
.card__meta { color: var(--color-muted); font-size: 0.875rem; margin: 0 0 0.5rem; }
.card p:last-child { margin-bottom: 0; }

.facts, .credits { display: grid; gap: 0.5rem; margin: var(--space) 0; }
.facts div, .credits div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--space); }
dt { color: var(--color-muted); }
dd { margin: 0; }

.event-list, .press-list { list-style: none; padding: 0; }
.event-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.press-list li { padding: var(--space) 0; border-bottom: 1px solid var(--color-border); }
.press-list__title { font-size: 1.25rem; margin: 0; }

/* Under-construction landing ("green panel") */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.main--bleed { max-width: none; padding: 0; }
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--color-accent) url("/assets/leaves.svg") repeat; background-size: 420px; color: #000; }
/* Film grain over the band, jittered a few times a second; text sits above it. */
.band::before { content: ""; position: absolute; z-index: 1; inset: -120px; background: url("/assets/grain.svg"); opacity: 0.4; mix-blend-mode: overlay; pointer-events: none; animation: grain 0.6s steps(1) infinite; }
/* Vignette: darkens toward the edges and corners, above the grain and below the text. */
.band::after { content: ""; position: absolute; z-index: 2; inset: 0; background: radial-gradient(ellipse farthest-corner at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.5) 100%); pointer-events: none; }
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-37px, 23px); } 40% { transform: translate(51px, -14px); }
  60% { transform: translate(-19px, -58px); } 80% { transform: translate(44px, 61px); }
}
/* With JS, band.js draws the leaves on a canvas instead of the static tile. */
.band--live { background-image: none; }
.band__leaves { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.band__inner { position: relative; z-index: 3; max-width: var(--wide); margin: 0 auto; padding: var(--space) var(--space) 13rem; display: flex; flex-direction: column; gap: var(--space); }
.band__note { align-self: flex-end; margin: 0 0 calc(var(--space) * 2); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.band__title { margin: 0; font-family: var(--font-body); font-weight: 800; line-height: 0.85; letter-spacing: -0.04em; display: flex; flex-direction: column; gap: 0.75rem; }
.band__word { font-size: clamp(4rem, 15vw, 11rem); text-transform: lowercase; }
.band__sub { font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700; }
.band__lede { margin: 0; font-size: 1.25rem; font-weight: 500; max-width: 40ch; }
.rise { position: relative; z-index: 1; margin: -11rem auto 0; width: calc(100% - 2rem); max-width: 560px; }
/* Black, clipped circle: the picture flickers inside it, so the green band never shows through when opacity drops. */
.marble { position: relative; overflow: hidden; background: #000; aspect-ratio: 1; border-radius: 50%; }
.marble picture { position: absolute; inset: 0; display: block; animation: flicker-fast 2.9s linear infinite; }
.marble img { position: absolute; top: 50%; left: 50%; width: 100%; max-width: none; aspect-ratio: 1; object-fit: cover; transform: translate(-50%, -50%); animation: spin 120s linear infinite, flicker-slow 7.3s ease-in-out infinite; }
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
/* Candle/gas-lamp flicker: two nested opacity cycles with unrelated, uneven timings so the pattern doesn't read as a loop. */
@keyframes flicker-slow {
  0%, 100% { opacity: 0.85; } 14% { opacity: 0.6; } 31% { opacity: 1; } 47% { opacity: 0.7; }
  58% { opacity: 0.92; } 76% { opacity: 0.55; } 89% { opacity: 0.95; }
}
@keyframes flicker-fast {
  0%, 100% { opacity: 1; } 9% { opacity: 0.8; } 17% { opacity: 0.95; } 26% { opacity: 0.72; } 38% { opacity: 1; }
  45% { opacity: 0.85; } 61% { opacity: 0.7; } 67% { opacity: 0.97; } 83% { opacity: 0.78; } 91% { opacity: 1; }
}
.about { max-width: 42rem; margin: 0 auto; padding: calc(var(--space) * 4) var(--space); display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--space) * 2.5); font-size: 1.0625rem; line-height: 1.7; }
/* Stacked (logo, then each paragraph) until there is room for three real columns. */
@media (min-width: 64rem) {
  .about { max-width: var(--wide); grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.about p { margin: 0; color: #d6d6d6; }
.about__logo { width: 100%; max-width: 26rem; height: auto; opacity: 0.8; justify-self: center; }
@media (min-width: 64rem) { .about__logo { justify-self: start; } }
.signoff { max-width: var(--wide); margin: 0 auto; padding: calc(var(--space) * 2) var(--space) calc(var(--space) * 3); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: calc(var(--space) * 1.5); }
.eyebrow--accent { color: var(--color-accent); font-family: var(--font-body); font-weight: 400; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; }
.social-list a { position: relative; display: inline-flex; padding: 0.5rem; color: var(--color-muted); border-radius: 50%; }
/* Instant tooltips (the native title tooltip is slow): fade and lift in on hover or keyboard focus. */
.tooltip { position: absolute; bottom: calc(100% + 0.5rem); left: 50%; transform: translate(-50%, 0.25rem); padding: 0.35rem 0.7rem; background: var(--color-text); color: var(--color-bg); font-size: 0.8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; border-radius: 999px; box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.12s ease-out, transform 0.12s ease-out; }
.tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -0.3rem; border: 0.3rem solid transparent; border-top-color: var(--color-text); }
.social-list a:hover .tooltip, .social-list a:focus-visible .tooltip { opacity: 1; transform: translate(-50%, 0); }
.social-list a:hover { color: var(--color-accent); }
.social-list .icon { display: block; width: 1.5rem; height: 1.5rem; }
.button--pill { padding: 0.875rem 1.75rem; border-radius: 999px; }

.button { display: inline-block; padding: 0.6rem 1.2rem; background: var(--color-accent); color: #000; font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.button:hover { background: var(--color-text); }

.embed { width: 100%; margin: calc(var(--space) * 1.5) 0; background: var(--color-surface); }
.embed iframe { width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  :root { --color-bg: #fff; --color-text: #000; --color-muted: #333; --color-accent: #000; }
  .site-header nav, .skip-link, .embed { display: none; }
}
