/* Row 13: the homepage, Our story and FAQ (SPEC-homepage-story-faq.md). The pages carry the boards' own inline styles
   (tools/home/build_pages.py); this file holds only what the boards set outside them and what they can't show. */

/* Self-hosted fonts (the CSP); the boards load the same three families from Google Fonts only as a mockup. */
@font-face{font-family:Corben;font-weight:700;font-style:normal;font-display:swap;src:url(/static/fonts/corben-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-weight:400;font-style:normal;font-display:swap;src:url(/static/fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-weight:400;font-style:italic;font-display:swap;src:url(/static/fonts/hanken-grotesk-latin-400-italic.woff2) format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-weight:600;font-style:normal;font-display:swap;src:url(/static/fonts/hanken-grotesk-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-weight:700;font-style:normal;font-display:swap;src:url(/static/fonts/hanken-grotesk-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Kalam;font-weight:400;font-style:normal;font-display:swap;src:url(/static/fonts/kalam-latin-400-normal.woff2) format("woff2")}

/* The boards' own page rules. */
body{margin:0;-webkit-text-size-adjust:100%}
a{color:#8C1C34}a:hover{color:#5E1022}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #5E1022;outline-offset:2px}
/* In the sumac band (the waitlist and footers) a deep ring would be 1.5:1 against the band, under WCAG's 3:1: butter there. */
[style*="background: #8C1C34"] :focus-visible{outline-color:#F6D873}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
img{max-width:100%}

/* One page, two layouts: the phone board under 1024 px, the desktop board at 1024 px and wider (mobile first). */
.lay-dk{display:none}
@media (min-width:1024px){.lay-ph{display:none}.lay-dk{display:block}}

/* 640 to 1023 px: the phone layout with its content column centered at 600 px; bands (header, hero, panels, footer)
   still run full width (build_pages.py marks each top-level block w-band, w-col or w-art). */
@media (min-width:640px) and (max-width:1023px){
  .lay-ph .w-col{max-width:600px;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
  .lay-ph .w-band{padding-left:max(22px,calc((100% - 556px) / 2))!important;padding-right:max(22px,calc((100% - 556px) / 2))!important}
  .lay-ph .w-art{max-width:390px;margin-left:auto!important;margin-right:auto!important}
}

/* Under 390 px (the boards' width): the hero's collage is drawn for 390, so it scales down whole, and the header's
   logo and pill stay on one line (break-ui at 320, Dec 2; an as-built call for Product). */
@media (max-width:389px){
  .lay-ph .w-art{width:390px;margin-left:calc((100% - 390px) / 2)!important;transform:scale(.923);transform-origin:top center;margin-bottom:-36px}
  .lay-ph header>*{white-space:nowrap}
}
@media (max-width:359px){
  .lay-ph .w-art{transform:scale(.82);margin-bottom:-85px}
  .lay-ph header,.lay-ph>div>header{padding-left:14px!important;padding-right:14px!important}
  .lay-ph header>div:first-child,.lay-ph header>a:first-child{font-size:19px!important}
  .lay-ph header>a[href*="join"]{padding:0 12px!important;font-size:14px!important}
}

/* The waitlist: a honeypot only bots fill in, then the joined states (VOICE.md "Signing up"). */
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.wl-done,.wl-q,.wl-thanks{display:none!important}
.joined form.wl{display:none!important}
.joined .wl-done{display:block!important}
.joined .wl-q{display:block!important}
.answered .wl-q{display:none!important}
.answered .wl-thanks{display:block!important}
.wl-q button{cursor:pointer}
.wl-q button[aria-pressed=true]{background:#F6D873!important;color:#5E1022!important}
.wl-q.busy button{pointer-events:none}
.wl-box form.wl p a{color:inherit}
.wl-err{font:700 15px/1.4 "Hanken Grotesk",system-ui,sans-serif;color:#F6D873;margin:0}
form.wl button{cursor:pointer}
form.wl button[disabled]{opacity:.7;cursor:default}

/* FAQ rows (<details>): open rows show a pink "–", closed rows a deep "+", swapped on toggle. */
.faq-q>summary::-webkit-details-marker{display:none}
.faq-q>summary::marker{content:""}
.faq-q .faq-sign{background:#5E1022;color:#FFFFFF}
.faq-q .faq-sign::before{content:"+"}
.faq-q[open] .faq-sign{background:#F2A7C9;color:#5E1022}
.faq-q[open] .faq-sign::before{content:"–"}

/* Product, Dec 2, 8:55 pm: an invisible 48 px tap area on links drawn shorter (no visual change). */
.hit48{position:relative}
.hit48::after{content:"";position:absolute;left:0;right:0;top:50%;height:max(100%,48px);transform:translateY(-50%)}

/* The film, playing in place of its poster. */
.film-play:hover{filter:brightness(1.08)}
.film-v{display:block;width:100%;height:auto;background:#000}
