:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f6f7f5;
  --text: #1d2320;
  --muted: #626d64;
  --line: #cbd1cb;
  --soft-line: #e5e9e4;
  --accent: #476b59;
  --content: 980px;
}
* { box-sizing: border-box; border-radius: 0; }
html { background: var(--background); color: var(--text); font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body { margin: 0; }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
a { color: inherit; text-decoration: none; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
::selection { background: #dce8de; color: var(--text); }
.shell { width: min(100% - 64px, 1140px); margin: 0 auto; }
.wide { max-width: var(--content); margin: 0 auto; }
.top {
  min-height: 70px; display: flex; align-items: center; gap: 34px;
  border-bottom: 1px solid var(--line); position: relative; z-index: 10;
}
.wordmark {
  font-size: 20px; font-weight: 750; line-height: 1;
  letter-spacing: -.055em; white-space: nowrap;
}
.mark-dot { color: var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a {
  padding: 23px 0 21px; color: var(--muted); white-space: nowrap;
  font-size: 14px; font-weight: 550; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.languages { flex-shrink: 0; position: relative; }
.locale-picker { position: relative; }
.locale-picker summary {
  display: flex; align-items: center; gap: 10px; list-style: none;
  border: 1px solid var(--line); padding: 9px 12px; font: 650 12px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .04em; min-width: 68px; justify-content: space-between;
}
.locale-picker summary::-webkit-details-marker { display: none; }
.chevron { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.locale-picker[open] .chevron { transform: rotate(225deg) translate(-2px, -1px); }
.locale-options {
  position: absolute; right: 0; top: calc(100% + 8px); width: 170px;
  border: 1px solid var(--line); background: var(--background);
  box-shadow: 0 10px 26px rgba(29,35,32,.09); padding: 5px; z-index: 20;
}
.locale-options a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; font-size: 13px; color: var(--text);
}
.locale-options a:hover, .locale-options a[aria-current="page"] { background: var(--surface); color: var(--accent); }
.footer { margin-top: 46px; border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 24px; }
.footer nav { display: flex; gap: 24px; }
.footer a:hover { text-decoration: underline; }
.eyebrow { color: var(--accent); font: 700 11px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 18px; }
.feed-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 0 0 8px; }
.feed-heading h1 { font-size: 24px; line-height: 1.3; letter-spacing: -.045em; font-weight: 720; margin: 0; word-break: keep-all; }
.section { margin: 36px 0; }
.lead-feed { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-head h2, .section > h2 { font-size: 17px; line-height: 1.4; font-weight: 700; margin: 0; letter-spacing: -.025em; }
.section-head > a { color: var(--accent); font-size: 13px; font-weight: 600; }
.section-count, .results-count { color: var(--muted); font-size: 12px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.feed-controls { display: flex; gap: 23px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.feed-controls button {
  border: 0; border-bottom: 2px solid transparent;
  margin-bottom: -1px; background: transparent; color: var(--muted);
  padding: 8px 1px 9px; font-size: 13px; font-weight: 550;
}
.feed-controls button:hover { color: var(--text); }
.feed-controls button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.story-list { border-top: 1px solid var(--line); }
.feed-controls + .story-list { border-top: none; }
.story {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px;
  padding: 15px 0 16px; border-bottom: 1px solid var(--soft-line);
}
.story-rail { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-top: 2px; }
.story-type { color: var(--accent); font: 700 10px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; text-transform: uppercase; }
.story[data-kind="discovery"] .story-type { color: var(--muted); }
.story-rail time { color: var(--muted); font: 500 10px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .03em; }
.story-content { min-width: 0; }
.story-repository, .repo-name, .monospace { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.story-repository { color: var(--muted); font-size: 11px; }
.story h2 { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.35; font-weight: 670; letter-spacing: -.035em; margin: 0 0 5px; word-break: keep-all; }
.story h2 a:hover { text-decoration: underline; }
.story-description { margin: 0 0 5px; color: var(--muted); font-size: 12.5px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-meta { display: flex; gap: 3px 15px; flex-wrap: wrap; color: var(--muted); font-size: 11px; line-height: 1.5; }
.story-meta a { color: var(--accent); }
.secondary-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 34px; }
.category-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.category-links a { font-size: 13px; color: var(--text); padding: 7px 0; border-bottom: 1px solid var(--soft-line); }
.category-links span { font: 11px ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--muted); margin-left: 5px; }
.featured-projects { display: flex; flex-wrap: wrap; gap: 12px 25px; font-size: 13px; }
.featured-projects a { padding-bottom: 6px; border-bottom: 1px solid var(--soft-line); }
.page-title { padding: 30px 0 18px; }
.page-title .eyebrow { margin-bottom: 12px; }
.page-title h1 { font-size: clamp(27px, 3vw, 36px); line-height: 1.25; letter-spacing: -.05em; font-weight: 720; margin: 0 0 8px; word-break: keep-all; }
.listing-page > .feed-block { margin-top: 10px; }
.category-list, .repo-list { border-top: 1px solid var(--line); }
.category-list article, .repo-list article { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--soft-line); }
.category-list h2, .repo-list h2 { margin: 0; font-size: 18px; letter-spacing: -.035em; font-weight: 650; }
.category-list span, .project-category { color: var(--muted); font-size: 12px; white-space: nowrap; }
.project-controls { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.project-controls label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.project-controls label span { font-size: 12px; color: var(--muted); }
.project-controls input, .project-controls select {
  appearance: none; width: 100%; min-width: 0; height: 45px; border: 1px solid var(--line);
  background: var(--background); color: var(--text); padding: 0 12px; font-size: 13px;
}
.project-controls select { padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.project-controls input::placeholder { color: #909990; }
.results-count { min-height: 17px; margin: 0 0 12px; }
.repo-list article { align-items: center; }
.repo-list h2 { margin-bottom: 4px; font-size: 16px; }
.repo-list p { margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.meta { color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.project-category { color: var(--accent); }
.post { max-width: 760px; margin: 0 auto; padding: 30px 0 10px; }
.post h1 { font-size: clamp(27px, 3vw, 35px); line-height: 1.34; letter-spacing: -.045em; font-weight: 720; margin: 9px 0 11px; word-break: keep-all; }
.post .summary { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 15px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: var(--muted); font-size: 11px; margin-bottom: 21px; }
.breadcrumbs a:hover { color: var(--accent); }
.article-kicker { display: flex; gap: 19px; color: var(--accent); font: 700 11px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.article-kicker a { color: var(--muted); }
.article-deck { color: #505c53; font-size: 15px; line-height: 1.7; margin: 0; word-break: keep-all; }
.article-byline { margin: 12px 0 15px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 11px; color: var(--muted); }
.article-actions { border-bottom: 1px solid var(--line); padding: 10px 0; display: flex; flex-wrap: wrap; gap: 9px 23px; align-items: center; }
.article-actions a { font-size: 13px; font-weight: 580; }
.source-link { color: var(--accent); font-weight: 650; }
.post-body { font-size: 15.5px; line-height: 1.82; margin: 25px 0 29px; overflow-wrap: anywhere; word-break: keep-all; }
.post-body p { margin: 0 0 1.3em; }
.repo-snapshot { border-top: 1px solid var(--line); padding: 12px 0 11px; }
.repo-snapshot-top { display: flex; align-items: baseline; gap: 8px 14px; flex-wrap: wrap; }
.repo-snapshot-label { font-size: 11px; font-weight: 600; color: var(--muted); }
.repo-snapshot-top .repo-name { font-size: 12px; color: var(--accent); font-weight: 650; }
.repo-snapshot-description { flex-basis: 100%; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.5; margin: -2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-snapshot-facts { display: flex; gap: 5px 18px; flex-wrap: wrap; margin: 10px 0 0; }
.repo-snapshot-facts div { display: inline-flex; gap: 5px; align-items: baseline; font-size: 11px; }
.repo-snapshot-facts dt { color: var(--muted); }
.repo-snapshot-facts dd { color: var(--text); font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0; }
.chip { color: var(--accent); font-size: 12px; }
.chip:hover { text-decoration: underline; }
.related-stories { margin-top: 38px; }
.project-detail > .eyebrow { margin-top: 10px; }
.project-detail .source-link { font-size: 13px; }
.project-facts { margin: 24px 0 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-facts div { padding: 12px 0; border-bottom: 1px solid var(--soft-line); }
.project-facts dt { font-size: 12px; color: var(--muted); }
.project-facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-size: 14px; padding: 20px 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.item, .tracked { padding: 22px 0; border-bottom: 1px solid var(--soft-line); }
.item h2, .tracked h3 { font-size: 21px; line-height: 1.4; letter-spacing: -.035em; margin: 7px 0 8px; }
.item p, .tracked p { color: var(--muted); font-size: 14px; }
.badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 650; color: var(--accent); }
.badge.new { color: var(--muted); }
.version { font: 12px ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--muted); }
.details { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin: 30px 0; }
.details div { padding: 15px 0; border-bottom: 1px solid var(--soft-line); }
.details span, .details strong { display: block; }
.details span { color: var(--muted); font-size: 12px; }
.details strong { font-size: 14px; margin-top: 4px; }
@media (max-width: 800px) {
  .shell { width: min(100% - 36px, 1140px); }
  .top { min-height: 72px; flex-wrap: wrap; gap: 0 18px; padding: 18px 0 0; }
  .wordmark { font-size: 20px; }
  .languages { margin-left: auto; }
  .nav { order: 3; margin: 5px 0 0; width: 100%; gap: 25px; justify-content: flex-start; }
  .nav a { padding: 12px 0 13px; }
  .page-title { padding: 28px 0 14px; }
  .section { margin: 30px 0; }
  .story { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .project-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .project-controls label:first-child { grid-column: 1 / -1; }
  .post { padding-top: 24px; }
}
@media (max-width: 480px) {
  .shell { width: min(100% - 30px, 1140px); }
  .nav { justify-content: space-between; gap: 12px; }
  .nav a { font-size: 13px; }
  .story { display: block; padding: 13px 0; }
  .story-rail { flex-direction: row; gap: 11px; align-items: center; padding: 0; margin-bottom: 5px; }
  .story h2 { font-size: 16px; }
  .story-description { font-size: 12px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .feed-controls { gap: 18px; }
  .feed-controls button { font-size: 12px; }
  .page-title h1 { font-size: 29px; }
  .category-list article, .repo-list article { gap: 13px; }
  .repo-list article { align-items: flex-start; flex-direction: column; }
  .project-controls { gap: 8px; }
  .project-controls label span { font-size: 11px; }
  .project-controls select { font-size: 12px; padding-left: 8px; }
  .post-body { font-size: 16px; }
  .project-facts { grid-template-columns: 1fr; }
  .footer { margin-top: 38px; }
  .feed-heading h1 { font-size: 22px; }
  .repo-snapshot-description { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .repo-snapshot-facts { gap: 6px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
