/* The theme loader enables this sheet for the system or selected dark appearance. */
:root {
  color-scheme: dark;
  --spr-paper: var(--theme-bg);
  --spr-card: var(--theme-surface);
  --spr-surface: var(--theme-surface);
  --spr-surface-muted: var(--theme-raised);
  --spr-ink: var(--theme-ink);
  --spr-muted: var(--theme-muted);
  --spr-stroke: var(--theme-line);
  --spr-line: var(--theme-line);
  --spr-border: var(--theme-line);
  --spr-accent: var(--theme-link);
  --spr-accent-soft: var(--theme-raised);
  --spr-elevation: 0 8px 24px -16px #0008;
  --spr-elevation-hover: 0 12px 32px -16px #000a;
  --capsule-track: var(--theme-raised);
  --capsule-active: var(--theme-ink);
  --capsule-active-text: var(--theme-bg);
}

body.spr-person-page,
body.spr-business-page,
body.portfolio-business-home {
  --portfolio-page: var(--theme-bg);
  --portfolio-ink: var(--theme-ink);
  --portfolio-muted: var(--theme-muted);
  --portfolio-line: var(--theme-line);
  --portfolio-panel: var(--theme-surface);
  --portfolio-focus: var(--theme-accent);
  background: var(--theme-bg);
  color: var(--theme-ink);
}

body.spr-compact-article {
  --article-page: var(--theme-bg);
  --article-ink: var(--theme-ink);
  --article-muted: var(--theme-muted);
  --article-surface: var(--theme-surface);
  --article-soft: var(--theme-raised);
  --article-line: var(--theme-line);
  --article-hover: var(--theme-raised);
  --article-focus: var(--theme-accent);
  --article-panel-shadow: 0 8px 30px -18px #0009;
  background: var(--article-canvas);
  color: var(--article-ink);
}

.spr-lead,
.spr-share-dialog p { color: var(--theme-muted); }
.spr-prose { color: var(--theme-ink); }
.spr-person-socials a, .spr-tags li, .spr-gallery figure, .spr-empty {
  background: var(--theme-surface);
  border-color: var(--theme-line);
}
.spr-card-image { background: var(--theme-raised); }
.spr-share-button, .spr-share-dialog, .spr-share-dialog input,
.spr-profile-header-actions .spr-notification-bell, .spr-profile-header-actions .spr-profile-return {
  background: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-ink);
}
.spr-share-dialog input, .spr-share-button:hover,
.spr-profile-header-actions .spr-notification-bell:hover, .spr-profile-header-actions .spr-profile-return:hover {
  background: var(--theme-raised);
}
.spr-photo-viewer { background: #10120f; color: var(--theme-ink); }
.spr-photo-viewer button { color: var(--theme-ink); }
.spr-profile-header-actions .spr-profile-edit,
.spr-button:hover, .spr-profile-cta:not([data-profile-cta-bounce]) .spr-profile-cta-link:hover {
  background: var(--theme-ink);
  color: var(--theme-bg);
}
.spr-share-button:focus-visible, .spr-share-close:focus-visible, .spr-share-dialog input:focus-visible,
.spr-profile-header-actions .spr-profile-edit:focus-visible,
.spr-profile-custom-links .spr-profile-link:focus-visible,
.spr-profile-cta .spr-profile-cta-link:focus-visible { outline-color: var(--theme-accent); }

body.spr-person-page:not(.spr-person-article) > .spr-person-header {
  border-color: var(--theme-line);
  background: var(--theme-bg);
}
body.spr-person-page:not(.spr-person-profile-home) .spr-person-header nav a {
  color: var(--theme-muted);
}
body.spr-person-page:not(.spr-person-profile-home) .spr-person-header nav a:not([aria-current]):hover {
  background: var(--theme-raised);
  color: var(--theme-ink);
}
body.spr-person-page:not(.spr-person-profile-home) .spr-person-header nav a[aria-current="page"] {
  background: var(--theme-ink);
  color: var(--theme-bg);
}
body.spr-person-profile-home .spr-profile-identity {
  background: #252723;
  border-color: #494c44;
  box-shadow: 0 7px 22px #0002;
}
.spr-profile-identity .spr-profile-avatar {
  border-color: var(--theme-line);
  background: var(--theme-raised);
  color: var(--theme-ink);
  box-shadow: none;
}
.spr-profile-linktree .spr-profile-bio { color: #e0e2dc; }
.spr-profile-linktree .spr-profile-section-link,
.spr-profile-linktree .spr-profile-socials a {
  background: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-ink);
}
.spr-profile-linktree .spr-profile-sections { border-color: var(--theme-line); }
.spr-profile-custom-links .spr-profile-link {
  color: var(--theme-ink);
  border-color: #50534b;
  background: linear-gradient(135deg, rgb(81 84 76 / 68%), rgb(56 58 52 / 74%));
  box-shadow: inset 0 1px 1px #ffffff0a, 0 3px 10px #0001;
}
.spr-profile-custom-links li:nth-child(even) .spr-profile-link {
  background: linear-gradient(135deg, rgb(58 61 54 / 62%), rgb(40 43 37 / 72%));
  border-color: #42453c;
}
.spr-profile-custom-links .spr-profile-link-icon { background: #ffffff08; border-color: #ffffff48; }
.spr-person-profile-home .spr-profile-footer .spr-profile-cta-link { color: var(--theme-ink); }

body.spr-person-subpage .spr-person-about .spr-prose { color: var(--theme-ink); }
body.spr-person-subpage .spr-person-collection .spr-gallery figure,
body.spr-person-subpage .spr-person-collection .spr-empty {
  border-color: var(--theme-line);
  background: var(--theme-surface);
  box-shadow: var(--spr-elevation);
}
