﻿:root[data-site-theme='light'] {
  --scroll-thumb: #b6a99b;
  --scroll-thumb-hover: #88796b;
}

:root[data-site-theme='light'] body { background: #ede7de; }
:root[data-site-theme='light'] body:has(.watch-mode) { background: #080a0e; }

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) {
  --background: #faf8f4;
  --panel: #fffdf9;
  --line: #d5cbbe;
  --ink: #262421;
  --muted: #625950;
  --accent: #85421c;
  --dark: #fff9f2;
  --soft-panel: #f0ebe4;
  --selection: #f5e5d6;
  --control-line: #88796b;
  --focus-ring: #9a4d24;
  --primary-action: #914516;
  --vip-tag: #76510f;
  --vip-tag-surface: #fbf0d4;
  --success-ink: #28603f;
  --success-surface: #e9f2e8;
  --error-ink: #a12d3b;
  --error-surface: #fceaec;
  color: var(--ink);
  color-scheme: light;
  border-inline-color: var(--line);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) :is(button, input, select, textarea):focus-visible {
  outline-color: var(--focus-ring);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .action:not(.secondary) {
  background: var(--primary-action);
  border-color: var(--primary-action-border, transparent);
  color: var(--dark);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) :is(.tab-bar, .work-rail) {
  background: #fffdf9f7;
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) :is(
  .action.secondary, .icon-button, .work-index, .search-field, .field input, .field select, .field textarea,
  .filter-chips button, .library-filters button, .appearance-options button
) {
  border-color: var(--control-line);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .search-field:focus-within {
  border-color: var(--focus-ring);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) :is(.search-field input, .field input, .field textarea)::placeholder {
  color: var(--muted);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) :is(
  .filter-chips, .library-filters, .appearance-options
) button[aria-pressed='true'] {
  background: var(--selection);
  border-color: var(--accent);
  color: var(--accent);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) :is(
  .home-update-tags span, .home-update:is(:hover, :focus-visible) .home-update-action, .work-detail:not(.work-detail-inline) .work-last
) {
  background: var(--selection);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .home-update-action {
  border-color: var(--accent);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .empty-state {
  background: var(--soft-panel);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .avatar {
  background: var(--selection);
  color: var(--accent);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) :is(.context img, .work-hero) {
  background: var(--panel);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .work-sheet .icon-button {
  background: var(--panel);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .work-sheet::backdrop {
  background: #26242166;
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) :is(
  .work-detail:not(.work-detail-inline), .work-sheet
) .reading-row[aria-current='true'] {
  background: var(--selection);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .episode-access {
  color: var(--vip-tag);
  background: var(--vip-tag-surface);
  border-color: var(--vip-tag);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) :is(
  .episode-access.free, .form-confirmation, .signin-notice:not(:empty), .success-mark
) {
  color: var(--success-ink);
  background: var(--success-surface);
  border-color: var(--success-ink);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .field-error {
  color: var(--error-ink);
  background: var(--error-surface);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) :is(.membership-card, .vip-page) {
  --vip-gold: #76510f;
  --vip-heading: #76510f;
  --vip-border: #8a6a34;
  --primary-action: linear-gradient(105deg, #f6db94, #e6bb5a);
  --primary-action-border: #8a6a34;
  --dark: #30210b;
  --focus-ring: var(--vip-gold);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .membership-card {
  background: linear-gradient(135deg, var(--vip-tag-surface), var(--panel));
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .vip-page {
  background: radial-gradient(ellipse at 20% 0%, var(--vip-tag-surface), var(--background) 63%);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .plan {
  background: var(--panel);
  border-color: var(--control-line);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .plan:has(:checked) {
  background: var(--vip-tag-surface);
  border-color: var(--vip-gold);
}

/* Photography keeps its own contrast for text and controls. */
:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .home-feature {
  --ink: #fcf3e6;
  --accent: #ffbc8a;
  --muted: #e2d9d1;
  --focus-ring: #ffbc8a;
  color: var(--ink);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .home-feature::before {
  background: linear-gradient(0deg, #0d1016 0%, #0d1016e6 34%, #0d101675 60%, transparent 88%);
}

:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .ranked-cover-number { color: #fcf3e6; }
:root[data-site-theme='light'] .app:not([data-reader-theme], .watch-mode) .rankings-page li:nth-child(-n+3) .ranked-cover-number {
  color: #ffbc8a;
}
