/* highlie.com: the app's paper, ink and accent, light and dark. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --paper: #faf7f2;
  --card: #ffffff;
  --ink: #15171a;
  --body: #26292e;
  --muted: #5c6066;
  --line: #e8e3d9;
  --tint: #f2efe9;
  --accent: #2747c9;
  --highlight: rgba(39, 71, 201, 0.14);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141311;
    --card: #1e1c19;
    --ink: #f2efe9;
    --body: #e4e0d8;
    --muted: #a39e95;
    --line: #2f2c27;
    --tint: #2a2723;
    --accent: #93a6f5;
    --highlight: rgba(147, 166, 245, 0.18);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.mark { font-weight: 800; font-size: 24px; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.mark span { color: var(--accent); }
nav.site { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }

main { padding: 48px 0 72px; }

h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(34px, 7vw, 52px); margin: 0 0 16px; }
h2 { font-size: 24px; margin: 44px 0 10px; }
h3 { font-size: 18px; letter-spacing: -0.01em; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 600; }

.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.lede { font-size: 20px; color: var(--muted); max-width: 34em; }
.meta { font-size: 14px; color: var(--muted); }

/* The app's own trick: a highlighter swipe behind a word. */
.hl { background: linear-gradient(transparent 58%, var(--highlight) 58%, var(--highlight) 92%, transparent 92%); padding: 0 2px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 36px 0 12px; padding: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 0; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.steps h3 { margin-top: 0; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }

.note { background: var(--tint); border-radius: 16px; padding: 18px 20px; margin: 24px 0; }
.note p:last-child { margin-bottom: 0; }

.toc { columns: 2 220px; font-size: 15px; padding-left: 18px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site nav { display: flex; gap: 18px; }
footer.site a { color: var(--muted); }
