/* The glass look (Card Studio 2): loaded after card.css, only on cards whose look is glass (views/card/look.js).
   <html class="gl hd-<header> bt-<buttons> ft-<font>"> and a <style> with the look's variables come first:
     card.css's colours (--ink, --muted, --paper, --card, --line, --tint, --brand, --bt, --ring, --accent ...), where
     --card and --tint are see-through, plus
     --g-bg        the page's gradient, under a veil that keeps text readable
     --g-grain     the grain tile (or none)          --g-blur    how much the panels blur what is behind them
     --g-solid, --g-solid-tint   solid panels, for phones that ask for less see-through (or cannot blur)
     --quiet       quiet text straight on the page (notes, the footer): readable on the gradient
     --g-hi, --g-shadow          the light edge on top of a panel, and its shadow
     --head, --text              the look's font pair
   The layout, sections and markup are card.css's own: this file only changes how they look. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/fraunces-latin.13ea2e85.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: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/manrope-latin.67cbd729.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: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/nunito-latin.85deb3a5.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; }

/* Shapes: buttons, small tiles, and panels */
.bt-pill { --r-btn: 999px; --r-tile: 22px; --r-card: 28px; }
.bt-soft { --r-btn: 16px; --r-tile: 16px; --r-card: 22px; }
.bt-square { --r-btn: 6px; --r-tile: 6px; --r-card: 10px; }

/* The page: gradient and grain behind everything, fixed while the page scrolls */
/* Under it, a solid colour text reads well on: what shows when a phone scrolls past the edge, or cannot draw the gradient */
html.gl { background: var(--g-solid); }
.gl body { background: transparent; }
.gl body::before, .gl body::after { content: ''; position: fixed; inset: 0; pointer-events: none; }
.gl body::before { z-index: -2; background: var(--g-bg); }
.gl body::after { z-index: -1; background: var(--g-grain); background-size: 180px 180px; }

/* Panels: see-through, frosted, with a light top edge */
.gl header, .gl .btn, .gl .card, .gl .menu, .gl .dd, .gl .rep, .gl .webl, .gl blockquote, .gl nav.chips, .gl .review {
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(1.4); backdrop-filter: blur(var(--g-blur)) saturate(1.4);
}
.gl header, .gl .btn, .gl .card, .gl .svc, .gl .menu, .gl .dd, .gl .rep, .gl .webl, .gl blockquote, .gl .steps li, .gl .stat, .gl .fact {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, var(--g-hi)), 0 12px 32px -20px var(--g-shadow);
}
.gl .card, .gl .menu, .gl .dd, .gl .rep { border-radius: var(--r-card); }
.gl .svc, .gl .steps li, .gl .stat, .gl .fact, .gl .lt, .gl .prtg span { border-radius: var(--r-tile); }
.gl .dd .svc { box-shadow: none; }
.gl blockquote { border-radius: 6px var(--r-card) var(--r-card) 6px; }

/* Quiet text straight on the page: the page's own quiet colour, readable on its gradient (look.js) */
.gl .catsub, .gl .note, .gl .sub, .gl footer.legal, .gl .prt small { color: var(--quiet); }
.gl .dd .catsub, .gl .card .note { color: var(--muted); }

/* Header: a floating glass panel in place of the coloured banner */
.gl header { margin: 12px 12px 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); color: var(--ink); padding: 30px 22px 26px; }
.gl .role { color: var(--muted); }
.gl .photo { border: 3px solid rgba(255, 255, 255, .75); box-shadow: 0 14px 30px -16px var(--g-shadow); }
.gl h1 { letter-spacing: -.025em; }
.ft-serif h1, .ft-serif h2, .ft-serif .dd summary, .ft-serif .savebtn { font-weight: 600; letter-spacing: -.01em; }
.ft-rounded h1, .ft-clean h1 { font-weight: 800; }
.hd-center header { text-align: center; }
.hd-center .photo { margin: 0 auto; }
.hd-center .photo.wide { margin: 0 auto; }
.hd-cover header { padding: 10px 10px 24px; }
.hd-cover header img.photo:not(.logo) { width: 100%; height: auto; aspect-ratio: 4 / 3; border: 0; border-radius: calc(var(--r-card) - 8px); }
.hd-cover header > :not(.photo):not(img) { padding-left: 14px; padding-right: 14px; }
.hd-cover header .photo.logo { margin: 14px 14px 0; }

/* Buttons */
.gl .btn { border-radius: var(--r-btn); border-color: var(--line); }
.gl .ct .btn { border-radius: var(--r-tile); }
.gl .btn:hover { background: color-mix(in srgb, var(--brand) 10%, var(--card)); }
.gl .btn.primary { border-color: transparent; }
.gl .btn.primary:hover { background: color-mix(in srgb, var(--brand) 86%, #000); }
.gl .btn.accent:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.gl .btn.cta { background: var(--card); color: var(--ink); border: 2px solid var(--accent); }
.gl .btn.cta:hover { background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.gl .savebtn { box-shadow: 0 14px 30px -16px var(--brand); }
.gl .webl, .gl nav.chips a { border-radius: var(--r-btn); }
.gl nav.chips { background: var(--card); border-bottom-color: var(--line); }
.gl .lt, .gl .prtg span { border-color: transparent; }
.gl .review { border-color: var(--accent); }

@media (min-width: 900px) {
  .gl .side header { margin: 0; }
  .gl .main nav.chips { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-card); }
}

/* Phones that ask for less see-through, and browsers that cannot blur: solid panels, same colours */
@media (prefers-reduced-transparency: reduce) {
  :root.gl { --card: var(--g-solid); --tint: var(--g-solid-tint); }
  .gl * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .gl body::after { display: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root.gl { --card: var(--g-solid); --tint: var(--g-solid-tint); }
}
/* The first highlight sits on the look's colour: its words at full strength, so they read at 4.5:1 */
.gl .grid > .stat:first-child span { opacity: 1; }
