/* Arakot Render Lab · v14 · SAHNE · tema (v13 Z'nin ölçeği; renkler sahneye göre)
   v14: the page stands in a rendered scene (motion.js / motion.css: a misty
   highland valley, two limestone rocks; #zemin). No plaster, no green: the
   v13 petrol (#294A54) and its ink (#1F292E, a green-grey) are gone. The
   site's colours are the scene's: warm mist greys, graphite ink, and one
   accent, near-black graphite (cooldock's black button). The web sections
   after the story stand on a plain, light, neutral ground (--sc-canvas,
   cooldock's flat grey after its hero). The plugin copy (--q-*) stays dark.

   Kept from v13: the type (Schibsted Grotesk + Newsreader italic), the fluid
   display scale, the page's sections without opaque backgrounds (the scene,
   then its plain veil, shows through), --sc-font-accent / <em class="vurgu">.

   Contract for every agent: site colours only through these variables. A new
   one goes at the top of your own CSS with the --sc- prefix and a default.
   Contrast (WCAG), lab/v14-sahne.mjs: see TESLIM.md (the scene's mist behind
   the words, every light of the day, and the plain ground).

   ── Değişken listesi ───────────────────────────────────────────────────
   zemin      --sc-canvas  --sc-surface  --sc-surface-2  --sc-surface-3  --sc-bar
              --sc-wall (v13 adı; motion.css'te --sc-canvas'a eşit)  --sc-sahne-ilk
   çizgi      --sc-line  --sc-line-strong  --sc-hairline  --sc-hairline-strong
              --sc-graphite  --sc-graphite-line (v13 adları; motion.css'te mürekkebe eşit)
   mürekkep   --sc-ink  --sc-ink-soft  --sc-ink-mute
   vurgu      --sc-accent  --sc-accent-hover  --sc-accent-ink  --sc-accent-soft
   koyu yüzey --sc-on-dark  --sc-on-dark-soft  --sc-accent-on-dark
   fotoğraf   --sc-on-photo  --sc-on-photo-soft
   çizim      --sc-lead (kılavuz çizgisi, koyu ve açık zeminde okunur)  --sc-label-bg
   durum      --sc-warn  --sc-warn-dot  --sc-ok
   taslak     --sc-draft-bg  --sc-draft-ink  --sc-draft-line
   gölge      --sc-shadow-color  --sc-e1  --sc-e2  --sc-e3  --sc-shadow  --sc-edge
              --sc-win-shadow (koyu pencere, açık zemin)  --sc-dw-shadow
   yazı       --sc-font-display  --sc-font-text  --sc-font-accent  --sc-font-num  --sc-num
              --sc-accent-weight  --sc-font-app (eklenti kopyası, değişmez)  --sc-font-mono
              --sc-track-display  --sc-track-tight  --sc-track-snug  --sc-track-normal  --sc-track-wide
   ölçek      --sc-t-xs … --sc-t-4xl  --sc-t-d1 (hero/story titles)  --sc-t-d2 (section titles)
              --sc-t-d3 (sub-titles)  --sc-t-body (reading text, ≥ 16 px)
              --sc-leading-*  --sc-measure
   aralık     --sc-1 … --sc-11  --sc-section  --sc-gutter  --sc-maxw
   köşe       --sc-r-sm  --sc-r-md  --sc-r-lg  --sc-r-pill
   hareket    --sc-ease-out  --sc-ease-in-out  --sc-ease-drawer  --sc-d-fast  --sc-d-base  --sc-d-slow
   ───────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;

  /* zemin: sisin açık, sıcak grisi (web bölümleri düz: cooldock'un açılıştan sonraki zemini) */
  --sc-canvas:    #ECEBE8;
  --sc-surface:   #F5F4F2;
  --sc-surface-2: #E2E0DB;
  --sc-surface-3: #D6D3CD;
  --sc-bar:       #F3F2EF;

  /* çizgi */
  --sc-line:        #D2CFC9;
  --sc-line-strong: #A8A39B;
  --sc-hairline:        color-mix(in oklab, var(--sc-ink) 14%, transparent);
  --sc-hairline-strong: color-mix(in oklab, var(--sc-ink) 26%, transparent);

  /* mürekkep */
  --sc-ink:      #1C1D1F;          /* grafit; yeşil-gri değil */
  --sc-ink-soft: #36383C;          /* v14: a step darker: the words stand on a landscape, not a flat wall */
  --sc-ink-mute: #4A4C51;

  /* tek vurgu: koyu grafit (cooldock'un siyah düğmesi); yeşil yok */
  --sc-accent:       #1C1D1F;
  --sc-accent-hover: #000000;
  --sc-accent-ink:   #F6F5F2;
  --sc-accent-soft:  color-mix(in srgb, var(--sc-accent) 11%, transparent);

  /* koyu yüzeyin (eklenti, doruk şeridi) ve fotoğrafın üstündeki site yazısı */
  --sc-on-dark:        #F3F1EC;
  --sc-on-dark-soft:   #C4C9CF;
  --sc-accent-on-dark: #92B6DC;    /* v11'in vurgusu: eklentinin içinde kalır */
  --sc-on-photo:       #F6F4EF;
  --sc-on-photo-soft:  #DADDE1;

  /* çizim dili: kılavuz çizgisi hem alçıda hem karartılmış pencerede ≥ 3:1 */
  --sc-lead:     #7C7D80;
  --sc-label-bg: var(--sc-surface);

  /* durum */
  --sc-warn:     #8A5A0C;          /* metin, ≥ 4,5:1 */
  --sc-warn-dot: #C98B1F;          /* "Elle kontrol" noktası */
  --sc-ok:       #34465A;          /* v14: arduvaz; yeşil değil */

  /* onay bekleyen metin işareti (?taslak=1) */
  --sc-draft-bg:   #F2DF9A;
  --sc-draft-ink:  #4A3A00;
  --sc-draft-line: #B8963A;

  /* gölge: sisin sıcak koyusu, ışık yukarıdan ve yumuşak */
  --sc-shadow-color: 30 14% 14%;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.10),
           0 2px 6px -1px hsl(var(--sc-shadow-color) / 0.10);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow-color) / 0.10),
           0 10px 22px -6px hsl(var(--sc-shadow-color) / 0.18);
  --sc-e3: 0 3px 6px hsl(var(--sc-shadow-color) / 0.10),
           0 18px 40px -10px hsl(var(--sc-shadow-color) / 0.24),
           0 50px 90px -30px hsl(var(--sc-shadow-color) / 0.26);
  --sc-shadow: var(--sc-e2);
  --sc-edge: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  /* koyu eklenti penceresi duvarda: kenarı keskin, temas gölgesi kısa ve
     koyu, ışığın gölgesi uzun ve sıcak (ışık sol üstten, motion.js ile aynı) */
  --sc-win-shadow:
    0 0 0 1px rgba(17, 21, 23, 0.62),
    1px 2px 3px hsl(var(--sc-shadow-color) / 0.22),
    6px 16px 30px -12px hsl(var(--sc-shadow-color) / 0.36),
    22px 60px 110px -40px hsl(var(--sc-shadow-color) / 0.50);
  --sc-dw-shadow:
    0 0 0 1px rgba(17, 21, 23, 0.5),
    1px 2px 3px hsl(var(--sc-shadow-color) / 0.18),
    10px 24px 46px -18px hsl(var(--sc-shadow-color) / 0.42);

  /* yazı: Schibsted Grotesk (başlık, metin, rakam: sıkı, dik omuzlu bir
     grotesk; tabular rakamı var) ve Newsreader italik (vurgu sözcükleri ve
     duvardaki kurşun kalem kotları: elle yazılmış bir çizim notu gibi).
     Eklenti kopyası Segoe UI'da kalır. */
  --sc-font-display: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sc-font-text:    "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sc-font-accent:  "Newsreader", "Georgia", "Times New Roman", serif;
  --sc-accent-weight: 400;
  --sc-font-num:     "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --sc-num:          tabular-nums lining-nums;   /* font-variant-numeric: var(--sc-num) */
  --sc-font-app:     "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sc-font-mono:    ui-monospace, "Cascadia Mono", Consolas, monospace;

  --sc-track-display: -0.034em;   /* başlıklar sıkı */
  --sc-track-tight:   -0.024em;
  --sc-track-snug:    -0.012em;
  --sc-track-normal:  0em;
  --sc-track-wide:    0.04em;

  /* ölçek, aralık, köşe, hareket (motorun değerleri, burada toplu) */
  --sc-t-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --sc-t-sm:   clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --sc-t-base: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --sc-t-lg:   clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --sc-t-xl:   clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --sc-t-2xl:  clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --sc-t-3xl:  clamp(2.8rem, 1.9rem + 4.2vw, 5rem);
  --sc-t-4xl:  clamp(3.4rem, 1.9rem + 6.6vw, 7.5rem);
  /* the page's display roles (fluid; phone values in the media query below) */
  --sc-t-d1:   clamp(2rem, 0.9rem + 2.75vw, 3.9rem);     /* 1440: 50 px · 1920: 62 px */
  --sc-t-d2:   clamp(2.4rem, 1rem + 3.6vw, 4.6rem);      /* section titles: 1440: 68 px */
  --sc-t-d3:   clamp(1.45rem, 1.1rem + 0.9vw, 2.1rem);   /* sub-titles */
  --sc-t-body: clamp(1rem, 0.92rem + 0.3vw, 1.19rem);    /* reading text, never under 16 px */
  --sc-leading-none: 0.96;
  --sc-leading-tight: 1.06;
  --sc-leading-body: 1.55;
  --sc-measure: 66ch;
  --sc-1: 0.25rem;  --sc-2: 0.5rem;   --sc-3: 0.75rem;  --sc-4: 1rem;
  --sc-5: 1.5rem;   --sc-6: 2rem;     --sc-7: 3rem;     --sc-8: 4rem;
  --sc-9: 6rem;     --sc-10: 8rem;    --sc-11: 12rem;
  --sc-section: clamp(4.5rem, 9vw, 11rem);
  --sc-gutter:  clamp(1rem, 4vw, 3.6rem);
  --sc-maxw:    82rem;
  --sc-r-sm: 4px;  --sc-r-md: 8px;  --sc-r-lg: 14px;  --sc-r-pill: 999px;
  --sc-ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --sc-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --sc-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --sc-d-fast: 160ms;  --sc-d-base: 240ms;  --sc-d-slow: 420ms;
}
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  :root {
    --sc-t-d1: clamp(1.65rem, 0.6rem + 5.6vw, 2.15rem);  /* 390: 32 px · 360: 30 px */
    --sc-t-d2: clamp(2.1rem, 1rem + 6vw, 2.9rem);
    --sc-t-d3: 1.35rem;
    --sc-t-body: 1rem;
  }
}

/* the scene (#zemin) is behind everything: the page's own grounds are clear.
   html keeps the plain ground (the web sections; the scene's veil). */
html { background: var(--sc-canvas); }
body { background: transparent; color: var(--sc-ink); }
body { font-feature-settings: "kern" 1; }

/* ============================================ the plugin copy stays itself
   Its text names its own face (Segoe UI); the site reads in Schibsted
   Grotesk. Inside it the focus ring, the caret and the progress ring keep
   v11's light accent: petrol on #262626 would vanish (1,6:1). */
.win, .dw, .nf-chip__btn { font-family: var(--sc-font-app); }
.win { caret-color: var(--sc-accent-on-dark); }
.win :focus-visible, .dw :focus-visible, .ab:focus-visible .ab__knob, .dw__pick:focus-visible { outline-color: var(--sc-accent-on-dark); }
.ring .ring__v { stroke: var(--sc-accent-on-dark); }
.sb__live button { color: var(--sc-accent-on-dark); }
.win ::selection { background: #3b4e64; color: #f3f3f3; }

/* ================================================ the window as an object */
.win-sh { box-shadow: var(--sc-win-shadow); }
.dw { box-shadow: var(--sc-dw-shadow); }
.xfer { box-shadow: 0 0 0 1px rgba(17, 21, 23, 0.55), 8px 24px 50px -20px hsl(var(--sc-shadow-color) / 0.45); }
.tri__pl { box-shadow: 0 0 0 1px rgba(17, 21, 23, 0.45), 10px 34px 60px -30px hsl(var(--sc-shadow-color) / 0.5); }
.is-x .hd, .is-x .tabs, .is-x .sec, .is-x .pn-foot, .is-x .strip, .is-x .cv-img,
.is-x .sb, .is-x .cv-frame { box-shadow: 0 0 0 1px rgba(17, 21, 23, 0.5), 4px 10px 24px -14px hsl(var(--sc-shadow-color) / 0.45); }
/* v14: the render's light in the mist round the window: a faint lift of its
   colours (soft-light), never a dark stain that would read as a second
   shadow (opacity is app.js's) */
.ambient { filter: blur(90px) saturate(0.8) brightness(1.2) opacity(0.45); mix-blend-mode: soft-light; }

/* ======================================================== the page's words */
.nf { color: var(--sc-ink); }
.nf-t, .nf-t h1 {
  color: var(--sc-ink); font-family: var(--sc-font-display);
  font-size: var(--sc-t-d1); line-height: var(--sc-leading-tight);
  letter-spacing: var(--sc-track-display); font-weight: 640;
}
.nf-a { color: var(--sc-ink-soft); font-size: var(--sc-t-body); line-height: 1.5; letter-spacing: -0.003em; }
@media (min-width: 821px) and (max-height: 560px) and (pointer: fine) {
  .nf-t, .nf-t h1 { font-size: clamp(22px, 2.4vw, 34px); }
  .nf-a { font-size: 16px; }
}
.nf-a--hero p, .nf-a.nf-a--hero p { color: var(--sc-ink-soft); }
.nf-a--key, .nf-a.nf-a--key { color: var(--sc-ink); font-size: clamp(19px, 1.35vw, 21px); }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) { .nf-a.nf-a--key { font-size: 19px; } }
.nf-copy { color: var(--sc-ink-soft); }
.nf-req { color: var(--sc-ink); }
.nf-hint { color: var(--sc-ink-mute); font-size: 14px; }
.nf-meta { color: var(--sc-accent); font-family: var(--sc-font-num); font-variant-numeric: var(--sc-num); }
.nf-chip__tl { color: var(--sc-ink); font-family: var(--sc-font-num); font-variant-numeric: var(--sc-num); }
/* the column's copy of the plugin's Oluştur button is a piece of the Qt
   surface: on plaster it carries its own edge */
.nf-chip__btn { box-shadow: 0 0 0 1px rgba(17, 21, 23, 0.32), 2px 6px 14px -8px hsl(var(--sc-shadow-color) / 0.4); }
.nf-chip__btn.is-off { box-shadow: 0 0 0 1px rgba(17, 21, 23, 0.4); }
.nf-parts { color: var(--sc-ink-soft); }
.nf-parts b { color: var(--sc-ink); }
/* over the full-bleed photo (dark scrim) the words stay light */
.nf-t.nf-t--sub { color: var(--sc-on-photo); letter-spacing: -0.016em; font-size: clamp(24px, 2.3vw, 40px); }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) { .nf-t.nf-t--sub { font-size: clamp(22px, 6.4vw, 28px); } }
.nf-a.nf-a--sub { color: var(--sc-on-photo-soft); font-family: var(--sc-font-num); font-variant-numeric: var(--sc-num); }
/* the peak's line sits on the plugin's dark strip: it stays light */
.nf-t.nf-t--peak { color: var(--sc-on-dark); letter-spacing: -0.012em; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.32; font-weight: 600; }
.nf-a.nf-a--peak { color: var(--sc-on-dark-soft); font-family: var(--sc-font-num); }

/* labels of the borrowed moments: Arakot's drawing convention, a narrow
   paper ground under the words, so they read on the plaster and over the
   darkened window alike (style.md: "ölçü değerlerine dar beyaz zemin") */
.lb { color: var(--sc-ink); background: var(--sc-label-bg); box-shadow: 0 0 0 5px var(--sc-label-bg); border-radius: 1px; }
.lb b { color: var(--sc-ink); letter-spacing: -0.008em; }
.lb span { color: var(--sc-ink-soft); }
.lines__lead { stroke: var(--sc-lead); }
.lines__dot { fill: var(--sc-lead); }
.lines__asm { stroke: color-mix(in srgb, var(--sc-lead) 70%, transparent); }

/* "Fiyatları görün": the page's one filled action besides the bar's Fiyatlar */
.btn-cta {
  border: 0; background: var(--sc-accent); color: var(--sc-accent-ink);
  font-family: var(--sc-font-display); font-weight: 600; letter-spacing: -0.005em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 2px 8px 18px -10px hsl(var(--sc-shadow-color) / 0.55);
}
@media (hover: hover) and (pointer: fine) { .btn-cta:hover { background: var(--sc-accent-hover); } }
.btn-cta:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }

/* "Kendiniz deneyin" (Sadullah liked it: same form). On plaster it is the
   dark door into the plugin; hover turns it petrol */
.try {
  border: 1px solid rgba(17, 21, 23, 0.9);
  background: var(--sc-ink); color: var(--sc-on-dark);
  box-shadow: 2px 10px 22px -12px hsl(var(--sc-shadow-color) / 0.6);
}
@media (hover: hover) and (pointer: fine) { .try:hover { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); } }

/* measurement card (only with CONFIG.olcum) */
.olc { border-color: var(--sc-line); background: var(--sc-surface); box-shadow: var(--sc-e1); }
.olc__n { color: var(--sc-ink); font-family: var(--sc-font-num); font-variant-numeric: var(--sc-num); letter-spacing: -0.02em; }
.olc__m { color: var(--sc-ink-soft); }
.olc__demo { color: var(--sc-warn); }

/* the visible "taslak" mark (?taslak=1) */
.tslk-on .tslk { background: var(--sc-draft-bg); color: var(--sc-draft-ink); border-color: var(--sc-draft-line); }

/* ============================================================ Kayıtlar */
.web { background: transparent; color: var(--sc-ink); }
.web__h {
  color: var(--sc-ink); font-size: var(--sc-t-d2); line-height: 1.02;
  letter-spacing: var(--sc-track-display); font-weight: 640;
}
.web__lead { color: var(--sc-ink-soft); font-size: var(--sc-t-body); max-width: 62ch; }
.rec__img { background: var(--sc-surface-2); border-color: var(--sc-line); box-shadow: var(--sc-e1); }
.rec__i figcaption { color: var(--sc-ink-soft); font-family: var(--sc-font-num); font-variant-numeric: var(--sc-num); }

/* (v14: the footer is FIYAT's own now, class .son; v13's .foot rules are gone) */

/* skip link */
.skip { background: var(--sc-accent); color: var(--sc-accent-ink); }

@media (prefers-reduced-motion: reduce) {
  .btn-cta, .try { transition: none; }
}

/* ============================================ v12 · birleştirme (T + H + F)
   Kontrast taraması (lab/kontrast.mjs) on the light floor:
   - the answers that hang under the window (.nf--c, app.js: the opening
     answer, "İstek gönderildi…", "Kareyi baştan üretmeyin…") sit in its own
     shadow (the warm drop shadow and the render's light, multiplied):
     ink-soft fell to 2,7–4,5:1 there, ink keeps them above 4,5:1;
   - when the peak shows the canvas alone (.is-pkc: phones, narrow strips)
     its line and the record line stand on the plaster under the canvas,
     not on the plugin's dark strip: they take the page's ink. */
.nf-a.nf-a--hero p:not(.nf-hint), .nf-a.nf--c, .nf-a.nf--c > p:not(.nf-hint) { color: var(--sc-ink); }
.nf-a.nf-a--hero .nf-hint { color: var(--sc-ink-soft); }   /* the hint stays a step lighter */
.is-pkc .nf-t.nf-t--peak { color: var(--sc-ink); }
.is-pkc .nf-a.nf-a--peak { color: var(--sc-ink-soft); }
/* where the standing column falls back to words above and under a centred
   window (narrow desks, 844×390), the column's copy of the Oluştur button
   stands centred under its answer, not alone at the left edge */
.nf-a.nf--c .nf-chip { justify-content: center; }
/* one page grid: the web sections share the price section's measure (1240 px) */
.web__in { max-width: 1240px; }

/* ============================================ v13 · Z · performans
   The engine (scrollcraft.js, unchanged) writes --sc-p on the pinned act every
   frame. An inherited custom property makes every element inside #story (the
   whole plugin copy, ~1 800 elements) recalculate its style on every frame:
   measured 1,4 s of style work in 2 s of story scroll. Nothing reads --sc-p
   (grep: no var(--sc-p) anywhere), so it is registered as not inherited: the
   act alone recalculates. */
@property --sc-p { syntax: "<number>"; inherits: false; initial-value: 0; }
