:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #17201b;
  --muted: #69736d;
  --line: #dce2dd;
  --paper: #f5f7f4;
  --white: #ffffff;
  --green: #237a57;
  --green-soft: #e7f1eb;
  --coral: #df674f;
  --yellow: #efbd4d;
  --charcoal: #202722;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); letter-spacing: 0; }
button, input, select { font: inherit; letter-spacing: 0; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 1.8; }

.site-header { height: 72px; padding: 0 5vw; display: grid; grid-template-columns: 240px 1fr 240px; align-items: center; gap: 24px; z-index: 10; }
.home-header { position: absolute; inset: 0 0 auto; color: #182019; border-bottom: 1px solid rgba(23, 32, 27, .2); }
.home-header .site-nav { color: #f8faf8; text-shadow: 0 1px 4px rgba(18, 24, 20, .55); }
.home-header .site-nav a.is-active { color: #fff; border-color: #fff; }
.catalog-header { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.site-logo { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 19px; }
.site-logo-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 6px; }
.site-nav { justify-self: center; display: flex; align-items: center; gap: 30px; color: #4d5751; font-size: 13px; }
.site-nav a { padding: 25px 0 23px; border-bottom: 2px solid transparent; }
.site-nav a.is-active { color: var(--ink); border-color: var(--ink); font-weight: 750; }
.header-command { justify-self: end; min-height: 39px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--charcoal); border: 1px solid var(--charcoal); border-radius: 5px; font-weight: 750; }
.eyebrow { display: block; margin-bottom: 9px; color: var(--green); font-size: 11px; font-weight: 850; }
.eyebrow.light { color: #8cd0ae; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 13px; font-weight: 750; }

/* Home */
.home-hero { position: relative; min-height: clamp(530px, 72svh, 700px); display: flex; align-items: center; overflow: hidden; background: #d9ddd8; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-tint { position: absolute; inset: 0; background: rgba(248, 250, 247, .32); }
.hero-content { position: relative; z-index: 2; width: min(720px, 90vw); margin-left: 5vw; padding-top: 54px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; color: #325f49; font-size: 11px; font-weight: 850; }
.hero-kicker svg { width: 15px; height: 15px; }
.hero-content h1 { margin: 14px 0 0; font-size: clamp(52px, 7vw, 92px); line-height: .96; font-weight: 820; }
.hero-lead { max-width: 650px; margin: 22px 0 0; color: #303a34; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; text-wrap: balance; }
.hero-search { width: min(680px, 90vw); min-height: 58px; margin-top: 30px; padding: 5px 5px 5px 16px; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .94); border: 1px solid rgba(23, 32, 27, .28); border-radius: 6px; box-shadow: 0 12px 30px rgba(32, 39, 34, .12); }
.hero-search input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; }
.hero-search button { min-height: 46px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; color: #fff; background: var(--green); border: 0; border-radius: 4px; font-weight: 750; }
.hero-facts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 22px; color: #3c4740; font-size: 12px; }
.hero-facts strong { margin-right: 4px; color: var(--ink); font-size: 15px; }
.hero-next { position: absolute; z-index: 2; right: 5vw; bottom: 24px; display: inline-flex; align-items: center; gap: 8px; color: #29332d; font-size: 11px; font-weight: 800; }
.home-featured { padding: 68px 5vw 78px; background: #fbfcfa; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-heading h2, .principle-intro h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.featured-rail { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.featured-card { min-height: 238px; padding: 22px; display: flex; flex-direction: column; border: 1px solid rgba(23, 32, 27, .12); border-radius: 6px; }
.featured-card:nth-child(1) { background: #dcece3; }
.featured-card:nth-child(2) { background: #f3ddcf; }
.featured-card:nth-child(3) { background: #f3e5b5; }
.featured-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.featured-rank { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.skill-icon { width: 43px; height: 43px; display: grid; place-items: center; color: #2a6b4e; background: rgba(255, 255, 255, .72); border: 1px solid rgba(23, 32, 27, .09); border-radius: 6px; }
.featured-card h3 { margin: auto 0 7px; font-size: 20px; }
.featured-card p { margin: 0; color: #536059; font-size: 13px; line-height: 1.55; }
.featured-card footer { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; color: #56615a; font-size: 10px; }
.home-principles { padding: 78px 5vw; display: grid; grid-template-columns: minmax(250px, .8fr) 1.6fr; gap: 7vw; color: #f5f7f5; background: #222a25; }
.home-principles .eyebrow { color: #87c8a6; }
.principle-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #536059; }
.principle-list article { min-height: 230px; padding: 24px 20px; border-right: 1px solid #536059; }
.principle-list article:last-child { border-right: 0; }
.principle-list article > span { display: block; color: #89958d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.principle-list article > svg { width: 28px; height: 28px; margin-top: 28px; color: #8cd0ae; }
.principle-list h3 { margin: 17px 0 7px; font-size: 16px; }
.principle-list p { margin: 0; color: #b8c1bb; font-size: 12px; line-height: 1.65; }

/* Catalog */
.catalog-intro { padding: 36px 5vw; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr); align-items: end; gap: 7vw; color: #f4f7f5; background: #222a25; border-bottom: 4px solid var(--yellow); }
.catalog-intro h1 { margin: 0; font-size: 36px; }
.catalog-intro p { margin: 9px 0 0; color: #bbc5bf; font-size: 13px; }
.catalog-search { height: 50px; padding: 0 14px; display: flex; align-items: center; gap: 10px; color: var(--ink); background: #fff; border: 1px solid #fff; border-radius: 4px; }
.catalog-search input { min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; }
.catalog-search kbd { padding: 2px 6px; color: #68726c; background: #f4f5f3; border: 1px solid #d8ddd8; border-radius: 3px; font-size: 10px; }
.catalog-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 720px; }
.catalog-filters { padding: 28px 20px; background: #edf1ed; border-right: 1px solid var(--line); }
.filter-block + .filter-block { margin-top: 30px; }
.filter-title { display: block; margin: 0 10px 10px; color: #79837d; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.category-button { width: 100%; min-height: 39px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; color: #58635c; background: transparent; border: 0; border-radius: 5px; font-size: 12px; }
.category-button span { display: inline-flex; align-items: center; gap: 9px; }
.category-button strong { font-size: 10px; }
.category-button.is-active { color: #1e6246; background: #fff; box-shadow: inset 3px 0 #2a8760; font-weight: 750; }
.check-filter { min-height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 9px; color: #59635d; font-size: 12px; }
.check-filter input { accent-color: var(--green); }
.catalog-facts { margin: 0 10px; }
.catalog-facts div { padding: 8px 0; display: flex; justify-content: space-between; border-bottom: 1px solid #d8ded9; font-size: 11px; }
.catalog-facts dt { color: #6f7973; }
.catalog-facts dd { margin: 0; font-weight: 800; }
.catalog-results { min-width: 0; padding: 24px 30px 52px; }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tag-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-button { min-height: 34px; padding: 0 12px; color: #59645d; background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.tag-button.is-active { color: #fff; background: var(--charcoal); border-color: var(--charcoal); }
.result-actions { display: flex; align-items: center; gap: 12px; }
.sort-control { display: flex; align-items: center; gap: 7px; color: #6b756f; font-size: 11px; }
.sort-control select { height: 36px; padding: 0 28px 0 9px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.view-switch { display: flex; padding: 2px; background: #e5e9e5; border-radius: 5px; }
.view-button { width: 34px; height: 32px; display: grid; place-items: center; color: #6e7872; background: transparent; border: 0; border-radius: 4px; }
.view-button.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(23, 32, 27, .1); }
.result-summary { margin: 22px 0 12px; display: flex; justify-content: space-between; color: #7b857f; font-size: 10px; }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(210px, 1fr)); gap: 12px; }
.skill-card { min-height: 242px; padding: 18px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; transition: transform 160ms ease, border-color 160ms ease; }
.skill-card:hover { transform: translateY(-2px); border-color: #91b3a1; }
.skill-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.favorite-button { width: 32px; height: 32px; display: grid; place-items: center; color: #87918b; background: transparent; border: 0; border-radius: 4px; }
.favorite-button:hover, .favorite-button.is-active { color: var(--coral); background: #fff0ed; }
.skill-card h2 { margin: 15px 0 6px; font-size: 16px; }
.skill-card p { margin: 0; color: #69736d; font-size: 12px; line-height: 1.6; }
.tag-list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag { padding: 4px 7px; color: #5b665f; background: #f1f4f1; border-radius: 3px; font-size: 9px; }
.skill-details { margin-top: auto; padding-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; color: #7a847e; font-size: 9px; }
.skill-details span:nth-child(even) { text-align: right; }
.verified { color: #2b7655; font-weight: 750; }
.skill-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #cfd5d0; border-radius: 4px; }
.skill-table { min-width: 800px; }
.skill-table-head, .skill-row { display: grid; grid-template-columns: minmax(250px, 1.6fr) 90px 80px 120px 90px 80px 42px; align-items: center; }
.skill-table-head { min-height: 38px; padding: 0 12px; color: #727c76; background: #e8ebe7; border-bottom: 1px solid #cfd5d0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; text-transform: uppercase; }
.skill-row { min-height: 64px; padding: 8px 12px; border-bottom: 1px solid #e0e4e1; color: #515c55; font-size: 11px; }
.skill-row:last-child { border-bottom: 0; }
.skill-row:hover { background: #fafbf9; }
.table-name { min-width: 0; display: flex; align-items: center; gap: 10px; }
.table-name .skill-icon { width: 32px; height: 32px; color: #fff; background: #4f5b54; border-radius: 3px; }
.table-name .skill-icon svg { width: 15px; height: 15px; }
.table-name div { min-width: 0; }
.table-name strong, .table-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-name strong { color: var(--ink); font-size: 12px; }
.table-name span { margin-top: 3px; color: #87908a; font-size: 9px; }
.category-label { width: max-content; padding: 3px 6px; background: #eee9d9; border-radius: 3px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.empty-state { padding: 70px 20px; color: #747e78; text-align: center; }
.empty-state svg { width: 30px; height: 30px; margin-bottom: 10px; }

.site-footer { min-height: 126px; padding: 26px 5vw; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 24px; color: #afb9b2; background: #171d19; font-size: 12px; }
.footer-logo { color: #fff; }
.site-footer p { justify-self: center; }
.site-footer > a:last-child { justify-self: end; display: inline-flex; align-items: center; gap: 7px; color: #8fd0ad; }
.compact-footer { min-height: 92px; }

@media (max-width: 1050px) {
  .skill-grid { grid-template-columns: repeat(2, minmax(210px, 1fr)); }
  .featured-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header { grid-template-columns: 200px 1fr 180px; }
}

@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 16px; grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .header-command span { display: none; }
  .header-command { width: 39px; padding: 0; }
  .home-hero { min-height: 660px; align-items: flex-start; }
  .hero-image { object-position: 63% center; }
  .hero-tint { background: rgba(248, 250, 247, .55); }
  .hero-content { width: calc(100% - 32px); margin: 0 16px; padding-top: 126px; }
  .hero-content h1 { font-size: 54px; }
  .hero-lead { max-width: 94%; font-size: 17px; }
  .hero-search { width: 100%; min-height: 54px; margin-top: 24px; }
  .hero-search button { width: 46px; padding: 0; justify-content: center; }
  .hero-search button { font-size: 0; }
  .hero-search button svg { width: 18px; height: 18px; }
  .hero-facts { gap: 12px 18px; }
  .hero-next { display: none; }
  .home-featured { padding: 48px 16px 54px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .featured-rail { grid-template-columns: 1fr; }
  .featured-card { min-height: 210px; }
  .home-principles { padding: 54px 16px; grid-template-columns: 1fr; gap: 38px; }
  .principle-list { grid-template-columns: 1fr; }
  .principle-list article { min-height: 180px; border-right: 0; border-bottom: 1px solid #536059; }
  .catalog-intro { padding: 28px 16px; grid-template-columns: 1fr; gap: 22px; }
  .catalog-intro h1 { font-size: 30px; }
  .catalog-shell { display: block; }
  .catalog-filters { padding: 12px 16px; display: flex; align-items: center; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .filter-block { display: flex; align-items: center; gap: 5px; }
  .filter-block + .filter-block { margin-top: 0; }
  .filter-title, .desktop-only { display: none; }
  .category-button { width: auto; min-width: max-content; padding: 0 11px; background: #fff; border: 1px solid var(--line); }
  .category-button strong, .category-button svg { display: none; }
  .category-button.is-active { color: #fff; background: var(--charcoal); border-color: var(--charcoal); box-shadow: none; }
  .check-filter { min-width: max-content; padding: 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
  .catalog-results { padding: 18px 16px 44px; }
  .catalog-controls { align-items: flex-start; flex-direction: column; }
  .tag-filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .tag-button { min-width: max-content; }
  .result-actions { width: 100%; justify-content: space-between; }
  .result-summary span:last-child { display: none; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: 228px; }
  .site-footer { padding: 28px 16px; grid-template-columns: 1fr; text-align: left; }
  .site-footer p, .site-footer > a:last-child { justify-self: start; }
}
