/* ============================================================
   FUAR EXPORA — base: tokens, reset, tipografi, tema
   ============================================================ */

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Semibold.7a0dc3a5ab12.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Medium.bd4fc3d5ccaf.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Regular.a5eb56832538.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Medium.44306bd3e670.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Semibold.a41291516086.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.6114a47be53b.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Renk — kırık beyaz zemin, mürekkep, antrasit, kobalt vurgu */
  --paper: #f1efe9;
  --paper-soft: #e9e6de;
  --ink: #141512;
  --anthracite: #17181a;
  --anthracite-2: #1d1f22;
  --kobalt: #2b3cff;
  --kobalt-soft: #4a58ff;
  --muted: #6f6d65;
  --muted-dark: #98968e;
  --line: rgba(20, 21, 18, 0.16);
  --line-dark: rgba(241, 239, 233, 0.16);

  /* Kurumsal kimlik kararları için merkezi semantik token katmanı */
  --color-primary: var(--kobalt);
  --color-background: var(--paper);
  --color-surface: var(--paper-soft);
  --color-text: var(--ink);
  --color-muted: var(--muted);
  --color-border: var(--line);
  --color-line: var(--color-border);

  /* Tipografi */
  --font-display: "Clash Display", "General Sans", sans-serif;
  --font-text: "General Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-body: var(--font-text);

  --text-hero: clamp(3.2rem, 10.5vw, 9.5rem);
  --text-h1: clamp(2.8rem, 7vw, 7.25rem);
  --text-h2: clamp(2.3rem, 5.6vw, 5.2rem);
  --text-h3: clamp(1.6rem, 3.2vw, 2.6rem);
  --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-small: 0.875rem;
  --text-mono: 0.72rem;

  /* Ritim */
  --space-section: clamp(6.5rem, 16vh, 12.5rem);
  --space-block: clamp(2.5rem, 6vh, 4.5rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: clamp(4rem, 8vw, 8rem);

  /* Hareket — tüm animasyon sistemiyle paylaşılan değerler */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.35s;
  --dur-med: 0.7s;
  --dur-slow: 1.1s;

  --header-h: clamp(4.25rem, 8vh, 5.5rem);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 10px;
  --radius: var(--radius-md);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.8s var(--ease-inout), color 0.8s var(--ease-inout);
}
body[data-theme="ink"] { background-color: var(--anthracite); color: var(--paper); }

main { display: block; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--kobalt);
  color: white;
  transform: translateY(-180%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; }
p { text-wrap: pretty; }

::selection { background: var(--kobalt); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--kobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Ortak tipografi ---------- */
.section-kicker {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
body[data-theme="ink"] .section-kicker,
[data-theme-section="ink"] .section-kicker { color: var(--muted-dark); }

.section-kicker::before {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h2);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-top: 1.4rem;
  max-width: 18ch;
}

/* Split edilen metinlerde satır maskesi */
.split-word {
  display: inline-block;
  will-change: transform, opacity;
}
.split-line-mask { display: inline-block; overflow: clip; vertical-align: bottom; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  padding: 1.05rem 1.7rem;
  border-radius: 100px;
  position: relative;
  overflow: clip;
  transition: background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--kobalt);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn--primary:hover::after { transform: translateY(0); }
.btn--primary:active { transform: scale(0.97); }
.btn--primary .btn__label,
.btn--primary .btn__arrow { position: relative; z-index: 1; }
.btn__arrow { transition: transform 0.35s var(--ease-out); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  padding: 1.05rem 0.25rem;
  position: relative;
  color: inherit;
}
.btn--ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.7rem;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.btn--ghost:hover::after { transform: scaleX(0.35); transform-origin: left; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--kobalt);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Erişilebilirlik ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
