/* shortlist.css: one design system for the landing page and the app.
   Concept: a printed one-page CV, a highlighter, a red pen. Ink navy on white
   paper; highlighter yellow marks what matters; the desk is cool grey. */

@font-face { font-family: "Familjen"; src: url("/assets/fonts/familjen.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --ink: #121A2F;
  --ink-2: #3A4359;
  --muted: #5F6780;
  --paper: #FFFFFF;
  --desk: #EDEFF3;
  --desk-2: #E3E6EC;
  --line: #DADEE6;
  --hi: #FFE14D;          /* highlighter */
  --hi-soft: #FFF6C2;
  --hi-ink: #5C4A00;
  --pen: #C73A27;          /* red pen: problems */
  --pen-soft: #FCEBE8;
  --go: #11745B;           /* confirmed */
  --go-soft: #E3F4EE;
  --navy: #1B2A5B;         /* the CV's accent */
  --shadow-sheet: 0 1px 1px rgba(18, 26, 47, .04), 0 12px 28px -8px rgba(18, 26, 47, .18), 0 40px 70px -30px rgba(18, 26, 47, .25);
  --display: "Familjen", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson", "Segoe UI", system-ui, sans-serif;
  --cv: "Roboto", Arial, Helvetica, sans-serif;
  --r: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { top: 12px; }

/* The highlighter swipe: a slightly uneven yellow band behind text. */
.hl { background-image: linear-gradient(100deg, transparent 0 1%, var(--hi) 2% 97%, transparent 99%); background-size: 100% 0.62em; background-position: 0 72%; background-repeat: no-repeat; padding: 0 0.08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-anim { background-size: 0 0.62em; animation: swipe .9s .35s cubic-bezier(.6, .1, .2, 1) forwards; }
@keyframes swipe { to { background-size: 100% 0.62em; } }

/* Buttons: ink on paper. One primary per view. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s; white-space: nowrap; }
.btn:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.btn:active { box-shadow: none; transform: none; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-hi { background: var(--hi); }
.btn-quiet { border-color: transparent; background: transparent; }
.btn-quiet:hover { background: var(--desk); box-shadow: none; transform: none; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .hl-anim { background-size: 100% 0.62em; } }
