:root {
  --bg: #f5f5f3;
  --card: #ffffff;
  --text: #141414;
  --muted: #6b6b6b;
  --line: #e6e6e2;
  --line-strong: #1a1a1a;
  --accent: #d9481f;
  --accent-soft: #fff1eb;
  --accent-ink: #fff;
  --danger: #b42318;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(240, 90, 40, 0.18);
  color: var(--text);
}

img { max-width: 100%; height: auto; display: block; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.muted { color: var(--muted); }
.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.text-link:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: 1.55rem; margin-top: 0; }
h3 { font-size: 1.05rem; margin-top: 0; font-weight: 700; }

p { margin: 0 0 16px; max-width: 68ch; }
ul, ol { padding-left: 1.2rem; margin: 0 0 16px; max-width: 68ch; }
li { margin-bottom: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 8px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  justify-self: start;
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid;
  place-items: center;
  color: var(--text);
}
.brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-link {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}
.nav-link.is-active::after,
body[data-path="/"] .nav-link[href="/"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.header-cta {
  justify-self: end;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:focus-visible {
  outline: 3px solid rgba(240, 90, 40, 0.35);
  outline-offset: 2px;
}
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: #fff;
}
.btn-dark {
  background: #2a2a2a;
  color: #fff;
  border-color: #2a2a2a;
}
.btn-dark:hover {
  background: #111;
  color: #fff;
}
.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover {
  background: #000;
  color: #fff;
}


/* Hero */
.hero {
  padding: 36px 0 8px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.hero-copy h1 {
  margin-bottom: 14px;
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 22px;
  font-weight: 500;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 16px;
  max-width: 520px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search-bar:focus-within {
  border-color: #cfcfc9;
  box-shadow: 0 0 0 4px rgba(240, 90, 40, 0.12);
}
.search-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-right: 8px;
  flex: 0 0 auto;
}
.search-bar input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.98rem;
  min-width: 0;
  color: var(--text);
}
.search-bar input::placeholder { color: #9a9a9a; }
.search-submit {
  flex: 0 0 auto;
  min-height: 40px;
  border-radius: var(--radius-pill);
  padding: 0 18px;
}
.popular-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: none;
}
.popular-searches span { font-weight: 600; margin-right: 2px; }
.popular-searches a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.popular-searches a:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #c2c2c2;
  font-weight: 400;
  pointer-events: none;
}
.popular-searches a:hover { color: var(--accent); }
.hero-visual {
  display: flex;
  justify-content: center;
  animation: float-in 0.8s var(--ease) both;
}
.hero-visual img {
  width: min(100%, 460px);
  height: auto;
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section {
  padding: 28px 0 40px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.section-note {
  margin: 0 0 18px;
  font-size: 0.95rem;
  max-width: 72ch;
}
.view-all {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.view-all:hover { color: var(--accent); }

.section-usecases { padding-top: 12px; }
.use-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.use-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.use-link:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  color: inherit;
}
.use-link strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 750;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.use-link span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.filter-pill {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.filter-pill:hover { border-color: #cfcfc9; }
.filter-pill.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.filter-pill:focus-visible {
  outline: 3px solid rgba(240, 90, 40, 0.3);
  outline-offset: 2px;
}


.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 20px;
}
.skill-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.skill-card:hover {
  border-color: #cfcfc9;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.06);
}
.skill-card.is-hidden { display: none; }
.skill-card-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 18px 18px 12px;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
}
.skill-card-link:hover { color: inherit; }
.skill-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}
.skill-icon::before,
.skill-icon::after {
  content: "";
  position: absolute;
}
/* PDF / docs */
.skill-icon--pdf {
  background: linear-gradient(160deg, #fff 40%, #ffe8df);
}
.skill-icon--pdf::before {
  inset: 14px 18px 18px 18px;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background:
    linear-gradient(#1a1a1a, #1a1a1a) 10px 14px / 28px 3px no-repeat,
    linear-gradient(#1a1a1a, #1a1a1a) 10px 22px / 22px 3px no-repeat,
    #fff;
}
.skill-icon--pdf::after {
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
/* Design / browser */
.skill-icon--design {
  background: #fff;
}
.skill-icon--design::before {
  inset: 14px 12px 12px 12px;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 0 0 / 100% 10px no-repeat,
    radial-gradient(circle at 8px 5px, #fff 2px, transparent 2.5px),
    radial-gradient(circle at 16px 5px, #fff 2px, transparent 2.5px),
    #f7f7f5;
}
.skill-icon--design::after {
  left: 22px;
  right: 22px;
  bottom: 20px;
  height: 18px;
  border-radius: 4px;
  background: repeating-linear-gradient(-45deg, rgba(240,90,40,0.35), rgba(240,90,40,0.35) 2px, transparent 2px, transparent 5px);
  border: 1.5px solid var(--line-strong);
}
/* Folder / productivity */
.skill-icon--folder {
  background: #fff;
}
.skill-icon--folder::before {
  left: 14px;
  right: 14px;
  top: 22px;
  bottom: 14px;
  border-radius: 6px;
  background: var(--accent);
  border: 2px solid var(--line-strong);
  box-shadow: 8px -8px 0 -2px #ffb089, 8px -8px 0 0 var(--line-strong);
}
.skill-icon--folder::after {
  left: 22px;
  top: 14px;
  width: 22px;
  height: 10px;
  border-radius: 3px 3px 0 0;
  background: #ff7a4d;
  border: 2px solid var(--line-strong);
  border-bottom: 0;
}
/* Code / development */
.skill-icon--code {
  background: #fff;
}
.skill-icon--code::before {
  inset: 16px;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  background: #fafafa;
}
.skill-icon--code::after {
  left: 26px;
  right: 26px;
  top: 32px;
  height: 24px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 4px / 14px 3px no-repeat,
    linear-gradient(#1a1a1a, #1a1a1a) 0 12px / 28px 3px no-repeat,
    linear-gradient(#1a1a1a, #1a1a1a) 0 20px / 20px 3px no-repeat;
}

.skill-card-body { min-width: 0; }
.skill-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.skill-name {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0;
}
.skill-score {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: #f3f3f0;
  border-radius: 6px;
  padding: 3px 7px;
}
.skill-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.skill-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cat-tag {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}
.card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.skill-card:hover .card-arrow {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.skill-card-extra {
  padding: 0 18px 16px;
  border-top: 1px solid transparent;
}
.skill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.chip {
  font-size: 0.72rem;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f3f3f0;
  color: var(--muted);
  border: 1px solid var(--line);
}
.chip-warn {
  background: #fff1f0;
  color: var(--danger);
  border-color: #f3d0cc;
}
.install-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.install-cmd {
  flex: 1 1 160px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: #1a1a1a;
  color: #f0f0f0;
  padding: 8px 10px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: nowrap;
  margin: 0;
}
.copy-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text);
}
.copy-btn:hover { border-color: var(--text); }
.copy-btn[data-copied="1"] {
  border-color: var(--accent);
  color: var(--accent);
}
.empty-filter {
  margin: 8px 0 20px;
  color: var(--muted);
  font-weight: 600;
}
.installs-note {
  font-size: 0.82rem;
  margin: 0;
}


.two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
}
.note-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.note-card h2 { font-size: 1.15rem; }
.note-card .btn { width: 100%; }

.faq {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.faq-item {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  max-width: none;
  font-size: 0.95rem;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.related a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.related a:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  color: inherit;
}
.related strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 750;
}
.related span {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1.5px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 16px;
  background: #f0f0ed;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-links a:hover { color: var(--text); }
.footer-meta {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.legal-body,
.prose-page,
.tool-shell {
  padding: 40px 0 64px;
}
.legal-body .lede,
.prose-page .lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.tool-panel {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0 40px;
}
.tool-panel h2 { margin-top: 0; }

[data-gf-tool] .check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}
[data-gf-tool] label.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
[data-gf-tool] label.check:hover { border-color: var(--line-strong); }
[data-gf-tool] input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}
[data-gf-tool] .score-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #1a1a1a;
  color: #f0f0f0;
}
[data-gf-tool] .score-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
[data-gf-tool] .score-msg { margin: 0; max-width: 52ch; color: #c5c5c5; }
[data-gf-tool] .score-box[data-level="low"] .score-num { color: #ff8a7a; }
[data-gf-tool] .score-box[data-level="mid"] .score-num { color: #ffd666; }
[data-gf-tool] .score-box[data-level="high"] .score-num { color: #7ddea0; }
[data-gf-tool] .reset-row { margin-top: 16px; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  max-width: 70ch;
}
.steps li {
  position: relative;
  padding: 16px 16px 16px 56px;
  margin-bottom: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
}

.prose-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0 0 20px;
}
.prose-block th,
.prose-block td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.prose-block th { background: #f0f0ed; }

@media (max-width: 960px) {
  .hero-grid,
  .skill-grid,
  .use-links {
    grid-template-columns: 1fr 1fr;
  }
  .use-links { grid-template-columns: repeat(2, 1fr); }
  .header-row {
    grid-template-columns: 1fr auto;
  }
  .nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
    padding-bottom: 6px;
  }
}

@media (max-width: 720px) {
  .hero-grid,
  .skill-grid,
  .two-col,
  .footer-grid,
  .related,
  .use-links {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .hero-visual img { width: min(100%, 320px); margin-inline: auto; }
  .hero { padding-top: 20px; }
  .search-bar { max-width: none; }
  .skill-card-link { grid-template-columns: 56px 1fr; }
  .skill-icon { width: 56px; height: 56px; border-radius: 12px; }
  .header-cta { padding: 0 12px; min-height: 38px; font-size: 0.82rem; }
}
