/* Kimberly.dk theme switcher — custom theme picker */
:root {
  --theme-accent: var(--red, #ff174f);
  --theme-accent-2: var(--hot, #ff5f87);
  --theme-accent-3: #6c001d;
  --theme-accent-rgb: 255, 23, 79;
  --theme-bg-1: #090008;
  --theme-bg-2: #030005;
  --theme-bg-3: #110007;
  --theme-ink: var(--ink, #ffe9ee);
  --theme-muted: var(--muted, #d99aa7);
}

body[data-theme="purple"] {
  --red: #a855f7;
  --red-soft: #7e22ce;
  --hot: #d8b4fe;
  --accent: #a855f7;
  --accent2: #6d28d9;
  --line: rgba(168, 85, 247, .42);
  --muted: #d8c4f2;
  --theme-accent: #a855f7;
  --theme-accent-2: #d8b4fe;
  --theme-accent-3: #4c1d95;
  --theme-accent-rgb: 168, 85, 247;
  --theme-bg-1: #13051f;
  --theme-bg-2: #05000b;
  --theme-bg-3: #1c0730;
}

body[data-theme="pink"] {
  --red: #ff4fb8;
  --red-soft: #db2777;
  --hot: #ffaddd;
  --accent: #ff4fb8;
  --accent2: #b80065;
  --line: rgba(255, 79, 184, .42);
  --muted: #f2b6d5;
  --theme-accent: #ff4fb8;
  --theme-accent-2: #ffaddd;
  --theme-accent-3: #831843;
  --theme-accent-rgb: 255, 79, 184;
  --theme-bg-1: #170012;
  --theme-bg-2: #050006;
  --theme-bg-3: #250018;
}

body[data-theme="green"] {
  --red: #9cff4f;
  --red-soft: #54c91f;
  --hot: #d7ff83;
  --accent: #9cff4f;
  --accent2: #2f7d16;
  --line: rgba(156, 255, 79, .42);
  --muted: #cfeabf;
  --theme-accent: #9cff4f;
  --theme-accent-2: #e4ff9b;
  --theme-accent-3: #14532d;
  --theme-accent-rgb: 156, 255, 79;
  --theme-bg-1: #081506;
  --theme-bg-2: #020700;
  --theme-bg-3: #10240a;
}

body[data-theme="rainbow"] {
  --red: #ff4f87;
  --red-soft: #7c3aed;
  --hot: #67e8f9;
  --accent: #ff4f87;
  --accent2: #7c3aed;
  --line: rgba(255, 255, 255, .34);
  --muted: #f3d8ff;
  --theme-accent: #ff4f87;
  --theme-accent-2: #67e8f9;
  --theme-accent-3: #7c3aed;
  --theme-accent-rgb: 255, 79, 135;
  --theme-bg-1: #140016;
  --theme-bg-2: #02030b;
  --theme-bg-3: #061827;
}

body[data-theme="trans"] {
  --red: #5bcffa;
  --red-soft: #f5a9b8;
  --hot: #f5a9b8;
  --accent: #5bcffa;
  --accent2: #f5a9b8;
  --line: rgba(245, 169, 184, .48);
  --muted: #ffdbe4;
  --theme-accent: #5bcffa;
  --theme-accent-2: #f5a9b8;
  --theme-accent-3: #ffffff;
  --theme-accent-rgb: 91, 207, 250;
  --theme-bg-1: #071b26;
  --theme-bg-2: #05070d;
  --theme-bg-3: #2a1018;
}

body:not([data-theme="rainbow"]):not([data-theme="trans"]) {
  background:
    radial-gradient(circle at 50% -10%, rgba(var(--theme-accent-rgb), .22), transparent 30rem),
    radial-gradient(circle at 88% 16%, rgba(var(--theme-accent-rgb), .16), transparent 24rem),
    linear-gradient(180deg, var(--theme-bg-1) 0%, var(--theme-bg-2) 58%, var(--theme-bg-3) 100%) !important;
}

body[data-theme="rainbow"] {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 0, 102, .28), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(0, 224, 255, .24), transparent 26rem),
    linear-gradient(135deg, rgba(255,0,0,.20), rgba(255,154,0,.18), rgba(255,255,0,.12), rgba(0,255,80,.14), rgba(0,160,255,.18), rgba(120,70,255,.22)),
    linear-gradient(180deg, #100013 0%, #02030b 58%, #071222 100%) !important;
}

body[data-theme="trans"] {
  background:
    radial-gradient(circle at 14% 0%, rgba(91, 207, 250, .30), transparent 30rem),
    radial-gradient(circle at 88% 16%, rgba(245, 169, 184, .30), transparent 28rem),
    linear-gradient(135deg, rgba(91,207,250,.18), rgba(245,169,184,.18), rgba(255,255,255,.08), rgba(245,169,184,.18), rgba(91,207,250,.18)),
    linear-gradient(180deg, #071b26 0%, #05070d 58%, #2a1018 100%) !important;
}

body[data-theme] .brand,
body[data-theme] h1,
body[data-theme] .kicker {
  text-shadow: 0 0 18px rgba(var(--theme-accent-rgb), .56), 0 0 54px rgba(var(--theme-accent-rgb), .22) !important;
}

body[data-theme] .sigil,
body[data-theme] .button.primary,
body[data-theme] .tag.active {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-3)) !important;
  box-shadow: 0 0 32px rgba(var(--theme-accent-rgb), .46), inset 0 0 18px rgba(255,255,255,.2) !important;
}

body[data-theme="rainbow"] .sigil,
body[data-theme="rainbow"] .button.primary,
body[data-theme="rainbow"] .tag.active {
  background: linear-gradient(135deg, #ff4f87, #ffb000, #36d66b, #38bdf8, #a855f7) !important;
  color: #fff !important;
}

body[data-theme="trans"] .sigil,
body[data-theme="trans"] .button.primary,
body[data-theme="trans"] .tag.active {
  background: linear-gradient(135deg, #5bcffa, #f5a9b8, #fff, #f5a9b8, #5bcffa) !important;
  color: #170713 !important;
}

body[data-theme] .button,
body[data-theme] .card,
body[data-theme] .news-card,
body[data-theme] aside,
body[data-theme] .empty,
body[data-theme] .portrait-card,
body[data-theme] .soft-panel {
  border-color: var(--line) !important;
  box-shadow: 0 18px 56px rgba(0,0,0,.34), 0 0 28px rgba(var(--theme-accent-rgb), .12) !important;
}

.theme-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(12, 0, 8, .72);
  color: var(--theme-ink);
  backdrop-filter: blur(12px) saturate(140%);
}

.theme-control:hover {
  border-color: rgba(var(--theme-accent-rgb), .55);
}

.theme-control label {
  margin: 0;
  color: var(--muted);
  font: 800 .66rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-control__button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
}

.theme-control__button:focus-visible,
.theme-control__option:focus-visible {
  outline: 2px solid rgba(var(--theme-accent-rgb), .8);
  outline-offset: 2px;
}

.theme-control__swatch {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: var(--theme-accent);
  box-shadow: 0 0 12px rgba(var(--theme-accent-rgb), .4);
  flex: 0 0 auto;
}

.theme-control__value {
  min-width: 0;
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--theme-ink);
  font: 800 .88rem/1 ui-sans-serif, system-ui, sans-serif;
  pointer-events: none;
}

.theme-control__chevron {
  color: var(--theme-accent-2);
  font-weight: 900;
  line-height: 1;
}

.theme-control__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(5,0,5,.96);
  box-shadow: 0 20px 44px rgba(0,0,0,.42), 0 0 18px rgba(var(--theme-accent-rgb), .14);
  backdrop-filter: blur(16px) saturate(145%);
  display: grid;
  gap: 6px;
  z-index: 40;
}

.theme-control__menu[hidden] {
  display: none !important;
}

.theme-control__option {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--theme-ink);
  text-align: left;
  padding: 10px 12px;
  font: 800 .9rem/1.1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.theme-control__option:hover,
.theme-control__option[aria-selected="true"] {
  border-color: rgba(var(--theme-accent-rgb), .38);
  background: rgba(var(--theme-accent-rgb), .12);
}

.theme-select { display: none !important; }

body[data-theme="rainbow"] .theme-control {
  background: rgba(12, 0, 8, .72);
}

body[data-theme="trans"] .theme-control {
  background: rgba(5, 7, 13, .78);
}

body[data-theme="trans"] .theme-control__value,
body[data-theme="trans"] .theme-control::after { color: #ffffff; }
body {
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: clamp(82px, 11vh, 150px);
  bottom: clamp(24px, 6vh, 82px);
  width: min(34vw, 420px);
  pointer-events: none;
  z-index: 1;
  opacity: .20;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.08) contrast(1.04) brightness(.74);
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 74%, transparent 100%);
}

body::before {
  left: max(-120px, -8vw);
  background-image:
    linear-gradient(90deg, rgba(3,0,5,.66), transparent 42%, rgba(3,0,5,.82)),
    url('/images/2026-06-24-kimberly-portrait-078.jpg');
  transform: perspective(900px) rotateY(12deg) translateZ(-18px);
}

body::after {
  right: max(-120px, -8vw);
  background-image:
    linear-gradient(270deg, rgba(3,0,5,.66), transparent 42%, rgba(3,0,5,.82)),
    url('/images/2026-06-24-kimberly-portrait-089.jpg');
  transform: perspective(900px) rotateY(-12deg) translateZ(-18px);
}

@media (max-width: 760px) {
  body::before,
  body::after {
    width: min(46vw, 230px);
    top: 92px;
    bottom: 12px;
    opacity: .12;
  }

  body::before { left: -28vw; }
  body::after { right: -28vw; }
}

body > header {
  z-index: 40;
}

body > main,
body > footer {
  position: relative;
  z-index: 4;
}

.skip-link {
  position: fixed !important;
  left: 16px !important;
  top: 12px !important;
  z-index: 10000 !important;
  transform: translateY(-150%) !important;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0) !important;
}

@media (max-width: 680px) {
  .theme-control {
    width: 100%;
    justify-content: space-between;
  }

  .theme-control__menu {
    left: 0;
    right: auto;
    min-width: calc(100vw - 42px);
    max-width: 100%;
  }
}


/* Kimberly.dk shared visual settings button */
header nav .navlinks {
  margin-left: auto;
}
header nav .navlinks + .visual-settings {
  margin-left: 8px;
}
.visual-settings {
  position: relative;
  flex: 0 0 auto;
  z-index: 10020;
  margin-left: 8px;
  align-self: center;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.visual-settings[data-visual-settings-fallback="true"] {
  position: fixed;
  right: 18px;
  bottom: 18px;
  margin-left: 0;
}
.visual-settings__button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  color: var(--theme-ink, #ffe9ee);
  background: rgba(5,0,5,.78);
  box-shadow: 0 0 28px rgba(var(--theme-accent-rgb,255,79,184),.28), inset 0 0 18px rgba(255,255,255,.06);
  backdrop-filter: blur(14px) saturate(145%);
  cursor: pointer;
  font-size: 1.25rem;
}
.visual-settings__button:hover,
.visual-settings__button:focus-visible {
  outline: none;
  border-color: rgba(var(--theme-accent-rgb,255,79,184),.72);
  box-shadow: 0 0 34px rgba(var(--theme-accent-rgb,255,79,184),.38);
}
.visual-settings__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(340px, calc(100vw - 28px));
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--theme-ink, #ffe9ee);
  background: rgba(5,0,5,.94);
  box-shadow: 0 24px 70px rgba(0,0,0,.58), 0 0 28px rgba(var(--theme-accent-rgb,255,79,184),.18);
  backdrop-filter: blur(20px) saturate(155%);
}
.visual-settings__panel[hidden] { display: none !important; }
.visual-settings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.visual-settings__head strong {
  font-size: .95rem;
  letter-spacing: -.02em;
}
.visual-settings__head button {
  border: 0;
  background: transparent;
  color: var(--theme-accent-2, #ffaddd);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.visual-settings__section {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}
.visual-settings__label {
  color: var(--muted, #f2b6d5);
  font: 850 .72rem/1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.visual-settings__themes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.visual-settings__theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  color: inherit;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  padding: 8px 10px;
}
.visual-settings__theme:hover,
.visual-settings__theme[aria-selected="true"] {
  border-color: rgba(var(--theme-accent-rgb,255,79,184),.52);
  background: rgba(var(--theme-accent-rgb,255,79,184),.14);
}
.visual-settings__swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 0 12px rgba(var(--theme-accent-rgb,255,79,184),.32);
}
.visual-settings__check,
.visual-settings__range {
  display: grid;
  gap: 6px;
  color: var(--theme-ink, #ffe9ee);
  font-weight: 780;
}
.visual-settings__check {
  grid-template-columns: auto 1fr;
  align-items: center;
}
.visual-settings input[type="checkbox"] { accent-color: var(--theme-accent, #ff4fb8); }
.visual-settings input[type="range"] {
  width: 100%;
  accent-color: var(--theme-accent, #ff4fb8);
}
body[data-theme] #neon-rain {
  transition: opacity .22s ease;
}
@media (max-width: 680px) {
  header nav .navlinks { margin-left: 0; }
  .visual-settings { margin-left: auto; align-self: flex-start; }
  .visual-settings[data-visual-settings-fallback="true"] { right: 12px; bottom: 12px; }
  .visual-settings__button { width: 40px; height: 40px; }
  .visual-settings__panel {
    right: 0;
    width: min(340px, calc(100vw - 26px));
  }
}
