/* Personal job-hunt notebook. Same variable names the pages already use, remapped
   to a warm paper palette; a warm-dark variant follows the OS setting. */
:root {
  --bg: #f6f0e4; --card: #fffdf8; --card2: #f9f2e3; --border: #e6dcc6; --text: #2d2a32;
  --muted: #8a8172; --accent: #d9593d; --ok: #3f8f6b; --warn: #b9831d; --fail: #c4423f;
  --star: #e8a317; --hl: #ffe27a; --blue: #4a6fa5; --line: rgba(120,100,60,.13);
  --shadow: 0 1px 0 rgba(90,70,30,.06), 0 6px 18px -10px rgba(90,70,30,.25);
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1814; --card: #25201a; --card2: #2c261e; --border: #3a3226; --text: #f0e8d8;
    --muted: #a39a88; --accent: #f08262; --ok: #6cc59b; --warn: #e3b25a; --fail: #ec7a76;
    --star: #f5c542; --hl: #5b4c14; --blue: #8fb0e3; --line: rgba(255,230,170,.07);
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 8px 20px -10px rgba(0,0,0,.6);
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.45;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.hand { font-family: var(--hand); } .serif { font-family: var(--serif); }
::selection { background: var(--hl); color: #000; }

/* top nav: a notebook tab strip */
.topnav { display: flex; align-items: center; gap: 6px; padding: 10px 22px; background: var(--card);
  border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topnav .brand { font-family: var(--hand); font-size: 26px; font-weight: 700; margin-right: 14px; color: var(--accent); line-height: 1; }
.topnav a { color: var(--muted); padding: 6px 13px; border-radius: 999px; font-weight: 600; }
.topnav a:hover { color: var(--text); text-decoration: none; background: var(--card2); }
.topnav a.active { color: var(--text); background: var(--hl); }

/* greeting banner */
.hello { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; padding: 18px 26px 14px;
  border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--card), transparent); }
.hello .greet { font-family: var(--hand); font-size: 38px; font-weight: 700; line-height: 1.05; }
.hello .greet mark { background: linear-gradient(transparent 55%, var(--hl) 55%); color: inherit; padding: 0 4px; }
.hello .quote { font-family: var(--hand); font-size: 21px; color: var(--muted); margin-top: 4px; max-width: 560px; }
.hello .stats { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.sticky { background: var(--card); border: 1px solid var(--border); border-radius: 4px 4px 12px 4px; padding: 8px 14px;
  box-shadow: var(--shadow); min-width: 104px; transform: rotate(-.6deg); }
.sticky:nth-child(even) { transform: rotate(.7deg); background: var(--card2); }
.sticky .n { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.1; }
.sticky .l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.goal { flex: 1 1 100%; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.goal .track { flex: 0 1 320px; height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.goal .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--star)); border-radius: 999px; transition: width .6s; }

/* controls */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--border); }
input[type=text], select, textarea { background: var(--card); color: var(--text); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 7px 11px; font-size: 13.5px; outline: none; }
input[type=text]:focus, select:focus, textarea:focus { border-color: var(--accent); }
.filters input[type=text] { flex: 1 1 220px; min-width: 160px; max-width: 360px; }
.chip { background: var(--card); border: 1.5px solid var(--border); border-radius: 999px; padding: 5px 13px; font-size: 13px; color: var(--muted); user-select: none; font-weight: 600; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.on { background: var(--hl); border-color: transparent; color: #2d2a32; }
.chip.on.green { background: #cfeadb; color: #1d5a3d; } .chip.on.star { background: #fbe3a6; color: #6a4a00; }
@media (prefers-color-scheme: dark) { .chip.on { color: #fff5d6; } .chip.on.green { background: #234b38; color: #bff0d6; } .chip.on.star { background: #4d3b0d; color: #ffe6a0; } }

/* badges = little stickers */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--card2); color: var(--muted); white-space: nowrap; border: 1px solid var(--border); }
.badge.green { background: rgba(63,143,107,.14); color: var(--ok); border-color: transparent; }
.badge.amber { background: rgba(185,131,29,.15); color: var(--warn); border-color: transparent; }
.badge.red { background: rgba(196,66,63,.12); color: var(--fail); border-color: transparent; }
.badge.blue { background: rgba(74,111,165,.14); color: var(--blue); border-color: transparent; }

.iconbtn { background: none; border: 0; padding: 4px; font-size: 19px; line-height: 1; color: var(--muted); border-radius: 8px; }
.iconbtn:hover { color: var(--text); background: var(--card2); }
.iconbtn.on { color: var(--star); }
.btn { background: var(--card); border: 1.5px solid var(--border); border-radius: 10px; padding: 7px 13px; font-size: 13px; font-weight: 600; box-shadow: 0 1px 0 var(--border); }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.on { border-color: var(--star); color: var(--warn); background: #fff6dc; }
.btn.on-green { border-color: var(--ok); color: var(--ok); }
@media (prefers-color-scheme: dark) { .btn.on { background: #3a2f10; } }
.btn:disabled { opacity: .4; cursor: default; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 50px 24px; text-align: center; font-family: var(--hand); font-size: 24px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 9px 18px; border-radius: 999px; z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; font-weight: 600; box-shadow: var(--shadow); }
.toast.show { opacity: 1; }
kbd { background: var(--card2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; font-size: 11px; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }
.pop { animation: pop .35s; }
@media (max-width: 700px) { .hello { padding: 14px 16px; } .hello .greet { font-size: 30px; } .hello .stats { margin-left: 0; } .topnav { padding: 8px 12px; } }
