/* Pit Crew website: the app's gig-poster look, light and dark. */
@font-face { font-family: Anton; src: url(fonts/Anton_400Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Bricolage; src: url(fonts/BricolageGrotesque_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Bricolage; src: url(fonts/BricolageGrotesque_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root { --paper: #F1EEF4; --card: #FFFFFF; --ink: #15121C; --soft: #5A5366; --pink: #D3005B; --blue: #2F4BFF; }
@media (prefers-color-scheme: dark) {
  :root { --paper: #0F0C14; --card: #1B1622; --ink: #F4F0FA; --soft: #B3AABF; --pink: #FF4D9A; --blue: #6680FF; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 Bricolage, system-ui, sans-serif; }
a { color: var(--pink); font-weight: 700; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.top, main, footer { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.back { font-weight: 700; text-decoration: none; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--card); white-space: nowrap; }
.back:hover { color: var(--pink); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 28px/1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .5px; }
.brand img { border-radius: 10px; border: 2px solid var(--ink); }
.brand b { color: #D3005B; font-weight: 400; }

main { padding-top: 24px; padding-bottom: 32px; }
h1 { font: 52px/1 Anton, Impact, sans-serif; text-transform: uppercase; margin: 0 0 12px; overflow-wrap: anywhere; }
h1.hero { font-size: clamp(52px, 17.5vw, 140px); line-height: .92; }
h1.hero .hero-name span { color: #D3005B; }
/* The homepage's one title: the app icon beside the name. */
h1.hero { display: flex; align-items: center; gap: .14em; white-space: nowrap; }
h1.hero img { flex: none; width: .82em; height: .82em; border: max(3px, .025em) solid var(--ink); border-radius: .18em; box-shadow: .05em .05em 0 var(--pink); }
.home main { padding-top: 32px; }
h2 { font: 24px/1.2 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .3px; margin: 28px 0 6px; }
.tagline { font-weight: 700; font-size: 20px; }
.intro { font-size: 19px; }
.updated { color: var(--soft); font-family: ui-monospace, Menlo, monospace; font-size: 13px; text-transform: uppercase; }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: 5px 5px 0 var(--blue); }
ol { padding-left: 1.3em; }

/* The rule above the footer lines up with the text, not the page edge. */
footer::before { content: ""; display: block; border-top: 2px solid var(--ink); margin-bottom: 16px; }
footer { padding-bottom: 40px; color: var(--soft); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }

/* The homepage uses the width of a big screen; the other pages keep a
   narrow column for reading. */
.home .top, .home main, .home footer { max-width: 1440px; }
.home-hero .hero-show { display: none; }
@media (min-width: 960px) {
  .home .top, .home main, .home footer { padding-left: 32px; padding-right: 32px; }
  .home main { padding-top: 40px; }
  .home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 64px; align-items: center; }
  .home-hero .hero-show { display: block; }
  .home-hero .hero-poster { position: relative; aspect-ratio: 4 / 5; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 10px 10px 0 var(--pink); transform: rotate(2.5deg); overflow: hidden; background: var(--ink); }
  .home h1.hero { font-size: clamp(120px, 11vw, 168px); }
  .home .tagline { font-size: 26px; }
  .home .intro { max-width: 560px; }
  .home .card { max-width: 560px; }
  .home h2 { font-size: 34px; margin-top: 56px; }
  .home .socials { max-width: 760px; }
}

/* Sneak peeks: a row of posters that runs to the screen edges and snaps
   card by card. No script, so it works under the strict CSP. */
.peeks { --edge: max(16px, calc(50vw - 704px)); list-style: none; margin: 16px calc(50% - 50vw) 8px; padding: 6px var(--edge) 26px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: thin; scrollbar-color: var(--pink) transparent; overscroll-behavior-x: contain; }
.peeks:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.peeks li { flex: 0 0 min(72vw, 280px); scroll-snap-align: start; }
@media (min-width: 960px) { .peeks li { flex-basis: 300px; } }
/* Wide screens show all six at once, spread across the page. */
@media (min-width: 1200px) {
  .peeks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; margin: 20px 0 8px; padding: 6px 0 12px; overflow: visible; }
  .peek-hint { display: none; }
}
.peeks figure { margin: 0; }
.peeks img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); box-shadow: 6px 6px 0 var(--pink); transition: transform .2s ease, box-shadow .2s ease; }
.peeks li:nth-child(3n+2) img { box-shadow: 6px 6px 0 var(--blue); }
.peeks li:nth-child(3n) img { box-shadow: 6px 6px 0 #FFD60A; }
@media (hover: hover) { .peeks li:hover img { transform: translate(-2px, -4px) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .peeks img { transition: none; } .peeks li:hover img { transform: none; } }
.peeks figcaption { margin-top: 14px; font-size: 15px; line-height: 1.4; color: var(--soft); }
.peeks figcaption b { display: block; color: var(--ink); font: 22px/1.1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }
.peek-no { display: inline-block; font: 12px/1 ui-monospace, Menlo, monospace; letter-spacing: 1.5px; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 9px; margin-bottom: 8px; }
.peek-hint { color: var(--soft); white-space: nowrap; }

/* The big homepage poster fades through every sneak peek, 4 seconds each. */
.hero-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: peek-cycle 24s infinite both; }
.hero-dots { display: flex; margin-top: 28px; justify-content: center; gap: 8px; }
.hero-dots i { width: 9px; height: 9px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); animation: dot-cycle 24s infinite both; }
.hero-poster > :nth-child(1), .hero-dots i:nth-child(1) { animation-delay: -0.8s; }
.hero-poster > :nth-child(2), .hero-dots i:nth-child(2) { animation-delay: 3.2s; }
.hero-poster > :nth-child(3), .hero-dots i:nth-child(3) { animation-delay: 7.2s; }
.hero-poster > :nth-child(4), .hero-dots i:nth-child(4) { animation-delay: 11.2s; }
.hero-poster > :nth-child(5), .hero-dots i:nth-child(5) { animation-delay: 15.2s; }
.hero-poster > :nth-child(6), .hero-dots i:nth-child(6) { animation-delay: 19.2s; }
@keyframes peek-cycle { 0% { opacity: 0; transform: scale(1.06); } 3.33% { opacity: 1; } 16.67% { opacity: 1; } 20% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
@keyframes dot-cycle { 0%, 20%, 100% { background: var(--card); width: 9px; } 3.33%, 16.67% { background: var(--pink); width: 26px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-poster, .hero-poster img, .hero-dots i { animation: none; }
  .hero-poster img:nth-child(4) { opacity: 1; }
  .hero-dots { display: none; }
}

/* Pit Crew's social accounts, on the homepage. */
.socials { list-style: none; margin: 14px 0 8px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .socials { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.socials a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--pink); text-decoration: none; font-weight: 400; }
.socials a:hover { box-shadow: 2px 2px 0 var(--pink); transform: translate(2px, 2px); }
.socials svg { flex: none; }
.socials span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.socials b { font-weight: 700; }
.socials small { color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
/* The same buttons, smaller, in every page's footer. */
.socials.mini { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 12px; }
.socials.mini a { min-height: 44px; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; box-shadow: 3px 3px 0 var(--pink); font-size: 15px; }
.socials.mini a:hover { box-shadow: 1px 1px 0 var(--pink); }

/* The "Who's in?" invite link page (i/). */
.gig h2 { margin-top: 4px; font-size: 34px; }
.gig p { margin: 6px 0; }
.note { color: var(--soft); font-size: 15px; }
.button { display: inline-block; background: var(--pink); color: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 12px 22px; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); margin-top: 20px; }
[hidden] { display: none !important; }

/* The new-password page's fields. */
.field-card label { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 13px; text-transform: uppercase; color: var(--soft); margin: 12px 0 6px; }
.field-card label:first-child { margin-top: 0; }
.field-card input { box-sizing: border-box; width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; }
.field-card input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.field-card button { font: inherit; font-weight: 700; cursor: pointer; }
.problem { color: var(--pink); font-weight: 700; margin: 12px 0 0; }
