/* blobby.win: the scroll story. Blobby's own type (Fraunces Soft, Nunito), the app's colours, a sky that changes by chapter. */
@font-face { font-family: 'Fraunces Soft'; src: url(/fonts/FrauncesSoft-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Fraunces Soft'; src: url(/fonts/FrauncesSoft-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fraunces Soft'; src: url(/fonts/FrauncesSoft-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fraunces Soft'; src: url(/fonts/FrauncesSoft-Italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/Nunito-400Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/Nunito-700Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/Nunito-800ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --ink: #141D16; --ink-soft: rgba(20, 29, 22, .72); --line: rgba(20, 29, 22, .16);
  --s1: #EAF9DC; --s2: #F1ECFF; --s3: #F4F5EC;
  --lime: #83FC37; --on-lime: #0A170D; --night: #0D1613;
  --glass: rgba(255, 255, 255, .55); --glass-line: rgba(255, 255, 255, .7);
  --serif: 'Fraunces Soft', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}
body.light { --ink: #FFF6EE; --ink-soft: rgba(255, 246, 238, .78); --line: rgba(255, 246, 238, .22); --glass: rgba(255, 255, 255, .1); --glass-line: rgba(255, 255, 255, .22); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--s3); color: var(--ink); font-family: var(--sans); font-size: 19px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; transition: color .6s ease; overflow-x: hidden; }
a { color: inherit; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* the sky and the stage */
#sky { position: fixed; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 55%, var(--s3) 100%); }
#sky .grain { position: absolute; inset: 0; background: url(/img/grain.png); opacity: .22; mix-blend-mode: overlay; }
#stage { position: fixed; z-index: -1; right: 5vw; top: 50%; width: min(42vw, 540px); aspect-ratio: 400 / 470; transform: translateY(-50%);
  transition: filter 1s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1), right 1.1s cubic-bezier(.2, .8, .2, 1), width 1.1s cubic-bezier(.2, .8, .2, 1); }
#stage.grey { filter: grayscale(1) brightness(1.02) opacity(.9); }

/* the HUD */
#hud { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 18px; padding: 16px 20px; pointer-events: none; }
#hud::before { content: ''; position: absolute; inset: 0 0 -28px; z-index: -1; background: linear-gradient(to bottom, var(--s1) 45%, transparent); }
#hud .drop { display: flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-weight: 800; font-size: 15px; }
#hud .drop span { font-weight: 700; font-size: 12px; opacity: .65; }
#hud .drop.pop { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 40% { transform: scale(1.18); } }
#hud .bar { flex: 1; display: flex; gap: 6px; max-width: 460px; margin: 0 auto; }
#hud .bar i { flex: 1; height: 2px; border-radius: 2px; background: var(--line); transition: background .5s; }
#hud .bar i.on { background: var(--ink); }
#hud .where { min-width: 120px; text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; opacity: .7; }

/* the gate: poke Blobby */
#gate { display: none; }
.js #gate { display: block; position: fixed; inset: 0; z-index: 30; }
.js #gate[hidden] { display: none; }
.js body.gated { overflow: hidden; }
body.gated #stage { right: 50%; transform: translate(50%, -62%); width: min(62vw, 420px); }
.poke { position: absolute; left: 50%; top: 38%; width: min(62vw, 420px); aspect-ratio: 400 / 470; transform: translate(-50%, -50%); border: 0; background: none; border-radius: 40%;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath d='M11 30c-3-3-6-7-6-9 0-1.6 1.8-2.2 3-1l3 3V6a2 2 0 0 1 4 0v9-2a2 2 0 0 1 4 0v2-1a2 2 0 0 1 4 0v2a2 2 0 0 1 4 0v8c0 4-2 7-4 7z' fill='%23fff' stroke='%23111' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 12 4, pointer; }
.poke .ring { position: absolute; left: 50%; top: 42%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(20, 29, 22, .55);
  animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.poke:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
#gateLabel { position: absolute; left: 0; right: 0; bottom: 15vh; text-align: center; margin: 0; }
.hello { position: absolute; left: 0; right: 0; bottom: 7vh; text-align: center; margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 9vw, 120px);
  line-height: 1; opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; pointer-events: none; }
.hello span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; margin-top: 18px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.skipgate { position: absolute; left: 50%; bottom: 10vh; transform: translateX(-50%); background: none; border: 0; color: var(--ink); opacity: .55; cursor: pointer; text-decoration: underline; }
#gate.said .ring, #gate.said #gateLabel, #gate.said .skipgate { opacity: 0; transition: opacity .4s; }
#gate.said .hello { opacity: 1; transform: none; }
#gate.gone { opacity: 0; pointer-events: none; transition: opacity .8s; }

/* chapters */
main { position: relative; z-index: 1; }
.js main { padding-top: 100vh; }
.ch { min-height: 150vh; padding: 0 7vw; display: flex; align-items: flex-start; }
.ch.tall { min-height: 220vh; }
.copy { position: sticky; top: 20vh; max-width: min(560px, 48vw); padding: 8px 0 60px; }
.kicker { margin: 0 0 16px; opacity: .7; }
.big { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 6.6vw, 98px); line-height: .96; letter-spacing: -.03em; margin: 0 0 22px; text-wrap: balance; }
.big em { font-style: italic; font-weight: 400; }
.cap { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.32em; line-height: 0; margin-right: -.02em; position: relative; top: .06em; }
.copy > p { max-width: 30em; color: var(--ink-soft); margin: 0 0 16px; }
.copy em { font-style: italic; }

.drills { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; max-width: 520px; }
.drills li { padding: 10px 0; border-top: 1px solid var(--line); }
.drills b { display: block; font-weight: 800; font-size: 16px; }
.drills span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }

.week { display: flex; gap: 10px; margin-top: 26px; }
.week i { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); }
.week i.on { background: var(--lime); border-color: transparent; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.week i.ice { background: #BFE9FF; border-color: transparent; }
.week i.now { border: 2px dashed var(--ink); animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); } }

.facts { display: grid; gap: 12px; margin: 22px 0 18px; max-width: 520px; }
.facts article { padding: 16px 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.facts b { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; opacity: .7; }
.facts p { margin: 4px 0 6px; font-size: 16.5px; line-height: 1.45; }
.facts a { font-size: 13px; font-weight: 700; opacity: .75; }
.honest { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink) !important; }

.crew { display: flex; gap: 6px; margin-top: 22px; }
.crew span { width: 76px; height: 90px; display: block; }

/* the beta */
.join { min-height: 120vh; padding-bottom: 20vh; }
.join .copy { position: relative; top: 0; padding-top: 22vh; }
form { margin-top: 24px; display: grid; gap: 12px; max-width: 440px; }
input[type=email] { font: 700 18px var(--sans); padding: 17px 20px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); outline: none; }
input[type=email]::placeholder { color: var(--ink-soft); }
input[type=email]:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(131, 252, 55, .35); }
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px; border-radius: 999px; font-weight: 800; font-size: 15px; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: var(--night); }
body:not(.light) .seg input:checked + span { color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--lime); }
.go { font: 800 17px var(--sans); padding: 17px; border-radius: 999px; border: 0; background: var(--lime); color: var(--on-lime); cursor: pointer;
  box-shadow: 0 6px 0 #4C9A1A; transition: transform .12s, box-shadow .12s; }
.go:active { transform: translateY(4px); box-shadow: 0 2px 0 #4C9A1A; }
.go[disabled] { opacity: .6; cursor: default; }
.fine { font-size: 13.5px; color: var(--ink-soft); margin: 2px 6px; }
.msg { font-weight: 800; min-height: 1.4em; margin: 4px 6px; }

footer#foot { position: relative; z-index: 1; text-align: center; padding: 0 0 130px; font-size: 14px; color: var(--ink-soft); }

/* the pill */
#pill { position: fixed; z-index: 25; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 40px rgba(0, 0, 0, .12); }
#pill .face { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: rgba(131, 252, 55, .18); flex: none; }
#pill .cta { flex: 1; text-align: center; text-decoration: none; background: #141D16; color: #fff; font-weight: 800; font-size: 16px; padding: 13px 18px; border-radius: 999px; }
#pill .menu { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; display: grid; place-content: center; gap: 5px; cursor: pointer; flex: none; }
#pill .menu i { display: block; width: 16px; height: 2px; background: #141D16; border-radius: 2px; transition: transform .3s; }
#pill .menu[aria-expanded=true] i:first-child { transform: translateY(3.5px) rotate(45deg); }
#pill .menu[aria-expanded=true] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
body.gated #pill, body.gated #hud { opacity: 0; pointer-events: none; }
#pill, #hud { transition: opacity .6s; }
#menu { position: fixed; z-index: 24; left: 50%; bottom: 86px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); padding: 18px 22px; border-radius: 26px;
  background: rgba(255, 255, 255, .86); color: #141D16; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 10px 40px rgba(0, 0, 0, .15); }
#menu ol { margin: 0; padding: 0 0 0 1.4em; font-family: var(--serif); font-size: 24px; line-height: 1.5; }
#menu ol a { text-decoration: none; }
#menu p { margin: 10px 0 0; font-size: 14px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* phones: Blobby at the top, the words on glass below */
@media (max-width: 820px) {
  body { font-size: 17px; }
  #stage { right: 50%; top: 8vh; transform: translateX(50%); width: min(52vw, 280px); }
  body.gated #stage { transform: translate(50%, 4vh); width: min(74vw, 360px); }
  .poke { top: calc(12vh + min(74vw, 360px) * .59); width: min(74vw, 360px); }
  #hud { padding: 12px 14px; gap: 10px; }
  #hud .drop span { display: none; }
  #hud .where { min-width: 0; font-size: 10px; }
  .ch { padding: 0 14px; min-height: 140vh; }
  .ch.tall { min-height: 180vh; }
  .copy { top: 42vh; max-width: none; width: 100%; padding: 22px 20px 26px; border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .ch.tall .copy, .ch[data-ch="6"] .copy { position: relative; top: 0; margin-top: 44vh; }
  /* cards that scroll over Blobby need more body, so he never shows through the words */
  .copy { background: rgba(255, 255, 255, .74); }
  body.light .copy { background: rgba(28, 20, 62, .66); }
  .big { font-size: clamp(40px, 11vw, 58px); }
  .drills { grid-template-columns: 1fr; }
  .crew span { width: 56px; height: 66px; }
  .join .copy { padding-top: 26px; margin-top: 44vh; }
  #menu ol { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
