/* Shared layout (T07): skip link, studio header, non-affiliation footer, coming-soon page.
   Components follow docs/brand/brand-book.html; colors are --tl-* tokens only. */

.skip-link { position: absolute; left: var(--tl-space-3); top: -4rem; z-index: 100; padding: var(--tl-space-2) var(--tl-space-4);
  background: var(--tl-sun); color: var(--tl-on-sun); border-radius: var(--tl-radius-pill); font-weight: 700; }
.skip-link:focus { top: var(--tl-space-3); }

a.btn { text-decoration: none; }
.btn.btn-lg { font-size: 1.125rem; padding: 16px 28px; min-height: 56px; }
.btn-sun:hover { filter: brightness(1.05); }
.btn-primary:hover { filter: brightness(1.1); }

.eyebrow { margin: 0 0 var(--tl-space-2); font: 700 var(--tl-text-label)/1.2 var(--tl-font-ui); letter-spacing: .16em;
  text-transform: uppercase; color: var(--tl-hot); }

.site-header { background: var(--tl-poster); color: var(--tl-on-poster); }
.site-header__inner { max-width: 72rem; margin: 0 auto; padding: var(--tl-space-3) var(--tl-space-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--tl-space-4); }
.site-header__brand { display: inline-flex; align-items: center; gap: var(--tl-space-3); color: inherit; text-decoration: none;
  min-height: 44px; min-width: 0; border-radius: var(--tl-radius-sm); }
.site-header__brand:focus-visible { outline: 3px solid var(--tl-neon); outline-offset: 4px; }
.site-header__mark { display: block; flex: none; border-radius: 22%; }
.site-header__label { font: 400 1.25rem/1 var(--tl-font-display); letter-spacing: .01em; white-space: nowrap; }
.site-header__nav { display: flex; align-items: center; gap: var(--tl-space-4); flex: none; }
.site-header__link { color: var(--tl-on-poster); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center;
  min-height: 44px; white-space: nowrap; text-underline-offset: 4px; }
.site-header__link:hover { text-decoration: underline; }
.site-header__link:focus-visible { outline: 3px solid var(--tl-neon); outline-offset: 2px; border-radius: var(--tl-radius-sm); }
.site-header .site-header__cta { padding: 10px 18px; min-height: 44px; font-size: 15px; white-space: nowrap; }
.site-header__cta:focus-visible { outline-color: var(--tl-neon); }

.site-footer { border-top: 1px solid var(--tl-line); background: var(--tl-surface-2); color: var(--tl-muted);
  font-size: var(--tl-text-small); line-height: var(--tl-leading-small); }
.site-footer__inner { max-width: 72rem; margin: 0 auto; padding: var(--tl-space-6) var(--tl-space-4) var(--tl-space-7);
  display: grid; gap: var(--tl-space-4); }
.site-footer__fanmade { margin: 0; display: flex; gap: var(--tl-space-3); align-items: flex-start; max-width: 44rem; }
.site-footer__fanmade strong { color: var(--tl-fg); }
.site-footer__mark { flex: none; border-radius: 22%; margin-top: 2px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--tl-space-1) var(--tl-space-5); }
.site-footer__links a { color: var(--tl-link); font-weight: 600; text-underline-offset: 3px; display: inline-flex;
  align-items: center; min-height: 44px; }
@media (min-width: 48rem) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
}

.coming-soon { max-width: 32rem; margin: 0 auto; padding: var(--tl-space-8) var(--tl-space-4); text-align: center;
  display: grid; gap: var(--tl-space-3); justify-items: center; min-height: 50vh; align-content: center; }
.coming-soon__eyebrow { margin: 0; font: 700 var(--tl-text-label)/1 var(--tl-font-ui); letter-spacing: .16em;
  text-transform: uppercase; color: var(--tl-hot); }
.coming-soon__title { margin: 0; font: 400 var(--tl-text-display)/var(--tl-leading-display) var(--tl-font-display);
  text-shadow: var(--tl-shadow-print); }
.coming-soon__body { margin: 0 0 var(--tl-space-3); color: var(--tl-muted); }
/* Phones: the mark carries the brand when a header button is present, so nothing overlaps or
   scrolls sideways down to 320 px (pre-launch review, mobile 1). */
@media (max-width: 30rem) {
  .site-header__inner { gap: var(--tl-space-3); padding-inline: var(--tl-space-4); }
  .site-header__nav { gap: var(--tl-space-3); }
  .site-header__inner:has(.site-header__cta) .site-header__label { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header__label { font-size: 1.05rem; }
}
@media (max-width: 22rem) {
  .site-header__inner { padding-inline: var(--tl-space-3); }
  .site-header .site-header__cta { padding: 10px 14px; }
}

/* Links read as links without relying on color (WCAG 1.4.1); Tailwind's reset strips underlines. */
main a:not(.btn):not([class*="__"]), .site-footer__links a { text-decoration: underline; text-underline-offset: 3px; }

/* Short pages keep the footer at the bottom of the screen. */
body.app { min-height: 100dvh; display: flex; flex-direction: column; }
body.app > main { flex: 1 0 auto; }

/* Page-level notices (signed out, you're in, credits added) on pages that do not show their own. */
.page-flash { max-width: 72rem; margin: var(--tl-space-3) auto 0; padding: 0 var(--tl-space-4); }
.page-flash p { margin: 0; padding: var(--tl-space-3) var(--tl-space-4); border-radius: var(--tl-radius-md);
  background: var(--tl-surface-2); border: 1px solid var(--tl-line); font-weight: 600; }
