@font-face {
  font-family: "Russo One";
  src: url("RussoOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0d0f0c;
  --bg-2: #141712;
  --card: #181b16;
  --line: #2a2f26;
  --text: #e8eadf;
  --muted: #9aa092;
  --dim: #6c7266;
  --lime: #b8e04a;
  --blood: #e0412b;
  --amber: #f2b33d;
  --radius: 14px;
  --wrap: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* film grain + vignette: dusty bunker feel */
body::before {
  content: "";
  position: fixed; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none; z-index: 50;
  animation: grain 1.2s steps(6) infinite;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,.55) 100%);
  pointer-events: none; z-index: 49;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,1%); } 100% { transform: translate(0,0); }
}

#embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .8; }

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; position: relative; z-index: 2; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13,15,12,.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font: 17px "Russo One", sans-serif; letter-spacing: .02em; }
.bar nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.bar nav a { color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--text); background: var(--bg-2); text-decoration: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-left: 6px; }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--dim);
  font: 600 12px/1 inherit; letter-spacing: .08em; padding: 8px 10px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--lime); color: #11140d; }
#progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--lime); }

/* ---------- hero ---------- */
.hero { padding-block: 72px 40px; position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 12px "Russo One", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--amber); }
.hero h1 {
  font: clamp(36px, 7vw, 68px)/1.02 "Russo One", sans-serif;
  margin: 16px 0 18px; letter-spacing: -.01em; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 58ch; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--dim); font-size: 14px; }
.meta span b { color: var(--text); font-weight: 600; }

/* hazard tape divider */
.tape {
  height: 14px; margin: 8px 0 0;
  background: repeating-linear-gradient(-45deg, #1d2019 0 14px, #26291f 14px 28px);
  border-block: 1px solid var(--line);
  background-size: 200% 100%;
  animation: tape 18s linear infinite;
}
@keyframes tape { to { background-position: 200px 0; } }

/* ---------- layout ---------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 48px 96px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 24px; padding-block-start: 28px; } }

.toc { position: sticky; top: 88px; align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-left: 1px solid var(--line); }
.toc li { counter-increment: t; }
.toc a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--dim); font-size: 14px; transition: color .2s, border-color .2s;
}
.toc a::before { content: counter(t, decimal-leading-zero) "  "; font: 11px "Russo One", sans-serif; color: var(--line); transition: color .2s; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.on { color: var(--text); border-left-color: var(--lime); }
.toc a.on::before { color: var(--lime); }
@media (max-width: 860px) { .toc { display: none; } }

.doc section { padding: 6px 0 34px; border-bottom: 1px dashed var(--line); margin-bottom: 34px; scroll-margin-top: 90px; }
.doc section:last-child { border-bottom: 0; }
.doc h2 {
  display: flex; align-items: baseline; gap: 14px;
  font: 24px/1.25 "Russo One", sans-serif; margin: 0 0 14px;
}
.doc h2 .n { font-size: 13px; color: var(--lime); letter-spacing: .1em; }
.doc p, .doc li { color: #c9ccc0; }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--lime); }
.doc strong { color: var(--text); }

/* data table */
.data { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 15px; }
.data-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.data th, .data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data tr:last-child td { border-bottom: 0; }
.data th { font: 11px "Russo One", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: var(--bg-2); }
.data td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

.note {
  display: grid; grid-template-columns: 4px 1fr; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0;
}
.note::before { content: ""; background: var(--amber); border-radius: 4px; }
.note p { margin: 0; }

.never { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.never li {
  margin: 0; padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--muted);
  border: 1px solid var(--line); background: var(--bg-2); position: relative;
}
.never li::before { content: "×"; color: var(--blood); font-weight: 700; margin-right: 7px; }

/* ---------- cards (index) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-block: 40px 96px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: #3a4133; }
.card h3 { font: 18px "Russo One", sans-serif; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0 0 14px; }
.card .go { font-weight: 600; }
.card .go::after { content: " →"; transition: margin .2s; }
.card:hover .go::after { margin-left: 4px; }

.hero-icon {
  float: right; width: clamp(120px, 22vw, 210px); height: auto; border-radius: 28%;
  margin: 0 0 20px 24px; box-shadow: 0 30px 60px -20px rgba(224,65,43,.45), 0 0 0 1px var(--line);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@media (max-width: 560px) { .hero-icon { float: none; display: block; margin: 0 0 22px; } }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--dim); font-size: 13px; position: relative; z-index: 2; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.hero .rv:nth-child(2) { transition-delay: .08s; }
.hero .rv:nth-child(3) { transition-delay: .16s; }
.hero .rv:nth-child(4) { transition-delay: .24s; }

/* language switching */
html[lang="tr"] [data-l="en"], html[lang="en"] [data-l="tr"] { display: none !important; }
