/* What index.html and work.html share: the colours and type, the bar along the top, a video's still, the enlarged view.
   The works sit on plain white; hairline rules, one weight and one grey, divide what text there is (after Tilleul, a Cargo site) */
:root { --paper:#fff; --ink:#26231f; --mute:#6f695f; --faint:#a59a8a; --rule:#e5e1d9; --red:#b23a24; --green:#8a9a78; --brown:#8c7259;   /* soft green and brown, autumn's, for the small marks */
        --serif:"Instrument Serif", "Times New Roman", serif; --mono:"Lekton", ui-monospace, monospace; --pad:24px; }
* { box-sizing:border-box; }
html, body { margin:0; background:var(--paper); color:var(--ink); }
body { font:17px/1.4 var(--serif); -webkit-font-smoothing:antialiased; }
button { font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; }
a { color:inherit; }
:focus-visible { outline:1px solid var(--ink); outline-offset:3px; }
html { -webkit-tap-highlight-color:transparent; }   /* a phone's grey square round what is pressed ("butonlara basarken etrafları kare oluyor") */
.mono { font:500 11px/1.5 var(--mono); letter-spacing:.06em; text-transform:uppercase; }
.mono a { text-decoration:none; border-bottom:1px solid var(--rule); }
@media (hover:hover) { .mono a:hover { border-color:var(--ink); } }

#bar { position:fixed; z-index:5; top:0; left:0; right:0; display:flex; align-items:baseline; gap:24px; padding:20px var(--pad) 0; pointer-events:none; }
#bar > * { pointer-events:auto; }
#name { font-size:24px; line-height:1; text-decoration:none; }
#bar .mono { text-decoration:none; border:0; color:var(--mute); padding:6px 0; }
#info { margin-left:auto; }
#bar #info { font-size:13.5px; letter-spacing:.07em; }
@media (hover:hover) { #bar .mono:hover { color:var(--ink); } }
#bar #theme { position:relative; display:inline-flex; align-items:center; margin-left:18px; padding:6px 0; }   /* light or dark (page.js) */
#bar #theme::after { content:''; position:absolute; inset:-10px -12px; }   /* pressed round it too: the icon is 15 px, and the glass's soft pointer misses it ("basamıyorum neredeyse hiç tek seferde") */
@media (pointer:coarse) { #bar #info { padding:12px 0 12px 16px; } #bar #theme { padding:12px 0 12px 12px; } }   /* a finger's size to press */
@media (max-width:900px) { #bar #info { font-size:12px; } }

/* the pointer: one tip that mists what is under it, frosted and a little darker, no colour (portfolio/cursor.js); on the glass
   pages it is warmth in the glass instead, on the intro it is beyond the glass */
.tip { position:fixed; left:0; top:0; z-index:60; width:56px; height:56px; margin:-28px 0 0 -28px; border-radius:50%; pointer-events:none; opacity:0;
       -webkit-backdrop-filter:blur(5px) brightness(.82); backdrop-filter:blur(5px) brightness(.82);
       -webkit-mask-image:radial-gradient(circle, #000 30%, transparent 70%); mask-image:radial-gradient(circle, #000 30%, transparent 70%);
       transition:opacity .3s, width .35s, height .35s, margin .35s; }
html.tip-on .tip { opacity:1; }
html.tip-big .tip { width:82px; height:82px; margin:-41px 0 0 -41px; }
html.heat-cursor .tip { display:none; }
html.cursor-on, html.cursor-on * { cursor:none !important; }

/* a video: its still with Play on it, until pressed */
.play { position:relative; display:block; width:100%; height:100%; }
.play img { display:block; width:100%; height:100%; object-fit:cover; }
.play span { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); padding:9px 16px; background:var(--paper); color:var(--ink); }
@media (hover:hover) { .play:hover span { background:var(--ink); color:var(--paper); } }

/* the enlarged view: the piece in the middle; under it one rule in the ink, its name, what it is and where in the set on it, ← →
   at its end. On the glass pages the glass draws it (page.js): the page fades to its paper and the piece is drawn where it is */
#lb { position:fixed; inset:0; z-index:10; background:var(--paper); }
#lb:focus { outline:none; }
#lb[hidden] { display:none; }
#lb .lbm { position:absolute; inset:60px 5vw 98px; container-type:size; }
#lb .lbm > img { display:block; width:100%; height:100%; object-fit:contain; }
/* a video's player, contained at its own shape (--ar, works.js media) */
#lb .lbv { position:absolute; inset:0; margin:auto; width:min(100cqw, 100cqh * var(--ar, 1.7778)); height:min(100cqh, 100cqw / var(--ar, 1.7778)); }
#lb .lbv iframe { display:block; width:100%; height:100%; border:0; }
#lb .lbm .play img { object-fit:contain; }
#lb .play span { background:none; color:#fff; mix-blend-mode:difference; padding:0 0 3px; border-bottom:1px solid currentColor; }   /* no box */
@media (hover:hover) { #lb .play:hover span { background:none; color:#fff; } }
.gl #lb { background:transparent; }
body:has(> #lb:not([hidden])) #bar { visibility:hidden; }   /* its Close stands where the bar's Index is */
.gl #lb .lbm img { visibility:hidden; }
#lb .lbc { position:absolute; left:var(--pad); right:var(--pad); bottom:22px; margin:0; padding:14px 120px 0 0; border-top:.5px solid var(--ink); display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 16px; }
#lb .lbc b { font:400 26px/1 var(--serif); text-transform:none; letter-spacing:0; }
#lb .lbc i { font:italic 400 19px/1 var(--serif); text-transform:none; letter-spacing:0; color:var(--mute); }
#lb .lbc span { color:var(--mute); }
#lb .lbn { position:absolute; right:var(--pad); bottom:18px; display:flex; gap:6px; }
#lb .lbn button { min-width:44px; min-height:32px; font-size:16px; color:var(--mute); }
#lb .lbx { position:absolute; right:var(--pad); top:20px; color:var(--mute); padding:6px 0; }
@media (hover:hover) { #lb .lbn button:hover, #lb .lbx:hover { color:var(--ink); } }
@media (max-width:900px) {
  :root { --pad:16px; }
  #name { font-size:20px; }
  #bar { gap:12px; } #bar #theme { margin-left:4px; }   /* Index & About nearer the edge ("index çok solda", 2026-11-25) */
  #lb .lbm { inset:56px 0 110px; }
  #lb .lbc { bottom:58px; padding-right:0; }
}
