
:root {
  color-scheme: dark;
  --bg: #101112;
  --surface: #181a1c;
  --surface2: #1f2124;
  --line: #303235;
  --quiet-line: #282a2d;
  --ink: #f1f0ed;
  --subtle: #b4b3af;
  --muted: #858680;
  --quiet: #636660;
  --accent: #c5cfba;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f7;
  --surface: #f0efec;
  --surface2: #e8e7e3;
  --line: #d2d0ca;
  --quiet-line: #e3e1db;
  --ink: #222320;
  --subtle: #535651;
  --muted: #71736e;
  --quiet: #8a8d86;
  --accent: #485b47;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { width: min(1080px, calc(100% - 76px)); margin: 0 auto; }
.site-header { min-height: 86px; border-bottom: 1px solid var(--quiet-line); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { font-weight: 750; font-size: 19px; letter-spacing: -.085em; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 30px; }
.header-label { font-size: 10px; font-weight: 550; letter-spacing: .12em; color: var(--quiet); }
.header-link { font-size: 12px; color: var(--subtle); transition: color .15s; }
.header-link:hover { color: var(--ink); }
.theme-toggle { width: 30px; height: 30px; padding: 5px; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.page-intro { padding: 54px 0 50px; }
.eyebrow { display: flex; gap: 13px; align-items: center; color: var(--quiet); font-size: 10px; font-weight: 650; letter-spacing: .13em; margin: 0 0 20px; }
.eyebrow-rule { height: 1px; width: 27px; background: var(--line); }
.page-intro h1 { font-size: clamp(40px, 4.7vw, 50px); font-weight: 650; line-height: 1.02; letter-spacing: -.069em; margin: 0; }
.period { color: var(--accent); }
.intro-note { margin: 20px 0 0; font-size: 14px; font-weight: 400; color: var(--muted); }
.directory { padding-bottom: 104px; min-height: 45vh; }
.section-nav { display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 34px; align-items: center; }
.tab { border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 0 1px 17px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 540; display: flex; align-items: center; gap: 11px; }
.tab:hover { color: var(--ink); }
.tab.active { border-bottom-color: var(--ink); color: var(--ink); }
.tab span { color: var(--quiet); font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; }
.section-kicker { color: var(--quiet); font-size: 10px; font-weight: 650; letter-spacing: .11em; margin: 0 0 20px; }
.toolbar { padding: 29px 0 26px; display: flex; align-items: center; gap: 20px; }
.search { width: min(390px, 100%); height: 42px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.search:focus-within { border-bottom-color: var(--ink); }
.search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.search input { background: none; color: var(--ink); border: 0; outline: none; padding: 10px 0; width: 100%; min-width: 0; font-size: 13px; }
.search input::placeholder { color: var(--quiet); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.keyboard-tip { color: var(--quiet); border: 1px solid var(--line); border-radius: 3px; white-space: nowrap; font-size: 10px; padding: 2px 5px; }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap:after { content: ""; border: solid var(--quiet); border-width: 0 1px 1px 0; transform: rotate(45deg); width: 5px; height: 5px; position: absolute; right: 2px; top: calc(50% - 4px); pointer-events: none; }
.select-wrap select { appearance: none; background: none; color: var(--muted); border: none; padding: 10px 17px 10px 0; font-size: 12px; max-width: 160px; }
.select-wrap select:hover { color: var(--ink); }
.select-wrap select option { background: var(--surface); color: var(--ink); }
.sort-wrap { margin-left: auto; }
.results-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 21px; }
.results-info p { margin: 0; color: var(--muted); font-size: 12px; }
.results-info #resultsLabel { color: var(--subtle); }
.sites-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; row-gap: 53px; align-items: start; }
.site-item { min-width: 0; }
.visual-button { display: block; width: 100%; padding: 0; aspect-ratio: 1.65 / 1; position: relative; border: 1px solid var(--line); overflow: hidden; background: #17191b; color: white; text-align: left; }
.visual-button::after { content: ""; position: absolute; z-index: 5; inset: 0; border: 1px solid rgba(255,255,255,.03); pointer-events: none; }
.visual-button:hover .visual-expand, .visual-button:focus-visible .visual-expand { opacity: 1; transform: translateY(0); }
.visual-expand { position: absolute; z-index: 7; right: 14px; bottom: 14px; color: #f1f0ed; background: rgba(17,18,19,.9); padding: 7px 9px; font-size: 11px; letter-spacing: .01em; opacity: 0; transform: translateY(3px); transition: opacity .16s, transform .16s; }
.site-info { padding-top: 19px; }
.site-title-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.site-title { margin: 0; font-size: 19px; font-weight: 620; letter-spacing: -.041em; line-height: 1.26; }
.site-type { flex: 0 0 auto; font-size: 10px; color: var(--quiet); letter-spacing: .04em; }
.site-description { margin: 10px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.65; max-width: 490px; min-height: 19px; }
.site-links { display: flex; gap: 21px; }
.site-links a { font-size: 12px; color: var(--subtle); transition: color .15s; }
.site-links a:hover { color: var(--ink); }
.site-links a.secondary { color: var(--quiet); }
.site-links a.secondary:hover { color: var(--ink); }
.projects-list { border-top: 1px solid var(--quiet-line); }
.project-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 23px; padding: 18px 0; border-bottom: 1px solid var(--quiet-line); }
.project-thumb { position: relative; width: 96px; aspect-ratio: 1.5 / 1; padding: 0; border: 1px solid var(--line); background: #17191b; overflow: hidden; text-align: left; }
.project-row-main { min-width: 0; }
.project-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 11px; }
.project-name { display: inline-block; font-weight: 590; letter-spacing: -.022em; font-size: 15px; color: var(--ink); }
.project-name:hover, .project-out:hover { color: var(--accent); }
.project-tag { color: var(--quiet); font-size: 10px; letter-spacing: .04em; }
.project-summary { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.project-out { flex: 0 0 auto; font-size: 18px; padding: 13px 1px 13px 13px; color: var(--muted); }
.empty { border-top: 1px solid var(--line); padding: 65px 0; text-align: center; }
.empty p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.empty button { background: none; border: 0; color: var(--ink); border-bottom: 1px solid var(--ink); padding: 3px 0; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--quiet-line); min-height: 80px; font-size: 12px; color: var(--quiet); }
.footer a:hover { color: var(--ink); }
.preview-dialog { padding: 0; width: min(1000px, calc(100% - 38px)); max-height: min(850px, calc(100dvh - 35px)); background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 110px #000a; overflow: auto; }
.preview-dialog::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(5px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 23px; gap: 20px; }
.dialog-identity > span { color: var(--quiet); font-size: 10px; letter-spacing: .12em; }
.dialog-identity h2 { font-size: 19px; font-weight: 610; letter-spacing: -.03em; margin: 4px 0 0; }
.dialog-close { border: 0; background: none; color: var(--muted); font-size: 27px; line-height: 1; padding: 5px; }
.dialog-close:hover { color: var(--ink); }
.dialog-canvas { width: 100%; aspect-ratio: 1.8 / 1; overflow: hidden; position: relative; background: #17191b; }
.dialog-bottom { padding: 18px 23px 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.dialog-bottom p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.dialog-bottom a { flex: none; padding: 9px 0; border-bottom: 1px solid var(--ink); font-size: 12px; color: var(--ink); }
.dialog-bottom a:hover { color: var(--accent); border-color: var(--accent); }
/* All previews are real project art or intentional, small HTML compositions. */
.art { position: absolute; inset: 0; overflow: hidden; color: #eceeea; isolation: isolate; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif; }
.art-photo { background: #202327; }
.art-photo .art-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #1c2022; gap: 10px; }
.art-fallback strong { font-size: clamp(21px,3.5vw,32px); font-weight: 600; letter-spacing: -.06em; }
.art-fallback small { font-size: 10px; color: #9eaaa5; }
.art-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.dialog-canvas .art-photo img { object-fit: contain; object-position: center; }
.art-scan { background: #0c1013; padding: 6.5% 7%; }
.art-top { display: flex; align-items: center; justify-content: space-between; font-size: clamp(8px,.85vw,12px); letter-spacing: .055em; }
.art-top b { font-weight: 750; }
.art-top span { color: #818989; }
.art-scan-inner { display: flex; justify-content: space-between; gap: 6%; align-items: center; height: 86%; }
.art-scan-copy { flex: 1; min-width: 0; }
.art-scan-copy b { display: block; font-size: clamp(22px,3vw,45px); letter-spacing: -.065em; font-weight: 700; line-height: 1.07; }
.art-scan-copy small { display: block; margin-top: 13px; color: #828b8b; font-size: clamp(8px, .9vw, 12px); letter-spacing: .03em; }
.art-qr { flex: 0 0 35%; aspect-ratio: 1; padding: 3%; background: #e5e5df; display: flex; justify-content: center; align-items: center; }
.art-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.art-inspector { background: #0c121a; padding: 5.5% 6.5%; }
.art-inspector .art-top { padding-bottom: 5%; border-bottom: 1px solid #293442; }
.art-inspector .art-top b { font-size: clamp(9px, 1.2vw, 15px); }
.inspector-body { display: grid; grid-template-columns: 55% 1fr; gap: 7%; padding-top: 5%; }
.inspector-title { font-size: clamp(18px,2.45vw,37px); font-weight: 650; letter-spacing: -.06em; line-height: 1.15; }
.inspector-sub { margin-top: 13px; font-size: clamp(8px,.9vw,12px); color: #8899ac; line-height: 1.4; }
.inspector-field { border: 1px solid #3a4859; border-radius: 4px; margin-top: 13px; color: #9aadc0; padding: 8px 9px; font-size: clamp(7px,.75vw,12px); }
.inspector-right { border: 1px solid #293746; padding: 9%; background: #111c28; }
.inspector-right small { display: block; font-size: clamp(7px,.72vw,10px); color: #8c9eaf; margin-bottom: 12px; }
.inspector-right p { margin: 0 0 11px; font-size: clamp(8px,.86vw,12px); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.inspector-right i { display: inline-block; width: 7px; height: 7px; border-radius: 100%; background: #6e99b2; }
.inspector-right p:nth-of-type(2) i { background: #b8a477; }
.inspector-right p:nth-of-type(3) i { background: #81ac91; }
.art-badges { background: #0c131c; padding: 5.5% 7%; }
.art-badges .art-top { padding-bottom: 5%; border-bottom: 1px solid #253343; }
.art-badges .art-top b { font-size: clamp(9px, 1.2vw, 15px); }
.badges-center { display: flex; flex-direction: column; gap: 10px; padding-top: 7%; }
.badges-title { font-size: clamp(18px,2.35vw,34px); font-weight: 640; letter-spacing: -.05em; }
.badge-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge-sample { display: inline-flex; border-radius: 3px; overflow: hidden; font-size: clamp(7px,.83vw,11px); line-height: 1.65; }
.badge-sample span { padding: 3px 8px; color: #e8eff4; background: #303f52; }
.badge-sample span + span { background: #466f8b; color: #f4faff; }
.badge-sample:nth-child(2) span + span { background: #587e72; }
.badge-sample:nth-child(3) span + span { background: #6c678c; }
.art-siteguard { background: #111719; padding: 6.5% 7%; }
.siteguard-symbol { display: inline-block; border: 1px solid #3b514d; padding: 8px 11px; font-size: clamp(8px,.85vw,12px); color: #bed6cb; letter-spacing: .06em; }
.siteguard-title { margin-top: 8%; font-size: clamp(24px,3.2vw,45px); font-weight: 640; letter-spacing: -.065em; }
.siteguard-sub { margin-top: 3%; font-size: clamp(8px,.95vw,13px); color: #8ea9a3; }
.siteguard-code { position: absolute; right: 7%; top: 32%; display: grid; gap: 13px; width: 32%; }
.siteguard-code span { height: 3px; width: 75%; background: #31423f; }
.siteguard-code span:nth-child(2) { width: 100%; }
.siteguard-code span:nth-child(3) { width: 45%; }
.art-repo { background: #1a1c1f; padding: 8% 9%; display: flex; flex-direction: column; justify-content: space-between; }
.repo-eyebrow { color: #898e92; font-size: clamp(7px,.75vw,12px); letter-spacing: .15em; }
.repo-word { font-size: clamp(18px,2.8vw,40px); letter-spacing: -.065em; font-weight: 630; line-height: 1.05; overflow-wrap: anywhere; }
.repo-foot { font-size: clamp(8px,.85vw,12px); color: #7e868b; }
.project-thumb .art-repo { padding: 10% 12%; }
.project-thumb .repo-word { font-size: 13px; }
.project-thumb .repo-eyebrow, .project-thumb .repo-foot { font-size: 6px; }
.project-thumb .art-scan .art-scan-copy b, .project-thumb .art-inspector .inspector-title, .project-thumb .art-badges .badges-title, .project-thumb .art-siteguard .siteguard-title { font-size: 11px; }
.project-thumb .art .art-top { font-size: 6px; }
.project-thumb .art-scan-copy small, .project-thumb .inspector-sub, .project-thumb .inspector-field, .project-thumb .inspector-right, .project-thumb .badge-row, .project-thumb .siteguard-sub, .project-thumb .siteguard-code { display: none; }
.project-thumb .siteguard-symbol { font-size: 6px; padding: 3px; }
.project-thumb .art-badges .badges-center { padding-top: 11%; }
.project-thumb .art-scan-inner { height: 92%; }
.project-thumb .art-qr { flex-basis: 32%; }
.project-thumb .art-scan { padding: 7%; }
@media (max-width: 900px) {
  .wrap { width: min(850px,calc(100% - 48px)); }
  .site-header { min-height: 75px; }
  .header-label { display: none; }
  .sites-grid { column-gap: 21px; row-gap: 42px; }
  .art-scan-copy b { font-size: clamp(16px,3.5vw,30px); }
  .inspector-title, .badges-title { font-size: clamp(17px,2.75vw,29px); }
  .siteguard-title { font-size: clamp(21px,3.5vw,33px); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 70px; }
  .header-right { gap: 19px; }
  .page-intro { padding: 42px 0 40px; }
  .page-intro h1 { font-size: 43px; }
  .eyebrow { font-size: 9px; }
  .section-kicker { display: none; }
  .tabs { gap: 24px; }
  .toolbar { flex-wrap: wrap; padding: 18px 0 22px; gap: 12px; }
  .search { flex: 1 1 100%; width: 100%; }
  .sort-wrap { margin-left: auto; }
  .sites-grid { grid-template-columns: 1fr; row-gap: 38px; }
  .site-title { font-size: 18px; }
  .site-info { padding-top: 15px; }
  .site-description { margin: 8px 0 10px; }
  .results-info { margin-bottom: 15px; }
  .results-info #resultsHint { display: none; }
  .project-row { grid-template-columns: 72px minmax(0,1fr) auto; padding: 15px 0; gap: 13px; }
  .project-thumb { width: 72px; }
  .project-name { font-size: 13px; }
  .project-summary { font-size: 11px; margin-top: 5px; }
  .project-out { padding-left: 1px; font-size: 16px; }
  .project-thumb .repo-word { font-size: 10px; }
  .directory { padding-bottom: 65px; }
  .footer { min-height: 74px; }
  .footer-center { display: none; }
  .dialog-canvas { aspect-ratio: 1.5 / 1; }
  .dialog-top { padding: 15px 17px; }
  .dialog-bottom { padding: 15px 17px 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .dialog-canvas .art-scan-copy b { font-size: 21px; }
  .dialog-canvas .inspector-title, .dialog-canvas .badges-title { font-size: 19px; }
  .dialog-canvas .siteguard-title { font-size: 23px; }
}
@media (hover: none) { .visual-expand { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; scroll-behavior: auto !important; } }
