/*
  Tuğçe Nur Arslan — Omurga Sağlığı
  Design tokens + the few rules Tailwind cannot express.
  Everything else lives as utility classes in index.html.
*/

:root {
  /* Paper, plates, ink */
  --paper: #f3f5ef;
  --plate: #e5eadf;
  --ink: #16231e;
  --muted: #4a5a52;

  /* Deep pine panels */
  --pine: #1b3a31;
  --pine-deep: #12281f;
  --on-pine: #f3f5ef;

  /* Ochre accent: fills + large type only; --ochre-ink for small type */
  --ochre: #b4802c;
  --ochre-hover: #a0721f;
  --ochre-ink: #6b4712;
  --gold-light: #d9ae63;

  /* Hairlines (solid rgba so Tailwind never has to blend a token) */
  --line: rgba(22, 35, 30, 0.14);
  --line-soft: rgba(22, 35, 30, 0.08);
  --line-pine: rgba(243, 245, 239, 0.18);

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html.dark {
  --paper: #101815;
  --plate: #17231d;
  --ink: #eff2ea;
  --muted: #a8b5a9;

  --pine: #1a2d26;
  --pine-deep: #0b1411;
  --on-pine: #f3f5ef;

  --ochre: #c99b4c;
  --ochre-hover: #d7ac63;
  --ochre-ink: #e7c489;
  --gold-light: #e7c489;

  --line: rgba(239, 242, 234, 0.18);
  --line-soft: rgba(239, 242, 234, 0.1);
  --line-pine: rgba(239, 242, 234, 0.2);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

h1,
h2,
h3,
h4,
blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
}

::selection {
  background: var(--ochre);
  color: #171208;
}

:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

/* Scroll reveal (class names are state hooks, animation only) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay='1'] {
  transition-delay: 70ms;
}

.js .reveal[data-delay='2'] {
  transition-delay: 140ms;
}

.js .reveal[data-delay='3'] {
  transition-delay: 210ms;
}

/* Wistia: hold the 16:9 box and show the blur-up poster until defined */
wistia-player[media-id='jjo45hcv16']:not(:defined) {
  display: block;
  padding-top: 56.25%;
  background: center / contain no-repeat url('https://fast.wistia.com/embed/medias/jjo45hcv16/swatch');
  filter: blur(5px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s;
  }
}
