/* The site's shared look ("On Air"): fonts, colours, the header bar and the
   footer. Every marketing page links this first — the landing page, the blog
   and its posts, the guide, support and the web minute store — and keeps its
   own stylesheet for its own content only. One copy of the header, so crossing
   from / to /blog/ never looks like crossing into another site.

   The markup it styles is the bar every page already carries
   (nav > .nav-inner > .nav-brand, .nav-burger, #nav-menu.nav-links, .nav-cta)
   and the footer (footer > .foot-inner > span + .foot-links). /nav.js drives
   the burger; /web/account-chrome.js mounts the profile button before
   .nav-cta. */

/* ------------------------------- fonts ------------------------------------ */
/* Self-hosted (see fonts/README.md). Archivo is one variable file per subset
   carrying both axes the design uses: weight, and width down to 62% for the
   condensed capitals. Only the latin subset is preloaded by the pages. */
@font-face{font-family:"Archivo";font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;
  src:url(/fonts/archivo-latin.woff2) format("woff2");
  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:"Archivo";font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;
  src:url(/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Vietnamese tone-marked letters, which the two subsets above leave out. */
@font-face{font-family:"Archivo";font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;
  src:url(/fonts/archivo-vietnamese.woff2) format("woff2");
  unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
/* Russian, Ukrainian and Greek: Noto Sans, which has the condensed width Archivo's
   capitals are drawn at. Same name and descriptors on purpose; lib/theme.css says why. */
@font-face{font-family:"Archivo";font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;
  src:url(/fonts/noto-sans-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Archivo";font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;
  src:url(/fonts/noto-sans-greek.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-display:swap;font-weight:400;
  src:url(/fonts/jetbrains-mono-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-display:swap;font-weight:600;
  src:url(/fonts/jetbrains-mono-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ------------------------------- tokens ----------------------------------- */
:root{
  /* --ink is the dark ground here. The extension pages the web store embeds
     (pricing/pricing.css) use --ink for their text colour; the store's web
     overrides map one onto the other, so mind the clash when embedding more. */
  --ink:#0c0c0d;          /* the ground */
  --ink-2:#141415;
  --panel:#18181a;
  --paper:#f3f1ea;        /* text, and the light bands */
  --soft:#d9d6cc;         /* body copy on the dark ground */
  --dim:#a3a3a0;          /* labels; 7.6:1 on --ink */
  --dim-on-paper:#55534d; /* labels on --paper; 7:1 */
  --acc:#ffd23f;          /* subtitle yellow */
  --rec:#ff4d3d;
  --line:rgba(243,241,234,.14);
  --line-2:rgba(243,241,234,.3);
  /* Scripts the Latin faces don't cover fall through to each platform's own
     font for them, so Japanese, Arabic or Thai copy never renders as boxes. */
  --sans:"Archivo",system-ui,-apple-system,"Segoe UI",Roboto,"Hiragino Sans","Noto Sans JP","Noto Sans KR","Noto Sans SC","Noto Sans Arabic","Noto Sans Devanagari","Noto Sans Thai",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,Menlo,Consolas,var(--sans);
  --ease:cubic-bezier(.2,.7,.2,1);
  --snap:cubic-bezier(.7,0,.2,1);
  --wrap:90rem;
  --gut:clamp(16px,4vw,48px);
  color-scheme:dark;
}

/* -------------------------------- base ------------------------------------ */
*,*::before,*::after{box-sizing:border-box}
html{background:var(--ink);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ink);color:var(--paper);font-family:var(--sans);font-size:1rem;line-height:1.5;
  -webkit-font-smoothing:antialiased;overflow-x:clip}
::selection{background:var(--acc);color:var(--ink)}
a{color:var(--paper)}
a:hover{color:var(--acc)}
img,svg{max-width:100%}
:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
.wrap{max-width:var(--wrap);margin:0 auto;padding-left:var(--gut);padding-right:var(--gut)}
/* The two voices: huge condensed capitals, and small mono labels. Non-Latin
   scripts have no capitals and no condensed cut, so they get a sturdier
   weight and normal tracking instead of a squashed fallback. */
.disp{font-family:var(--sans);font-weight:800;font-stretch:62%;text-transform:uppercase;letter-spacing:-.005em;line-height:.88}
.mono{font-family:var(--mono);font-size:.78rem;font-weight:400;letter-spacing:.04em;text-transform:uppercase}
:lang(ja) .disp,:lang(zh) .disp,:lang(ko) .disp,:lang(ar) .disp,:lang(hi) .disp,:lang(th) .disp{line-height:1.12;letter-spacing:0}
:lang(ar) .mono,:lang(hi) .mono,:lang(th) .mono{letter-spacing:0}
/* Vietnamese capitals carry stacked accents that the tight leading clips. */
:lang(vi) .disp{line-height:1.05}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* A highlighted phrase: the subtitle-yellow block behind black type. */
.hl{background:var(--acc);color:var(--ink);padding:.02em .1em 0;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* Buttons. Square, mono, and they tilt a little on hover. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 24px;
  font-family:var(--mono);font-size:.86rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;
  border:1px solid transparent;cursor:pointer;transition:transform .35s var(--ease),background-color .3s,color .3s,border-color .3s}
.btn:hover{transform:translateY(-2px) rotate(-2deg)}
.btn-acc{background:var(--acc);color:var(--ink)}
.btn-acc:hover{background:var(--paper);color:var(--ink)}
.btn-line{border-color:rgba(243,241,234,.35);color:var(--paper);background:transparent}
.btn-line:hover{background:var(--paper);border-color:var(--paper);color:var(--ink)}
.btn-dark{background:var(--ink);color:var(--paper)}
.btn-dark:hover{background:var(--ink);color:var(--acc)}
.btn svg{width:18px;height:18px;flex:none}

/* -------------------------------- header ---------------------------------- */
nav{position:sticky;top:0;z-index:50;background:rgba(12,12,13,.86);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav-inner{position:relative;max-width:var(--wrap);margin:0 auto;padding:8px var(--gut);min-height:64px;
  display:flex;align-items:center;gap:8px 28px}
.nav-brand{display:flex;flex:none;align-items:center;gap:10px;color:var(--paper);text-decoration:none;
  font-weight:800;font-stretch:62%;text-transform:uppercase;font-size:1.7rem;line-height:1;letter-spacing:-.005em}
.nav-brand:hover{color:var(--paper)}
.nav-brand img{width:32px;height:32px;border-radius:50%;filter:grayscale(1) contrast(1.1)}
.nav-brand b{font-weight:inherit}
.nav-links{margin-inline-start:auto;display:flex;flex-wrap:wrap;align-items:center;gap:4px 24px;
  font-family:var(--mono);font-size:.82rem;letter-spacing:.04em;text-transform:uppercase}
.nav-links a{color:var(--paper);text-decoration:none;padding:12px 0;
  background:linear-gradient(var(--acc),var(--acc)) 0 calc(100% - 8px)/0 2px no-repeat;transition:background-size .35s var(--ease),color .2s}
.nav-links a:hover,.nav-links a[aria-current]{color:var(--acc);background-size:100% 2px}
.nav-lang{appearance:none;-webkit-appearance:none;min-height:44px;padding:0 30px 0 10px;cursor:pointer;
  font:inherit;font-size:.8rem;color:var(--paper);background:transparent;border:1px solid var(--line-2);border-radius:0;
  background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" fill="none" stroke="%23a3a3a0" stroke-width="1.6"/></svg>') no-repeat right 11px center}
.nav-lang option{color:var(--ink);background:var(--paper)}
[dir="rtl"] .nav-lang{padding:0 10px 0 30px;background-position:left 11px center}
.nav-cta{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;background:var(--acc);color:var(--ink);
  font-family:var(--mono);font-size:.82rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;white-space:nowrap;
  transition:transform .35s var(--ease),background-color .3s}
.nav-cta:hover{background:var(--paper);color:var(--ink);transform:translateY(-2px) rotate(-2deg)}
/* Reading progress: a yellow rule along the bottom of the bar, driven by the
   scroll position itself where the browser can — nothing to run otherwise. */
nav::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--acc);transform:scaleX(0);transform-origin:0 50%}
[dir="rtl"] nav::after{transform-origin:100% 50%}
@supports (animation-timeline:scroll()){
  nav::after{animation:site-grow linear both;animation-timeline:scroll(root)}
}
@keyframes site-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* The burger. Two bars that cross into an X. */
.nav-burger{display:none;order:3;width:48px;height:48px;flex:none;padding:0;border:1px solid var(--line-2);background:transparent;cursor:pointer;
  flex-direction:column;align-items:center;justify-content:center;gap:5px}
.nav-burger span{display:block;width:20px;height:2px;background:var(--paper);transition:transform .35s var(--ease),opacity .2s,background-color .2s}
.nav-burger[aria-expanded="true"]{background:var(--acc);border-color:var(--acc)}
.nav-burger[aria-expanded="true"] span{background:var(--ink)}
.nav-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Below the bar's breakpoint (/nav.js uses the same 820px) the links and the
   language picker become a full-screen black panel of giant capitals. */
@media (max-width:820px){
  .nav-burger{display:flex}
  .nav-cta{order:2;margin-inline-start:auto}
  .nav-inner{gap:10px}
  .nav-links{order:4;position:absolute;left:0;right:0;top:100%;margin:0;
    flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:0;
    height:calc(100dvh - 64px);overflow-y:auto;padding:12px var(--gut) 28px;
    background:var(--ink);border-top:1px solid var(--line);
    visibility:hidden;opacity:0;transition:opacity .25s linear,visibility 0s linear .25s}
  .nav-links[data-open]{visibility:visible;opacity:1;transition-delay:0s}
  .nav-links a{display:block;padding:12px 0;border-bottom:1px solid var(--line);background:none;
    font-family:var(--sans);font-weight:800;font-stretch:62%;font-size:clamp(2.4rem,11vw,3.4rem);line-height:.95;letter-spacing:-.005em}
  .nav-links[data-open] a{animation:site-mi .6s var(--ease) both}
  .nav-links[data-open] a:nth-child(2){animation-delay:.06s}
  .nav-links[data-open] a:nth-child(3){animation-delay:.12s}
  .nav-links[data-open] a:nth-child(4){animation-delay:.18s}
  .nav-links[data-open] a:nth-child(5){animation-delay:.24s}
  .nav-links[data-open] a:nth-child(n+6){animation-delay:.3s}
  .nav-lang{width:100%;min-height:52px;margin-top:20px;font-size:.95rem}
}
@keyframes site-mi{from{opacity:0;transform:translateY(32px) skewY(5deg)}to{opacity:1;transform:none}}
/* A phone can't install a Chrome extension, and the bar has no room for the
   button beside the brand and the burger in most languages — so it goes, as
   in the design; each page's own call to action is still in the page. */
@media (max-width:480px){
  .nav-brand{font-size:1.4rem}
  .nav-brand img{width:28px;height:28px}
  .nav-cta{display:none}
  .nav-burger{margin-inline-start:auto}
}

/* -------------------------------- footer ---------------------------------- */
footer{background:var(--acc);color:var(--ink);overflow:hidden}
.foot-inner{max-width:var(--wrap);margin:0 auto;padding:24px var(--gut) 28px;display:flex;flex-wrap:wrap;
  justify-content:space-between;align-items:center;gap:16px 40px;
  font-family:var(--mono);font-size:.82rem;letter-spacing:.04em;text-transform:uppercase}
.foot-inner>span{order:2}
.foot-links{display:flex;flex-wrap:wrap;gap:4px 24px}
.foot-links a{color:var(--ink);text-decoration:none;padding:10px 0;
  background:linear-gradient(currentColor,currentColor) 0 calc(100% - 6px)/0 1px no-repeat;transition:background-size .4s var(--ease)}
.foot-links a:hover{color:var(--ink);background-size:100% 1px}
footer :focus-visible{outline-color:var(--ink)}
/* The giant wordmark the page ends on. Generated text with an empty
   alternative, so a screen reader doesn't announce the brand a second time. */
footer::after{content:"Friskription" / "";display:block;margin-top:clamp(8px,1.5vw,24px);text-align:center;white-space:nowrap;
  font-family:var(--sans);font-weight:800;font-stretch:62%;text-transform:uppercase;font-size:18.6vw;line-height:.76;letter-spacing:-.005em}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
