@charset "UTF-8";
@import url("./layout.css");
@import url("./components.css");

/* -------------------------------------------------
   MARINA ELOWEN KESSLER SITE
   Shared skin, variables, typography, global rules
   ------------------------------------------------- */

:root {
  --bg-outer: #0b0613;
  --bg-deep: #130a1f;
  --bg-panel: rgba(29, 15, 43, 0.9);
  --bg-panel-2: rgba(42, 21, 61, 0.88);
  --bg-panel-3: rgba(16, 12, 31, 0.92);
  --bg-window: rgba(18, 18, 36, 0.95);
  --bg-note: rgba(255, 239, 208, 0.92);

  --text-main: #f4ebff;
  --text-soft: #d8c7eb;
  --text-dim: #ab98c7;
  --text-dark: #24162f;

  --line-main: #8d5ac2;
  --line-soft: #5f3b86;
  --line-hot: #ff5db7;
  --line-cold: #6af7ff;
  --line-gold: #e5b657;

  --accent-rose: #ff7dc7;
  --accent-lilac: #bb8eff;
  --accent-cyan: #86f8ff;
  --accent-mint: #8dffd1;
  --accent-gold: #ffd887;
  --accent-red: #ff728c;
  --accent-sour: #d2ff70;

  --shadow-dark: rgba(0, 0, 0, 0.45);
  --shadow-glow-pink: rgba(255, 93, 183, 0.28);
  --shadow-glow-cyan: rgba(106, 247, 255, 0.22);

  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --space-2xs: 0.2rem;
  --space-xs: 0.45rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.4rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --site-width: 1280px;
  --content-width: 760px;
  --sidebar-width: 260px;
  --rightbar-width: 240px;

  --border-thin: 1px solid var(--line-soft);
  --border-main: 2px solid var(--line-main);
  --border-hot: 2px solid var(--line-hot);
  --border-cold: 2px solid var(--line-cold);
  --border-gold: 2px solid var(--line-gold);

  --font-body: "Verdana", "Geneva", "Tahoma", sans-serif;
  --font-ui: "Trebuchet MS", "Verdana", sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
  --font-mono: "Courier New", "Lucida Console", monospace;

  --scanline-opacity: 0.07;
  --noise-opacity: 0.18;
  --texture-opacity: 0.15;

  --transition-fast: 160ms ease;
  --transition-base: 240ms ease;
  --transition-slow: 420ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at top, rgba(121, 63, 177, 0.18), transparent 34%),
    linear-gradient(180deg, #13091d 0%, #09050f 100%);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  background-color: var(--bg-outer);
  background-image:
    url("../images/backgrounds/scanlines.webp"),
    url("../images/backgrounds/lace-noise.webp"),
    url("../images/backgrounds/stars-overlay.webp"),
    url("../images/backgrounds/site-bg-tile.jpg"),
    radial-gradient(circle at 15% 0%, rgba(255, 93, 183, 0.14), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(106, 247, 255, 0.12), transparent 25%),
    linear-gradient(180deg, #160a21 0%, #07040d 100%);
  background-repeat: repeat, repeat, repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed;
  background-size: auto, auto, 900px auto, 240px 240px, auto, auto, auto;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

iframe {
  display: block;
  max-width: 100%;
  border: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  text-decoration-thickness: 2px;
  transition:
    color var(--transition-fast),
    text-shadow var(--transition-fast),
    transform var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(255, 216, 135, 0.42);
}

p,
ul,
ol,
dl,
blockquote,
pre,
table {
  margin: 0 0 var(--space-md);
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.3rem;
}

strong {
  color: #fff8cf;
}

em {
  color: #ffd3f0;
}

small {
  font-size: 0.86em;
}

hr {
  height: 1px;
  margin: var(--space-lg) 0;
  border: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 93, 183, 0.8) 20%,
      rgba(106, 247, 255, 0.8) 50%,
      rgba(255, 93, 183, 0.8) 80%,
      transparent 100%
    );
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: #fff8ff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.4),
    0 0 16px rgba(187, 142, 255, 0.18);
}

h1 {
  font-size: clamp(2rem, 3vw, 3.3rem);
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

::selection {
  color: #14091d;
  background: var(--accent-gold);
}

:focus-visible {
  outline: 2px dashed var(--accent-gold);
  outline-offset: 3px;
}

body.theme-gilded {
  --bg-panel: rgba(40, 24, 16, 0.9);
  --bg-panel-2: rgba(58, 35, 23, 0.88);
  --bg-panel-3: rgba(25, 16, 12, 0.92);
  --line-main: #bf8550;
  --line-soft: #6f4a2c;
  --line-hot: #ff9077;
  --line-cold: #ffd887;
  --text-main: #fff2dd;
  --text-soft: #e7d3bb;
}

body.theme-frozen {
  --bg-panel: rgba(13, 25, 42, 0.9);
  --bg-panel-2: rgba(22, 40, 66, 0.88);
  --bg-panel-3: rgba(8, 17, 30, 0.94);
  --line-main: #5b8cd6;
  --line-soft: #2f527b;
  --line-hot: #b198ff;
  --line-cold: #8dfcff;
  --text-main: #edf7ff;
  --text-soft: #c8d9ed;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 9999;
  padding: 0.7rem 1rem;
  background: #fff8cf;
  color: #180c25;
  border: 2px solid #180c25;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: 1rem;
}

.site-wallpaper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.site-wallpaper::before,
.site-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
}

.site-wallpaper::before {
  opacity: var(--texture-opacity);
  background:
    linear-gradient(180deg, rgba(255, 93, 183, 0.1), rgba(0, 0, 0, 0)),
    url("../images/backgrounds/marble-dark.webp") center / 720px auto repeat;
  mix-blend-mode: screen;
}

.site-wallpaper::after {
  opacity: var(--scanline-opacity);
  background: url("../images/backgrounds/scanlines.webp") repeat;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 125, 199, 0.14), transparent 20%),
    radial-gradient(circle at 89% 14%, rgba(134, 248, 255, 0.12), transparent 18%),
    radial-gradient(circle at 50% 92%, rgba(229, 182, 87, 0.09), transparent 25%);
}

body::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(2, 1, 6, 0.12) 30%,
    rgba(2, 1, 6, 0.36) 100%
  );
}

main {
  position: relative;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
}

pre,
code {
  color: #f9dfff;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border: var(--border-main);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(24, 14, 38, 0.95), rgba(12, 8, 22, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

blockquote {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent-rose);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background:
    linear-gradient(90deg, rgba(255, 125, 199, 0.12), rgba(255, 125, 199, 0.04));
  color: #ffe8f7;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(11, 8, 19, 0.55);
}

th,
td {
  padding: 0.7rem 0.8rem;
  vertical-align: top;
  border: 1px solid rgba(141, 90, 194, 0.35);
}

th {
  color: #fff4d2;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 93, 183, 0.08);
}

caption {
  margin-bottom: 0.5rem;
  color: var(--text-soft);
  font-style: italic;
  text-align: left;
}

svg.icon,
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: 0 0 auto;
}

.icon.is-lg {
  width: 1.35em;
  height: 1.35em;
}

.icon.is-xl {
  width: 1.8em;
  height: 1.8em;
}

.text-glow {
  color: #fff7fe;
  text-shadow:
    0 0 10px rgba(255, 125, 199, 0.33),
    0 0 20px rgba(187, 142, 255, 0.18);
}

.text-gold {
  color: #ffe29e;
}

.text-dim {
  color: var(--text-dim);
}

.text-mono {
  font-family: var(--font-mono);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent-gold);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ornament-rule {
  position: relative;
  height: 18px;
  margin: 1rem 0 1.4rem;
}

.ornament-rule::before {
  content: "✦ ✧ ✦";
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 0 0.8rem;
  color: var(--accent-gold);
  background: var(--bg-panel-3);
  transform: translate(-50%, -50%);
}

.ornament-rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, var(--line-main), var(--line-cold), transparent);
  transform: translateY(-50%);
}

.site-divider {
  width: 100%;
  min-height: 16px;
  opacity: 0.88;
}

a.link-soft {
  color: var(--text-soft);
}

a.link-soft:hover,
a.link-soft:focus-visible {
  color: var(--accent-cyan);
}

a.link-hot {
  color: var(--accent-rose);
}

a.link-hot:hover,
a.link-hot:focus-visible {
  color: #fff2ac;
}

.is-hidden {
  display: none !important;
}

.is-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.is-sticky {
  position: sticky;
  top: 1rem;
}

.has-stars {
  position: relative;
  overflow: hidden;
}

.has-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  background: url("../images/backgrounds/stars-overlay.webp") center / 660px auto repeat;
  mix-blend-mode: screen;
}

.has-marble {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    url("../images/backgrounds/marble-dark.webp");
  background-size: auto, 420px auto;
  background-repeat: no-repeat, repeat;
}

.has-scanlines {
  position: relative;
}

.has-scanlines::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/backgrounds/scanlines.webp") repeat;
  opacity: 0.09;
  pointer-events: none;
  mix-blend-mode: screen;
}

.blink {
  animation: blink-text 1.2s steps(2, end) infinite;
}

.glow-pulse {
  animation: pulse-glow 2.6s ease-in-out infinite;
}

.floaty {
  animation: floaty 4.4s ease-in-out infinite;
}

.wobble-hover:hover,
.wobble-hover:focus-visible {
  animation: wobble 0.5s ease;
}

.marquee-illusion {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-illusion > span {
  display: inline-block;
  padding-left: 100%;
  animation: fake-marquee 18s linear infinite;
}

body.disable-blink .blink,
body.disable-motion .blink,
body.disable-motion .glow-pulse,
body.disable-motion .floaty,
body.disable-motion .marquee-illusion > span {
  animation: none !important;
}

::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(31, 18, 49, 0.95), rgba(10, 8, 18, 0.95));
  border-left: 1px solid rgba(141, 90, 194, 0.25);
}

::-webkit-scrollbar-thumb {
  border: 3px solid rgba(13, 8, 22, 0.96);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 93, 183, 0.95), rgba(141, 90, 194, 0.95));
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 216, 135, 0.96), rgba(255, 93, 183, 0.96));
}

@keyframes blink-text {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.25;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.03),
      0 0 12px rgba(255, 93, 183, 0.2),
      0 0 0 rgba(255, 93, 183, 0.12);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 26px rgba(255, 93, 183, 0.35),
      0 0 54px rgba(106, 247, 255, 0.12);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  25% {
    transform: rotate(-1deg) translateY(-1px);
  }

  75% {
    transform: rotate(1deg) translateY(1px);
  }
}

@keyframes fake-marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}