:root {
  color-scheme: dark;
  --bg: #10120f;
  --surface: #171a14;
  --line: #343b2b;
  --control-line: #748064;
  --muted: #a0aa91;
  --ink: #edf1e5;
  --lime: #d7f96b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body { line-height: 1.5; margin: 0; background: var(--bg); color: var(--ink); }
header, main, footer { max-width: 1200px; margin: auto; padding-left: 40px; padding-right: 40px; }
header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
a { color: inherit; text-decoration: none; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 9px; font-size: 20px; letter-spacing: -1px; }
.brand strong { font-weight: 500; }
.mark { color: var(--lime); }
.slash { color: var(--muted); }
.host { color: var(--muted); font-size: 12px; }
main { padding-bottom: 48px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-weight: 500; font-size: 26px; letter-spacing: -1px; margin: 0; }
.prompt { color: var(--lime); }
.count { border: 1px solid var(--line); padding: 4px 7px; color: var(--lime); font-size: 12px; font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.toolbar { width: 360px; max-width: 100%; flex-shrink: 0; }
.search-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
button, input { font: inherit; }
button { min-height: 44px; cursor: pointer; border: 1px solid var(--control-line); background: transparent; color: var(--muted); border-radius: 2px; padding: 9px 12px; font-size: 12px; }
button:hover { color: var(--ink); border-color: var(--muted); }
.search { min-height: 48px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--control-line); border-radius: 2px; padding: 0 12px; min-width: 260px; }
.search > span { font-size: 13px; color: var(--lime); }
input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 10px 0; font-size: 16px; outline: none; }
input::placeholder { color: var(--muted); opacity: 1; }
kbd { color: var(--muted); border: 1px solid var(--line); padding: 1px 5px; font: inherit; font-size: 12px; }
.search:focus-within { border-color: var(--lime); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.list-heading { flex-wrap: wrap; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); padding: 20px 0 16px; font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); transition: border-color .15s, background .15s; }
.card:hover, .card:focus-visible { border-color: #91a957; background: #1c2117; }
.card-body { padding: 20px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.path { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 8px; margin-bottom: 4px; overflow-wrap: anywhere; }
.path::before { content: './'; color: var(--lime); }
.card-top { display: flex; justify-content: space-between; gap: 12px; }
.card h2 { font-weight: 500; font-size: 18px; line-height: 1.4; letter-spacing: -.5px; margin: 0; overflow-wrap: anywhere; }
.arrow { color: var(--lime); font-size: 20px; }
.card p { font-family: system-ui, sans-serif; font-size: 15px; line-height: 1.7; color: var(--muted); margin: 10px 0 20px; overflow-wrap: anywhere; }
.card p:empty { display: none; }
.card-body > .date { margin-top: auto; }
.card-body > .path { padding-bottom: 16px; }
.date { margin-block-start: auto; font-size: 12px; line-height: 1.6; color: var(--muted); padding-top: 14px; border-top: 1px dashed var(--line); }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); }
[hidden] { display: none !important; }
.empty h2 { font-size: 17px; font-weight: 500; margin: 0 0 10px; }
.empty p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
.empty button { margin-top: 20px; }
.thumbnail { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--bg); }
footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 950px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .intro { align-items: stretch; flex-direction: column; gap: 24px; } .toolbar { width: 100%; } }
@media (max-width: 600px) {
  header, main, footer { padding-left: 22px; padding-right: 22px; }
  header { min-height: 72px; }
  .host { display: none; }
  .intro { padding: 28px 0 22px; }
  h1 { font-size: 22px; }
  .toolbar { align-items: stretch; flex-direction: column; gap: 14px; }
  .search { min-width: 0; }
  .grid { grid-template-columns: 1fr; }
  .brand { font-size: 18px; }
  .empty { padding: 50px 18px; }
  footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

.skip-link { position: absolute; top: 12px; left: 12px; transform: translateY(-200%); padding: 12px 16px; background: var(--lime); color: var(--bg); z-index: 10; }
.skip-link:focus { transform: translateY(0); }
button:disabled { cursor: wait; opacity: .6; }
.search button { border: 0; color: var(--lime); padding: 8px; }
.search:focus-within { outline: 1px solid var(--lime); }
@media (hover: none) and (pointer: coarse) { .shortcut { display: none; } }
