/* sparksforkids.app, in the Sparks apps' own look: their five colours, Minya headlines over Inter, 2px ink lines,
   and hard offset shadows only under what you press and the pictures each app leads with. */

@font-face { font-family: Minya; src: url(/fonts/Minya.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Inter; font-weight: 400; src: url(/fonts/Inter-400Regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Inter; font-weight: 600; src: url(/fonts/Inter-600SemiBold.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Masthead; src: url(/fonts/Masthead.woff2) format('woff2'); font-display: block; }
@font-face { font-family: Inter; font-weight: 700; src: url(/fonts/Inter-700Bold.woff2) format('woff2'); font-display: swap; }

:root {
  --ink: #000;
  --white: #fff;
  --wash: #faf8f3;
  --yellow: #ffec87;
  --yellow-soft: #fff6c2;
  --pink: #ff9ec1;
  --pink-soft: #ffd1e2;
  --lilac: #9d99ff;
  --lilac-soft: #ccc9ff;
  --muted: rgba(0, 0, 0, 0.72);
  --line: 2px solid var(--ink);
  --gutter: clamp(16px, 4vw, 40px);
  --display: Minya, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 400 18px/1.55 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; margin: 0; text-wrap: balance; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 14px; border: var(--line); border-radius: 999px; }

/* ----- what you press ----- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border: var(--line); border-radius: 999px; background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font: 600 17px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform 60ms, box-shadow 60ms;
}
.button:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.button.white { background: var(--white); }
.button.black { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--lilac); }
.button.small { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.button.small:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.link { font-weight: 600; text-underline-offset: 3px; }

/* ----- stickers and the icons' squares ----- */
.sticker {
  display: inline-block; padding: 7px 14px 6px; border: var(--line); border-radius: 999px; background: var(--white);
  font: 400 17px/1.1 var(--display); white-space: nowrap; transform: rotate(var(--tilt, -4deg));
}
.icon { flex: none; width: 48px; height: 48px; border: var(--line); border-radius: 12px; overflow: hidden; }
.icon.small { width: 32px; height: 32px; border-width: 1.5px; border-radius: 9px; }

/* ----- the top ----- */
.top { display: flex; align-items: center; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark .stack { display: flex; }
.mark .stack .icon { width: 34px; height: 34px; border-radius: 10px; }
.mark .stack .icon + .icon { margin-left: -10px; }
.mark .display { font-size: 30px; padding-top: 3px; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.button) { font-weight: 600; font-size: 16px; text-decoration: none; }
.top nav a:not(.button):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .top nav a:not(.button) { display: none; } }

/* ----- the home page's opening ----- */
/* The headline and what it means side by side on a wide screen, so the apps themselves are in the first view. */
.opening { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px clamp(32px, 5vw, 80px); align-items: end; padding-top: clamp(16px, 3.5vw, 48px); padding-bottom: clamp(32px, 4vw, 52px); }
@media (max-width: 980px) { .opening { grid-template-columns: 1fr; } }
.opening h1 { font-size: clamp(46px, 6vw, 92px); max-width: 12ch; }
.opening p { font-size: clamp(18px, 1.6vw, 21px); max-width: 40ch; margin: 0 0 0.35em; }

/* ----- the four apps, as their welcome screens show them ----- */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); padding-bottom: clamp(56px, 8vw, 112px); }
@media (max-width: 980px) { .apps { grid-template-columns: 1fr; max-width: 560px; } }
.app { display: flex; flex-direction: column; padding: 24px 24px 28px; border: var(--line); border-radius: 28px; }
/* Side by side, the cards share rows, so their headlines, lines and pictures line up across. */
@media (min-width: 981px) { .app { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; } }
.app.yellow, .tone-yellow { background: var(--yellow); }
.app.pink, .tone-pink { background: var(--pink); }
.app.lilac, .tone-lilac { background: var(--lilac); }
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.apps > *, .family > *, .app-hero > *, .hear .wrap > *, .opening > * { min-width: 0; }
.brand .display { font-size: 30px; padding-top: 4px; margin-right: auto; }
.app h2 { font-size: clamp(32px, 2.9vw, 40px); margin-top: 22px; }
.app > p { font-size: 16px; margin: 12px 0 0; }
.app .picture { margin: 40px 6px 30px; }
.app .more { margin-top: auto; align-self: start; justify-self: start; }

/* The picture card each app leads with, stickers hanging over its corners. */
.picture { position: relative; aspect-ratio: 11 / 10; }
.picture .card { position: absolute; inset: 0; border: var(--line); border-radius: 20px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); background: var(--white); }
.picture .sticker { position: absolute; z-index: 2; font-size: 16px; }
.picture .sticker.one { left: -10px; top: -16px; --tilt: -6deg; background: var(--lilac); }
.picture .sticker.two { right: -8px; bottom: -16px; --tilt: 4deg; background: var(--pink); }
.lilac .picture .sticker.one, .tone-lilac .picture .sticker.one { background: var(--yellow); }
.pink .picture .sticker.two, .tone-pink .picture .sticker.two { background: var(--yellow); }

.slices { display: flex; height: 100%; }
.slices img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.slices img + img { border-left: var(--line); }
.professor { position: absolute; z-index: 1; right: -6px; top: -34px; width: 64px; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.25)); }

.shop { display: flex; flex-direction: column; height: 100%; background: var(--pink-soft); }
.shop .display { font-size: 21px; padding: 26px 16px 0; }
.shelf { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 2px; padding: 0 8px 26px; }
.shelf figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.shelf img { width: 100%; max-width: 88px; aspect-ratio: 1; }
.price { display: inline-flex; align-items: center; gap: 4px; font: 700 13px/1 var(--body); padding: 4px 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); }
.coin { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 1.5px solid var(--ink); }

.photo { width: 100%; height: 100%; object-fit: cover; }

/* News: a front page in miniature, its nameplate in the one face News adds to the Sparks type (cut to N, e, w, s). */
.front { display: flex; flex-direction: column; padding: 20px 16px 22px; }
.nameplate { margin: 0; padding-bottom: 2px; border-bottom: 2px solid var(--ink); box-shadow: 0 3px 0 var(--white), 0 4px 0 var(--ink); font: 400 40px/1.12 Masthead, serif; text-align: center; }
.front ul { flex: 1; list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; justify-content: space-evenly; }
.front li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font: 700 14px/1.25 var(--body); }
.front li + li { border-top: 1px solid rgba(0, 0, 0, 0.12); }
.tag { flex: none; padding: 5px 8px; border: var(--line); border-radius: 8px; font: 700 11px/1.1 var(--body); }
.tag.yellow { background: var(--yellow); }
.tag.yellow-soft { background: var(--yellow-soft); }
.tag.lilac-soft { background: var(--lilac-soft); }
.bolt { position: absolute; z-index: 1; right: -10px; top: -34px; width: 64px; height: 64px; fill: var(--pink); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.picture.front-page .sticker.two { background: var(--white); }

/* ----- one family account ----- */
.family { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-bottom: clamp(64px, 9vw, 128px); }
@media (max-width: 900px) { .family { grid-template-columns: 1fr; } }
.family h2, .promises h2, .hear h2, .page h2.big { font-size: clamp(38px, 4.6vw, 64px); max-width: 14ch; }
.family .intro { font-size: 20px; margin: 20px 0 0; max-width: 40ch; }
.ones { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; max-width: 44ch; }
.ones li { padding-left: 22px; border-left: 4px solid var(--ink); }
.ones b { display: block; font: 400 24px/1.1 var(--display); margin-bottom: 4px; }

/* A grown-ups' settings screen, as the apps draw it, with a made-up family on it. */
.settings { justify-self: center; width: 100%; max-width: 420px; padding: 26px 22px 22px; border: var(--line); border-radius: 36px; background: var(--wash); }
.settings .head { margin: -26px -22px 22px; padding: 26px 26px 24px; background: var(--lilac); border-bottom: var(--line); border-radius: 34px 34px 32px 32px; }
.settings .head .display { font-size: 30px; }
.settings .head p { margin: 6px 0 0; font-size: 15px; }
.settings h3 { font: 600 14px/18px var(--body); margin: 0 0 10px; }
.rows { border: var(--line); border-radius: 20px; background: var(--white); overflow: hidden; margin-bottom: 18px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; }
.row + .row { border-top: var(--line); }
.row .text { flex: 1; min-width: 0; line-height: 1.3; }
.row .text b { display: block; font-size: 16px; }
.row .text span { font-size: 13px; color: var(--muted); }
.row .pill { font: 600 14px/1 var(--body); padding: 10px 14px; border: var(--line); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); background: var(--white); }
.person { width: 36px; height: 36px; flex: none; border: var(--line); border-radius: 50%; display: grid; place-items: center; font: 400 18px/1 var(--display); padding-top: 2px; }
.settings .note { font-size: 13px; margin: 0; }

/* ----- promises ----- */
.promises { background: var(--ink); color: var(--white); padding: clamp(64px, 9vw, 120px) 0; }
.promises .lede { font-size: 20px; max-width: 46ch; margin: 18px 0 0; color: rgba(255, 255, 255, 0.82); }
.promise-list { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px clamp(32px, 6vw, 96px); }
@media (max-width: 760px) { .promise-list { grid-template-columns: 1fr; } }
.promise-list b { display: block; font: 400 clamp(28px, 3vw, 38px)/1.05 var(--display); color: var(--yellow); margin-bottom: 10px; }
.promise-list li:nth-child(2) b { color: var(--pink); }
.promise-list li:nth-child(3) b { color: var(--lilac-soft); }
.promise-list p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 42ch; }
.promises .small { margin: 48px 0 0; font-size: 16px; color: rgba(255, 255, 255, 0.72); }
.promises .small a { color: var(--white); }

/* ----- hear when they're out ----- */
.hear { background: var(--yellow); border-top: var(--line); border-bottom: var(--line); padding: clamp(56px, 8vw, 104px) 0; }
.hear .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
@media (max-width: 860px) { .hear .wrap { grid-template-columns: 1fr; } }
.hear p { font-size: 20px; margin: 18px 0 0; max-width: 40ch; }
.signup label { display: block; font: 600 15px/1.2 var(--body); margin-bottom: 8px; }
.signup .field { display: flex; gap: 12px; flex-wrap: wrap; }
.signup input[type='email'] {
  flex: 1 1 240px; min-height: 56px; padding: 0 18px; border: var(--line); border-radius: 14px; background: var(--white);
  font: 400 18px/1 var(--body); color: var(--ink);
}
.signup input[type='email']:focus { outline: 3px solid var(--lilac); outline-offset: 2px; }
.signup .button { min-height: 56px; }
.signup .fine { font-size: 14px; margin: 14px 0 0; color: var(--muted); max-width: 52ch; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----- an app's own page ----- */
.app-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 112px); }
@media (max-width: 900px) { .app-hero { grid-template-columns: 1fr; } }
.app-hero .brand .display { font-size: 34px; margin-right: 6px; }
.app-hero .brand { gap: 12px; }
.app-hero h1 { font-size: clamp(46px, 6.4vw, 92px); margin-top: 28px; max-width: 12ch; }
.app-hero .line { font-size: clamp(18px, 1.7vw, 21px); margin: 20px 0 0; max-width: 42ch; }
.inside { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; max-width: 46ch; }
.inside li { position: relative; padding-left: 30px; }
.inside li::before { content: ''; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border: var(--line); border-radius: 50%; background: var(--yellow); }
.tone-yellow .inside li::before { background: var(--white); }
.app-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 36px; }
.app-hero .picture { width: 100%; max-width: 480px; justify-self: center; }
.app-page { border-bottom: var(--line); }

.others { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.others h2 { font-size: clamp(32px, 3.6vw, 48px); }
.other-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.other { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: var(--line); border-radius: 20px; text-decoration: none; }
.other:hover .display { text-decoration: underline; text-underline-offset: 4px; }
.other .display { font-size: 26px; padding-top: 3px; }
.other span { display: block; font-size: 15px; }

/* ----- reading pages: privacy, terms, support, and the sign-up's steps ----- */
.page { padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(64px, 9vw, 120px); }
.page .doc { max-width: 68ch; }
.page h1 { font-size: clamp(42px, 5.6vw, 76px); max-width: 16ch; }
.page .intro { font-size: 20px; margin: 22px 0 0; }
.page .updated { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.page h2 { font: 400 clamp(26px, 2.6vw, 32px)/1.1 var(--display); margin: 48px 0 0; }
.page h2 + p, .page h2 + ul { margin-top: 14px; }
.page p, .page li { font-size: 18px; }
.page p { margin: 14px 0 0; }
.page ul { margin: 14px 0 0; padding-left: 1.2em; }
.page li + li { margin-top: 6px; }
.page .apps-legal { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 24px; }
.page .apps-legal li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page .apps-legal b { min-width: 7.5em; }
.page .step { max-width: 34ch; }
.page .step .button { margin-top: 32px; }

/* ----- the foot ----- */
.foot { padding: 56px 0 64px; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }
.foot h2 { font: 600 15px/1.2 var(--body); margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot p { margin: 0 0 8px; max-width: 40ch; }
.foot a { text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
.nb { white-space: nowrap; }
