/* =========================================================
   DOODLE TASARIM SİSTEMİ — core.css
   Tüm sayfaların ortak temeli. Sayfaya özel stiller css/pages/*.css içinde.
   Açık tema: beyaz defter + siyah mürekkep
   Koyu tema: siyah defter + beyaz mürekkep
   Vurgular: haki · kum · pas (saha defteri paleti)
   Not: eski token adları (--yellow, --pink, --blue…) geriye uyumluluk için
   korunuyor; değerleri yeni palete eşlendi:
     --yellow = kum/okra   --pink = pas (ana vurgu)   --blue = haki
     --green = zeytin      --orange = açık pas        --purple = çelik
   ========================================================= */

/* ---------- 1. Tokenlar ---------- */
:root {
  /* yüzeyler */
  --paper: #fbfaf6;
  --paper-2: #f1efe8;
  --line: rgba(22, 23, 20, 0.07);     /* defter çizgisi */
  --margin-line: rgba(196, 80, 31, 0.42);

  /* mürekkep */
  --ink: #161714;
  --ink-soft: #4a4c44;
  --ink-faint: rgba(22, 23, 20, 0.12);

  /* vurgu kalemleri */
  --yellow: #d4a84f;   /* kum / okra */
  --pink: #c4501f;     /* pas */
  --blue: #6b7a3a;     /* haki */
  --green: #7d8f4e;    /* zeytin */
  --orange: #d9622b;   /* açık pas */
  --purple: #6e7b83;   /* çelik */

  /* anlamlı takma adlar */
  --accent: var(--pink);
  --khaki: var(--blue);
  --sand: var(--yellow);
  --olive: var(--green);

  --sticky: #e9dcb5;               /* post-it (kum kağıdı) */

  /* tipografi */
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --font-body: "Kalam", "Comic Sans MS", cursive;

  /* çizim */
  --stroke: 2.5px;
  --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-2: 15px 255px 15px 225px / 225px 15px 255px 15px;
  --wobble-3: 30px 200px 40px 180px / 180px 40px 200px 30px;
  --shadow-hard: 5px 6px 0 var(--ink);
  --shadow-hard-sm: 3px 4px 0 var(--ink);

  --nav-h: 78px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t: 0.35s;

  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #121311;
  --paper-2: #1b1c19;
  --line: rgba(242, 240, 234, 0.06);
  --margin-line: rgba(224, 122, 74, 0.35);

  --ink: #f2f0ea;
  --ink-soft: #b9b6aa;
  --ink-faint: rgba(242, 240, 234, 0.12);

  --yellow: #e2c27c;
  --pink: #e07a4a;
  --blue: #a9b47a;
  --green: #b3c084;
  --orange: #e89a6a;
  --purple: #a3aeb5;

  --sticky: #2b2c25;

  /* siyah zeminde siyah gölge görünmez → kum tonlu sert gölge */
  --shadow-hard: 5px 6px 0 rgba(226, 194, 124, 0.28);
  --shadow-hard-sm: 3px 4px 0 rgba(226, 194, 124, 0.28);

  color-scheme: dark;
}

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

html {
  -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-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* kağıt dokusu + defter çizgileri */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(to bottom, transparent 0 35px, var(--line) 35px 37px);
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* kırmızı defter kenar çizgisi */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: clamp(18px, 5vw, 72px);
  width: 2px;
  background: var(--margin-line);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] body {
  /* siyah defter: ince kağıt dokusu + soluk çizgiler + hafif ışık */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 25% 15%, rgba(226, 194, 124, 0.05), transparent 55%),
    repeating-linear-gradient(to bottom, transparent 0 35px, var(--line) 35px 37px);
}

img,
svg {
  display: block;
}

/* svg'ye max-width verilmez: taşması gereken dekor çizimleri (karalama daire vb.) kırpılmasın */
img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

::selection {
  background: var(--yellow);
  color: #161714;
}

:focus-visible {
  outline: 3px dashed var(--pink);
  outline-offset: 4px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-hand);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); }
h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h4 { font-size: 1.6rem; }

p {
  color: var(--ink-soft);
}

main {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1200px, 88%);
  margin-inline: auto;
  position: relative;
}

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10000;
  background: var(--yellow);
  color: #161714;
  padding: 10px 18px;
  border: var(--stroke) solid #161714;
  border-radius: var(--wobble);
  font-family: var(--font-hand);
  font-size: 1.4rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 3. Doodle bileşenleri ---------- */

/* Elle çizilmiş kutu */
.sketch-box {
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: var(--shadow-hard);
  position: relative;
  transition: transform var(--t) var(--ease-bounce), box-shadow var(--t) ease, background-color 0.6s ease;
}

.sketch-box.alt { border-radius: var(--wobble-2); }
.sketch-box.alt-2 { border-radius: var(--wobble-3); }

.sketch-box.hoverable:hover {
  transform: translate(-3px, -4px) rotate(-0.6deg);
  box-shadow: 9px 11px 0 var(--ink);
}

/* Post-it */
.sticky {
  --r: -2deg;
  --c: var(--sticky);
  background: var(--c);
  color: #161714;
  padding: 28px 24px 24px;
  transform: rotate(var(--r));
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 12px 24px -8px rgba(0, 0, 0, 0.28);
  position: relative;
  border-radius: 2px 2px 28px 2px / 2px 2px 14px 2px;
  transition: transform var(--t) var(--ease-bounce), box-shadow var(--t) ease;
}

.sticky p { color: rgba(22, 23, 20, 0.78); }

.sticky.yellow { --c: #e9dcb5; }
.sticky.pink { --c: #e8c4ad; }
.sticky.blue { --c: #cfd3bd; }
.sticky.green { --c: #d5d9b8; }
.sticky.orange { --c: #efcfb2; }
.sticky.purple { --c: #d8d4c8; }

.sticky:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 22px 36px -10px rgba(0, 0, 0, 0.35);
}

/* Bant (.sticky veya .polaroid içine <span class="tape"></span>) */
.tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 96px;
  height: 30px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 255, 0.55);
  border-left: 2px dashed rgba(0, 0, 0, 0.08);
  border-right: 2px dashed rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(1px);
  z-index: 2;
}

[data-theme="dark"] .tape {
  background: rgba(255, 255, 255, 0.22);
}

/* Raptiye */
.pin {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e07a4a, var(--pink) 45%, #8f3713);
  box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Polaroid */
.polaroid {
  --r: 3deg;
  background: #fff;
  padding: 14px 14px 56px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--r));
  position: relative;
}

.polaroid figcaption,
.polaroid .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: #161714;
}

/* Fosforlu kalem vurgusu: <span class="marker">metin</span>
   .is-marked eklenince soldan sağa boyanır (core.js otomatik yapar) */
.marker {
  --mc: var(--yellow);
  background-image: linear-gradient(100deg, transparent 0.4em, var(--mc) 0.5em, var(--mc) calc(100% - 0.3em), transparent calc(100% - 0.15em));
  background-repeat: no-repeat;
  background-size: 0% 72%;
  background-position: 0 70%;
  transition: background-size 0.9s var(--ease-out);
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.marker.pink { --mc: var(--pink); }
.marker.blue { --mc: var(--blue); }
.marker.green { --mc: var(--green); }
.marker.orange { --mc: var(--orange); }

.marker.is-marked {
  background-size: 100% 72%;
}

[data-theme="dark"] .marker {
  color: #161714;
}

[data-theme="dark"] .marker:not(.is-marked) {
  color: inherit;
}

/* Karalama alt çizgi: <span class="scribble-u">kelime</span> (SVG'yi core.js ekler) */
.scribble-u {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.scribble-u > svg.scribble-u__line {
  position: absolute;
  left: -4%;
  bottom: -0.18em;
  width: 108%;
  height: 0.45em;
  overflow: visible;
  pointer-events: none;
}

/* Karalama daire: <span class="scribble-circle">kelime</span> */
.scribble-circle {
  position: relative;
  display: inline-block;
}

.scribble-circle > svg.scribble-circle__line {
  position: absolute;
  inset: -22% -12%;
  width: 124%;
  height: 144%;
  overflow: visible;
  pointer-events: none;
}

/* Doodle ikonları: <span class="doodle" data-doodle="star"></span> */
.doodle {
  display: inline-block;
  width: var(--size, 48px);
  height: var(--size, 48px);
  color: var(--c, var(--ink));
  pointer-events: none;
}

.doodle svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.doodle svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--sw, 3);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.doodle.filled svg * {
  fill: var(--fill, currentColor);
}

/* serbest yüzen dekor doodle'ları */
.float-doodle {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

/* "kaynayan çizgi" efekti (SVG filtresini core.js ekler) */
.boil {
  filter: url(#doodle-boil);
}

.boil-strong {
  filter: url(#doodle-boil-strong);
}

/* Elle yazılmış not etiketi */
.hand-note {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pink);
  transform: rotate(-4deg);
  display: inline-block;
}

/* Etiket / rozet */
.chip {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 2px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-2);
  background: var(--paper);
  transform: rotate(var(--r, -1deg));
}

.chip.fill-yellow { background: var(--yellow); color: #161714; border-color: #161714; }
.chip.fill-pink { background: var(--pink); color: #161714; border-color: #161714; }
.chip.fill-blue { background: var(--blue); color: #161714; border-color: #161714; }
.chip.fill-green { background: var(--green); color: #161714; border-color: #161714; }

/* ---------- 4. Butonlar ---------- */
.btn {
  --bg: var(--yellow);
  --fg: #161714;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px 12px;
  font-family: var(--font-hand);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
  background: var(--bg);
  border: var(--stroke) solid #161714;
  border-radius: var(--wobble);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t) var(--ease-bounce), box-shadow var(--t) ease;
  will-change: transform;
}

/* hover'da karalama dolgu */
.btn::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    repeating-linear-gradient(-45deg, transparent 0 6px, rgba(22, 23, 20, 0.22) 6px 8px);
  transform: translateX(-105%) skewX(-10deg);
  transition: transform 0.5s var(--ease-out);
}

.btn:hover::before {
  transform: translateX(0) skewX(-10deg);
}

.btn:hover {
  box-shadow: 6px 8px 0 #161714;
}

.btn:active {
  /* ezilme efekti JS (juice.squash) ile; burada sadece gölge basılır */
  box-shadow: 1px 1px 0 #161714;
}

.btn.pink { --bg: var(--pink); }
.btn.blue { --bg: var(--blue); }
.btn.green { --bg: var(--green); }
.btn.ghost { --bg: var(--paper); --fg: var(--ink); border-color: var(--ink); }

.btn .doodle {
  --size: 26px;
  --c: currentColor;
}

[data-theme="dark"] .btn {
  border-color: #0d0d0c;
  box-shadow: 3px 4px 0 rgba(226, 194, 124, 0.35);
}

[data-theme="dark"] .btn.ghost {
  border-color: var(--ink);
}

/* ---------- 5. Navigasyon ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: transform 0.5s var(--ease-out), background-color 0.4s ease;
}

.nav.is-hidden {
  transform: translateY(-110%);
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
}

/* elle çizilmiş alt çizgi */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q 50 1 100 5 T 200 5 T 300 6 T 400 4 T 500 5 T 600 6 T 700 4 T 800 5 T 900 6 T 1000 4 T 1100 5 T 1200 5' fill='none' stroke='%23161714' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
}

[data-theme="dark"] .nav::after {
  filter: invert(1);
}

.nav.is-scrolled::after {
  opacity: 0.55;
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  font-family: var(--font-hand);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.nav__logo .doodle {
  --size: 34px;
  --c: var(--pink);
  transition: transform 0.6s var(--ease-bounce);
}

.nav__logo:hover .doodle {
  transform: rotate(180deg) scale(1.15);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 38px);
}

.nav__link {
  position: relative;
  font-family: var(--font-hand);
  font-size: 1.75rem;
  font-weight: 600;
  padding: 4px 6px;
  display: inline-block;
}

/* hover/aktif: elle daire çizilir */
.nav__link svg.nav__circle {
  position: absolute;
  inset: -14% -18%;
  width: 136%;
  height: 128%;
  overflow: visible;
  pointer-events: none;
}

.nav__link svg.nav__circle path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.01;
  transition: stroke-dashoffset 0.55s var(--ease-out);
}

.nav__link:hover svg.nav__circle path,
.nav__link.is-active svg.nav__circle path {
  stroke-dashoffset: 0;
}

.nav__link.is-active svg.nav__circle path {
  stroke: var(--blue);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--wobble-2);
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
  transition: transform var(--t) var(--ease-bounce), background-color 0.6s ease;
  position: relative;
}

.icon-btn:hover {
  transform: rotate(-8deg) scale(1.06);
}

.icon-btn .doodle {
  --size: 28px;
}

.theme-toggle .doodle--moon { display: inline-block; }
.theme-toggle .doodle--sun { display: none; }
[data-theme="dark"] .theme-toggle .doodle--moon { display: none; }
[data-theme="dark"] .theme-toggle .doodle--sun { display: inline-block; }

/* hamburger (karalama) */
.burger {
  display: none;
}

.burger__lines {
  width: 26px;
  height: 20px;
  position: relative;
}

.burger__lines span {
  position: absolute;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.45s var(--ease-bounce), opacity 0.3s ease, width 0.3s ease;
}

.burger__lines span:nth-child(1) { top: 0; width: 100%; transform: rotate(-2deg); }
.burger__lines span:nth-child(2) { top: 8px; width: 80%; transform: rotate(2deg); }
.burger__lines span:nth-child(3) { top: 16px; width: 92%; transform: rotate(-1deg); }

.menu-open .burger__lines span:nth-child(1) { transform: translateY(8px) rotate(45deg); width: 100%; }
.menu-open .burger__lines span:nth-child(2) { opacity: 0; }
.menu-open .burger__lines span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 100%; }

/* mobil tam ekran defter menü */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 47px, var(--line) 47px 49px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12vw;
  clip-path: circle(0% at calc(100% - 50px) 40px);
  transition: clip-path 0.7s var(--ease-out);
  visibility: hidden;
}

.menu-open .mobile-menu {
  clip-path: circle(150% at calc(100% - 50px) 40px);
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-hand);
  font-size: clamp(2.4rem, 10vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  gap: 14px;
  opacity: 0;
  transform: translateX(-30px) rotate(-3deg);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-bounce);
}

.mobile-menu a small {
  font-size: 1.2rem;
  color: var(--pink);
}

.menu-open .mobile-menu a {
  opacity: 1;
  transform: none;
}

.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.2s; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.27s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.34s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.41s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.48s; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.55s; }

.mobile-menu a.is-active {
  color: var(--blue);
}

/* ---------- 6. Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 120px 0 40px;
  overflow: hidden;
}

.footer__wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  color: var(--ink);
}

.footer__wave path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.footer__big {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: 0.95;
  text-align: center;
  margin-bottom: 40px;
}

.footer__big a {
  display: inline-block;
  transition: transform 0.5s var(--ease-bounce), color 0.3s ease;
}

.footer__big a:hover {
  color: var(--pink);
  transform: rotate(-2deg) scale(1.03);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 2px dashed var(--ink-faint);
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__socials a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: var(--stroke) solid var(--ink);
  border-radius: 50% 45% 55% 48% / 48% 55% 45% 52%;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.4s var(--ease-bounce), background-color 0.3s ease, color 0.3s ease;
}

.footer__socials a:hover {
  background: var(--yellow);
  color: #161714;
  transform: translateY(-6px) rotate(10deg);
}

.footer__copy {
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ---------- 7. Özel imleç + mürekkep izi ---------- */
.cursor,
.cursor-ring,
.ink-canvas {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .has-cursor,
  .has-cursor * {
    cursor: none !important;
  }

  .has-cursor .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    margin: -38px 0 0 -2px; /* uç noktası imleçte */
    pointer-events: none;
    z-index: 10001;
    transform-origin: 2px 38px;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
  }

  .has-cursor.cursor-visible .cursor {
    opacity: 1;
  }

  .has-cursor .cursor svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.2));
  }

  /* hedefi saran karalama çerçeve */
  .cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    border: 2px dashed var(--ink);
    border-radius: 50%;
    opacity: 0;
    will-change: transform, width, height;
    transition: border-radius 0.35s var(--ease-out), border-color 0.25s ease, border-style 0s;
  }

  .cursor-ring.is-active {
    border: 2.5px solid var(--pink);
    border-radius: var(--wobble);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 18%, transparent);
  }

  .has-cursor .ink-canvas {
    display: block;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
  }
}

/* ---------- 8. Kaydırma ilerlemesi (kalem) ---------- */
.scroll-pencil {
  position: fixed;
  top: calc(var(--nav-h) + 20px);
  bottom: 30px;
  right: 18px;
  width: 26px;
  z-index: 900;
  pointer-events: none;
}

.scroll-pencil__track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background-image: linear-gradient(var(--ink-faint) 50%, transparent 50%);
  background-size: 2px 10px;
}

.scroll-pencil__line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  margin-left: -1.5px;
  height: 0;
  background: var(--ink);
  border-radius: 3px;
}

.scroll-pencil__tip {
  position: absolute;
  left: 50%;
  top: 0;
  width: 26px;
  height: 46px;
  margin: -44px 0 0 -13px;
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  .scroll-pencil {
    display: none;
  }
}

/* ---------- 9. Sayfa geçişi + açılış ---------- */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 10002;
  pointer-events: none;
  display: grid;
  place-items: center;
  background-color: var(--yellow);
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(22, 23, 20, 0.08) 35px 37px);
  transform: translateY(100%);
  visibility: hidden;
}

/* <head> içindeki script, perde gelecekse ilk boyamada ekranı sarıyla örter.
   core.js yüklenemezse 3 sn sonra kendiliğinden kalkar. */
html.doodle-cover::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10003;
  background: var(--yellow);
  animation: doodle-uncover 0s 3s forwards;
}

@keyframes doodle-uncover {
  to { visibility: hidden; }
}

.page-curtain__word {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 7rem);
  color: #161714;
}

.page-curtain svg {
  width: min(520px, 80vw);
  height: auto;
  overflow: visible;
}

.page-curtain svg path {
  fill: none;
  stroke: #161714;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* JS yokken içerik görünür kalsın */
.no-js [data-reveal],
.no-js .split-char {
  opacity: 1 !important;
  transform: none !important;
}

/* JS çalışınca animasyon öncesi gizle (FOUC önleme) */
.js [data-reveal]:not(.is-revealed) {
  opacity: 0;
}

.split-word {
  display: inline-block;
  white-space: nowrap;
}

.split-char {
  display: inline-block;
  will-change: transform;
}

.split-char::before {
  content: attr(data-ch);
}

/* ekrana girmeyi bekleyen harf harf başlıklar */
.js .split-wait .split-char {
  opacity: 0;
}

/* ---------- 10. Bölüm başlığı kalıbı ---------- */
.section-head {
  margin-bottom: clamp(40px, 6vw, 80px);
  position: relative;
}

.section-head .eyebrow {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--pink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: rotate(-2deg);
  margin-bottom: 6px;
}

.section-head .eyebrow .doodle {
  --size: 30px;
  --c: var(--pink);
}

.section-head.center {
  text-align: center;
}

/* ---------- 11. Yazdırma + hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal]:not(.is-revealed) {
    opacity: 1;
  }

  html.doodle-cover::after {
    display: none;
  }

  .boil,
  .boil-strong {
    filter: none;
  }

  .marker {
    background-size: 100% 72%;
  }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links {
    display: none;
  }

  .burger {
    display: grid;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 68px;
  }

  body {
    font-size: 1.05rem;
  }

  .nav__logo {
    font-size: 1.9rem;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .btn {
    font-size: 1.5rem;
    padding: 12px 24px 10px;
  }

  .footer__row {
    flex-direction: column;
    text-align: center;
  }
}


/* ---------- 13. Juice parçacıkları ---------- */
.juice-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10004;
  overflow: hidden;
}

.juice-p {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  will-change: transform;
}

.juice-p--dash {
  width: 14px;
  height: 3px;
  border-radius: 3px;
}

.juice-p--star {
  width: 12px;
  height: 12px;
  border-radius: 0;
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}

.juice-p--ring {
  width: 12px;
  height: 12px;
  background: none;
  border: 2px solid currentColor;
}

/* ---------- 14. Dil düğmesi ---------- */
.lang-toggle__label {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

/* İngilizce seçiliyken ilk boyamada Türkçe metin görünmesin */
html.lang-pending main,
html.lang-pending .nav,
html.lang-pending .footer {
  visibility: hidden;
  animation: doodle-uncover-lang 0s 1.5s forwards;
}

@keyframes doodle-uncover-lang {
  to { visibility: visible; }
}

.footer__admin {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: underline dashed;
  text-underline-offset: 4px;
  opacity: 0.7;
}

.footer__admin:hover {
  opacity: 1;
  color: var(--pink);
}


/* ---------- 15. Tema geçişi (View Transitions): gri ara tonu engelle ---------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* ---------- 16. Dar telefonlar: logo + EN + tema + menü sığsın ---------- */
.nav__logo {
  min-height: 44px; /* dokunmatik hedef */
}

@media (max-width: 420px) {
  .nav__inner {
    gap: 8px;
  }

  .nav__logo {
    font-size: 1.55rem;
    gap: 4px;
  }

  .nav__logo .doodle {
    --size: 24px;
  }

  .nav__actions {
    gap: 6px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .icon-btn .doodle {
    --size: 22px;
  }

  .lang-toggle__label {
    font-size: 1.25rem;
  }
}
