@font-face { font-family: Fredoka; font-style: normal; font-weight: 500; font-display: swap; src: url(fredoka-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Fredoka; font-style: normal; font-weight: 700; font-display: swap; src: url(fredoka-latin-700-normal.woff2) format("woff2"); }

/* Inner pages (about, book, membership, credits). Derived from the prototype's site.css.
   Two deliberate changes: the page and veil are visible by default and only hidden for the
   entrance animation when enter.js has run (html.enter), so a blocked or failed script can
   never leave a blank screen; and motion respects prefers-reduced-motion. */
:root {
  --page-gutter: 20px;
  --orange: #f28c28;
  --coral: #e15a45;
  --coral-ink: #b03a2a;
  --cyan: #2ec4e6;
  --cream: #f6f1e8;
  --plum: #5c1646;
  --ink: #100814;
  --ink-deep: #07050a;
}
* { box-sizing: border-box; }
html { margin: 0; background: var(--ink-deep); }
body.inner {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Fredoka, "Avenir Next", sans-serif;
  color: var(--cream);
  background:
    radial-gradient(ellipse 120% 95% at 6% -8%,
      rgba(242, 140, 40, .42) 0%,
      rgba(242, 140, 40, .22) 26%,
      rgba(242, 140, 40, .08) 52%,
      transparent 82%),
    radial-gradient(ellipse 105% 88% at 108% 0%,
      rgba(225, 90, 69, .46) 0%,
      rgba(225, 90, 69, .24) 28%,
      rgba(225, 90, 69, .08) 54%,
      transparent 80%),
    radial-gradient(ellipse 110% 78% at 70% 118%,
      rgba(92, 22, 70, .58) 0%,
      rgba(92, 22, 70, .32) 32%,
      rgba(92, 22, 70, .10) 58%,
      transparent 84%),
    linear-gradient(168deg, #2d1232 0%, #160a18 48%, #0a060c 100%);
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 60; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #07050a;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
html.enter .veil { opacity: 1; }
html.enter .veil.out { opacity: 0; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: max(10px, env(safe-area-inset-top)) max(var(--page-gutter), env(safe-area-inset-right)) 0 max(var(--page-gutter), env(safe-area-inset-left));
}
.top .home {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
}
.top .home img { width: 42px; height: auto; }
.top .about {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 15px;
  opacity: .92;
}
.top .about:hover { color: var(--orange); }

.page {
  width: min(760px, calc(100% - max(var(--page-gutter), env(safe-area-inset-left)) - max(var(--page-gutter), env(safe-area-inset-right))));
  margin: 0 auto;
  padding: 28px 0 64px;
}
html.enter .page {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1) .15s,
              transform .7s cubic-bezier(.16,1,.3,1) .15s;
}
html.enter .page.in { opacity: 1; transform: none; }
html.enter.from-slide .top {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .55s ease .05s, transform .7s cubic-bezier(.16,1.12,.3,1) .05s;
}
html.enter.from-slide .page {
  transform: translateX(72px);
  transition: opacity .55s ease .08s, transform .78s cubic-bezier(.16,1.14,.3,1) .08s;
}
html.enter.from-slide .page.in { opacity: 1; transform: none; }
html.enter.from-slide:has(.page.in) .top { opacity: 1; transform: none; }

.kicker {
  margin: 0 0 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--orange);
}
h1 { font-size: clamp(34px, 7vw, 52px); line-height: .95; margin: 0 0 12px; }
.lede { margin: 0 0 28px; font-size: 20px; max-width: 34ch; }
.stack { display: grid; gap: 12px; }
.panel {
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  text-decoration: none;
  align-items: center;
}
.panel:focus-visible { outline-color: var(--cyan); outline-offset: 3px; }
.panel img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}
.panel h2 { margin: 0 0 4px; font-size: 22px; }
/* prototype used --coral (3.4:1 on cream); --coral-ink clears 4.5:1 */
.panel .meta { margin: 0 0 6px; color: var(--coral-ink); font-size: 14px; }
.panel p { margin: 0; color: #3d2a38; font-size: 15px; }
.tier {
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  padding: 24px;
}
.tier h2 { margin: 0 0 6px; }
.tier p { margin: 0; color: #3d2a38; }
.note { margin: 18px 0 0; font-size: 15px; color: rgba(246,241,232,.82); max-width: 46ch; }
.btn {
  display: inline-block;
  margin-top: 18px;
  background: var(--cyan);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
}
.btn:focus-visible { outline-color: var(--cream); }
.empty { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 18px; padding: 24px; }
.credits { columns: 2 260px; column-gap: 28px; padding: 0; margin: 18px 0 0; list-style: none; font-size: 15px; line-height: 1.7; }
.credits li { break-inside: avoid; }
.credits a, .lede a, .note a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot { width: min(760px, calc(100% - max(var(--page-gutter), env(safe-area-inset-left)) - max(var(--page-gutter), env(safe-area-inset-right)))); margin: 0 auto; padding: 0 0 36px; font-size: 13px; color: rgba(246,241,232,.7); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .sep { padding: 0 8px; opacity: .6; }

@media (max-width: 700px) {
  .top { gap: 8px 16px; }
  .panel { grid-template-columns: 64px minmax(0, 1fr); padding: 20px; }
  .panel img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html.enter .page, html.enter .veil, html.enter.from-slide .top, html.enter.from-slide .page { transition: none; }
}

/* Customer content keeps its gutter even on devices with display cutouts. */
body { overflow-wrap: anywhere; }
.foot { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
@media (min-width: 768px) { :root { --page-gutter: 24px; } }

/* Event artwork on /book: a poster shows whole (contain), never cropped. */
.panel--image { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
.panel--image img { width: 96px; height: auto; max-height: 160px; object-fit: contain; background: rgba(16,8,20,.08); }
@media (max-width: 480px) { .panel--image { grid-template-columns: 72px minmax(0, 1fr); } .panel--image img { width: 72px; max-height: 120px; } }

/* Header links stay together on the right (a second item, e.g. Projects, appears only when data has one). */
.top-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 20px; }
