/* Looseleaf-lite: a small plain-CSS take on the paper-and-ink look of Looseleaf
   (https://github.com/kevintngo/looseleaf, MIT). Colours and the Kevin Sans typeface come
   from that project; see assets/fonts/LICENSE-looseleaf.txt. No build step, no network.

   Kevin Sans has no macron vowels (ā ē ī ō ū). Use --ll-hand for Dutch interface text only
   and keep Latin in --ll-print, or single letters fall back to another font mid-word. */

@font-face { font-family: "Kevin Sans"; src: url("fonts/KevinSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Kevin Sans"; src: url("fonts/KevinSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ll-desk: #a8c8bb;
  --ll-desk-deep: #93b4a7;
  --ll-paper: #f8f5ee;
  --ll-paper-shade: #ece6da;
  --ll-card: #fbf6e9;
  --ll-rule-blue: #8fb0d4;
  --ll-rule-red: #d9776a;
  --ll-sticky-yellow: #f7e38a;
  --ll-sticky-green: #cfe6a8;
  --ll-sticky-orange: #f7c08e;
  --ll-sticky-pink: #f6b8b0;
  --ll-sticky-blue: #bcd8f0;
  --ll-ink: #2a2420;
  --ll-ink-soft: #4a423b;
  --ll-ink-you: #2c4f9e;
  --ll-pencil: #6b6660;
  --ll-pencil-mark: #8e887f;
  --ll-marker: #df6b3c;
  --ll-hi: #f8dc4c;
  --ll-green: #3b7a4b;
  --ll-red: #c2412d;
  --ll-shadow: rgba(58, 44, 30, .28);
  --ll-hand: "Kevin Sans", "Chalkboard SE", "Comic Sans MS", "Segoe Print", sans-serif;
  --ll-print: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* hand-cut corners: never quite round, never the same twice */
  --ll-r1: 14px 18px 12px 20px / 18px 12px 20px 14px;
  --ll-r2: 10px 14px 9px 13px / 13px 9px 14px 10px;
  --ll-r3: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

/* A sheet of paper with an inked outline. */
.ll-sheet { background: var(--ll-paper); border: 2px solid var(--ll-ink); border-radius: var(--ll-r1); box-shadow: 4px 5px 0 var(--ll-shadow); }

/* A highlighter stroke behind a few words. */
.ll-hi { background: linear-gradient(104deg, transparent .4em, var(--ll-hi) .5em, var(--ll-hi) calc(100% - .5em), transparent calc(100% - .35em)); padding: 0 .35em; margin: 0 -.2em; border-radius: 8px 3px 9px 4px / 4px 9px 3px 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* An inked button. Add a sticky colour class to fill it. */
.ll-btn { display: inline-flex; align-items: center; gap: .45em; font-family: var(--ll-hand); font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--ll-ink); background: var(--ll-paper); border: 2px solid var(--ll-ink); border-radius: var(--ll-r2); padding: .5em .95em; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ll-ink); transition: transform .12s ease, box-shadow .12s ease; }
.ll-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ll-ink); }
.ll-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ll-ink); }
.ll-btn:focus-visible, .ll-note:focus-visible { outline: 3px solid var(--ll-ink-you); outline-offset: 3px; }

/* A sticky note that works as a big link. */
.ll-note { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 168px; min-height: 88px; padding: 14px 38px 12px 16px; font-family: var(--ll-hand); color: var(--ll-ink); text-decoration: none; background: var(--ll-sticky-yellow); border-radius: 2px 3px 14px 3px / 3px 2px 18px 3px; box-shadow: 2px 3px 0 rgba(58, 44, 30, .18), 5px 9px 14px rgba(58, 44, 30, .28); transition: transform .15s ease, box-shadow .15s ease; }
.ll-note b { font-size: 1.22rem; line-height: 1.1; }
.ll-note small { font-size: .92rem; color: var(--ll-ink-soft); }
.ll-note .ll-go { position: absolute; right: 10px; bottom: 6px; font-size: 1.25rem; font-weight: 700; }
.ll-note::before { content: ""; position: absolute; top: -9px; left: 50%; width: 54px; height: 18px; margin-left: -27px; background: rgba(246, 244, 236, .62); border-left: 1px dashed rgba(140, 135, 120, .45); border-right: 1px dashed rgba(140, 135, 120, .45); transform: rotate(-3deg); }
.ll-note:hover { transform: rotate(0deg) translateY(-3px) scale(1.03); box-shadow: 3px 4px 0 rgba(58, 44, 30, .18), 8px 14px 20px rgba(58, 44, 30, .32); }
.ll-note:active { transform: rotate(0deg) translateY(1px); }
.ll-yellow { background: var(--ll-sticky-yellow); } .ll-pink { background: var(--ll-sticky-pink); } .ll-blue { background: var(--ll-sticky-blue); }
.ll-green { background: var(--ll-sticky-green); } .ll-orange { background: var(--ll-sticky-orange); }
.ll-tilt-1 { transform: rotate(-2.2deg); } .ll-tilt-2 { transform: rotate(1.4deg); } .ll-tilt-3 { transform: rotate(-1deg); }

@media (prefers-reduced-motion: reduce) { .ll-btn, .ll-note { transition: none; } }
