@import './ink.css';
@import './table-faces.css';
@import './paper-dialogs.css';
@import './site-theme-switch.css';
:root { color-scheme:light; background-color:#252923; background-image:linear-gradient(#101711a8,#121611be),url('/assets/optimized/carpet-fb1d9f722d41.webp'); background-position:center; background-size:cover; background-attachment:fixed; color:#34271d; font-family:Georgia,serif; }
*,*::before,*::after { box-sizing:border-box; }
html,body { margin:0; width:100%; min-height:100%; overflow-x:clip; }
html[data-mode='landscape'] { overflow:hidden; }
html:is([data-mode='portrait'],[data-mode='mobile-landscape']) { overflow-y:auto; }
[hidden] { display:none !important; }
.live-stage { position:relative; isolation:isolate; min-height:100dvh; width:100%; display:block; overflow:clip; }
html[data-desk-loading] .live-frame,html[data-desk-loading] .live-light,html[data-desk-loading] .optical-view { visibility:hidden; }
.live-stage:is([data-mode='portrait'],[data-mode='mobile-landscape']) { overflow:clip; }
.live-frame { position:relative; flex:none; }
.live-world { position:absolute; left:0; top:0; transform-origin:0 0; isolation:isolate; overflow:visible; }
.arranged-object { position:absolute; overflow:visible; touch-action:manipulation; }
.arranged-object[data-hidden='true'] { visibility:hidden; }
.arranged-visual { position:absolute; inset:0; transform-origin:center; transform:perspective(1800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(var(--rotation)); }
.arranged-visual > .object-art { position:absolute; display:block; max-width:none; pointer-events:none; user-select:none; filter:drop-shadow(3px 5px 4px #170d0870); }
.arranged-object[data-kind='table'] .arranged-visual { filter:drop-shadow(9px 13px 13px #100a06a0); }
.arranged-object:is([data-kind='table'],[data-kind='prop']) { pointer-events:none; }
.arranged-object[data-kind='artwork']:not([data-arrangement-id='notebook']):is(:hover,:focus-within) > .arranged-visual > .object-art,.arranged-object[data-active='true'] > .arranged-visual > .object-art { filter:url('#hairline-outline') drop-shadow(3px 5px 4px #170d0870); }
.arranged-object[data-arrangement-id='profile']:has(.photo-hit:is(:hover,:focus-visible)) > .arranged-visual > .object-art { filter:drop-shadow(3px 5px 4px #170d0870); }
.arranged-object[data-card='true']:is(:hover,:focus-within,[data-active='true']) { z-index:90 !important; }
.arranged-object[data-card='true'] .arranged-visual { transition:transform 160ms ease; }
.arranged-object[data-card='true']:is(:hover,:focus-within,[data-active='true']) .arranged-visual { transform:translateY(calc(var(--object-w) * -.16)) perspective(1800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(var(--rotation)) scale(1.12); }
.live-light { position:fixed; inset:0; pointer-events:none; z-index:100; background:radial-gradient(ellipse at var(--light-x,18%) var(--light-y,0%),#ffd19645 0%,#e9ae6b18 30%,transparent 64%),radial-gradient(ellipse at 50% 10%,transparent 40%,#100b072a 100%); transition:background 180ms ease; }
.live-stage[data-mode='portrait'] .live-light { background:radial-gradient(ellipse at 50% -4%,#ffe0ad30 0%,transparent 65%),linear-gradient(180deg,transparent 60%,#110a081a); }
.outline-definitions { position:absolute; pointer-events:none; }
dialog { width:min(780px,calc(100% - 24px)); max-height:90svh; overflow:auto; border:1px solid #8b765e; padding:clamp(18px,4vw,40px); background:#f5ebda; color:#30271e; font-family:var(--typewriter,'Courier New',monospace); }
dialog::backdrop { background:#100e0bc4; }
.dialog-header { display:flex; gap:12px; justify-content:space-between; align-items:center; }
.dialog-header h2 { margin:0; font-size:1.75rem; }
.dialog-header button { font:inherit; border:1px solid #8b765e; padding:8px 14px; background:transparent; cursor:pointer; }
dialog p { font-size:1rem; line-height:1.55; }
.resume-dialog-copy pre { font:400 .9rem/1.5 var(--typewriter,'Courier New',monospace); white-space:pre-wrap; overflow-wrap:anywhere; }
.resume-dialog-copy section+section { padding-top:1rem; border-top:1px solid #a28a68; }
.resume-pdf { display:block; width:100%; height:65dvh; border:1px solid #a28a68; background:#fff; }
.pdf-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:12px 0; }
.pdf-actions a { color:inherit; }
.pdf-download { background:#4a3527; color:#fff !important; padding:9px 12px; text-decoration:none; border-radius:3px; }
.resume-text-fallback { margin-top:12px; }
.photo-dialog-image { display:block; max-width:100%; max-height:72dvh; object-fit:contain; margin:16px auto 0; }
body:has(dialog[open]) { overflow:hidden; }
.live-stage[data-lamp-off='true'] .live-light { background:linear-gradient(#17141376,#100e0ba6); }
.arranged-object[data-arrangement-id='lamp'] { pointer-events:none; --switch-x:calc((487 - 55) / 1404 * 100%); --switch-y:calc((786 - 11) / 982 * 100%); --switch-width:calc(82 / 1404 * 100%); }
/* Center at the actual 4:30 seam in the 1536 × 1024 lamp artwork.
   The mount's transverse axis follows the local seam tangent and its
   longitudinal axis follows the projected radial direction of the base.
   Keep the original 82 × 132 rocker and finish, seated in a dark cutout. */
.lamp-switch { position:absolute; left:var(--switch-x); top:var(--switch-y); width:var(--switch-width); height:calc(132 / 982 * 100%); transform:translate(-50%,-50%) matrix(.70710678,-.67175144,.70710678,.60924681,0,0); padding:calc(var(--object-w) * .004); border:1px solid #38200f; border-radius:15%; background:linear-gradient(155deg,#c29450,#74502b 40%,#36200f 52%,#a8753e 96%); box-shadow:0 0 0 calc(var(--object-w) * .0015) #2b180de6,inset 0 1px 1px #f5d397aa,inset 0 -1px 1px #27160db0,0 1px 1px #251508aa; cursor:pointer; pointer-events:auto; }
.lamp-rocker { display:grid; grid-template-rows:1fr 1fr; width:100%; height:100%; align-items:center; border-radius:10%; overflow:hidden; color:#ead6ad; font:700 calc(var(--object-w) * .025)/1 var(--typewriter,'Courier New',monospace); text-shadow:0 1px 1px #100807; border:1px solid #180c06; box-shadow:inset 0 1px 1px #f8e5bc55; background:linear-gradient(180deg,#55402b 0%,#3c2a1d 47%,#1f160e 53%,#281a10 100%); transform:perspective(100px) rotateX(12deg); transition:transform 150ms ease,background 150ms ease; }
.lamp-rocker > span { display:grid; place-items:center; height:100%; }
.lamp-switch[aria-pressed='true'] .lamp-switch-on,.lamp-switch[aria-pressed='false'] .lamp-switch-off { box-shadow:inset 0 2px 4px #0b0605ca; background:#130d0880; color:#fff0c9; }
.lamp-switch[aria-pressed='false'] .lamp-rocker { background:linear-gradient(180deg,#281a10 0%,#1f160e 47%,#3c2a1d 53%,#55402b 100%); transform:perspective(100px) rotateX(-12deg); }
.lamp-switch:hover { box-shadow:inset 0 1px 1px #f9dca5,0 1px 3px #120803,0 0 2px #f8dca1; }
.lamp-switch:focus-visible { outline:2px dashed #d6be93; outline-offset:4px; }
.arranged-object[data-arrangement-id='magnifier'] { pointer-events:auto; cursor:grab; touch-action:none; z-index:94 !important; }
.arranged-object[data-arrangement-id='magnifier'][data-dragging='true'] { cursor:grabbing; }
.arranged-object[data-arrangement-id='magnifier']:not([data-dragging='true']):is(:hover,:focus-visible) > .arranged-visual > .object-art { filter:url('#hairline-outline') drop-shadow(3px 5px 4px #170d0870); }
.optical-view { position:absolute; overflow:hidden; border-radius:50%; z-index:97; pointer-events:none; isolation:isolate; background:#42443a; }
.optical-view::after { content:''; position:absolute; inset:0; border-radius:50%; background:radial-gradient(ellipse at 30% 22%,#fff7d73d,transparent 55%),linear-gradient(138deg,transparent 25%,#fff6db25 35%,transparent 55%); box-shadow:inset 0 0 9px #171e1877; }
.optical-world { pointer-events:none; filter:brightness(1.07) saturate(.94); }
.desk-controls { position:absolute; z-index:80; transform:translateX(-50%); width:var(--control-width); display:block; pointer-events:none; }
.desk-controls > * { position:absolute; left:50%; transform:translate(-50%,-50%); pointer-events:auto; }
.desk-controls .carved-logo { top:25%; display:block; width:min(calc(var(--control-gap) / 4 * .77),61.25%); aspect-ratio:1; pointer-events:none; }
.desk-controls .carved-logo svg { display:block; width:100%; height:100%; overflow:visible; }
.desk-controls .carved-logo .bd-logo-body { fill:#211007; filter:url('#carve-wood'); }
/* The counters of the B expose the real tabletop, not a painted fill. */
.desk-controls .carved-logo .bd-logo-glasses { display:none; }
.carved-tooltip { position:absolute; left:calc(var(--switch-x) + var(--switch-width) / 2 + 8px); top:var(--switch-y); transform:translateY(-50%); width:max-content; padding:.42em .65em; background:linear-gradient(125deg,#eee0bc,#d6b78c); box-shadow:1px 2px 5px #2111089c; border:1px solid #aa825b; color:#593a25; font:700 calc(var(--object-w) * .037)/1.2 var(--typewriter,'Courier New',monospace); text-decoration:none; pointer-events:none; opacity:0; visibility:hidden; transition:opacity 100ms ease; z-index:3; }
.lamp-switch:is(:hover,:focus-visible) + .carved-tooltip { opacity:1; visibility:visible; }
.carved-languages { top:50%; display:grid; grid-template-columns:repeat(2,1fr); grid-template-rows:repeat(2,1fr); width:min(calc(var(--control-gap) / 4 * .85),63%); aspect-ratio:1; position:absolute; }
.carved-languages button { position:relative; display:grid; place-items:center; padding:0; border:0; background:none; cursor:pointer; z-index:1; min-width:0; }
.carved-languages button[data-language='en'] { grid-area:1 / 1; }
.carved-languages button[data-language='tr'] { grid-area:2 / 2; }
.carved-languages button svg { width:100%; height:100%; overflow:visible; }
.carved-languages button[data-language='en'] svg { transform:translate(10%,9%); }
.carved-languages button[data-language='tr'] svg { transform:translate(-8%,-9%); }
.carved-languages .carve-letter { fill:none; stroke:#211007; stroke-width:3.5; stroke-linecap:square; stroke-linejoin:bevel; filter:url('#carve-wood'); }
.carved-languages button[aria-pressed='true'] .carve-letter { stroke-width:5.8; filter:url('#carve-wood-deep'); }
.carved-languages button:is(:hover,:focus-visible) .carve-letter { filter:url('#carve-wood-deep'); }
.carved-languages button:focus-visible { outline:1px dashed #e3bb7e; outline-offset:2px; }
.carved-slash { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.carved-slash .carve-cut { fill:#211007; filter:url('#carve-wood'); }
.carve-scratches { fill:none; stroke:#d1a06c; stroke-width:.55; stroke-linecap:round; stroke-linejoin:round; opacity:.58; }
.carved-slash .carve-scratches { stroke-width:.65; }
.carved-languages button[aria-pressed='true'] .carve-scratches { opacity:.9; stroke:#e8b97f; }
.arranged-object[data-card='true'] .arranged-visual::after { content:''; position:absolute; inset:1.5% 2% 2%; z-index:3; pointer-events:none; border-radius:2%; background:linear-gradient(132deg,#dfc9a945 0 1%,transparent 4% 95%,#513a2950 99%),repeating-linear-gradient(96deg,transparent 0 23%,#e0cba319 24% 24.3%,transparent 24.6% 40%); box-shadow:inset 0 0 2px #62452855; mix-blend-mode:multiply; }
.notebook-ink { z-index:6; pointer-events:none; }
.notebook-hit { z-index:5 !important; }
.notebook-ink a { pointer-events:auto; align-self:flex-start; max-width:100%; }
.notebook-ink .notebook-gap { pointer-events:auto; cursor:default; }
.arranged-object[data-arrangement-id='notebook']:has(.notebook-hit:is(:hover,:focus-visible)) > .arranged-visual > .object-art { filter:url('#hairline-outline') drop-shadow(3px 5px 4px #170d0870); }
.physical-dialog-item { position:relative; width:min(90vw,calc(86dvh * var(--physical-ratio,1))); aspect-ratio:var(--physical-ratio,1); filter:drop-shadow(0 14px 18px #170b06b0); }
.physical-dialog-item .arranged-visual { transform:none; }
.physical-dialog-item .object-art { filter:none; }
.physical-dialog-item .notebook-ink a { pointer-events:auto; }
.physical-dialog-item .archive-photo-main { cursor:default; }
.profile-dialog { width:min(92vw,1000px,calc(88dvh * 297 / 210)); }
.profile-sheet { --profile-padding:clamp(22px,4vw,48px); position:relative; container-type:inline-size; padding:var(--profile-padding); min-height:min(58vh,calc(92vw * 210 / 297)); max-height:86dvh; overflow:auto; background-color:#e3c9a4; /* Crop the unbound writing surface from the original right-hand paper. */ background-image:radial-gradient(ellipse at 48% 42%,#f9e5c431 40%,#80604426 100%),url('/assets/optimized/profile-folder-89ec7a557431.webp'); background-size:100% 100%,calc(1536 / 640 * 100%) calc(1024 / 810 * 100%); background-position:center,calc(790 / (1536 - 640) * 100%) calc(120 / (1024 - 810) * 100%); border:1px solid #aa8d63; border-radius:2px 3px 7px 2px; box-shadow:inset 0 0 8px #885f3738,2px 4px 0 -1px #c3a47b,3px 6px 0 -2px #8b704d,0 15px 24px #170b06ad; scrollbar-width:thin; scrollbar-color:#795336 #d1b694; }
.profile-sheet .profile-ink { position:relative; inset:auto; width:100%; --object-w:100cqw; --postit-width:clamp(94px,20cqw,150px); --postit-height:calc(var(--postit-width) * .75); }
.profile-sheet .profile-heading-row { align-items:start; gap:5%; }
.profile-sheet h2 { margin:0; color:var(--ink-title-color); font:400 clamp(1.7rem,4.8cqw,2.8rem)/1.08 'Permanent Marker',cursive; letter-spacing:-.035em; align-self:center; }
.profile-sheet .profile-divider { width:100%; height:5px; margin:12px 0 16px; }
.profile-sheet .profile-copy { font-size:clamp(1rem,2.65cqw,1.26rem); line-height:1.45; }
.profile-sheet .profile-copy p { font-size:inherit; line-height:inherit; margin-bottom:0; }
.profile-sheet .profile-copy .hero-role { font-size:clamp(1.12rem,3.2cqw,1.48rem); line-height:1.32; margin:0 0 1em; }
.profile-sheet .profile-postit { justify-self:end; transform:translate(calc(var(--postit-width) * -.16),calc(var(--postit-height) * .17 - var(--profile-padding))) rotate(3deg); }
@media(max-width:560px) { .profile-dialog { width:92vw; } .profile-sheet .profile-heading-row { gap:8px; } .profile-sheet { --profile-padding:22px; } }
#notebook-dialog .paper-close { top:7%; right:9%; }
.photo-print { padding:3rem 1.1rem 2.8rem; background:linear-gradient(130deg,#e8dcc1,#cbb592); box-shadow:0 12px 30px #170b06b0; }
.photo-dialog-image { max-width:80vw; max-height:72dvh; margin:0; }
@media(prefers-reduced-motion:reduce) { .arranged-visual { transition:none !important; } }
