/* Shared base for the client sites rebuilt inside the Design page's Safari window.
   Pages are 1920px-wide desktop layouts (the Safari window scales the whole iframe).
   Artwork layers come from tools/export_work.py; every text, button, field and link is live HTML on top.

   Positioning helpers use the reference coordinates directly:
   .t   text placed by its baseline  --x (left) / --b (baseline) [/ --lh line height]
   .t.r right-aligned at --x, .t.c centred on --x, .wrap wraps at --w
   .box element placed by its box   --x --y --w --h
   --y0 on a parent shifts children when a band starts lower than the artboard origin.
   Font metrics are pinned with ascent/descent overrides so baselines match on every OS (--ad = (asc - desc) / 2). */

@font-face { font-family: "Roboto"; src: url(fonts/roboto.woff2) format("woff2"); font-weight: 100 900; font-display: swap; ascent-override: 92.8%; descent-override: 24.4%; line-gap-override: 0%; }
@font-face { font-family: "Ageer"; src: url(fonts/ageer.woff2) format("woff2"); font-display: swap; ascent-override: 75%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "Chalkboy"; src: url(fonts/chalkboy.woff2) format("woff2"); font-display: swap; ascent-override: 70%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: "Lexend"; src: url(fonts/lexend.woff2) format("woff2"); font-display: swap; ascent-override: 100%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "Merriweather"; font-style: italic; font-weight: 300; src: url(fonts/merriweather-light-italic.woff2) format("woff2"); font-display: swap; ascent-override: 98.4%; descent-override: 27.3%; line-gap-override: 0%; }
@font-face { font-family: "Funnel Display"; font-weight: 300; src: url(fonts/funnel-display-light.woff2) format("woff2"); font-display: swap; ascent-override: 100%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "Futura ND"; font-weight: 400; src: url(fonts/futura-nd-alt-book.woff2) format("woff2"); font-display: swap; ascent-override: 76%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Futura ND"; font-weight: 600; src: url(fonts/futura-nd-alt-demibold.woff2) format("woff2"); font-display: swap; ascent-override: 76.6%; descent-override: 23.4%; line-gap-override: 0%; }
@font-face { font-family: "Akira"; src: url(fonts/akira-expanded.woff2) format("woff2"); font-display: swap; ascent-override: 84.1%; descent-override: 20.8%; line-gap-override: 0%; }
/* Helvetica is not embedded (licence): the system Helvetica / Arial with Helvetica's metrics */
@font-face { font-family: "Helv"; font-weight: 400; src: local("Helvetica"), local("Helvetica Neue"), local("Arial"), local("ArialMT"), local("Liberation Sans"); ascent-override: 77%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "Helv"; font-weight: 700; src: local("Helvetica Bold"), local("Helvetica-Bold"), local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); ascent-override: 77%; descent-override: 23%; line-gap-override: 0%; }

.f-roboto { font-family: "Roboto", Arial, sans-serif; --ad: .342; }
.f-ageer { font-family: "Ageer", "Roboto", sans-serif; --ad: .25; }
.f-chalk { font-family: "Chalkboy", "Ageer", cursive; --ad: .25; }
.f-lexend { font-family: "Lexend", Arial, sans-serif; --ad: .375; }
.f-merri { font-family: "Merriweather", Georgia, serif; font-style: italic; font-weight: 300; letter-spacing: .02em; --ad: .356; } /* current Merriweather runs ~4% narrower than the version in the design */
.f-funnel { font-family: "Funnel Display", Arial, sans-serif; font-weight: 300; letter-spacing: .018em; --ad: .375; }
.f-futura { font-family: "Futura ND", "Century Gothic", sans-serif; --ad: .26; }
.f-helv { font-family: "Helv", Helvetica, Arial, sans-serif; --ad: .27; }
.f-akira { font-family: "Akira", Arial, sans-serif; font-weight: 800; --ad: .317; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { width: 1920px; overflow-x: hidden; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(140, 140, 140, .55) transparent; } /* slim overlay-style bar, like macOS */
body { width: 1920px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, p, li { font-weight: inherit; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button, a { cursor: pointer; }
img { display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.page, .band { position: relative; width: 1920px; overflow: hidden; }
.art { position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; user-select: none; }

.t { position: absolute; --lh: 1em; line-height: var(--lh); white-space: nowrap;
  left: calc(var(--x) * 1px); top: calc((var(--b) - var(--y0, 0)) * 1px - var(--lh) / 2 - var(--ad) * 1em); }
.t.r { left: auto; right: calc((1920 - var(--x)) * 1px); text-align: right; }
.t.c { transform: translateX(-50%); text-align: center; }
.t.wrap { white-space: normal; width: calc(var(--w) * 1px); }
.box { position: absolute; left: calc(var(--x) * 1px); top: calc((var(--y) - var(--y0, 0)) * 1px); width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); }
.center { display: flex; align-items: center; justify-content: center; gap: .5em; }
.hit { border-radius: 8px; }                      /* invisible hotspot over artwork icons */
.hit:hover { background: rgba(255, 255, 255, .12); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* small toast used by the demo forms */
.toast { position: fixed; left: 50%; bottom: 40px; z-index: 99; padding: 16px 28px; border-radius: 99px; font: 500 20px "Roboto", Arial, sans-serif;
  background: rgba(20, 20, 20, .92); color: #fff; transform: translate(-50%, 30px); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
