/* The static pages (welcome.html, public/privacy.html): the app's look without the app. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: light-dark(#fbf8f3, #161519);
  --card: light-dark(#ffffff, #1f1e23);
  --ink: light-dark(#1b1a1f, #f2efe9);
  --ink-2: light-dark(#55525c, #b8b3ab);
  --ink-3: light-dark(#8f8b96, #7e7a84);
  --line: light-dark(#1b1a1f, #d9d4cc);
  --line-soft: light-dark(#e8e2d8, #333139);
  --marker: #ffd84d;
  --marker-ink: #1b1a1f;
  --pop: 3px 3px 0 light-dark(#1b1a1f, #000);
  --pop-lg: 5px 5px 0 light-dark(#1b1a1f, #000);
  --k1: light-dark(#c8f0d4, #20382a);
  --k1-ink: light-dark(#1f7a3d, #7fdc9d);
  --k3: light-dark(#cfe6ff, #1e2f45);
  --k3-ink: light-dark(#1d5fa8, #8cc2ff);
  --k5: light-dark(#e2d9ff, #2c2645);
  --k5-ink: light-dark(#5b3fb8, #b7a6ff);
  --k10: light-dark(#ffe0c7, #3d2b1f);
  --k10-ink: light-dark(#b2541a, #ffb07a);
  --k20: light-dark(#fff1a8, #3a3418);
  --k20-ink: light-dark(#8a6d00, #f3d55b);
  --rare: light-dark(#ffd3e2, #3d2030);
  --rare-ink: light-dark(#b0255d, #ff8fb7);
  --hover: light-dark(#f3eee6, #26252b);
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  /* the app's names for the same things (the level test, src/levelTest/, uses these) */
  --font-word: var(--serif);
  --font-ui: var(--sans);
  --r-m: 12px;
  --r-l: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* light unless chosen otherwise; the choice is shared with the app (localStorage 'theme') */
:root[data-theme='dark'] {
  color-scheme: dark;
}

:root[data-theme='system'] {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  width: min(1080px, 100% - 32px);
  margin: 0 auto;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 700 15px var(--sans);
  text-decoration: none;
  box-shadow: var(--pop);
  transition: translate 0.08s, box-shadow 0.08s, background-color 0.15s;
}

/* a real button: it rests on its shadow and is pushed into it when pressed */
@media (hover: hover) {
  .btn:hover {
    background: var(--hover);
  }

  .btn-marker:hover {
    background: color-mix(in oklch, var(--marker) 88%, var(--ink));
  }
}

.btn:active {
  translate: 3px 3px;
  box-shadow: none;
}

.btn-marker {
  background: var(--marker);
  color: var(--marker-ink);
  border-color: #1b1a1f;
}

.marked {
  background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%);
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 36px 0 48px;
  border-top: 1.5px dashed var(--line-soft);
  color: var(--ink-3);
  font-size: 14px;
}
