/* Paired brand assets reserve identical space in either theme. */
.art-on-dark { display: none; }
:root[data-theme="dark"] .art-on-light { display: none; }
:root[data-theme="dark"] .art-on-dark { display: block; }
.ui-icon { filter: var(--icon-filter); }

/* Archive metadata and profile frame. */
.file-label, .archive-caption, .section-code, .link-number, .footer-note { font-family: var(--font-mono); }
.file-label { border: 1px solid var(--color-border); border-radius: var(--button-radius); padding: .4rem .625rem; font-size: .75rem; letter-spacing: .06em; }
.file-label strong { font-size: 1rem; font-weight: 700; padding-left: .25rem; }
.archive-caption { font-size: .75rem; letter-spacing: .12em; color: var(--color-olive); }
.signal-dot { width: .375rem; height: .375rem; border-radius: 50%; background: var(--color-signal); flex-shrink: 0; }
.profile::before, .profile::after { content: ""; position: absolute; width: 1.125rem; height: 1.125rem; pointer-events: none; }
.profile::before { top: 0; left: 0; border-top: 1px solid var(--color-border); border-left: 1px solid var(--color-border); }
.profile::after { bottom: 0; right: 0; border-bottom: 1px solid var(--color-border); border-right: 1px solid var(--color-border); }
.description { color: var(--color-text); }
.section-heading { color: var(--color-muted); font-size: .875rem; font-weight: 500; }
.section-code { font-size: .75rem; letter-spacing: .12em; color: var(--color-olive); }

/* Two native theme buttons, each with a 44px target and pressed state. */
.theme-switch { display: flex; border: 1px solid var(--color-border); padding: 2px; border-radius: 2rem; background: var(--color-surface); }
.theme-button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; color: var(--color-muted); background: transparent; cursor: pointer; }
.theme-button svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-button[aria-pressed="true"] { color: var(--color-accent); background: var(--color-card); box-shadow: 0 0 0 1px var(--color-rule); }

/* Catalog: number / icon / platform / outbound arrow. */
.link-card { border: 1px solid var(--color-border); border-radius: var(--button-radius); background: var(--color-card); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.link-number { color: var(--color-olive); font-size: .8125rem; }
.link-label { font-size: 1rem; font-weight: 600; }
.link-arrow { color: var(--color-accent); font-size: 1.375rem; line-height: 1; }
.link-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 40%, var(--signal-purple) 50%, transparent 60%); background-size: 300% 100%; background-position: 100% 0; }
.link-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; opacity: 0; pointer-events: none;
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) left top / var(--corner-size) 2px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) left top / 2px var(--corner-size) no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) right bottom / var(--corner-size) 2px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) right bottom / 2px var(--corner-size) no-repeat;
}
.link-card:focus-visible::after { opacity: 1; }

/* Future collection progress can be placed after the support list. */
.support { border: 1px solid var(--color-border); border-top: 3px solid var(--signal-purple); border-radius: var(--panel-radius); background: var(--color-surface); }
.support-heading .ui-icon { opacity: .8; }
.support-note { color: var(--color-muted); font-size: .875rem; }
.fundraising { border: 1px solid var(--color-rule); border-radius: var(--panel-radius); }
.fundraising-track { border: 1px solid var(--color-border); border-radius: .375rem; background: var(--color-rule); }
.fundraising-fill { background: var(--color-olive); border-radius: .25rem; }
.fundraising-sprig { fill: none; stroke: var(--color-olive); stroke-width: 1.5; }
.fundraising-bauble { background: var(--color-accent); border-radius: 50%; }
.fundraising-figures { font-family: var(--font-mono); color: var(--color-text); font-size: .9375rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.fundraising-amount, .fundraising-percent { font-weight: 700; }
.fundraising-goal { color: var(--color-muted); font-weight: 400; }
.fundraising-percent { color: var(--color-olive); }
.support .link-card { --button-height: 3.75rem; }
.contact h2 { color: var(--color-olive); font-weight: 500; font-size: .875rem; }
.email { text-underline-offset: .3rem; text-decoration-thickness: 1px; text-decoration-color: var(--color-border); }
.copy-button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; color: var(--color-text); border: 1px solid transparent; border-radius: var(--button-radius); background: transparent; cursor: pointer; }
.copy-status { color: var(--color-muted); font-size: .875rem; }
/* Quiet notices; the native disclosure marker and keyboard behaviour are retained. */
.instagram-notice { color: var(--color-muted); font-size: .8125rem; line-height: 1.6; }
.support-terms { border-top: 1px solid var(--color-rule); font-size: .875rem; line-height: 1.6; }
.support-terms summary { color: var(--color-muted); cursor: pointer; }
.support-terms summary::marker { color: var(--color-olive); font-size: .75em; }
.support-terms-content { color: var(--color-text); }
.footer { border-top: 1px solid var(--color-border); font-size: .8125rem; color: var(--color-muted); }
.footer-note { font-size: .75rem; letter-spacing: .04em; }

/* Accessibility. The skip link is revealed only by keyboard focus. */
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--color-text); color: var(--color-bg); border-radius: var(--button-radius); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
@media (hover: hover) {
  .link-card:hover { background-color: var(--color-hover); border-color: var(--color-accent); }
  .link-card:hover::after { opacity: 1; }
  .email:hover { color: var(--color-accent); text-decoration-color: currentColor; }
  .theme-button:hover, .copy-button:hover { background: var(--color-hover); }
}
@media (forced-colors: active) {
  body::before { display: none; }
  .theme-button[aria-pressed="true"] { outline: 2px solid ButtonText; }
  .link-card { border-color: LinkText; }
}
