/* A cut-down copy of ../../site/public/styles.css. Tokens and rules: ../../site/DESIGN.md */
:root {
  --cobalt: #2457F5;
  --chalk: #F7F8FA;
  --carbon: #141619;
  --snap: cubic-bezier(.3, 1.45, .5, 1);
  --stiff: cubic-bezier(.72, 0, .18, 1);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --edge: max(var(--gutter), calc((100vw - 1120px) / 2));
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--chalk); color: var(--carbon); font: 400 18px/1.45 var(--sans); }
h1, h2, p, ul { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 3px; }

.poster { font-weight: 800; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.wrap { position: relative; width: 100%; max-width: 760px; }

.wordmark { display: block; width: max-content; animation: rise-in .5s .2s var(--stiff) backwards; }
.wordmark svg { display: block; height: 26px; width: auto; }

/* Buttons are two sheets: the face, and a backing it lifts off and slams onto */
.act {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 2px; color: var(--chalk);
  font: 600 16px/1 var(--sans); text-decoration: none; transition: transform .16s var(--snap);
}
.act::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 2px; background: var(--carbon); }
.act::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 2px; background: var(--cobalt); transform: translate(5px, 6px); transition: transform .16s var(--snap); }
.act:hover { transform: translate(-2px, -3px) rotate(-.8deg); }
.act:hover::after { transform: translate(8px, 10px) rotate(.8deg); }
.act:active { transform: translate(5px, 6px); transition-duration: .05s; }
.act:active::after { transform: none; transition-duration: .05s; }

.plain-top { padding: 20px var(--edge); }
.plain-top a { display: block; width: max-content; }
.plain-main { padding: clamp(32px, 7vw, 72px) var(--edge) clamp(64px, 11vw, 128px); }
.plain-main .poster { font-size: clamp(38px, 8vw, 76px); transform-origin: 0 100%; animation: follow .7s .1s var(--snap) backwards; }
.plain-main .wrap > :not(.poster) { animation: follow .6s .3s var(--snap) backwards; }
.plain-main .wrap > :nth-child(n + 4):not(.poster) { animation-delay: .4s; }
.plain-main h2 { margin-top: 40px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.plain-main p, .plain-main ul { margin-top: 10px; max-width: 62ch; }
.plain-main ul { padding-left: 22px; list-style: disc; }
.plain-main li + li { margin-top: 6px; }
.plain-main .cta { margin-top: 28px; }
.plain-main .updated { margin-top: 32px; opacity: .7; font-size: 14px; }

@keyframes follow { from { opacity: 0; transform: translateY(34px) rotate(1.4deg); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }

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

/* Ko-fi's tip box, opened in a pop-up when the button is pressed (tip.js). The pop-up itself is
   see-through, so what shows is Ko-fi's own card on the dimmed page and nothing around it. */
.plain-main .tip { margin-top: 28px; }
.plain-main .tip .cta { margin-top: 0; }
.tip-dialog {
  width: min(440px, calc(100vw - 16px)); height: min(660px, calc(100dvh - 16px));
  max-width: none; max-height: none; padding: 0; border: 0; overflow: visible;
  background: transparent; display: none; flex-direction: column;
}
.tip-dialog[open] { display: flex; }
.tip-dialog::backdrop { background: rgba(247, 248, 250, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tip-close {
  align-self: flex-end; width: 40px; height: 40px; margin: 0 4px 6px 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--carbon); color: var(--chalk); font: 400 26px/40px var(--sans); cursor: pointer;
}
.tip-close:focus-visible { outline-color: var(--cobalt); }
.tip-frame { flex: 1; display: block; width: 100%; border: 0; background: transparent; color-scheme: normal; }
