/* KuKaFin — kukafin.com.tr
   Renkler ve yazı tipleri bu dosyanın başındaki :root bölümündedir. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFF1E5;
  --paper-deep: #F2DFCE;
  --sheet: #FFF8F2;
  --ink: #33302E;
  --ink-strong: #1A1817;
  --muted: #66605C;
  --rule: #CCC1B7;
  --rule-strong: #33302E;
  --claret: #990F3D;
  --teal: #0D7680;
  --teal-hover: #0A5E66;
  --oxford: #0F5499;
  --mark: rgba(153, 15, 61, 0.11);
  --slate: #262A33;
  --on-slate: #F2DFCE;
  --on-slate-muted: #B9AEA4;
  --slate-field: #333844;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1220px;
  --gutter: clamp(20px, 4vw, 40px);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1C1E23;
    --paper-deep: #24272E;
    --sheet: #262A31;
    --ink: #E6DBD1;
    --ink-strong: #FFF1E5;
    --muted: #ADA39A;
    --rule: #454A54;
    --rule-strong: #E6DBD1;
    --claret: #F08AA9;
    --teal: #17808A;
    --teal-hover: #1F8F99;
    --oxford: #8DBDF2;
    --mark: rgba(240, 138, 169, 0.16);
    --slate: #121418;
    --on-slate: #F2DFCE;
    --on-slate-muted: #A79D94;
    --slate-field: #1F2228;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1C1E23;
  --paper-deep: #24272E;
  --sheet: #262A31;
  --ink: #E6DBD1;
  --ink-strong: #FFF1E5;
  --muted: #ADA39A;
  --rule: #454A54;
  --rule-strong: #E6DBD1;
  --claret: #F08AA9;
  --teal: #17808A;
  --teal-hover: #1F8F99;
  --oxford: #8DBDF2;
  --mark: rgba(240, 138, 169, 0.16);
  --slate: #121418;
  --on-slate: #F2DFCE;
  --on-slate-muted: #A79D94;
  --slate-field: #1F2228;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }
html { height: 100%; scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }

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

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink-strong); color: var(--paper);
  padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--rule-strong); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.site-header.is-scrolled::after { transform: scaleX(1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-strong); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand-domain { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.01em; font-family: var(--sans); font-weight: 400; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--claret); color: var(--ink-strong); }

.header-tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--rule); }
.lang a { text-decoration: none; padding: 5px 9px; color: var(--muted); }
.lang a[aria-current="page"] { background: var(--ink-strong); color: var(--paper); }
.lang a:not([aria-current]):hover { color: var(--ink-strong); }

.menu-button {
  display: none; background: none; border: 1px solid var(--rule); color: var(--ink-strong);
  font: 600 0.9rem var(--sans); padding: 7px 12px; cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--rule); background: var(--paper); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 15px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; color: var(--ink-strong); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Shared type ---------- */
.tag { display: inline-block; font-size: 0.95rem; font-weight: 600; color: var(--claret); text-decoration: none; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--rule-strong); margin-bottom: 40px; }
.section-head h2, .h2 {
  font-family: var(--serif); font-weight: 500; color: var(--ink-strong);
  font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.018em;
}
.section-head p { color: var(--muted); font-size: 1.1rem; max-width: 58ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 2px;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hover); }
.btn-quiet { border-color: var(--ink); color: var(--ink-strong); background: transparent; }
.btn-quiet:hover { background: var(--ink-strong); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; color: var(--ink-strong);
  font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: 0.98; letter-spacing: -0.03em;
  margin: 18px 0 30px; max-width: 11ch; text-wrap: balance;
}
.standfirst { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 54ch; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Annotated report excerpt */
.excerpt { margin-top: 8px; }
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--ink-strong); padding: 22px 22px 18px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(51, 48, 46, 0.45); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.sheet-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink-strong); line-height: 1.15; }
.sheet-sub { font-size: 0.85rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.sheet-badge { flex: none; font-size: 0.75rem; font-weight: 600; color: var(--claret); border: 1px solid currentColor; padding: 3px 7px; white-space: nowrap; }

.figures { width: 100%; border-collapse: collapse; margin-top: 6px; font-variant-numeric: tabular-nums lining-nums; font-size: 0.95rem; }
.figures td { font-family: var(--serif); font-size: 1.05rem; font-variant-numeric: tabular-nums lining-nums; }
.figures caption { text-align: right; font-size: 0.75rem; color: var(--muted); padding: 10px 0 2px; caption-side: top; }
.figures th, .figures td { padding: 9px 6px; border-bottom: 1px solid var(--rule); text-align: right; }
.figures thead th { font-size: 0.78rem; font-weight: 600; color: var(--muted); border-bottom-color: var(--rule-strong); padding-top: 4px; }
.figures th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink-strong); }
.figures tbody tr:last-child th, .figures tbody tr:last-child td { border-bottom: 0; }
.figures tr.flag th, .figures tr.flag td { background: linear-gradient(var(--mark), var(--mark)) no-repeat; background-size: 100% 100%; }
.ref { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-left: 6px; border-radius: 50%; background: var(--claret); color: var(--sheet); font-size: 0.68rem; font-weight: 700; vertical-align: 1px; }

.notes { margin-top: 14px; border-top: 1px solid var(--rule-strong); }
.notes li { display: grid; grid-template-columns: 17px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; line-height: 1.45; }
.notes li .ref { margin: 2px 0 0; }
.notes cite { display: block; font-style: normal; color: var(--oxford); font-size: 0.8rem; font-weight: 600; margin-top: 3px; }
.sheet-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; font-size: 0.8rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink-strong); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.excerpt figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* The one orchestrated moment: findings appear one by one on load */
.js .excerpt .figures tr.flag th, .js .excerpt .figures tr.flag td { background-size: 0% 100%; transition: background-size 0.7s cubic-bezier(.2,.7,.2,1); }
.js .excerpt .figures tr.flag .ref, .js .excerpt .notes li { opacity: 0; transform: translateY(4px); transition: opacity 0.45s ease, transform 0.45s ease; }
.js .excerpt .sheet-foot .status { opacity: 0; transition: opacity 0.45s ease; }
.js .excerpt.is-live .figures tr.flag th, .js .excerpt.is-live .figures tr.flag td { background-size: 100% 100%; }
.js .excerpt.is-live .figures tr.flag .ref, .js .excerpt.is-live .notes li, .js .excerpt.is-live .sheet-foot .status { opacity: 1; transform: none; }
.js .excerpt [data-step="1"], .js .excerpt [data-step="1"] th, .js .excerpt [data-step="1"] td, .js .excerpt [data-step="1"] .ref { transition-delay: 0.3s; }
.js .excerpt [data-step="2"], .js .excerpt [data-step="2"] th, .js .excerpt [data-step="2"] td, .js .excerpt [data-step="2"] .ref { transition-delay: 1.0s; }
.js .excerpt [data-step="3"], .js .excerpt [data-step="3"] th, .js .excerpt [data-step="3"] td, .js .excerpt [data-step="3"] .ref { transition-delay: 1.7s; }
.js .excerpt .sheet-foot .status { transition-delay: 2.4s; }

/* ---------- Areas: front-page hierarchy ---------- */
.areas { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 0 56px; }
.area { padding: 28px 0; border-top: 1px solid var(--rule); }
.area h3 { font-family: var(--serif); font-weight: 500; color: var(--ink-strong); font-size: 1.5rem; line-height: 1.18; letter-spacing: -0.01em; margin: 8px 0 10px; text-wrap: balance; }
.area p { color: var(--muted); max-width: 52ch; }
.area-lead { grid-row: span 3; border-top: 0; padding-top: 0; }
.area-lead h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.06; letter-spacing: -0.02em; margin: 12px 0 18px; }
.area-lead p { font-size: 1.12rem; color: var(--ink); }
.areas > .area:nth-child(2) { border-top: 0; padding-top: 0; }
.area-figure { margin-top: 32px; border-top: 1px solid var(--rule-strong); padding-top: 16px; }
.area-figure svg { width: 100%; height: auto; color: var(--ink-strong); }
.area-figure figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

/* ---------- Approach ---------- */
.approach { background: var(--paper-deep); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; counter-reset: step; }
.step { position: relative; padding-top: 22px; border-top: 4px solid var(--ink-strong); counter-increment: step; }
.step::before { content: counter(step); display: block; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--claret); font-weight: 400; margin-bottom: 14px; font-variant-numeric: lining-nums; }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--ink-strong); margin-bottom: 8px; }
.step p { color: var(--ink); max-width: 40ch; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule); }
.principles dt { font-weight: 700; color: var(--ink-strong); margin-bottom: 6px; }
.principles dd { color: var(--muted); max-width: 40ch; }

/* ---------- Quote ---------- */
.quote { padding: clamp(64px, 8vw, 104px) 0; text-align: center; }
.quote blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-strong);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.16; letter-spacing: -0.015em;
  max-width: 22ch; margin: 0 auto; text-wrap: balance;
}
.quote blockquote p::before { content: ""; display: block; width: 56px; height: 4px; background: var(--claret); margin: 0 auto 32px; }
.quote figcaption { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--rule); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; }
.about-body p { font-family: var(--serif); font-size: 1.28rem; line-height: 1.6; color: var(--ink); max-width: 60ch; }
.about-body p + p { margin-top: 1.1em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 44px; }
.facts div { border-top: 1px solid var(--rule-strong); padding-top: 12px; }
.facts dt { font-size: 0.85rem; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ink-strong); line-height: 1.25; margin-top: 4px; }

/* ---------- Contact ---------- */
.contact { background: var(--slate); color: var(--on-slate); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 72px; }
.contact .h2 { color: #FFF1E5; }
.contact-lead { font-size: 1.15rem; margin-top: 18px; max-width: 44ch; color: var(--on-slate); }
.contact-direct { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(242, 223, 206, 0.25); }
.contact-direct dt { font-size: 0.85rem; color: var(--on-slate-muted); }
.contact-direct dd { font-family: var(--serif); font-size: 1.45rem; margin: 2px 0 16px; }
.contact-direct a { color: #FFF1E5; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-direct a:hover { text-decoration-color: #F08AA9; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--on-slate); }
.field label span { font-weight: 400; color: var(--on-slate-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--sans); color: #FFF1E5; background: var(--slate-field);
  border: 1px solid rgba(242, 223, 206, 0.28); border-radius: 2px; padding: 12px 13px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #F2DFCE 50%), linear-gradient(135deg, #F2DFCE 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #F2DFCE; outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #F08AA9; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.form-foot .btn-primary { background: #F2DFCE; color: #1A1817; }
.form-foot .btn-primary:hover { background: #FFF1E5; }
.form-note { font-size: 0.85rem; color: var(--on-slate-muted); max-width: 44ch; }
.form-error { grid-column: 1 / -1; color: #F7A9C0; font-size: 0.9rem; font-weight: 600; }
.form-error:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px 48px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.footer-desc { color: var(--muted); margin-top: 14px; max-width: 36ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a { text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--claret); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 40px; padding-top: 22px; font-size: 0.85rem; color: var(--muted); }
.footer-bottom .legal { max-width: 70ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .menu-button { display: inline-block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .excerpt { max-width: 560px; }
  .section-head { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .area-lead { grid-row: auto; padding-bottom: 36px; }
  .areas > .area:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 28px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.4rem; }
  .brand-domain { display: none; }
  .steps, .principles { grid-template-columns: 1fr; gap: 36px; }
  .principles { gap: 22px; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .form { grid-template-columns: 1fr; }
  .sheet { padding: 18px 16px 14px; }
  .figures { font-size: 0.88rem; }
  .figures th, .figures td { padding: 8px 4px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
