@font-face {
  font-family: "Funnel Display";
  src: url("fonts/funnel-display-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --ground: #eaf0fb;
  --raised: #ffffff;
  --line: #c5d1ea;
  --ink: #101c3a;
  --muted: #52608a;
  --accent: #2547d0;
  --accent-hover: #1b3bb8;
  --on-accent: #ffffff;
  --accent-on-dark: #8fa8f5;
  --tint: #f2f6fd;
  --note-bg: #101c3a;
  --note-ink: #eaf0fb;
  --note-muted: #aab8da;

  --display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-color: var(--line) var(--ground); }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; }

::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.btn {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: var(--body); font-weight: 700; font-size: 16px; line-height: 1.3;
  text-decoration: none;
  padding: 15px 18px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent);
  border: 1.5px solid var(--accent);
  transition: transform .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.btn small { display: block; font-weight: 500; font-size: 13.5px; margin-top: 2px; opacity: .82; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { background: var(--raised); border-color: var(--accent); color: var(--ink); }

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