/* bipandbok.com, phone first (docs/website.md). The episode is the hero: its thumbnail's purple, flat, is the
   hero's ground, with the banner's teal grid as its floor. Below it, white paper like the printed guide. Nunito
   is the only face; gold is the only accent. */
@font-face { font-family: 'Nunito'; src: url('/assets/Nunito.ttf') format('truetype'); font-weight: 200 1000; font-display: swap; }
:root {
  --night: #0B1126;   /* the banner's sky: the top band and the footer */
  --plum: #33196B;    /* the thumbnail's night, from ep1's thumbnail and the shorts */
  --plum-core: #4A2A8A;
  --plum-edge: #120B2E;
  --cream: #FBF6EA;   /* words on the dark */
  --lilac: #CFC4EE;
  --gold: #FFC83D;
  --teal: #62D2C0;
  --ink: #1D2140;     /* words on the paper */
  --soft: #545A78;
  --rule: #E6E1EF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); background: #FFFFFF; font-size: 17px; line-height: 1.5; }
a { color: var(--ink); font-weight: 800; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
p, li { text-wrap: pretty; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* the top band: the banner's sky, with the name */
.band { position: relative; overflow: hidden; background: var(--night); color: var(--cream); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.band a.home { display: flex; align-items: center; gap: 7px; color: var(--cream); text-decoration: none; font-weight: 900; font-size: 21px; position: relative; }
.band a.home img { height: 32px; }
.band a.home span { color: var(--gold); }
.band .channel { color: var(--lilac); font-size: 15px; font-weight: 800; text-decoration: none; position: relative; }
.band .star { position: absolute; border-radius: 50%; }

/* the hero: the episode in its own night */
.hero { position: relative; color: var(--cream); padding: 26px 0 84px;
  background: url('/assets/floor.svg') bottom / 100% 54px no-repeat, var(--plum); }
.hero h1 { font-weight: 900; font-size: 38px; line-height: 1.05; letter-spacing: -.5px; }
.hero .lede { margin-top: 12px; font-size: 18px; color: var(--lilac); max-width: 34em; }
.hero .meta { margin-top: 12px; font-size: 15px; color: var(--lilac); }
.hero .meta a { color: var(--gold); }
.hero .wrap { display: grid; grid-template-areas: 'head' 'player' 'rest'; }
.hero .head { grid-area: head; }
.hero .player { grid-area: player; margin-top: 20px; }
.hero .rest { grid-area: rest; }

/* the video loads only when someone presses play */
.player { position: relative; border-radius: 12px; overflow: hidden; background: var(--plum-edge); aspect-ratio: 16 / 9; }
.player img, .player iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.player button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; }
.player .play { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%;
  background: var(--gold); }
.player .play::after { content: ''; position: absolute; left: 32px; top: 25px; border-style: solid;
  border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--plum-edge); }
.player button:focus-visible { outline: none; }
.player button:focus-visible .play { outline: 4px solid var(--cream); outline-offset: 4px; }

.button { display: inline-block; background: var(--gold); color: #1A1033; text-decoration: none; font-weight: 900;
  font-size: 18px; padding: 13px 22px; border-radius: 10px; border: 0; cursor: pointer; font-family: inherit; }
.button:hover { background: #FFD45F; }
.hero .button { margin-top: 18px; }

/* the paper */
.learn { padding: 34px 0 10px; }
h2 { font-weight: 900; font-size: 27px; line-height: 1.15; color: var(--ink); }
.learn ul, .guide ul { margin: 10px 0 0 1.15em; max-width: 36em; }
.learn li + li, .guide li + li { margin-top: 5px; }
.guide { padding-block: 40px; display: grid; gap: 22px; align-items: start; }
.guide p { margin-top: 8px; max-width: 36em; }
.guide .button { margin-top: 18px; }
.guide .preview { order: 2; justify-self: start; }
.guide .preview img { width: 180px; border: 1px solid var(--rule); border-radius: 4px; }
.small { font-size: 15px; color: var(--soft); margin-top: 10px; }

.signup-wrap { padding: 8px 0 44px; }
.signup { color: var(--cream); border-radius: 18px; padding: 28px 22px; max-width: 680px;
  background: var(--plum); }
.signup h2 { color: var(--cream); }
.signup p { margin-top: 8px; color: var(--lilac); }
.signup .small { color: var(--lilac); }
.signup a { color: var(--gold); }
form { margin-top: 18px; display: grid; gap: 14px; }
label { font-weight: 800; font-size: 16px; display: block; color: var(--cream); }
input[type=email], select { width: 100%; margin-top: 6px; font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid transparent; background: #fff; color: var(--ink); }
input[type=email]:focus, select:focus { outline: 3px solid rgba(255,200,61,.7); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message { font-weight: 800; }
.message:empty { display: none; }
.message.ok { color: #9BE7B4; }
.message.err { color: #FFB4A8; }

.about { padding: 8px 0 48px; color: var(--soft); }
.about h2 { font-size: 21px; color: var(--ink); }
.about p { max-width: 58ch; margin-top: 8px; }

footer { background: var(--night); color: var(--lilac); padding: 24px 0 32px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--gold); }

/* the other pages: a band, then paper */
.page { padding: 34px 0 56px; }
.page h1 { font-weight: 900; font-size: 32px; line-height: 1.1; color: var(--ink); }
.page h2 { font-size: 21px; margin-top: 26px; }
.page p, .page ul { margin-top: 10px; max-width: 58ch; }
.page ul { padding-left: 1.2em; }

@media (min-width: 820px) {
  .band .wrap { min-height: 64px; }
  .hero { padding: 48px 0 122px; background-size: 100% 70px; }
  .hero .wrap { grid-template-columns: 5fr 7fr; grid-template-areas: 'head player' 'rest player'; column-gap: 44px; }
  .hero .head { align-self: end; }
  .hero .rest { align-self: start; }
  .hero h1 { font-size: 58px; max-width: 9ch; }
  .hero .player { margin-top: 0; }
  h2 { font-size: 32px; }
  .learn { padding: 54px 0 14px; }
  .guide { grid-template-columns: 1fr 260px; gap: 56px; padding-block: 54px 60px; }
  .guide .preview { order: 0; grid-column: 2; grid-row: 1; }
  .guide .preview img { width: 260px; }
  .signup { padding: 36px 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background .15s; }
}
