/* Sublinea site: shared pieces and production fixes, loaded after the
   vendored tokens.css / components.css / motion.css (never edited). */

/* Figtree, self-hosted (SIL OFL, see /assets/fonts/OFL.txt) */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/Figtree-Regular.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/Figtree-Medium.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/Figtree-SemiBold.woff2) format("woff2"); }

/* Page base, in every board's helmet. */
body { margin: 0; background: var(--paper); }
@media (max-width: 399px) {
  .sb-page { --gutter: 16px; }
}

/* S-03 helmet line 19. The --paper-rgb / --surface-rgb triplets now live in
   tokens.css :root, so only the --sys-* properties are kept here. */
.sb-page { --sys-hairline: rgba(0, 0, 0, 0.12); --sys-control: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.08); --sys-select: rgba(var(--ink-rgb), 0.08); }

/* Aura grain, from its published path (components.css points next to itself). */
.sb-aura::after { content: ""; position: absolute; inset: 0; background: url(/assets/img/sb-grain.png) repeat 0 0 / 128px 128px; pointer-events: none; }

/* The nav sticks everywhere, not only inside @supports. */
.sb-nav { position: sticky; top: 0; z-index: var(--z-sticky); }

/* Off-screen float layers pause with or without the reveal latch. */
.sb-float.is-off { animation-play-state: paused; }

/* The CTA follows the device, not the width (head.js sets data-device). */
html[data-device="other"] .h-mac, html[data-device="mac"] .h-phone { display: none !important; }
html[data-device="other"] .h-phone { display: inline-flex; }
html[data-device="other"] p.h-phone { display: block; }
html[data-device="other"] .h-nav-end { display: none !important; }

/* Animations that wait until their element is on screen (site.js adds .is-playing). */
html.js [data-play-when-seen]:not(.is-playing), html.js [data-play-when-seen]:not(.is-playing) * { animation-play-state: paused !important; }

/* Skip link (S-03 helmet; Main's .h-skip, renamed). */
.sb-skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sb-skip:focus { position: fixed; left: 16px; top: 14px; z-index: 70; }

/* Footer (S-03 helmet; Main's .h-foot* verbatim, plus the current-page link). */
.h-foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 56px 0 48px; }
.h-foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px 48px; flex-wrap: wrap; }
.h-foot-brand .sb-caption { margin-top: 6px; }
.h-foot-brand .sb-wordmark { margin-bottom: 4px; }
.h-foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.h-foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; background-position: 100% 70%, 0 calc(50% + 0.66em); }
@media (hover: hover) and (pointer: fine) { .h-foot-links a:hover { background-position: 0 70%, 0 calc(50% + 0.66em); } }
.h-foot-links a:focus-visible { background-position: 0 70%, 0 calc(50% + 0.66em); }
.h-foot-links a[aria-current="page"] { color: var(--ink); font-weight: 500; --link-line: var(--ink); }
.h-foot-legal { display: flex; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; margin-top: 40px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.h-foot-legal p { margin: 0; max-width: 70em; }
@media (max-width: 899px) { .h-foot { margin-top: 72px; } }

/* Sub-page frame: one left axis, the home's container edge (S-03 helmet). */
.pg-top { position: relative; z-index: 3; }
.pg-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.pg-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: -8px; padding: 0 8px; border-radius: var(--r-md); font-size: var(--fs-small); color: var(--ink-2); text-decoration: none; }
.pg-back svg { flex: none; }

.pg-back:focus-visible .sb-link { background-size: 100% 0.82em, 100% 1px; background-position: 0 88%, 0 100%; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .pg-back:hover .sb-link { background-size: 100% 0.82em, 100% 1px; background-position: 0 88%, 0 100%; color: var(--ink); transition: background-size var(--dur-sweep-short) var(--ease-sweep); }
}
.pg-col { max-width: 960px; }

/* Send to my Mac (S-02), on home and /install: the check share.js clones from
   #share-check, and the copied look the button borrows from .ph-copied. */
.ph-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--surface); }
.ph-check path { stroke-dasharray: 1; stroke-dashoffset: 0; }
/* the share button keeps focus and only swaps its label; it borrows the .ph-copied look */
[data-share][data-state="copied"] { --btn-face: var(--glass-card); --btn-face-hover: var(--glass-card); --btn-text: var(--ink); --btn-lift: 0px; }
[data-share][data-state="copied"]::after { background-image: none; box-shadow: inset 0 0 0 1px var(--line-strong), var(--elev-1); }
[data-share][data-state="copied"]::before { display: none; }
