/* Archive shell: light and dark tokens. Artwork cards use a single frame; controls share a 4px radius. */
:root {
  color-scheme: light dark;
  --bg: #f7f7f2;
  --panel: #fffefb;
  --panel-raised: #ecefe7;
  --line: #c2c8bc;
  --line-soft: #dce0d6;
  --text: #242822;
  --muted: #62685d;
  --accent: #395c25;
  --accent-hover: #2f4c1f;
  --accent-soft: #e8efdf;
  --input-bg: #fffefb;
  --art-bg: #eef0e9;
  --button-text: #fffefb;
  --description: #41473d;
  --control-border: #7f8876;
  --backdrop: rgb(36 40 34 / 45%);
  /* Artwork renders on its own light canvas in both themes. */
  --art-canvas: #fffefb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #242622;
    --panel: #2d302b;
    --panel-raised: #373a33;
    --line: #62665b;
    --line-soft: #42463e;
    --text: #e4e7df;
    --muted: #adb3a6;
    --accent: #adc98f;
    --accent-hover: #c0d8a6;
    --accent-soft: #343d2c;
    --input-bg: #2d302b;
    --art-bg: #1e201c;
    --button-text: #242622;
    --description: #cfd3c9;
    --control-border: #808679;
    --backdrop: rgb(0 0 0 / 60%);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #242622;
  --panel: #2d302b;
  --panel-raised: #373a33;
  --line: #62665b;
  --line-soft: #42463e;
  --text: #e4e7df;
  --muted: #adb3a6;
  --accent: #adc98f;
  --accent-hover: #c0d8a6;
  --accent-soft: #343d2c;
  --input-bg: #2d302b;
  --art-bg: #1e201c;
  --button-text: #242622;
  --description: #cfd3c9;
  --control-border: #808679;
  --backdrop: rgb(0 0 0 / 60%);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, a, select, summary { touch-action: manipulation; }
button, .button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: var(--button-text); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; white-space: nowrap; }
button:hover, .button-link:hover { background: var(--accent-hover); color: var(--button-text); }
button:active, .button-link:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: default; }
.secondary-button, .button-link.secondary-button { color: var(--text); background: var(--panel); border-color: var(--control-border); }
.secondary-button:hover, .button-link.secondary-button:hover { color: var(--accent); background: var(--accent-soft); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a, button, input, select, summary, section { scroll-margin-top: 96px; }
[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; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px; background: var(--accent); color: var(--button-text); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
/* Layer 50: navigation; layer 60: account menu; layer 100: skip link. */
.site-header { position: sticky; z-index: 50; top: 0; display: grid; grid-template-columns: auto minmax(200px, 380px) 1fr auto; gap: 28px; align-items: center; width: min(1320px, calc(100% - 64px)); min-height: 80px; margin: 0 auto; border-bottom: 1px solid var(--line); background: var(--bg); }
.wordmark { width: fit-content; font-size: 25px; font-weight: 800; letter-spacing: -1.3px; text-decoration: none; white-space: nowrap; }
.global-search { display: flex; min-width: 0; gap: 6px; }
.search-input { flex: 1; min-width: 0; }
input[type="search"], input[type="text"], select, textarea { min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--input-bg); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.search-input input { width: 100%; font-size: 14px; }
.search-submit { padding-inline: 13px; }
.primary-nav { display: flex; justify-content: flex-end; gap: 24px; align-items: center; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 80px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a.active { color: var(--text); border-color: var(--accent); }
.account-access { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.theme-toggle { display: none; flex: none; min-height: 0; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-color: var(--control-border); background: transparent; color: var(--text); }
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle[aria-pressed="true"] .icon-moon { display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: block; }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.connect-wallet, .account-menu > summary { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 132px; padding: 10px 13px; border: 1px solid var(--control-border); border-radius: 4px; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.connect-wallet:hover, .account-menu[open] > summary { background: var(--accent-soft); border-color: var(--accent); }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; }
.account-menu > summary::after { content: "⌄"; margin-left: 12px; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu-items { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; display: grid; min-width: 176px; padding: 5px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--panel); }
.account-menu-items a, .account-menu-items button { display: flex; justify-content: flex-start; align-items: center; min-height: 44px; padding: 10px 12px; border: 0; color: var(--text); background: transparent; font-size: 14px; text-align: left; text-decoration: none; }
.account-menu-items a:hover, .account-menu-items button:hover { background: var(--accent-soft); }
main { flex: 1; width: min(1320px, calc(100% - 64px)); margin: 0 auto; padding: 40px 0 56px; }
h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.035em; }
h3 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
p { margin: 12px 0; }
.page-title-row, .section-title-row, .profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-intro { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.catalogue-controls { display: flex; align-items: end; gap: 12px; }
.catalogue-controls label { display: grid; gap: 6px; min-width: 200px; color: var(--muted); font-size: 12px; }
.catalogue-controls select { width: 100%; font-size: 14px; }
.results-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.text-link, .reset-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 14px; white-space: nowrap; }
.reset-link { padding: 8px 10px; }
.project-grid, .artwork-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card, .artwork-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.project-card:hover, .artwork-card:hover { border-color: var(--control-border); }
.project-visual, .artwork-card-preview { display: block; aspect-ratio: 1; margin: 8px 8px 0; background: var(--art-bg); }
.project-visual img, .artwork-card-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-card-body, .artwork-card-body { padding: 16px; }
.project-card-heading h2 { margin: 0 0 7px; font-size: 19px; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.project-card-heading h2 a, .artwork-card-heading a { text-decoration: none; }
.project-card-heading h2 a:hover, .artwork-card-heading a:hover { text-decoration: underline; }
.project-card-artists { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.project-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.project-metrics > div, .project-summary > div { min-width: 0; }
.project-metrics dt, .project-summary dt, .artwork-facts dt { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.project-metrics dd, .project-summary dd, .artwork-facts dd { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.missing-preview { display: grid; place-items: center; height: 100%; padding: 24px; color: var(--muted); font-size: 14px; text-align: center; }
.empty-state { display: grid; justify-items: start; gap: 12px; padding: 40px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.empty-state h2, .empty-state h3 { font-size: 24px; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state a { margin-top: 6px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 28px 0 0; font-size: 14px; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--panel); color: var(--text); text-decoration: none; }
.pagination a:hover { background: var(--accent-soft); color: var(--accent); }
nav[data-load-more] a[aria-disabled="true"] { opacity: .6; cursor: wait; pointer-events: none; }
.load-more-status { color: var(--muted); font-size: 13px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 16px; color: var(--muted); font-size: 14px; text-decoration: none; }
.project-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.artist-line { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.artist-line a { color: var(--text); }
.project-summary { display: grid; grid-template-columns: repeat(2, minmax(112px, 1fr)); gap: 28px; margin: 0; }
.project-summary dd { font-size: 15px; }
.artist-description { max-width: 72ch; margin-top: 24px; color: var(--description); font-size: 16px; line-height: 1.65; }
.markup { max-width: 72ch; line-height: 1.7; overflow-wrap: anywhere; }
.markup p { white-space: normal; margin: 0 0 1em; }
.markup p:last-child { margin-bottom: 0; }
.markup ul, .markup ol { padding-left: 24px; }
.markup a { color: var(--accent); }
.markup pre { overflow: auto; max-width: 100%; padding: 14px; background: var(--panel-raised); }
.read-more-collapsed { overflow: hidden; }
.read-more-button { margin-top: 8px; padding: 8px 0; border: 0; background: transparent; color: var(--accent); font: inherit; text-decoration: underline; }
.read-more-button:hover { background: transparent; color: var(--text); }
.technical-details { margin: 24px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
summary { min-height: 44px; padding: 12px 0; color: var(--muted); font-size: 14px; cursor: pointer; }
summary:hover { color: var(--text); }
.project-information { padding: 8px 0 24px; }
.project-information dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 24px; }
.project-information dt, .source-facts dt { margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.project-information dd, .source-facts dd { margin: 0; overflow-wrap: anywhere; }
.project-information dd a { display: block; width: fit-content; min-height: 36px; }
.project-information a { color: var(--accent); font-size: 14px; }
code { color: var(--muted); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.project-tags { grid-column: 1 / -1; }
.project-tags dd { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.project-collection { margin-top: 32px; }
.section-count { margin-left: 8px; color: var(--muted); font-size: 16px; font-weight: 400; letter-spacing: 0; }
.collection-status, .profile-scope { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.section-title-row .collection-status { margin: 0; }
.collection-search { position: relative; display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 20px 0 24px; }
.collection-search > label { display: grid; flex: 1; gap: 6px; max-width: 480px; min-width: 160px; color: var(--muted); font-size: 13px; }
.collection-search input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--input-bg); color: var(--text); font-size: 15px; }
.trait-filters { position: relative; }
.trait-filters > summary { min-height: 44px; padding: 10px 14px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--panel); color: var(--text); }
.trait-filter-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.trait-filter-inputs label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.trait-filters[open] { flex-basis: 100%; order: 2; max-width: 680px; }
.trait-filters[open] > summary { width: fit-content; }
.artwork-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.artwork-card-heading h3 { min-width: 0; font-size: 18px; overflow-wrap: anywhere; }
.artwork-card-heading > span { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.artwork-owner { margin: 10px 0 16px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.artwork-owner a { color: var(--text); }
.artwork-facts { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.artwork-seed { padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; }
.artwork-seed > span { display: block; margin-bottom: 5px; color: var(--muted); }
.artwork-seed code { display: block; font-size: 11px; overflow-wrap: anywhere; }
.unindexed-project { margin-top: 32px; }
.unindexed-preview { display: block; width: min(580px, 100%); height: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 4px; }
.preview-notice { color: var(--muted); font-size: 13px; }
.nft-detail-header { padding-bottom: 26px; }
.nft-title-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.nft-title-row h1 { max-width: 26ch; font-size: clamp(30px, 3.2vw, 44px); }
.nft-navigation { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.nft-navigation .button-link { padding-inline: 13px; }
.nft-view-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .45fr); gap: 18px; align-items: start; padding-bottom: 34px; }
.nft-artwork-frame { display: block; position: relative; aspect-ratio: 1; width: 100%; border: 1px solid var(--line); background: var(--art-bg); }
.nft-artwork-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nft-artwork-frame > span:not(.missing-preview) { position: absolute; right: 12px; bottom: 12px; padding: 10px; background: var(--panel); font-size: 13px; }
.nft-sidebar { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.nft-sidebar > * { margin: 0; padding: 18px; border-bottom: 1px solid var(--line-soft); }
.nft-sidebar > :last-child { border: 0; }
.nft-owner > span, .nft-seed > span, .nft-minter > span, .nft-metadata dt, .nft-provenance dt { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.nft-owner strong { font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.owner-address { display: block; margin-top: 10px; }
.nft-seed code, .nft-minter code { display: block; }
.nft-metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nft-metadata dd, .nft-provenance dd { margin: 0; font-size: 14px; }
.nft-source { display: block; color: var(--accent); font-size: 14px; }
.nft-provenance { padding: 0 18px; }
.nft-provenance dl { display: grid; gap: 18px; margin: 0 0 18px; }
.token-project-text, .history-block, .nft-traits-section { padding: 32px 0; border-top: 1px solid var(--line-soft); }
.token-project-text h2, .history-block h2 { margin-bottom: 22px; }
.token-project-text h3 { margin: 28px 0 14px; }
.nft-traits-section .section-title-row > span { color: var(--muted); font-size: 13px; }
.trait-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.trait-grid > div { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.trait-grid dt { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.trait-grid dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.trait-share { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.profile-header { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 24px; align-items: start; margin: 8px 0 28px; }
.profile-header h1 { font-size: clamp(30px, 4vw, 44px); }
.profile-avatar, .search-avatar { display: grid; place-items: center; width: 80px; height: 80px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; background: var(--panel-raised); color: var(--muted); font-size: 30px; }
.profile-address { display: block; margin: 10px 0; overflow-wrap: anywhere; }
.profile-bio { max-width: 66ch; margin: 18px 0 0; color: var(--description); font-size: 16px; line-height: 1.65; }
.profile-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 12px; }
.profile-website { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; color: var(--accent); font-size: 14px; overflow-wrap: anywhere; }
.profile-header .button-link { margin-top: 14px; }
.profile-view-nav { display: flex; flex-wrap: wrap; gap: 24px; margin: 30px 0; border-bottom: 1px solid var(--line); }
.profile-view-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; text-decoration: none; }
.profile-view-nav a[aria-current="page"] { border-color: var(--accent); color: var(--text); font-weight: 600; }
.profile-view-nav span { color: var(--muted); font-size: 12px; font-weight: 400; }
.profile-section-heading { margin-bottom: 14px; }
.artist-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.artist-list li { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.artist-list li:hover { border-color: var(--control-border); }
.artist-list a { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 16px; align-content: center; align-items: center; min-height: 104px; padding: 16px; text-decoration: none; }
.artist-list .profile-avatar { grid-row: 1 / 3; width: 46px; height: 46px; font-size: 20px; }
.artist-list-name { font-size: 18px; overflow-wrap: anywhere; }
.artist-list-count { grid-column: 2; color: var(--muted); font-size: 12px; }
.search-term { margin: 14px 0 0; color: var(--muted); font-size: 21px; overflow-wrap: anywhere; }
.search-result-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.search-result-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; text-decoration: none; }
.search-result-nav a:hover { text-decoration: underline; }
.search-result-nav span, .search-section-count { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.search-section { margin: 0 0 44px; }
.search-section-count { margin-left: 8px; }
.search-directory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; list-style: none; padding: 0; margin: 0; }
.search-directory-list li { min-width: 0; border-bottom: 1px solid var(--line-soft); }
.search-directory-list a { display: flex; align-items: center; gap: 16px; min-height: 88px; text-decoration: none; }
.search-avatar { flex: 0 0 46px; width: 46px; height: 46px; font-size: 20px; }
.search-directory-name { min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
.search-directory-identity { display: grid; flex: 1; min-width: 0; gap: 5px; }
.search-directory-address { color: var(--muted); font: 11px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.search-directory-detail { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin: 0; }
.facts > div { min-width: 0; }
.facts dt { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.subtle { color: var(--muted); font-size: 13px; line-height: 1.6; }
.table-scroll { max-width: 100%; overflow: auto; }
.history-block table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; font-variant-numeric: tabular-nums; }
.history-block th, .history-block td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); }
.history-block td a { display: inline-flex; align-items: center; min-height: 44px; }
.about-page { max-width: 1000px; }
.about-credit { margin: 20px 0 32px; font-size: 17px; }
.about-archive { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.about-archive h2 { font-size: 23px; }
.about-archive p { margin: 0 0 16px; color: var(--description); line-height: 1.7; }
.about-archive a { color: var(--accent); }
.source-facts { display: grid; gap: 20px; margin: 0 0 24px; }
.archive-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 28px 0; }
.archive-counts dt { color: var(--muted); font-size: 14px; }
.archive-counts dd { margin: 6px 0 0; font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.auth-page { max-width: 600px; padding: 24px 0; }
.auth-page h1 { margin-bottom: 28px; }
.auth-page > p:first-of-type { font-size: 18px; }
.auth-reasons { display: grid; gap: 12px; padding-left: 22px; margin: 18px 0 28px; line-height: 1.7; }
.auth-page [data-auth-status] { margin: 20px 0 12px; color: var(--muted); font-size: 14px; }
.auth-page > .subtle { margin-top: 24px; }
.profile-edit-page { max-width: 640px; }
.profile-edit-page > p { margin: 18px 0 28px; color: var(--muted); font-size: 14px; }
.auth-profile-form { display: grid; gap: 24px; }
.auth-profile-form p { margin: 0; }
.auth-profile-form label { display: block; margin-bottom: 8px; font-size: 14px; }
.auth-profile-form input, .auth-profile-form textarea { display: block; width: 100%; min-height: 44px; padding: 12px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--panel); color: var(--text); font: inherit; }
.auth-profile-form textarea { resize: vertical; }
.auth-profile-form button { justify-self: start; }
.auth-profile-form .auth-checkbox { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; cursor: pointer; }
.auth-profile-form .auth-checkbox input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); }
.collector-search { display: flex; align-items: end; gap: 12px; margin: 28px 0; }
.collector-search label { display: grid; flex: 1; gap: 8px; max-width: 620px; color: var(--muted); font-size: 14px; }
.collector-search input { width: 100%; }
.collector-address { display: block; margin: 16px 0; }
.error-page { max-width: 780px; padding: 48px 0; }
.error-page h1 { margin: 18px 0; }
.error-page > p { color: var(--muted); }
.error-page .button-link { margin-top: 18px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1320px, calc(100% - 64px)); margin: auto auto 0; padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer .wordmark { color: var(--text); font-size: 21px; }
.site-footer .footer-forum { margin-left: auto; }
.index-coverage { margin-top: 28px; }
@media (max-width: 1100px) {
  .site-header { gap: 20px; grid-template-columns: auto minmax(180px, 1fr) auto auto; }
  .primary-nav { gap: 18px; }
  .wordmark { font-size: 23px; }
  .project-grid, .artwork-grid { gap: 18px; }
  .artist-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 20px; }
  a, button, input, select, summary, section { scroll-margin-top: 20px; }
  .site-header { position: relative; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; width: calc(100% - 40px); padding: 16px 0; }
  .site-header > .wordmark { grid-column: 1; grid-row: 1; }
  .account-access { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 28px; }
  .primary-nav a { min-height: 38px; font-size: 15px; }
  .global-search { grid-column: 1 / -1; grid-row: 3; width: 100%; }
  main { width: calc(100% - 40px); padding: 30px 0 40px; }
  .site-footer { width: calc(100% - 40px); }
  .project-grid, .artwork-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-summary { justify-content: start; width: fit-content; }
  .nft-title-row { display: block; }
  .nft-navigation { margin-top: 20px; }
  .nft-view-layout { grid-template-columns: 1fr; gap: 24px; }
  .nft-art-column { width: 100%; }
  .nft-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nft-sidebar > * { min-width: 0; }
  .nft-sidebar .nft-provenance { grid-column: 1 / -1; }
  .search-directory-list { grid-template-columns: 1fr; }
  .about-archive { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 540px) {
  .site-header, main, .site-footer { width: calc(100% - 32px); }
  .site-header { padding-top: 12px; gap: 8px 12px; }
  main { padding-top: 26px; }
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  .page-title-row { flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
  .catalogue-controls { width: 100%; }
  .catalogue-controls label { min-width: 0; width: 100%; }
  .results-row { margin-bottom: 18px; font-size: 13px; }
  .project-grid, .artwork-grid, .artist-list { grid-template-columns: 1fr; gap: 18px; }
  .project-card-body, .artwork-card-body { padding: 16px; }
  .project-card-heading h2 { font-size: 19px; }
  .empty-state { padding: 28px 22px; }
  .back-link { margin-top: -10px; margin-bottom: 14px; }
  .project-hero h1 { font-size: 38px; }
  .artist-description { font-size: 15px; }
  .project-information dl { grid-template-columns: 1fr; }
  .section-title-row { flex-wrap: wrap; gap: 10px; }
  .project-collection .section-title-row { display: block; }
  .project-collection .collection-status { display: block; margin-top: 8px; }
  .collection-search { gap: 10px; }
  .collection-search > label { flex-basis: 100%; max-width: none; }
  .collection-search > button { order: 1; }
  .collection-search > .reset-link { order: 1; }
  .trait-filters[open] { flex-basis: auto; order: 0; width: 100%; }
  .trait-filter-inputs { margin-bottom: 2px; }
  .nft-title-row h1 { font-size: 32px; }
  .nft-navigation { gap: 6px; }
  .nft-navigation .button-link { padding-inline: 12px; font-size: 13px; }
  .nft-sidebar { display: block; }
  .nft-sidebar .nft-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .trait-grid > div { padding: 14px; }
  .profile-header { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
  .profile-avatar { width: 56px; height: 56px; font-size: 25px; }
  .profile-header h1 { font-size: 31px; }
  .profile-bio { font-size: 15px; }
  .profile-links { gap: 0 12px; }
  .profile-website { font-size: 13px; }
  .profile-view-nav { gap: 8px 22px; }
  .profile-view-nav a { font-size: 14px; }
  .profile-section-heading h2 { font-size: 23px; }
  .artist-list a { min-height: 88px; }
  .search-result-nav { gap: 4px 20px; }
  .search-result-nav a { font-size: 14px; }
  .search-section .catalogue-controls { width: auto; }
  .search-section .catalogue-controls label { min-width: 160px; }
  .search-directory-detail { max-width: 95px; text-align: right; white-space: normal; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .auth-page { padding-top: 10px; }
  .auth-page h1 { margin-bottom: 24px; }
  .collector-search { display: grid; }
  .error-page { padding: 28px 0; }
  .site-footer { flex-wrap: wrap; gap: 12px 18px; font-size: 12px; }
  .site-footer .wordmark { width: 100%; }
  .site-footer .footer-forum { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
