/* The whole site sized to the screen below the top bar (site-b/viewport/make_viewport.py).
   --screen-h is the height below the bar. --fit is one hundredth of the window's width, or the matching share of
   that height, whichever is smaller: equal at 1920 x 1080, so a 16:9 window or taller is exactly as before, and a
   flatter one scales type and vertical spacing down. The layout is the site's own. */
html{--screen-h:calc(100svh - var(--nav-h,69px));--fit:min(1vw,calc(var(--screen-h) / 52))}

/* First screens. On phones the picture or film already starts below the bar. On wider windows it ran behind the
   bar, which hid its top 69 px and centred everything on the wrong height. Now it starts below the bar there too
   and fills exactly the screen below it; the bar sits on the page's own dark ground. */
@media(min-aspect-ratio:1001/1000){
 html:root .factory-entrance__frame,html:root .interceptors-entrance__frame,html:root .spektrum-entrance__frame{top:var(--nav-h,69px)}
 html:root .spektrum-entrance{height:100svh;height:100dvh}
 html:root thunderlink-film{top:var(--nav-h,69px);height:calc(100% - var(--nav-h,69px))}
}
/* One type scale, sitewide (Alex, 2026-11-19: "the irregular font sizes/visual heirarchy of fonts was the problem,
   if you can regularise that we're good"). The site had 45 sizes and weights of text. Every piece of text now takes
   one of six sizes by its role. Sizes follow the screen below the bar (--fit), so they are the live site's values in
   a 16:9 window. Text inside drawings (diagram labels, the drones wheel, the feedback cycle, comparison labels) and
   the DRONES / FACTORY / SPEKTRUM title cards keep their own sizes: they are part of the picture. */
html{
 --type-display:clamp(3.5rem,calc(10 * var(--fit)),10.5rem);     /* page names: 144 px at 1440, 56 on phones */
 --type-heading:clamp(2.25rem,calc(4.3 * var(--fit)),4.8rem);     /* section headings: 62 / 36 */
 --type-subheading:clamp(1.5rem,calc(2.6 * var(--fit)),2.6rem);   /* card titles, list headings: 37 / 24 */
 --type-body:clamp(1rem,calc(1.25 * var(--fit)),1.2rem);          /* all running text: 18 / 16 */
 --type-small:clamp(.8125rem,calc(.97 * var(--fit)),.875rem);     /* links, labels, eyebrows: 14 / 13 */
 --type-caption:.75rem;                                           /* picture credits and captions: 12 */
}
html:root :is(.hero__title,.tl-intro__name,.home-intro__name,.sk-hero--c h1){font-size:var(--type-display)!important}
html:root :is(.tl-page h2,.fork__lead,.project-contact h2,.subpage__title,.legal__title,.sk-hero:not(.sk-hero--c) h1):not(.spektrum-film *){
 font-size:var(--type-heading)!important;font-weight:500!important;font-family:var(--font-display,sans-serif)!important;line-height:1.05!important;letter-spacing:-.045em!important}
html:root :is(.home-intro__body h3,.home-project-copy h3,.project-card__content h3,.fork__link,.tl-specs dt,.drones-sweep-copy strong,.drones-support-copy h3,.legal__body h2,.sk-sec:not(.sk-hero) h3){
 font-size:var(--type-subheading)!important;font-weight:500!important;font-family:var(--font-display,sans-serif)!important;line-height:1.1!important;letter-spacing:-.035em!important}
html:root main :is(p,li,.drones-sweep-description,.tl-contact a):not(.eng-description,.legal__updated,.feedback-cycle *,.wheel *,.tl-compare *,.spektrum-film *,.sk-bar *,[class*="entrance__card"] *){font-size:var(--type-body)!important}
html:root :is(.home-project-link,.project-card__link,.subpage__back,.eyebrow,.tl-specs dd,.tl-wrap a.tile,.drones-platform-list span,.project-contact .btn,.legal__updated){font-size:var(--type-small)!important}
html:root main figcaption:not(.feedback-cycle__description,.feedback-cycle *),html:root main figcaption a{font-size:var(--type-caption)!important}

/* The front page's film ran behind the bar at every width, phones included. */
html:root .hero .hero__video{top:var(--nav-h,69px);height:calc(100% - var(--nav-h,69px))}
html:root .factory-entrance__card,html:root .interceptors-entrance__card{gap:calc(1.875 * var(--fit))}
html:root .factory-entrance__brand,html:root .interceptors-entrance__brand{width:calc(22.5 * var(--fit))}
html:root .factory-entrance__card h1,html:root .interceptors-entrance__card h1{font-size:calc(6.5625 * var(--fit))}
