/* The home (Thiago, 30/11): seven drawn scenes told one element at a time, a big Start, the questions.
   Tokens are the site's Paper (see CLAUDE.md, Design system): light, and dark by the device. In dark the drawings
   stay ink on paper as cut-outs on the dark page (home.js, #lofi-cut). */
:root { color-scheme: light dark; --page: #f6f3ec; --raised: #fffcf6; --ink: #211d19; --ink-soft: #554f48;
        --paper: var(--page); --lake: var(--page); --soft: var(--ink-soft); --yellow: #ebc444; --mono: "Roboto Mono", ui-monospace, Menlo, monospace; --display: "Special Gothic Condensed One", "Arial Narrow", Impact, sans-serif; --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
html, body { margin: 0; background: var(--lake); color: var(--ink); overflow-x: clip; }
.top { z-index: 2; }
body { font: 500 17px/1.4 var(--body); }
/* Five sections, one screen each; a swipe moves to the next (Thiago, 30/11). The button stays at the bottom. */
html { scroll-snap-type: y mandatory; }
.screen { position: relative; z-index: 1; height: 100vh; height: 100svh; scroll-snap-align: start; overflow: hidden; display: flex; flex-direction: column;
          padding: 60px 0 calc(128px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.stage { position: relative; flex: none; width: 100%; display: block; overflow: visible; }
.title h1, .title h2 { margin: 0; font: inherit; }
.lede { margin: 14px auto 0; max-width: 34em; font: 500 clamp(17px, 1.5vw, 21px)/1.45 var(--body); text-transform: none; color: var(--soft); text-wrap: pretty; }   /* its height is set from the drawing; the lake runs to the screen's edges */
.defs { position: absolute; width: 0; height: 0; }
.cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; justify-items: center; gap: 10px; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); pointer-events: none; }
.cta > * { pointer-events: auto; }
/* the paper grain: a small noise tile home.js draws once, repeated; no filter or blend to recompute while things move */
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .5; z-index: 3; background-size: 160px 160px; }
.top { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 8px max(16px, env(safe-area-inset-left)); z-index: 2; }
.brand { color: inherit; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font: 400 26px/1 var(--display); text-transform: uppercase; }
.brand svg { width: 34px; height: 34px; }
.top a.login { color: inherit; text-decoration: none; min-height: 44px; min-width: 44px; padding: 0 10px; display: inline-flex; align-items: center; }
/* Start in the bar, next to Log in (Thiago, 01/12): a small pill, the site's button */
.top .right { display: flex; align-items: center; gap: 6px; }
.top a.start-top { min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--page); display: inline-flex; align-items: center;
                   font: 400 20px/1 var(--display); text-transform: uppercase; text-decoration: none; }
.top a.start-top:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
/* the story, one line at a time, above the call to action (Thiago, 30/11: the call to action is always there) */
.story { position: relative; width: 100%; height: clamp(30px, 3.4vw, 46px); }
.cap { position: absolute; inset: 0; text-align: center; padding: 0 16px; pointer-events: none; color: var(--soft);
       font: 400 clamp(22px, 2.6vw, 36px)/1.1 var(--display); text-transform: uppercase; opacity: 0; transition: opacity .35s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap.on { opacity: 1; }
@media (max-width: 760px) { .story { height: 52px; } .cap { white-space: normal; font-size: 20px; } }
.end { display: grid; justify-items: center; gap: clamp(10px, 1.6vh, 16px); text-align: center; }
.title { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; gap: .3em; align-items: center; justify-content: center; margin: 0 auto; padding: 8px 16px; box-sizing: border-box; max-width: 16em; text-align: center; font: 400 clamp(32px, 5vw, 72px)/.95 var(--display); text-transform: uppercase; text-wrap: balance; }
.go { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 34px; border-radius: 999px; background: var(--ink); color: var(--paper);
      font: 400 clamp(24px, 2.2vw, 30px)/1 var(--display); text-transform: uppercase; text-decoration: none; }
.note { margin: 0; color: var(--soft); text-align: center; text-wrap: balance; }
/* in the words at the bottom, under the button, so it never sits on the drawing */
.again { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--ink); font: 500 17px/1 var(--body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the questions and the footer: the last part, on paper; it is as long as it needs to be */
.screen.faq { height: auto; min-height: 100svh; display: block; overflow: visible; padding: 96px 16px calc(150px + env(safe-area-inset-bottom)); background: var(--paper); }
.faq-in { max-width: 680px; margin: 0 auto; }
.faq-title { margin: 0 0 20px; font: 400 clamp(32px, 5vw, 56px)/1 var(--display); text-transform: uppercase; text-align: center; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-of-type { border-bottom: 2px solid var(--ink); }
.faq summary { min-height: 44px; padding: 14px 4px; display: flex; align-items: center; cursor: pointer; font: 400 clamp(22px, 2.4vw, 28px)/1.15 var(--display); text-transform: uppercase; }
.faq summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.faq p { margin: 0 4px 18px; line-height: 1.5; }
.faq a { color: inherit; }
.faq .addr { font-family: var(--mono); font-size: 17px; overflow-wrap: anywhere; }
.foot { max-width: 680px; margin: 48px auto 0; display: grid; gap: 14px; justify-items: center; text-align: center; color: var(--soft); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.foot a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }
/* over the questions the button sits on a band of paper, so it never covers the text */
.cta.solid { background: linear-gradient(to bottom, transparent, var(--page) 30%); padding-top: 28px; }
/* the big Start section: one big call to action; the fixed button steps aside while it shows */
.screen.gosec { display: grid; place-content: center; justify-items: center; gap: 28px; padding: 60px 16px; text-align: center; }
.go-big { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .12em .62em .08em; border-radius: 999px;
          background: var(--ink); color: var(--page); font: 400 clamp(72px, 17vw, 220px)/1 var(--display); text-transform: uppercase; text-decoration: none;
          transition: transform .15s ease; }
.go-big:hover { transform: scale(1.03); }
.go-big:active { transform: scale(.98); }
.go-big:focus-visible { outline: 4px solid var(--ink); outline-offset: 8px; }
.cta { transition: opacity .25s ease; }
.cta.away { opacity: 0; pointer-events: none; }
.cta.away > * { pointer-events: none; }
@media (prefers-color-scheme: dark) {
  :root { --page: #1c1916; --raised: #27231f; --ink: #eae6dd; --ink-soft: #afaaa1; }
  .grain { opacity: .3; }
}
