/* Palette and type match seanmk.com (Jekyll "Hydeout" theme): brick-red
   accent, charcoal headings, warm grays, Abril Fatface for the wordmark. */
:root {
  color-scheme: light dark;
  --bg: #fff;
  --bg-card: #fafafa;
  --text: #515151;
  --heading: #313131;
  --muted: #767676;
  --border: #e5e5e5;
  --accent: #ac4142;
  --accent-contrast: #fff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Abril Fatface", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --bg-card: #1c1c1c;
    --text: #d4d4d4;
    --heading: #f2f2f2;
    --muted: #a3a3a3;
    --border: #3a3a3a;
    --accent: #d9787a;
    --accent-contrast: #1c1c1c;
  }
}

* { box-sizing: border-box; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.5;
}
main { max-width: 1000px; margin: 0 auto; padding: 0 16px 48px; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.site-header { padding: 20px 16px 16px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.site-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  margin-bottom: 10px;
}
.home-link, .site-header nav a { color: var(--muted); }
.site-title {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}
.site-footer { max-width: 1000px; margin: 32px auto; padding: 16px; color: var(--muted); font-size: 0.9em; }

h1, h2, h3, h4 { color: var(--heading); font-weight: 600; line-height: 1.25; }
h1 { font-size: 1.6em; margin: 0 0 20px; }

.filters {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.filters .search-row { margin-bottom: 12px; }
.filters input[type="search"] {
  width: 100%; padding: 8px; font: inherit; color: inherit;
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
}
.filter-groups { display: flex; flex-wrap: wrap; gap: 16px; }
/* Fixed width so a group expanding on hover doesn't reflow its neighbors;
   long tag names wrap within the column instead of widening it. Sized so
   all 5 categories fit on one row at the page's max content width. */
.filter-group { padding: 2px; width: 160px; flex: 0 0 160px; }
.filter-group h3 { margin: 0 0 6px; font-size: 0.8em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.filter-group label { display: block; font-size: 0.92em; white-space: normal; }
/* Collapsed/expanded state is toggled by filter.js setting inline display,
   not CSS :hover — that stopped working reliably once a click left a
   checkbox focused. */

.tool-list { display: grid; gap: 12px; }
.tool-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--bg-card);
}
.tool-card h2 { margin: 0 0 4px; font-size: 1.1em; }
.tool-card h2 a { color: var(--heading); }
.tool-card h2 a:hover, .tool-card h2 a:focus { color: var(--accent); }
.tool-meta { font-size: 0.85em; color: var(--muted); margin: 0 0 8px; }
.tool-desc { margin: 0 0 8px; }
.tag-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { font-size: 0.78em; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; color: var(--muted); }
.tool-actions a { font-size: 0.85em; }
.empty-state { color: var(--muted); padding: 24px 0; }

form.simple-form { display: grid; gap: 10px; max-width: 480px; }
form.simple-form label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
form.simple-form input[type="text"],
form.simple-form input[type="email"],
form.simple-form input[type="password"],
form.simple-form input[type="url"],
form.simple-form textarea {
  width: 100%; padding: 8px; font: inherit; color: inherit;
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
}
form.simple-form fieldset { border: 1px solid var(--border); border-radius: 6px; }
form.simple-form legend { color: var(--muted); font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.03em; }

/* Pill buttons: outlined, fill solid on hover — matches the reference site. */
button, .button {
  display: inline-block;
  padding: 8px 20px;
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  justify-self: start;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.16);
}

.notice { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.notice.error { background: #fde2e2; color: #7a1c1c; }
.notice.success { background: #e2f6e5; color: #1e5c2a; }
