/* Notes hub styles (/blog/notes.html) — follows the home page's visual language:
   Inter, #f5f7fa background, #2c3e50 text, white 14px-radius cards, #3498db accent. */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #f5f7fa;
  color: #2c3e50;
  line-height: 1.6;
}
a { color: #3498db; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 960px; margin: 0 auto; padding: 28px 20px 60px; }
.back { display: inline-block; font-size: 14px; margin-bottom: 18px; }

header h1 { font-size: 32px; margin: 0 0 6px; font-weight: 600; }
header .lede { margin: 0 0 4px; color: #4a5a6a; }
header .meta { margin: 0; font-size: 14px; color: #777; }

/* toolbar: search + category chips */
.toolbar {
  position: sticky; top: 0; z-index: 5;
  background: #f5f7fa; padding: 16px 0 12px; margin-top: 18px;
  border-bottom: 1px solid #e3e8ee;
}
.search { position: relative; }
.search input {
  width: 100%; font: inherit; font-size: 15px; color: #2c3e50;
  padding: 11px 38px 11px 14px; border: 1px solid #d6dde5; border-radius: 10px; background: #fff;
}
.search input:focus { outline: none; border-color: #3498db; box-shadow: 0 0 0 3px rgba(52,152,219,.15); }
.search .clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; font-size: 18px; color: #8a97a4; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.search .clear:hover { background: #eef1f4; color: #2c3e50; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font: inherit; font-size: 13.5px; cursor: pointer; color: #2c3e50;
  background: #fff; border: 1px solid #d6dde5; border-radius: 999px; padding: 5px 12px;
}
.chip:hover { border-color: #3498db; }
.chip[aria-pressed="true"] { background: #3498db; border-color: #3498db; color: #fff; }
.chip .n { opacity: .7; margin-left: 4px; }
.status { font-size: 13px; color: #777; margin: 10px 0 0; min-height: 1.2em; }

/* categories */
.cat { margin-top: 30px; scroll-margin-top: 150px; }
.cat-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cat-head h2 { font-size: 21px; margin: 0; font-weight: 600; }
.cat-head .count { font-size: 13px; color: #777; }
.cat .blurb { margin: 4px 0 12px; font-size: 14.5px; color: #5d6d7c; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.note {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06); border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
}
.note:hover, .note:focus-visible {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10); border-color: rgba(77,166,255,.4); outline: none;
}
.note h3 { font-size: 16px; margin: 0 0 6px; color: #2c3e50; line-height: 1.35; }
.note .variant { font-size: 12.5px; color: #1f6fb2; background: #eef6ff; border-radius: 6px; padding: 2px 8px; align-self: flex-start; margin-bottom: 8px; }
.note p { margin: 0 0 10px; font-size: 14px; color: #5d6d7c; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: 12px; color: #5d6d7c; background: #f1f4f7; border-radius: 999px; padding: 2px 9px; }
.tag.interactive { background: #e9f7ef; color: #1e7a45; }
mark { background: #fff3b0; color: inherit; padding: 0 1px; border-radius: 2px; }

.empty {
  margin-top: 30px; background: #fff; border-radius: 14px; padding: 28px 20px; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.06); color: #5d6d7c;
}
.empty button { margin-top: 10px; font: inherit; font-size: 14px; color: #fff; background: #3498db; border: 0; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
footer { margin-top: 40px; font-size: 13px; color: #8a97a4; }
[hidden] { display: none !important; }

@media (max-width: 600px) {
  .wrap { padding: 20px 16px 48px; }
  header h1 { font-size: 26px; }
  .grid { grid-template-columns: 1fr; }
  .cat { scroll-margin-top: 190px; }
}
