/* Any Minute Now: the site on the same sketchbook page as the app.
   Ink #221D17 on paper #FBF7EE, tomato marker #D9472B, grass #5E9A48, Gran's hair #B3ADA3.
   Real paper stays light at night, so there is no dark theme. */

/* Both fonts are Google Fonts' Latin subsets (SIL OFL, licences beside them), served from this domain. */
@font-face {
  font-family: "Shantell Sans";
  src: url("/assets/fonts/ShantellSans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/Literata-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #FBF7EE;
  --card: #FFFDF8;
  --ink: #221D17;
  --muted: #6F6555;
  --rule: #D9CDB6;
  --green: #5E9A48;
  --win: #3E7A33;
  --orange: #D98E2B;
  --hot: #D9472B;
  --grey: #B3ADA3;
  --tape: rgba(230, 218, 184, .78);
  --hand: "Shantell Sans", "Comic Sans MS", "Chalkboard SE", cursive;
  --text: "Literata", Georgia, "Times New Roman", serif;
  /* the hand-drawn box: a rectangle whose corners don't quite agree */
  --sketch: 255px 12px 225px 14px / 14px 225px 12px 255px;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.6 var(--text);
  background:
    radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(120, 90, 40, .14)) fixed,
    url("/assets/fibres.png"),
    url("/assets/grain.png"),
    var(--paper);
  background-size: auto, 384px, 256px, auto;
  overflow-x: clip;
}
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--hot); }
:focus-visible { outline: 2.5px solid var(--hot); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, .hand {
  font-family: var(--hand);
  font-variation-settings: "INFM" 100;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 7vw, 68px); margin: 0 0 16px; }
h2 { font-size: clamp(28px, 4.4vw, 40px); margin: 0 0 14px; }
h3 { font-size: 22px; margin: 0 0 6px; }
p { margin: 0 0 14px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 max(5vw, 18px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 9; }
.skip:focus { left: 8px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 8px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 1px 0 rgba(34, 29, 23, .25); }
.brand span { font-family: var(--hand); font-variation-settings: "INFM" 100; font-weight: 700; font-size: 24px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-family: var(--hand); font-variation-settings: "INFM" 100; font-weight: 600; font-size: 17px; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { text-decoration: underline; }

/* the taped, torn sheet the slow thing lives on */
.sheet {
  position: relative;
  background: var(--card);
  box-shadow: 0 2px 0 rgba(34, 29, 23, .06), 0 14px 30px -18px rgba(60, 40, 10, .45);
  clip-path: polygon(0 1.6%, 4% .4%, 9% 1.4%, 14% .2%, 21% 1.2%, 27% .5%, 33% 1.5%, 40% .3%, 46% 1.1%, 53% .2%, 59% 1.3%, 66% .4%, 72% 1.5%, 79% .3%, 85% 1.2%, 91% .2%, 96% 1.4%, 100% .6%, 100% 100%, 0 100%);
}
.taped { position: relative; }
.taped::before, .taped::after {
  content: ""; position: absolute; top: -10px; width: 92px; height: 26px; background: var(--tape); z-index: 2;
  clip-path: polygon(2% 8%, 98% 0, 100% 88%, 96% 100%, 3% 94%, 0 18%);
}
.taped::before { left: 6%; transform: rotate(-5deg); }
.taped::after { right: 6%; transform: rotate(4deg); }

/* the drawing */
.art { width: 100%; height: auto; overflow: visible; }
.art path { stroke: var(--ink); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art .f { fill: var(--card); }
.art .k { fill: var(--ink); }
.art .far { stroke-opacity: .5; }
.art circle { fill: var(--ink); }
.art circle.e { fill: var(--card); }
.art .gf { fill: var(--green); stroke: none; }
.art .gs { stroke: var(--green); }
.art .of { fill: var(--orange); stroke: none; }
.art .hf { fill: var(--hot); stroke: none; }
.art .hs { stroke: var(--hot); }
.art .yf { fill: var(--grey); stroke: none; }
.art text { fill: var(--ink); stroke: none; font-family: var(--hand); font-variation-settings: "INFM" 100; font-weight: 500; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 5vw, 64px) 0 clamp(36px, 6vw, 72px); }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink); max-width: 34ch; }
.hero .stage { padding: 18px 10px 6px; }
.say { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 16px 14px; flex-wrap: wrap; }
.say .cap { font-family: var(--hand); font-variation-settings: "INFM" 100; font-weight: 600; font-size: clamp(17px, 2vw, 20px); margin: 0; min-height: 1.3em; }
.say .m { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.again { font: inherit; font-family: var(--hand); font-variation-settings: "INFM" 100; font-weight: 600; font-size: 16px; color: var(--hot); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; color: #FFFDF8; background: var(--ink);
  border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
}
.badge svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.badge small { display: block; font-weight: 400; font-size: 11px; opacity: .8; }
.badge[aria-disabled="true"] { cursor: default; }
.note { font-size: 14px; color: var(--muted); }

/* marker button and pen box */
.marker {
  position: relative; display: inline-block; padding: 12px 22px; font-family: var(--hand); font-variation-settings: "INFM" 100;
  font-weight: 700; font-size: 18px; color: #FFFDF8; text-decoration: none; isolation: isolate;
}
.marker::before { content: ""; position: absolute; inset: 2px -2px -2px 2px; background: var(--hot); border-radius: var(--sketch); z-index: -1; }
.marker::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: var(--sketch); }
.marker:hover { color: #FFFDF8; }
.box { background: var(--card); border: 2px solid var(--ink); border-radius: var(--sketch); padding: 20px 22px; }

section { padding: clamp(36px, 6vw, 72px) 0; }
.intro { max-width: 60ch; }
.intro p { color: var(--ink); }

/* how it works */
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 54px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; display: grid; place-items: center;
  font-family: var(--hand); font-variation-settings: "INFM" 100; font-weight: 700; font-size: 22px;
  border: 2px solid var(--ink); border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; background: var(--card);
}
.steps p { color: var(--ink); margin: 0; }

/* the cast */
.cast { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 22px; }
.cast li { display: flex; flex-direction: column; gap: 6px; }
.cast .pic { aspect-ratio: 1; display: grid; place-items: center; padding: 10px; margin-bottom: 6px; }
.cast .pic svg { width: 100%; height: 100%; overflow: hidden; }
.cast h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cast h3 small { font-size: 15px; color: var(--hot); font-weight: 600; }
.cast p { font-size: 15px; color: var(--ink); margin: 0; }
.cast .t { font-size: 14px; color: var(--muted); }

/* pro */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.plans ul { padding-left: 20px; margin: 8px 0 14px; }
.plans li { margin: 4px 0; }
.price { font-family: var(--hand); font-variation-settings: "INFM" 100; font-weight: 700; font-size: 28px; margin: 4px 0 2px; }
.price + p { color: var(--muted); font-size: 15px; }
.plans .rows { list-style: none; padding: 0; margin: 10px 0 0; }
.rows li { display: flex; justify-content: space-between; gap: 12px; border-top: 1.5px dashed var(--rule); padding: 9px 0; }
.rows li:first-child { border-top: 0; }
.rows b { font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.rows span { min-width: 0; }

/* the promise and the questions */
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.promise p { margin: 0; color: var(--ink); }
.promise h3 { text-decoration: line-through; text-decoration-color: var(--hot); text-decoration-thickness: 3px; }
.qa { max-width: 70ch; margin-top: 18px; }
.qa details { border-top: 1.5px dashed var(--rule); padding: 12px 0; }
.qa details:last-child { border-bottom: 1.5px dashed var(--rule); }
.qa summary { cursor: pointer; font-family: var(--hand); font-variation-settings: "INFM" 100; font-weight: 600; font-size: 19px; list-style-position: outside; }
.qa details p { margin: 10px 0 2px; }

/* legal and help pages */
.page { max-width: 72ch; padding: clamp(20px, 4vw, 48px) 0 56px; }
.page h1 { font-size: clamp(34px, 5.4vw, 52px); }
.page h2 { font-size: 26px; margin-top: 34px; }
.page h3 { font-size: 20px; margin-top: 22px; }
.page .updated { color: var(--muted); font-size: 15px; }
.page .short { font-size: 18px; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page address { font-style: normal; }
.page .back { margin-top: 36px; font-family: var(--hand); font-variation-settings: "INFM" 100; font-weight: 600; }

/* footer */
footer { border-top: 1.5px dashed var(--rule); padding: 22px 0 40px; margin-top: 24px; font-size: 14px; color: var(--muted); }
footer .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .steps, .promise, .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.hero-art { margin: 0; }
.more { margin-top: 18px; }
