/* =========================================================
   BASE — design tokens, fonts, reset
   Loaded on every page.
   ========================================================= */

:root {
  /* Sky palette */
  --night: #0a1030;
  --navy: #141f57;
  --blue-deep: #1e3a8a;
  --blue: #2f6be0;
  --blue-light: #6aa8ff;
  --sky: #a9d4ff;
  --lavender: #c3b2ff;
  --violet: #c873de;
  --pink: #ff9fcf;
  --peach: #ffc9a3;
  --cream: #fbf6ee;

  /* Text */
  --text: #f5f7ff;
  --text-2: rgba(236, 240, 255, 0.78);
  --text-3: rgba(226, 232, 255, 0.54);

  /* Glass surfaces */
  --glass: rgba(255, 255, 255, 0.09);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --glass-dark: rgba(12, 18, 58, 0.5);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-border-strong: rgba(255, 255, 255, 0.36);
  --glass-blur: blur(14px) saturate(140%);

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #2f6be0 0%, #7a6cf0 50%, #c873de 100%);
  --grad-text: linear-gradient(100deg, #bfe0ff 0%, #ffffff 35%, #e3c9ff 70%, #ffc9e6 100%);

  /* Shadows */
  --shadow-s: 0 6px 18px -8px rgba(8, 12, 50, 0.45);
  --shadow-m: 0 18px 50px -18px rgba(8, 12, 50, 0.6);
  --shadow-l: 0 40px 100px -30px rgba(6, 8, 40, 0.75);
  --sheen: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 1px 0 rgba(255, 255, 255, 0.22) inset;

  /* Radii */
  --r-xs: 8px;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --r-full: 999px;

  /* Fonts */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t-mid: 360ms;
  --t-slow: 700ms;

  /* Layout */
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --content-w: 1240px;

  color-scheme: dark;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* No scrollbars anywhere; scrolling itself still works (wheel, touch, keys) */
* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100svh;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

  /* Hidden until the shell is ready, then fades in */
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}

body.is-ready {
  opacity: 1;
}

img,
picture,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  font-variation-settings: "SOFT" 100;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(200, 115, 222, 0.35);
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Author display rules must never override the hidden attribute */
[hidden] {
  display: none !important;
}

/* Shown in one language only (see core/i18n.js) */
html[lang="tr"] [data-lang-only="en"],
html[lang="en"] [data-lang-only="tr"] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Copy protection ---------- */

body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}

img,
video {
  -webkit-user-drag: none;
}

@media print {
  body > * {
    display: none !important;
  }

  body::after {
    content: "Bu sayfanın içeriği Mavi Ressam'a aittir.";
    display: block;
    padding: 40px;
    color: #000;
    font: 16px/1.5 serif;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
