/* Scribblebop website: one stylesheet for every page.
   The look is the app's "craft table" (docs/BRAND.md): Grape Ink on a lilac dot grid, paper stickers with a 3px ink outline and a hard
   offset shadow, fridge-magnet letters. The tokens are the app's (src/styles/app.css).
   Nothing here needs a script, a cookie or another site: the fonts are files next to this one, and the page's Content-Security-Policy
   (a <meta> tag in every page) allows this stylesheet, those fonts and the page's own pictures, and nothing else. That is also why
   there is no style="" attribute anywhere, no data: URL in this file, and why the check mark is drawn with borders. */

@font-face { font-family: "Grandstander"; src: url("fonts/grandstander.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --ink: #2a1b5c;
  --ink-soft: #5d4f94;
  --paper: #fffdf8;
  --table: #eeeaff;
  --dot: #d8cfff;
  --pink: #ff3d7f;
  --pink-l: #ffd3e3;
  --sun: #ffc83d;
  --sun-l: #fff1c4;
  --pool: #20b4e3;
  --pool-l: #c8eefa;
  --leaf: #2fcb7e;
  --leaf-l: #cdf5e1;
  --grape: #8a5cff;
  --grape-l: #e4d9ff;
  --tangerine: #ff8a3d;
  --night: #1b1238;
  --font-display: "Grandstander", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 14px;
  --stroke: 3px;
  --lift: 5px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* the craft table: lilac with the app's 22 px dot grid. Every dot is only a shade darker than the table, and Grape Ink (12.7 : 1
     on the table, 10.1 : 1 on a dot) and Ink Soft (5.9 : 1 and 4.7 : 1) read on both; tests/site/site.spec.ts works that out for the
     text that axe cannot decide because a gradient is behind it */
  background-color: var(--table);
  background-image: radial-gradient(var(--dot) 1.6px, transparent 1.7px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

a { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 4px; font-weight: 800; }
a:hover { background: var(--pink-l); text-decoration-color: var(--ink); }
a:focus-visible, summary:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; border-radius: 6px; background: var(--sun-l); }

.wrap { width: min(100% - 32px, 70rem); margin-inline: auto; }
.eyebrow { margin: 0 0 .5rem; font-weight: 900; font-size: .8125rem; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------------------------------------------------------------- skip link */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 18px; border: var(--stroke) solid var(--ink); border-radius: var(--r-sm);
  background: var(--sun); color: var(--ink); font-family: var(--font-display); font-weight: 800; text-decoration: none;
  box-shadow: 0 var(--lift) 0 var(--ink);
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; background: var(--sun); }

/* ---------------------------------------------------------------- header and the fridge-magnet wordmark */
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 14px; }
.logo-link { display: inline-block; padding: 8px 6px; text-decoration: none; }
.logo-link:hover { background: none; }
.logo { display: inline-flex; font-family: var(--font-display); font-weight: 900; font-size: 2.15rem; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.logo-letter {
  display: inline-block; color: var(--c); transform: rotate(var(--r));
  -webkit-text-stroke: .09em var(--ink); paint-order: stroke fill;
  text-shadow: 0 .09em 0 var(--ink);
  margin-right: -.02em;
}
.logo-letter:nth-child(1)  { --c: var(--pink);      --r: -6deg; }
.logo-letter:nth-child(2)  { --c: var(--sun);       --r: 4deg; }
.logo-letter:nth-child(3)  { --c: var(--pool);      --r: -3deg; }
.logo-letter:nth-child(4)  { --c: var(--leaf);      --r: 5deg; }
.logo-letter:nth-child(5)  { --c: var(--grape);     --r: -4deg; }
.logo-letter:nth-child(6)  { --c: var(--tangerine); --r: 3deg; }
.logo-letter:nth-child(7)  { --c: var(--pink);      --r: -5deg; }
.logo-letter:nth-child(8)  { --c: var(--sun);       --r: 4deg; }
.logo-letter:nth-child(9)  { --c: var(--pool);      --r: -2deg; }
.logo-letter:nth-child(10) { --c: var(--leaf);      --r: 6deg; }
.logo-letter:nth-child(11) { --c: var(--grape);     --r: -4deg; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; text-decoration: none;
}
.site-nav a:hover { background: var(--paper); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.site-nav a:focus-visible { background: var(--sun-l); }
.site-nav a[aria-current="page"]:focus-visible { background: var(--ink); color: #fff; } /* white text stays on Grape Ink: the focus ring is what changes */

/* ---------------------------------------------------------------- stickers, buttons, pills */
.sticker { background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--r-lg); box-shadow: 0 var(--lift) 0 var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 24px;
  border: var(--stroke) solid var(--ink); border-radius: var(--r-md); background: var(--sun); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.1; text-decoration: none;
  box-shadow: 0 var(--lift) 0 var(--ink);
}
.btn:hover { background: var(--sun-l); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.pill {
  display: inline-block; padding: 1px 14px 2px; border: var(--stroke) solid var(--ink); border-radius: 999px; background: var(--sun); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; line-height: 1.5;
}

/* ---------------------------------------------------------------- the home page */
.section { padding-block: clamp(28px, 5vw, 56px); }
.section > .wrap > h2, .section-head { margin: 0 0 1.1rem; font-size: clamp(1.7rem, 4.2vw, 2.4rem); }

.hero { padding-block: clamp(20px, 5vw, 64px) clamp(28px, 5vw, 56px); }
.hero-grid { display: grid; gap: 34px 56px; align-items: center; }
.hero h1 { margin: 0 0 .5em; font-weight: 900; font-size: clamp(2.5rem, 8.5vw, 4.4rem); line-height: 1; letter-spacing: -.015em; }
.lede { max-width: 34rem; margin: 0 0 1.1rem; font-size: 1.25rem; font-weight: 600; }
.soon { margin: 1.4rem 0 0; font-weight: 700; }

.promise-wrap { position: relative; padding-top: 114px; }
.promise { padding: 24px 22px 26px; background: var(--sun); transform: rotate(-1.4deg); }
.promise .eyebrow { color: var(--ink); }
.promise .eyebrow { margin-bottom: .6rem; }
.promise-text { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 4.4vw, 2rem); line-height: 1.18; text-wrap: balance; }
.promise .line { display: block; }
.promise .line + .line { margin-top: .35em; }
.bop { position: absolute; right: 18px; top: 0; z-index: 1; width: 132px; height: 132px; transform: rotate(3deg); }

.steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 20px 20px 22px; }
.steps .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--sun); font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; line-height: 1;
}
.steps h3 { margin: 0 0 .3rem; font-size: 1.55rem; }
.steps p { margin: 0; font-weight: 600; }
.after-steps { max-width: 44rem; margin: 1.6rem 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.3; }

.shots { display: grid; gap: 34px; }
.shot { margin: 0; display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 18px; align-items: center; }
.phone { overflow: hidden; border: var(--stroke) solid var(--ink); border-radius: 30px; background: var(--paper); box-shadow: 0 6px 0 var(--ink); }
.phone img { display: block; width: 100%; height: auto; }
.shot figcaption strong { display: block; margin-bottom: .25rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.shot figcaption span { display: block; font-weight: 600; }

.fine { margin: 1.4rem 0 0; font-size: .9375rem; font-weight: 700; color: var(--ink-soft); }
.soon-card { padding: 22px 22px 24px; background: var(--sun-l); }
.soon-card h2 { margin: 0 0 .4rem; font-size: clamp(1.5rem, 3.6vw, 2rem); }
.soon-card p { margin: 0; max-width: 40rem; font-weight: 700; }

.little { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.little li { padding: 14px 18px; background: var(--sun-l); border: var(--stroke) solid var(--ink); border-radius: var(--r-md); font-weight: 700; }

.grownups-grid { display: grid; gap: 28px 48px; align-items: start; }
.grownups-grid p { margin: 0 0 1.2rem; font-weight: 600; max-width: 32rem; }
.checks { margin: 0; padding: 22px 22px 14px; list-style: none; }
.checks li { position: relative; margin: 0 0 .9rem; padding-left: 2.5rem; font-weight: 700; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 1.6rem; height: 1.6rem; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--leaf);
}
.checks li::after {
  content: ""; position: absolute; left: .55rem; top: .3em; width: .42rem; height: .8rem; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* ---------------------------------------------------------------- pages with a sheet of text: support, privacy, 404 */
.page { padding-block: clamp(16px, 4vw, 48px); }
.page > .wrap > h1 { margin: 0 0 .4em; font-weight: 900; font-size: clamp(2.2rem, 6.5vw, 3.4rem); line-height: 1.04; letter-spacing: -.01em; }
.sheet { padding: clamp(20px, 4.5vw, 44px); background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--r-lg); box-shadow: 0 var(--lift) 0 var(--ink); }
.sheet > :first-child { margin-top: 0; }
.sheet > :last-child { margin-bottom: 0; }
.narrow { max-width: 47rem; }

.contact { display: grid; gap: 10px; margin: 0 0 2rem; padding: 22px 22px 24px; background: var(--sun); }
.contact p { margin: 0; font-weight: 700; }
.contact .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 5.6vw, 2.2rem); line-height: 1.15; overflow-wrap: anywhere; }
.contact a { text-decoration-color: var(--ink); }
.contact a:hover { background: var(--sun-l); }

.qa h2 { margin: 2.4rem 0 .6rem; font-size: clamp(1.6rem, 4vw, 2rem); }
.qa h2:first-child { margin-top: 0; }
.qa h3 { margin: 1.8rem 0 .3rem; font-size: 1.3rem; line-height: 1.2; }
.qa p, .qa ol, .qa ul { margin: 0 0 .8rem; }
.qa ol, .qa ul { padding-left: 1.5rem; }
.qa li { margin-bottom: .45rem; }
.qa li::marker { color: var(--ink); font-weight: 900; }

/* the privacy policy: generated from docs/store/privacy-policy.md by scripts/build-site.mjs */
.policy h1 { margin: 0 0 .5rem; font-weight: 900; font-size: clamp(2rem, 5.6vw, 2.9rem); line-height: 1.06; }
.policy h2 { margin: 2.2rem 0 .5rem; font-size: clamp(1.4rem, 3.4vw, 1.75rem); line-height: 1.15; }
.policy p, .policy li { max-width: 44rem; }
.policy p { margin: 0 0 1rem; }
.policy ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.policy li { margin-bottom: .55rem; }
.policy li::marker { color: var(--pink); }
.policy strong { font-weight: 900; }
.policy p + p, .policy h1 + p { margin-top: 0; }
/* "Effective: ... Version: ..." is one line in the policy file, three spaces apart; give the two labels room */
.policy h1 + p > strong:nth-of-type(2)::before { content: "\2003"; }
mark.owner { padding: 1px 6px; border: 2px dashed var(--ink); border-radius: 8px; background: var(--sun); color: var(--ink); font-weight: 800; }
.draft-banner { margin: 0 0 1.4rem; padding: 12px 16px; border: var(--stroke) solid var(--ink); border-radius: var(--r-md); background: var(--pink-l); color: var(--ink); font-weight: 700; }

.lost { display: grid; gap: 20px; justify-items: start; }
.lost-bop { width: 150px; height: 150px; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: clamp(24px, 5vw, 56px); padding-block: 34px 40px; background: var(--night); color: var(--paper); }
.site-footer a { color: var(--paper); text-decoration-color: var(--sun); }
.site-footer a:hover { background: rgba(255, 255, 255, .14); text-decoration-color: var(--paper); }
.site-footer a:focus-visible { outline-color: var(--sun); background: transparent; }
.footer-grid { display: grid; gap: 22px 40px; }
.footer-grid p { margin: 0 0 .5rem; }
.footer-grid .small { font-size: .9375rem; color: var(--grape-l); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .logo { font-size: 1.9rem; }
.site-footer .logo-link { padding-left: 0; }

/* ---------------------------------------------------------------- phones: a smaller wordmark so the two links fit beside it, and under it (lined up with it) when they cannot */
@media (max-width: 30rem) {
  .site-header .bar { column-gap: 8px; }
  .logo { font-size: 1.85rem; }
  .site-nav a { padding: 0 10px; font-size: 1.05rem; }
}
@media (max-width: 22.5rem) {
  .site-nav { margin-left: -10px; }
}

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 46rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .steps li:nth-child(1) { transform: rotate(-1.5deg); }
  .steps li:nth-child(3) { transform: rotate(1.5deg); }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; align-items: start; }
  .shot { grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: center; text-align: center; }
  .shot .phone { width: min(100%, 17rem); }
  .shot:nth-child(1) .phone { transform: rotate(-2deg); }
  .shot:nth-child(3) .phone { transform: rotate(1.8deg); }
  .little { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .grownups-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .skip-link, .site-nav, .site-header, .site-footer .footer-links, .bop, .lost-bop { display: none; }
  .sheet, .sticker { box-shadow: none; }
  .site-footer { background: #fff; color: var(--ink); }
  .site-footer a { color: var(--ink); }
  .footer-grid .small { color: var(--ink-soft); }
  a { text-decoration: underline; }
}
