/* sDev — a minimal project directory. */
:root {
  color-scheme: dark;
  --bg: #181d22;
  --panel: #20262d;
  --panel-hover: #252e37;
  --line: #343e48;
  --muted: #adb7c1;
  --text: #eef0f2;
  --accent: #87a8c6;
  --font: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; padding-bottom: 48px; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
input, select { font: inherit; }
a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--bg); }
[hidden] { display: none !important; }
.container { width: min(880px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 5; padding: 12px 18px; border-radius: 6px; background: var(--accent); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* A compact display of the original logo and creator's name. */
.site-header { padding-block: 64px 36px; }
.brand { display: inline-flex; align-items: center; gap: 18px; max-width: 100%; min-height: 64px; }
.brand-mark { flex: 0 0 64px; width: 64px; height: 52px; background: url('/assets/sdev-logo.png') -46px -39px / 156px 156px no-repeat; }
.brand-text { display: grid; gap: 2px; min-width: 0; }
.brand-wordmark { font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -1.2px; }
.brand-name { color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }

/* Project rows keep the title and description together at every width. */
.projects-section { padding-top: 28px; border-top: 1px solid var(--line); }
h1 { margin: 0 0 20px; font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.3px; }
.project-list { display: grid; gap: 12px; }
.project-card { display: grid; grid-template-columns: 54px minmax(0, 1fr) 24px; align-items: center; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); transition: background 160ms ease, border-color 160ms ease; }
.project-card:hover { background: var(--panel-hover); border-color: #667f94; }
.project-monogram { display: grid; place-items: center; width: 54px; min-height: 54px; padding: 8px; border: 1px solid #455768; border-radius: 7px; background: #2b3845; color: #b3c9dd; font-size: 12px; line-height: 1.5; font-weight: 650; letter-spacing: .6px; overflow-wrap: anywhere; }
.card-copy { min-width: 0; }
h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: -.3px; overflow-wrap: anywhere; }
.project-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.project-meta > span:first-child { color: var(--accent); }
.open-project { color: var(--accent); font-size: 22px; text-align: right; }

.filters { display: flex; gap: 12px; margin-bottom: 20px; }
.search-label { flex: 1; min-width: 0; }
.category-label { max-width: 40%; }
.filters input, .filters select { width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid #536273; border-radius: 7px; background: var(--panel); color: var(--text); font-size: 16px; }
.filters input::placeholder { color: var(--muted); opacity: 1; }
.empty-state { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.error-page { padding-top: 28px; border-top: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; color: var(--accent); font-size: 14px; }
.back-link:hover { color: var(--text); }

@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  .site-header { padding-block: 36px 28px; }
  .brand { gap: 16px; }
  .brand-wordmark { font-size: 32px; }
  .projects-section { padding-top: 24px; }
  .project-card { grid-template-columns: minmax(0, 1fr) 22px; gap: 16px; padding: 20px; }
  .project-monogram { display: none; }
  .open-project { align-self: start; }
  h2 { font-size: 18px; }
  .project-description { font-size: 14px; }
  .project-meta { font-size: 11px; }
  .filters { flex-direction: column; }
  .category-label { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
