/* Wakeshift · the sky, shared by every page: the dawn gradient (.sg-sky), the
   grain shader over it (.sky-shader, run by sky-shader.js), and the footer's
   large wordmark cut out of both (layout.html). Loaded after type.css, before
   the page's own stylesheet, so landing.css and site.css can build on it. */

/* The still sky: what shows before the shader mounts, and stays without it. */
.sg-sky{position:absolute;inset:0;background:linear-gradient(180deg,#5E86B9 0%,#8DB4D6 40%,#B9D3DF 62%,#F3D9C0 82%,#F7C9A0 100%);background:linear-gradient(in oklab 180deg,#5E86B9 0%,#8DB4D6 40%,#B9D3DF 62%,#F3D9C0 82%,#F7C9A0 100%)}
/* The grain, laid over the sky in overlay. The library's own canvas rules
   (its inline <style> is refused by the CSP) are here. */
.sky-shader{position:absolute;inset:0;mix-blend-mode:overlay;pointer-events:none}
.sky-shader.on{background:#000}
.sky-shader canvas{contain:strict;display:block;position:absolute;inset:0;width:100%;height:100%;border-radius:inherit}

/* The footer's wordmark: the mark and "Wakeshift" in Charis SIL Bold, as
   outlines, clipping the sky (#fb-clip, inline in layout.html), with a
   hairline outline of the same shapes over it. */
.ft-brand{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:20px;flex:0 1 auto}
/* Our X and LinkedIn, a row of icons under the wordmark. */
.ft .ft-social{display:flex;gap:6px;list-style:none;margin:0 0 0 -6px;padding:0}
.ft-social a{display:flex;padding:6px;border-radius:8px;color:var(--ink-2);transition:color .15s,background .15s}
.ft-social a:hover{color:var(--ink);background:color-mix(in srgb,var(--ink) 6%,transparent)}
/* "Backed by Y Combinator", still 150px under the wordmark on every page (the brand's two 20px gaps, the 30px social row and 80px), with YC's own tile. */
.ft-yc{margin-top:80px;display:flex;align-items:center;gap:8px;font:500 14px var(--sans);color:var(--ink-2)}
.ft-yc b{color:var(--ink);font-weight:600}
.ft-yc-mark{flex:none;width:20px;height:20px}
.ft-big{position:relative;display:block;width:276.35px;max-width:100%;aspect-ratio:552.7/112;clip-path:url(#fb-clip)}
.fb-defs{position:absolute;width:0;height:0;overflow:hidden}
.fb-sky{position:absolute;inset:0;overflow:hidden}
/* The wordmark runs from night into sunrise, left to right; in dark mode
   from sunrise into the night's blue, stopping at a blue the dark page
   still shows (black letters would vanish into it). The grain lies over it
   in overlay. */
.fb-sky .sg-sky{background:linear-gradient(90deg,#01000A 0%,#0E2530 20%,#0369A1 42%,#5E86B9 58%,#E9A36F 78%,#EE8A4A 100%);background:linear-gradient(in oklab 90deg,#01000A 0%,#0E2530 20%,#0369A1 42%,#5E86B9 58%,#E9A36F 78%,#EE8A4A 100%)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .fb-sky .sg-sky{background:linear-gradient(90deg,#EE8A4A 0%,#E9A36F 22%,#8DB4D6 48%,#3E8FD0 72%,#1E5FA8 100%);background:linear-gradient(in oklab 90deg,#EE8A4A 0%,#E9A36F 22%,#8DB4D6 48%,#3E8FD0 72%,#1E5FA8 100%)}}
:root[data-theme=dark] .fb-sky .sg-sky{background:linear-gradient(90deg,#EE8A4A 0%,#E9A36F 22%,#8DB4D6 48%,#3E8FD0 72%,#1E5FA8 100%);background:linear-gradient(in oklab 90deg,#EE8A4A 0%,#E9A36F 22%,#8DB4D6 48%,#3E8FD0 72%,#1E5FA8 100%)}
.fb-grain{opacity:.6}
.fb-outline{position:absolute;left:0;top:0;width:276.35px;max-width:100%;aspect-ratio:552.7/112;height:auto;color:#C9D1DC;pointer-events:none;overflow:visible}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .fb-outline{color:#3A414D}}
:root[data-theme=dark] .fb-outline{color:#3A414D}
/* The footer's grid, on every page: the wordmark and the Y Combinator line on
   the left; the columns to their right, with the theme toggle under them at the
   right edge, centred on the Y Combinator line; then the copyright row. Below
   1180px the columns move under the brand, and the toggle stays on its line. */
.ft{display:grid;grid-template-columns:auto auto;justify-content:space-between;align-items:start;column-gap:32px}
.ft-brand{grid-area:1/1/3/2}
.ft-cols{grid-area:1/2/2/3}
.ft>.theme-toggle{grid-area:2/2/3/3;justify-self:end;align-self:end;margin:8px 0 -9px}
.ft-base{grid-column:1/-1;margin-top:56px}
@media (max-width:1180px){
  .ft{grid-template-columns:minmax(0,1fr) auto}
  .ft-brand{grid-area:1/1/2/2}
  .ft>.theme-toggle{grid-area:1/2/2/3}
  .ft>.ft-cols{grid-area:2/1/3/3;margin-top:40px}
}

/* The mark wakes up, as the header's does: the sun rises out of the horizon,
   then the arcs ring out from it, in the clip and its outline together.
   nav.js holds it at its first frame (.will-wake) until the footer scrolls
   into view, plays it then (.is-awake), and again on hover. Never under
   reduced motion. */
.ft-brand .fb-sun{transform-box:fill-box;transform-origin:50% 100%}
.ft-brand :is(.fb-a1,.fb-a2){transform-box:fill-box;transform-origin:50% 164%}
@media (prefers-reduced-motion:no-preference){
  .ft-brand.will-wake:not(.is-awake) .fb-sun{transform:scaleY(0)}
  .ft-brand.will-wake:not(.is-awake) :is(.fb-a1,.fb-a2){transform:scale(0)}
  .ft-brand.is-awake .fb-sun{animation:fb-rise .9s cubic-bezier(.2,.7,.2,1) both}
  .ft-brand.is-awake .fb-a1{animation:fb-arc .7s .85s cubic-bezier(.2,.8,.25,1) both}
  .ft-brand.is-awake .fb-a2{animation:fb-arc .7s 1.15s cubic-bezier(.2,.8,.25,1) both}
}
@keyframes fb-rise{from{transform:scaleY(0)}to{transform:none}}
@keyframes fb-arc{from{transform:scale(0)}60%{transform:scale(1.03)}to{transform:none}}
