@font-face { font-family: 'Chakra Petch'; font-weight: 300; font-display: swap; src: url('/fonts/chakra-petch-300.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 400; font-display: swap; src: url('/fonts/chakra-petch-400.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url('/fonts/chakra-petch-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-mono-700.woff2') format('woff2'); }

:root { color-scheme: light dark; }
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

body {
  margin: 0;
  font: 400 18px/1.55 'Chakra Petch', sans-serif;
  color: light-dark(#0a1a38, #dfe8f5);
  background: light-dark(#f4f7fd, #0e1420);
}

[hidden] { display: none !important; }

a { color: light-dark(#004aad, #8ea8d1); text-underline-offset: 4px; }
a:hover { color: light-dark(#f4f7fd, #0e1420); background: light-dark(#004aad, #8ea8d1); }
a.home { display: flex; gap: 14px; align-items: center; color: inherit; background: none; font-size: 22px; font-weight: 700; text-decoration: none; }
a.home img { display: block; }

button { min-height: 44px; padding: 0 14px; font: inherit; color: inherit; background: none; border: 1px solid light-dark(#004aad, #8ea8d1); cursor: pointer; }
button:hover, button[aria-pressed='true'] { color: light-dark(#f4f7fd, #0e1420); background: light-dark(#004aad, #8ea8d1); }
a:focus-visible, button:focus-visible { outline: 2px solid light-dark(#004aad, #ffd84d); outline-offset: 2px; }

.page { max-width: 1200px; margin: 0 auto; padding: 28px max(24px, env(safe-area-inset-right)) 72px max(24px, env(safe-area-inset-left)); }
header { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid light-dark(#b9c8e6, #2b3a55); }

.themes { display: flex; gap: 8px; }
.themes button { display: grid; place-items: center; width: 44px; padding: 0; }
.themes svg { fill: none; stroke: light-dark(#0a1a38, #dfe8f5); stroke-width: 1.6; }
.themes button:hover svg, .themes button[aria-pressed='true'] svg { stroke: light-dark(#f4f7fd, #0e1420); }

h1 { margin: 64px 0 20px; font-size: clamp(34px, 6vw, 56px); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; }
.start { margin-top: 48px; }
.lead { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; max-width: 46ch; margin: 0 0 4px; }
.field { container-type: inline-size; position: relative; margin: 48px 0 24px; overflow: hidden; }
.field pre { font-size: calc(100cqw / 219 / 0.6); line-height: 1.14; color: light-dark(#004aad, #8ea8d1); }
.field pre.narrow { font-size: calc(100cqw / 120 / 0.6); }
.field #ink { -webkit-text-stroke: 0.16em transparent; font-size: calc(100cqw / 438 / 0.6); position: absolute; inset: 0; font-weight: 700; color: transparent; background: linear-gradient(90deg, light-dark(#004aad, #7db0ff) 27%, light-dark(#0b6b3a, #5fd68a) 27% 51%, light-dark(#8a4b00, #ffb454) 51% 74%, light-dark(#8a1f5c, #ff8ec7) 74%); background-clip: text; }
.field #ink.narrow { font-size: calc(100cqw / 240 / 0.6); }
.field:has(a:focus-visible) { outline: 2px solid light-dark(#004aad, #ffd84d); outline-offset: 4px; }
#open, #open:hover { position: absolute; inset: 0; width: 100%; background: none; border: 0; }
.cell, .cell:hover { position: absolute; width: 30.56%; height: 60.97%; overflow: hidden; color: transparent; background: none; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); transform: translate(-50%, -50%); }
.one { left: 15.62%; top: 34.76%; }
.two { left: 38.54%; top: 65.24%; }
.three { left: 61.46%; top: 34.76%; }
.four { left: 84.38%; top: 65.24%; }

h2 { margin: 0 0 14px; font-size: 23px; line-height: 1.35; }
p { margin: 0 0 14px; max-width: 62ch; }

pre { margin: 0; overflow: hidden; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-ligatures: none; white-space: pre; }

.block { margin-top: 72px; }
.wide p { max-width: none; }
.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 24px 48px; align-items: center; margin-top: 72px; }
.rule { grid-column: 1 / -1; max-width: none; margin: 0 0 8px; overflow: hidden; font: 700 16px/1.4 'IBM Plex Mono', ui-monospace, monospace; font-variant-ligatures: none; white-space: nowrap; mask-image: linear-gradient(90deg, #000 30%, transparent); }
.bellek .rule, .bellek h2 a, .bellek .clip { color: light-dark(#004aad, #7db0ff); }
.whatsapp .rule, .whatsapp h2 a, .whatsapp .clip { color: light-dark(#0b6b3a, #5fd68a); }
.pyramid .rule, .pyramid h2 a, .pyramid .clip { color: light-dark(#8a4b00, #ffb454); }
.devops .rule, .devops h2, .devops .clip { color: light-dark(#8a1f5c, #ff8ec7); }
.project h2 a:hover { color: light-dark(#f4f7fd, #0e1420); }
.whatsapp .clip { width: 100%; max-width: 460px; justify-self: center; }
#projects { margin: 0 0 14px; font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -0.02em; }
.project h2 { margin-bottom: 10px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; }
.project h2 a { text-decoration-thickness: 1px; }
.clip { container-type: inline-size; min-width: 0; margin: 0; border: 1px solid; }
.clip pre { padding: 16px 0 8px 2cqw; font-size: calc(96cqw / 64 / 0.6); line-height: 1.25; }
[data-clip='bellek'] pre { font-size: calc(96cqw / 104 / 0.6); }
[data-clip='whatsapp'] pre { font-size: calc(96cqw / 44 / 0.6); }
.clip pre.narrow { line-height: 1.2; }
[data-clip='bellek'] pre.narrow { font-size: calc(96cqw / 44 / 0.6); }
.project.wide { grid-template-columns: minmax(0, 1fr); }
.clip figcaption { display: flex; gap: 16px; align-items: center; padding: 10px 14px; }
.clip button { min-width: 92px; border-color: currentColor; }
.bar { overflow: hidden; font: 14px 'IBM Plex Mono', ui-monospace, monospace; white-space: nowrap; }

.links { display: flex; flex-wrap: wrap; gap: 8px; margin-inline: -9px; }
.links a { display: grid; place-items: center; width: 44px; height: 44px; }
.links svg { fill: currentColor; }

footer { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; margin-top: 72px; padding-top: 20px; border-top: 1px solid light-dark(#004aad, #8ea8d1); }
.mail { margin-left: auto; }
.text h2 { margin-top: 36px; }
.text li { max-width: 62ch; }

@media (max-width: 760px) {
  h1 { margin-top: 40px; }
  .mail { margin-left: 0; }
  .field #ink { background: linear-gradient(light-dark(#004aad, #7db0ff) 60%, light-dark(#8a4b00, #ffb454) 60%) left / 50% 100% no-repeat, linear-gradient(light-dark(#0b6b3a, #5fd68a) 40%, light-dark(#8a1f5c, #ff8ec7) 40%) right / 50% 100% no-repeat; background-clip: text; }
  .cell, .cell:hover { width: 57.03%; height: 38.97%; }
  .one { left: 28.61%; top: 40.26%; }
  .two { left: 71.39%; top: 20.77%; }
  .three { left: 28.61%; top: 79.23%; }
  .four { left: 71.39%; top: 59.74%; }
  .project { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
}
