:root {
  color-scheme: dark;
  --bg: #141619;
  --surface: #1c2025;
  --text: #edf0f3;
  --muted: #a7b0bb;
  --line: #343b44;
  --accent: #9bc1ff;
  --accent-hover: #bed7ff;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #3a5680; color: #fff; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
a:active { color: #fff; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--text); line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; letter-spacing: -.015em; }
h3 { font-size: 1.125rem; letter-spacing: -.01em; }
p, li { overflow-wrap: break-word; }
ul, ol { padding-left: 1.25rem; margin: 1rem 0 0; }
li + li { margin-top: .65rem; }
li::marker { color: var(--muted); }
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -6rem; padding: .65rem 1rem; z-index: 5; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 76px; padding-block: .75rem; }
.brand { color: var(--text); font-size: 1.125rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--muted); font-size: .875rem; font-weight: 400; margin-left: .4rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-nav a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: .875rem; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }
.intro { padding-block: 3.5rem 3.25rem; max-width: 740px; }
.eyebrow { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: .9rem; letter-spacing: .035em; }
.intro > p:last-child, .lede { color: var(--muted); font-size: 1.0625rem; margin-top: 1.15rem; max-width: 68ch; }
.catalog-section { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 3rem; padding-bottom: 3.5rem; scroll-margin-top: 1.5rem; }
.category-heading { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.category-heading p { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.project-list { min-width: 0; border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.project-copy { min-width: 0; }
.project-copy h3 a { color: var(--text); text-decoration: none; }
.project-copy h3 a:hover { color: var(--accent); text-decoration: underline; }
.project-copy > p { color: var(--muted); margin-top: .5rem; max-width: 60ch; }
.project-copy .project-meta { display: flex; flex-wrap: wrap; column-gap: 1.25rem; row-gap: .25rem; font-size: .8125rem; margin-top: .8rem; }
.project-meta > span:first-child { color: #c6ced8; }
.row-actions { display: flex; flex-direction: column; align-items: stretch; }
.button { display: inline-flex; justify-content: center; align-items: center; text-align: center; min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #121923; font-size: .875rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.button:hover { color: #121923; background: var(--accent-hover); border-color: var(--accent-hover); }
.button:active { background: #7ba9ed; }
.button.secondary { color: var(--text); border-color: #4b5562; background: transparent; }
.button.secondary:hover { background: var(--surface); border-color: var(--muted); }
.button.secondary:active { background: #2c333c; }
.text-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem .5rem; font-size: .875rem; text-decoration: none; }
.text-action:hover { text-decoration: underline; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; padding-top: 1.5rem; color: var(--muted); font-size: .875rem; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.project-header { padding-block: 2rem 2.75rem; max-width: 820px; }
.project-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; }
.resource-links { display: flex; flex-wrap: wrap; column-gap: 1.5rem; margin-top: .75rem; font-size: .875rem; }
.resource-links a { display: inline-flex; align-items: center; min-height: 44px; }
.project-hero-media { max-width: 920px; margin: 0 0 2.75rem; }
.project-hero-media img { background: #0f1114; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1rem; }
.screenshot-grid figure { min-width: 0; }
.screenshot-grid figure img { background: #0f1114; }
.screenshot-grid .screenshot-wide { grid-column: 1 / -1; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 4rem; border-top: 1px solid var(--line); padding-block: 2rem 4rem; }
.project-main, .project-aside { min-width: 0; }
.project-main > * + * { margin-top: 2.5rem; }
.project-main li, .project-aside p, .project-aside li { color: var(--muted); }
.project-main li { padding-left: .35rem; }
.project-aside { border-left: 1px solid var(--line); padding-left: 1.75rem; }
.project-aside section + section { margin-top: 2rem; }
.project-aside p { margin-top: 1rem; font-size: .9375rem; }
.project-aside ul { font-size: .9375rem; }
.project-aside .text-action { margin-top: .75rem; padding-left: 0; }
.steps { padding-left: 1.5rem; }
.steps li + li { margin-top: 1rem; }
.steps li::marker { color: var(--accent); font-weight: 600; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
figure a { display: block; }
figcaption { color: var(--muted); font-size: .8125rem; margin-top: .65rem; }
.table-wrap { margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: .9rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { color: var(--muted); font-weight: 400; padding-top: 0; }
tbody th { font-weight: 600; width: 28%; }
td { color: var(--muted); }
.filename { display: block; margin-top: .5rem; font-size: .8125rem; overflow-wrap: anywhere; }
.doc-links { list-style: none; padding: 0; }
.doc-links li + li { margin-top: .25rem; }
.doc-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .75rem 2rem; border-top: 1px solid var(--line); padding-block: 1.75rem 2.25rem; font-size: .8125rem; color: var(--muted); }
.site-footer > span { color: #c6ced8; }
.site-footer p { flex: 1; min-width: 200px; max-width: 66ch; }
.site-footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; margin-top: -.65rem; }
.not-found { padding-block: 5rem 7rem; max-width: 620px; }
.not-found > p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); }
.not-found .button { margin-top: 1.5rem; }
@media (max-width: 860px) {
  .catalog-section { grid-template-columns: 145px minmax(0, 1fr); gap: 1.75rem; }
  .project-row { grid-template-columns: minmax(0, 1fr); }
  .row-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; }
  .project-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 2rem; }
  .project-aside { padding-left: 1.25rem; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .25rem 1rem; padding-top: 1rem; }
  .site-nav { gap: .25rem 1.5rem; }
  .intro { padding-block: 2.5rem; }
  .catalog-section { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2.5rem; }
  .category-heading { padding-top: 1.25rem; }
  .category-heading p { max-width: 45ch; margin-top: .5rem; }
  .project-row { padding-block: 1.25rem; }
  .project-copy .project-meta { flex-direction: column; }
  .project-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 2.5rem; }
  .project-aside { padding-left: 0; padding-top: 1.75rem; border-left: 0; border-top: 1px solid var(--line); }
  .project-header { padding-block: 1.5rem 2rem; }
  .project-actions { align-items: stretch; }
  .project-actions .button { flex: 1 1 210px; }
  .screenshot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .screenshot-grid .screenshot-wide { grid-column: auto; }
  .site-footer { gap: 1rem; flex-direction: column; }
  .site-footer a { margin-top: 0; }
  th, td { padding-inline: .5rem; }
}

/* Consistent action sizes: preserve existing labels and download targets. */
.row-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .5rem;
  width: 160px;
  align-items: stretch;
}
.row-actions > :is(.button, .text-action) {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: .65rem .8rem;
  border: 1px solid #4b5562;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.row-actions > .text-action {
  color: #121923;
  background: var(--accent);
  border-color: var(--accent);
}
.row-actions > .text-action:hover {
  color: #121923;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.row-actions > .text-action:active { background: #7ba9ed; }
.project-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 245px));
  align-items: stretch;
  gap: .75rem;
}
.project-actions:has(> :nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 245px));
}
.project-actions > .button {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: .7rem .85rem;
  overflow-wrap: anywhere;
}
/* The restored ReadyAlert feature block previously had no matching CSS. */
.project-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.project-highlight-grid > article {
  min-width: 0;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.project-highlight-grid h2 { font-size: 1rem; font-weight: 650; }
.project-highlight-grid p { margin-top: .65rem; color: var(--muted); font-size: .9375rem; }
.project-main > section > p { margin-top: .8rem; color: var(--muted); }
.project-main strong { color: var(--text); }
.project-hero-media.readyalert-hero { max-width: 679px; }
.screenshot-grid .screenshot-wide img { max-width: 720px; }
@media (max-width: 860px) {
  .row-actions { width: min(100%, 350px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .project-actions:has(> :nth-child(3)) { grid-template-columns: minmax(0, 360px); }
}
@media (max-width: 640px) {
  .project-actions, .project-actions:has(> :nth-child(3)) {
    width: min(100%, 490px);
    grid-template-columns: minmax(0, 1fr);
  }
  .project-actions > .button { flex: none; }
  .project-highlight-grid { grid-template-columns: minmax(0, 1fr); }
}
