/* Kazım Erol Yegenaga — "Dijital Klon" landing (dark green).
   This file holds ONLY what Tailwind cannot express: design tokens,
   base element typography, focus, dialog backdrop, CSS-only state
   (rotator fade, FAQ marker, sticky bar) and CSS-only motion.
   Everything else is Tailwind utilities in index.html. */

@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+2020-2027, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Surfaces */
  --page: #111612;
  --panel: #1c271f;
  --plate: #202a21;
  --deep: #101510;
  --card: #2b342b;

  /* Text */
  --text: #f3f4ec;
  --muted: #b9c1b7;
  --muted-2: #c6cfc3;

  /* Accent */
  --lime: #afe983;
  --lime-hover: #c7f4a8;

  /* Rules */
  --line: #3a473b;
  --line-2: #414c3d;
  --edge: #60715e;

  /* Type */
  --font-sans: Inter, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Layout */
  --gutter: clamp(1.15rem, 5vw, 5.5rem);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  background-color: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 em,
h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.032em;
  line-height: 0.99;
}

p {
  text-wrap: pretty;
}

img,
video {
  display: block;
  max-width: 100%;
}

::selection {
  background-color: var(--lime);
  color: #132111;
}

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

/* Native dialog — backdrop can only be styled in CSS. */
/* On the lime bands the lime focus ring would disappear. */
#basla :focus-visible,
footer :focus-visible {
  outline-color: #142014;
}

dialog::backdrop {
  background: rgb(10 16 10 / 85%);
}

/* Rotator: cross-fading stills inside a figure (state only). */
.rotator img {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.rotator img.is-on {
  opacity: 1;
}

/* Scroll reveal (JS sets .js and .is-in). */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s var(--ease-out) var(--d, 0ms),
    transform 0.65s var(--ease-out) var(--d, 0ms);
}

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

/* Sticky mobile bar — slide in once the hero is out of view. */
.sticky-bar {
  transform: translateY(115%);
  transition: transform 0.35s var(--ease-out);
}

.sticky-bar[data-visible="true"] {
  transform: none;
}

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

  .rotator img,
  .sticky-bar {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
