/* Yunushan Kandiş — a personal poster, built from type, one real photo and playable work. */
:root {
  --bg: #e9eadc;
  --paper: #f6f5ea;
  --ink: #172018;
  --muted: #52604c;
  --accent: #d4ee58;
  --accent-soft: #e2edab;
  --on-accent: #172018;
  --border: #b9c0ae;
  --surface: #f6f5ea;
  --overlay: rgba(246,245,234,.96);
  --panel: #172018;
  --panel-text: #f4f2e6;
  --panel-muted: #afbba8;
  --coral: #ff805f;
  --bug: #172018;
  --bug-head: #47663c;
  --gold: #df834d;
  --gold-head: #8d4f31;
  --warn: #c63724;
  --bg-grid: #d2dcc2;
  --font-sans: 'Manrope', 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #202922;
  --paper: #273229;
  --ink: #f4f2e6;
  --muted: #bbcab5;
  --accent: #d4ee58;
  --accent-soft: #465639;
  --on-accent: #172018;
  --border: #52634f;
  --surface: #28332a;
  --overlay: rgba(32,41,34,.96);
  --panel: #101812;
  --panel-text: #f4f2e6;
  --panel-muted: #afbba8;
  --coral: #e98668;
  --bug: #d4ee58;
  --bug-head: #8cb24d;
  --gold: #f9a15b;
  --gold-head: #a56031;
  --warn: #ffaf90;
  --bg-grid: #445745;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img, canvas, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #172018; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
[hidden] { display: none !important; }
.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: -80px; left: 24px; z-index: 100; padding: 10px 18px; background: var(--accent); color: #172018; }
.skip-link:focus { top: 12px; }
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: var(--coral); transform: scaleX(0); transform-origin: left; z-index: 80; }

.site-header { position: sticky; top: 0; z-index: 50; background: #172018; color: #f5f3e8; border-bottom: 1px solid #596252; }
.header-inner { display: flex; align-items: center; gap: 30px; height: 78px; padding-inline: 5vw; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 13px; color: #f5f3e8; text-decoration: none; }
.logo-mark { display: grid; place-items: center; height: 44px; width: 44px; background: var(--accent); color: #172018; font: 800 1.6rem/1 var(--font-display); letter-spacing: -.04em; transform: rotate(-7deg); }
.logo-text { font: 700 .75rem/1.25 var(--font-sans); max-width: 70px; }
.index-label { display: none; }
.nav { display: flex; align-items: center; gap: clamp(12px,1.5vw,28px); margin-left: auto; }
.nav a { display: inline-flex; align-items: baseline; gap: 5px; min-height: 44px; align-items: center; color: #e8ecd8; font: 600 .73rem/1 var(--font-sans); text-decoration: none; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.nav-number { color: #8f9e8b; font: 400 .57rem/1 var(--font-mono); }
.sidebar-note { display: none; }
.header-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 4px; border-left: 1px solid #53604f; padding-left: 17px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 44px; border: 0; padding: 0; background: transparent; color: #f5f3e8; font: 500 .75rem/1 var(--font-mono); }
.icon-btn:hover { color: var(--accent); }
.theme-icon-sun { display: none; }
:root[data-theme=dark] .theme-icon-sun { display: block; }
:root[data-theme=dark] .theme-icon-moon { display: none; }
.menu-btn { display: none; }

.page { width: 100%; overflow: clip; }
.hero, .section, .site-footer { padding-inline: max(5vw, calc((100vw - 1600px)/2)); }
.hero { position: relative; min-height: min(820px, calc(100svh - 78px)); padding-top: 36px; background: var(--bg); overflow: hidden; }
.hero::after { content: ''; position: absolute; width: 28vw; height: 28vw; min-width: 330px; min-height: 330px; right: -11vw; top: 8vw; border: 1px solid var(--border); border-radius: 50%; opacity: .65; pointer-events: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-bottom: 15px; border-bottom: 2px solid var(--ink); font: 500 .68rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.edition { color: var(--muted); white-space: nowrap; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: clamp(22px,5vw,95px); align-items: center; padding: clamp(40px,6vw,100px) 0 58px; }
.hero-copy { position: relative; z-index: 2; }
.hello { display: inline-block; padding: 5px 10px; background: var(--ink); color: var(--bg); font: 500 .7rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; transform: rotate(-3deg); margin-bottom: 15px; }
h1 { max-width: 100%; font: 800 clamp(90px,10.7vw,185px)/.76 var(--font-display); text-transform: uppercase; letter-spacing: -.045em; }
h1 span { display: block; }
#hero-surname { color: var(--ink); margin-left: clamp(8px,2vw,40px); }
.hero-role { display: inline-block; margin-top: 40px; padding: 7px 14px 9px; background: var(--coral); color: #172018; font: 700 clamp(22px,2.6vw,34px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .015em; transform: rotate(-2deg); }
.hero-intro { max-width: 560px; margin-top: 30px; font-size: clamp(1rem,1.25vw,1.15rem); line-height: 1.8; }
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 27px; margin-top: 27px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 21px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 .8rem/1.2 var(--font-sans); text-decoration: none; text-transform: uppercase; letter-spacing: .025em; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn:hover { background: var(--accent); color: #172018; border-color: #172018; }
.btn:disabled { opacity: .5; cursor: default; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font: 700 .8rem/1.2 var(--font-sans); text-transform: uppercase; text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-style: wavy; }
.portrait-card { position: relative; width: min(100%,360px); justify-self: end; transform: rotate(4deg); }
.portrait-card::before { content: ''; position: absolute; inset: 14px -15px -15px 14px; z-index: -1; background: var(--ink); }
.portrait-wrap { padding: 10px; background: var(--coral); }
.portrait-wrap img { width: 100%; aspect-ratio: 1/1.13; object-fit: cover; object-position: center 40%; filter: contrast(1.08) saturate(.88); }
.portrait-card figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px 2px; color: #172018; font: 500 .68rem/1.4 var(--font-mono); text-transform: uppercase; }
.photo-index { font-weight: 700; }
.hero-scope { position: relative; z-index: 1; display: flex; justify-content: flex-end; border-top: 2px solid var(--ink); padding: 16px 0 25px; font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .08em; }
.hero-scope::before { content: 'YK / 2026'; margin-right: auto; }

.section { display: grid; grid-template-columns: minmax(150px,25%) minmax(0,1fr); gap: clamp(30px,5vw,100px); padding-top: clamp(78px,9vw,150px); padding-bottom: clamp(85px,10vw,160px); scroll-margin-top: 76px; }
.section-label { min-width: 0; }
.section-number { display: block; margin-bottom: 16px; font: 500 .7rem/1.5 var(--font-mono); letter-spacing: .06em; }
h2 { max-width: 480px; font: 800 clamp(56px,6.4vw,110px)/.83 var(--font-display); text-transform: uppercase; letter-spacing: -.025em; }
.section-content { min-width: 0; }
.section-lead { max-width: 650px; font-size: 1rem; line-height: 1.8; }

.project-section { background: var(--panel); color: var(--panel-text); }
.project-section .section-number, .project-section .project-number { color: var(--accent); }
.project-section .section-lead, .project-category, .project-body > p:not(.project-category), .project-section .tags { color: var(--panel-muted); }
.projects-grid { margin-top: 30px; border-top: 2px solid var(--panel-text); }
.project { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 20px; padding: 35px 0 43px; border-bottom: 1px solid #596757; }
.project-number { padding-top: 8px; font: 500 .8rem/1.3 var(--font-mono); }
.project-category { font: 500 .7rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.project h3 { margin-top: 5px; font: 800 clamp(58px,7vw,120px)/.9 var(--font-display); text-transform: uppercase; letter-spacing: -.025em; }
.project-body > p:not(.project-category) { max-width: 610px; margin-top: 17px; line-height: 1.8; }
.tags { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 18px; font: 500 .7rem/1.5 var(--font-mono); text-transform: uppercase; }
.tag + .tag::before { content: '/'; margin-right: 14px; opacity: .5; }
.project-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 23px; }
.project-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; background: var(--accent); color: #172018; font: 700 .76rem/1.2 var(--font-sans); text-decoration: none; text-transform: uppercase; }
.project-links a:hover { background: var(--coral); }

.arcade-section { background: var(--coral); color: #172018; }
.arcade-section .section-lead { max-width: 620px; }
.game-details { margin-top: 28px; border: 2px solid #172018; }
.game-details > summary { display: flex; align-items: center; gap: 10px 20px; padding: 17px 22px; background: #172018; color: #f4f2e6; cursor: pointer; list-style: none; font: 700 1rem/1.3 var(--font-sans); text-transform: uppercase; }
.game-details > summary::-webkit-details-marker { display: none; }
.game-details > summary:hover { background: #2a3d2d; }
.summary-note { margin-left: auto; color: #bdc9b5; font: 400 .7rem/1.4 var(--font-mono); text-transform: none; }
.details-symbol { color: var(--accent); font-size: 1.6rem; line-height: 1; }
.game-details[open] .details-symbol { transform: rotate(45deg); }
.game-hud { display: flex; justify-content: space-between; gap: 10px; padding: 13px 20px; background: #172018; border-top: 1px solid #596757; }
.hud-item { display: flex; gap: 10px; color: #c4cebb; font: 500 .72rem/1.5 var(--font-mono); text-transform: uppercase; }
.hud-item b { color: var(--accent); font-weight: 500; }
.hud-item.warn b { color: var(--coral); }
.game-screen { position: relative; width: 100%; aspect-ratio: 1.7; min-height: 320px; overflow: hidden; background: var(--paper); }
#game { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: manipulation; user-select: none; }
#game:focus-visible { outline-offset: -4px; }
.game-screen.playing #game { cursor: crosshair; }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; background: var(--overlay); overflow-y: auto; color: var(--ink); }
.go-inner { display: flex; align-items: center; flex-direction: column; width: 100%; min-width: 0; }
.go-title { max-width: 100%; margin-bottom: 8px; font: 800 clamp(45px,6vw,75px)/.95 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.go-text { width: min(100%,340px); margin-bottom: 20px; color: var(--muted); font-size: .9rem; }
.go-score { color: var(--ink); font: 800 5rem/1 var(--font-display); }
.go-best { margin: 8px 0 14px; font-size: .75rem; }
.go-bug { width: 42px; margin-bottom: 15px; }
.bug-stack { position: relative; aspect-ratio: 9/10; }
.bug-stack svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bug-stack .f1 { display: none; }
.game-help { padding: 10px 17px; background: #172018; color: #c4cebb; font: 400 .68rem/1.5 var(--font-mono); }

.about-section { background: var(--paper); }
.about-text { max-width: 820px; }
.about-text p { font-size: clamp(1.25rem,2vw,1.7rem); line-height: 1.65; letter-spacing: -.025em; }
.about-text p + p { margin-top: 24px; color: var(--muted); font-size: clamp(1rem,1.3vw,1.18rem); letter-spacing: 0; }
.education { margin-top: 68px; }
.mini-title { padding-bottom: 10px; border-bottom: 2px solid var(--ink); font: 700 .72rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.edu-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; margin-top: 25px; }
.edu-card { min-width: 0; }
.edu-icon { display: none; }
.edu-degree { color: var(--muted); font: 400 .75rem/1.6 var(--font-mono); }
.edu-school { margin-top: 12px; font: 700 1.1rem/1.45 var(--font-sans); }
.edu-field { margin-top: 7px; color: var(--muted); font-size: .85rem; }

.experience-section { background: var(--bg); }
.timeline { border-top: 2px solid var(--ink); }
.tl-item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.tl-card { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 3px 20px; }
.tl-meta { grid-column: 1; grid-row: 1/5; }
.tl-date { color: var(--muted); font: 500 .75rem/1.5 var(--font-mono); }
.tl-role { grid-column: 2; font: 700 clamp(1.15rem,1.55vw,1.45rem)/1.35 var(--font-sans); }
.tl-company, .tl-desc { grid-column: 2; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.tl-card .tags { grid-column: 2; margin-top: 8px !important; color: var(--muted); }
.tl-node { display: none; }
.tl-badge { display: block; font-size: .7rem; }

.skills-section { background: var(--accent); color: #172018; }
.skills-section .section-number { color: #405021; }
.skills-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(20px,3vw,50px); }
.skill-group h3 { padding-bottom: 13px; border-bottom: 2px solid #172018; font: 800 1.8rem/1 var(--font-display); text-transform: uppercase; }
.skill-group h3 small { display: none; }
.skill { padding: 11px 0; border-bottom: 1px solid #8da041; }
.skill-row { display: flex; flex-direction: column; gap: 3px; }
.skill-name { font-weight: 700; font-size: .85rem; }
.skill-level { color: #405021; font: 400 .69rem/1.4 var(--font-mono); }
.legend { margin-top: 25px; color: #405021; font: 400 .7rem/1.5 var(--font-mono); }

.contact-section { min-height: 570px; background: var(--panel); color: var(--panel-text); }
.contact-section .section-number { color: var(--accent); }
.contact-title { font: 800 clamp(62px,8vw,132px)/.82 var(--font-display); text-transform: uppercase; letter-spacing: -.025em; }
.contact-lead { max-width: 550px; margin-top: 25px; color: var(--panel-muted); font-size: 1rem; }
.email-row { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 25px; margin-top: 40px; }
.email-link { color: var(--accent); font: 700 clamp(1.2rem,2.3vw,2rem)/1.3 var(--font-sans); overflow-wrap: anywhere; text-decoration-thickness: 2px; }
.copy-btn { min-height: 44px; padding: 9px 15px; border: 1px solid var(--panel-muted); background: transparent; color: var(--panel-text); font-size: .75rem; }
.copy-btn:hover { background: var(--accent); color: #172018; }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: 25px; }
.socials { display: flex; gap: 20px; }
.social-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; text-decoration: underline; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; padding-bottom: 35px; background: var(--panel); color: var(--panel-muted); border-top: 1px solid #53624f; font: 400 .7rem/1.5 var(--font-mono); }
.site-footer a { color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 1120px) {
  .header-inner { gap: 18px; }
  .nav { gap: 12px; }
  .nav a { font-size: .68rem; }
  .hero-grid { grid-template-columns: minmax(0,1.2fr) minmax(240px,.75fr); gap: 25px; }
  h1 { font-size: clamp(78px,10vw,135px); }
  .section { grid-template-columns: minmax(130px,23%) minmax(0,1fr); gap: 35px; }
}
@media (max-width: 900px) {
  .header-inner { height: 70px; padding-inline: 5vw; }
  .logo-mark { height: 40px; width: 40px; }
  .logo-text { max-width: none; }
  .header-actions { margin-left: auto; border-left: 0; }
  .menu-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
  .menu-btn span { width: 19px; height: 2px; background: currentColor; }
  .menu-btn[aria-expanded=true] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded=true] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { display: none; position: absolute; inset: 69px 0 auto; margin: 0; padding: 20px 5vw 25px; background: #172018; border-bottom: 1px solid #596757; }
  .nav.open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 25px; }
  .nav a { font-size: .85rem; border-bottom: 1px solid #37473a; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: minmax(0,1.2fr) minmax(180px,.8fr); }
  .portrait-card { width: min(100%,280px); }
  .section { grid-template-columns: minmax(0,1fr); gap: 40px; }
  h2 { max-width: 700px; }
  .skills-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 68px; }
  .header-inner { padding-inline: 20px; }
  .logo-text { max-width: 70px; }
  .hero, .section, .site-footer { padding-inline: 22px; }
  .hero { padding-top: 22px; }
  .hero::after { min-width: 240px; min-height: 240px; right: -160px; top: 170px; }
  .page-heading { font-size: .58rem; }
  .edition { font-size: .52rem; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 30px; padding: 38px 0 45px; }
  .hello { font-size: .62rem; }
  h1 { font-size: clamp(72px,16vw,112px); line-height: .79; }
  #hero-surname { margin-left: 12px; }
  .hero-role { margin-top: 30px; font-size: 26px; }
  html[lang=en] .hero-role { font-size: 22px; }
  .hero-intro { max-width: 540px; margin-top: 23px; font-size: .96rem; }
  .hero-links { margin-top: 23px; }
  .portrait-card { align-self: flex-end; width: min(58vw,230px); margin-right: 10px; }
  .hero-scope { font-size: .61rem; }
  .section { gap: 27px; padding-block: 75px 85px; scroll-margin-top: 68px; }
  h2 { font-size: clamp(58px,12vw,82px); }
  .section-number { margin-bottom: 10px; }
  .project { grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding: 25px 0 32px; }
  .project h3 { font-size: clamp(48px,11vw,75px); }
  .project-body > p:not(.project-category) { font-size: .88rem; }
  .game-details > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .summary-note { grid-column: 1/-1; margin-left: 0; width: auto; }
  .details-symbol { grid-column: 2; grid-row: 1; margin-left: 0; }
  .game-screen { min-height: 330px; }
  .game-hud { padding: 11px; }
  .hud-item { flex-direction: column; gap: 1px; font-size: .61rem; }
  .game-help { font-size: .6rem; }
  .edu-list { grid-template-columns: 1fr; gap: 22px; }
  .education { margin-top: 40px; }
  .tl-card { grid-template-columns: 1fr; gap: 4px; }
  .tl-meta, .tl-role, .tl-company, .tl-desc, .tl-card .tags { grid-column: 1; grid-row: auto; }
  .tl-meta { margin-bottom: 5px; }
  .skills-grid { grid-template-columns: 1fr; gap: 27px; }
  .contact-title { font-size: clamp(65px,13vw,94px); }
  .site-footer { font-size: .6rem; }
}
@media (max-width: 390px) {
  .header-inner { padding-inline: 16px; }
  .hero, .section, .site-footer { padding-inline: 18px; }
  .logo-text { display: none; }
  h1 { font-size: 16vw; }
  .hero-role { font-size: 22px; }
  html[lang=en] .hero-role { font-size: 19px; }
  .btn { padding-inline: 15px; }
  .portrait-card { width: 65vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
