/* halilaltuntas.com — stiller
   Renkler: petrol mürekkep, sis grisi zemin, fiş kâğıdı, fosforlu kalem sarısı. */
:root {
  --ink: #0e2b36;
  --ink-soft: #46606a;
  --mist: #e8eeee;
  --paper: #fcfcf9;
  --marker: #ffe04d;
  --cyan: #2fa9d0;
  --line: rgba(14, 43, 54, 0.18);
  --line-light: rgba(252, 252, 249, 0.2);
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --band: clamp(64px, 10vw, 136px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.04; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.15; letter-spacing: -0.015em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 2px; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 10; }
.skip:focus { top: 12px; }

/* Üst bölüm */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand-role { display: block; font-family: var(--body); font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); font-size: 0.98rem; }
.site-nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { border-bottom-color: var(--ink); }
.lang { text-decoration: none; white-space: nowrap; border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 13px; font-weight: 600; font-size: 0.85rem; }
.lang:hover { background: var(--ink); color: var(--paper); }

/* Giriş */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(32px, 6vw, 80px) var(--band); }
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 6.25rem); line-height: 0.97; letter-spacing: -0.04em; font-weight: 800; }
.hero-text { margin-top: clamp(22px, 3vw, 36px); max-width: 34em; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 600; text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.button.solid { background: var(--ink); color: var(--paper); }
.button.solid:hover { background: var(--marker); color: var(--ink); }
.button:not(.solid):hover { background: var(--ink); color: var(--paper); }

/* Fiş: sayfanın imzası */
.printer { justify-self: center; width: min(100%, 370px); }
.printer-slot { position: relative; z-index: 1; height: 26px; border-radius: 10px; background: var(--ink); box-shadow: inset 0 -9px 0 rgba(0, 0, 0, 0.28); }
.printer-feed { overflow: hidden; margin-inline: 14px; padding-bottom: 20px; margin-top: -9px; }
.receipt {
  display: block; text-decoration: none; background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.5; padding: 30px 20px 34px;
  box-shadow: 0 14px 24px -16px rgba(14, 43, 54, 0.55);
  --tooth: 12px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--tooth) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--tooth) 100%;
  animation: print 1.5s steps(22, end) 0.25s both;
}
@keyframes print { from { transform: translateY(-101%); } to { transform: none; } }
.receipt-head { text-align: center; }
.receipt-head strong { display: block; font-size: 1rem; letter-spacing: 0.08em; }
.receipt hr { border: 0; border-top: 1.5px dashed var(--ink); opacity: 0.55; margin: 14px 0; }
.receipt-meta, .receipt-row, .receipt-total { display: flex; justify-content: space-between; gap: 12px; }
.receipt-row span:last-child { color: var(--ink-soft); text-align: right; }
.receipt-total { font-weight: 700; font-size: 0.88rem; }
.receipt-total span:last-child { text-align: right; background: var(--marker); padding-inline: 4px; }
.barcode { height: 44px; margin: 18px auto 8px; width: 78%; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, #0000 2px 5px, var(--ink) 5px 6px, #0000 6px 8px, var(--ink) 8px 11px, #0000 11px 13px, var(--ink) 13px 14px, #0000 14px 18px); }
.receipt-foot { text-align: center; color: var(--ink-soft); }
.receipt:hover .receipt-foot { color: var(--ink); text-decoration: underline; }

/* Hizmetler: çizimli kutular */
.services { background: var(--paper); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(28px, 4vw, 52px); }
.tile { --tile: var(--mist); --a: var(--cyan); grid-column: span 2; display: flex; flex-direction: column; padding: clamp(20px, 2.6vw, 34px); border-radius: 22px; background: var(--tile); color: var(--ink); }
.tile:nth-child(-n + 2) { grid-column: span 3; }
.tile svg { width: 100%; max-width: 300px; height: auto; margin-bottom: clamp(24px, 4vw, 56px); transition: transform 0.25s; }
.tile:hover svg { transform: translateY(-6px); }
.tile h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-top: auto; }
.tile p { margin-top: 6px; opacity: 0.8; }
.tile .tools { margin-top: 16px; font-family: var(--mono); font-size: 0.8rem; }
.tile-code { --tile: var(--ink); --a: var(--marker); color: var(--paper); }
.tile-data { --tile: var(--marker); --a: var(--paper); }
.tile-pos { --tile: var(--mist); --a: var(--marker); }
.tile-net { --tile: var(--cyan); --a: var(--marker); }
.tile-web { --tile: var(--mist); --a: var(--cyan); }

/* Çalışmalar */
.work { background: var(--ink); color: var(--paper); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; margin-bottom: clamp(32px, 5vw, 64px); }
.work-head p { max-width: 28em; color: rgba(252, 252, 249, 0.72); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--line-light); }
.project { padding: clamp(24px, 3.4vw, 44px) 0; border-bottom: 1.5px solid var(--line-light); }
.project:nth-child(odd) { padding-right: clamp(20px, 4vw, 56px); border-right: 1.5px solid var(--line-light); }
.project:nth-child(even) { padding-left: clamp(20px, 4vw, 56px); }
.project img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 22px; border-radius: 4px; }
.project-category { font-size: 0.9rem; color: var(--marker); }
.project h3 { margin-top: 6px; }
.project p { margin-top: 12px; color: rgba(252, 252, 249, 0.76); max-width: 32em; }
.project-tags { margin-top: 18px; font-family: var(--mono); font-size: 0.8rem; color: rgba(252, 252, 249, 0.9); }
.project-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--marker); }

/* Deneyim */
.timeline li { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.5fr); gap: 4px 32px; padding-block: 24px; border-top: 1.5px solid var(--line); }
.timeline .period { font-family: var(--mono); font-size: 0.85rem; padding-top: 5px; }
.timeline .company { color: var(--ink-soft); }
.timeline p { margin-top: 8px; color: var(--ink-soft); max-width: 36em; }
.subheading { margin-top: 48px; margin-bottom: 4px; font-size: 1.25rem; }
.cv { margin-top: 28px; }

/* Hakkımda */
.about .lead { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.about-body p + p { margin-top: 18px; color: var(--ink-soft); max-width: 36em; }

/* Araçlar şeridi */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; padding-block: clamp(18px, 2.4vw, 30px); }
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; }
.ticker li { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.75rem); letter-spacing: -0.02em; white-space: nowrap; padding-inline: clamp(16px, 2.4vw, 34px); }
.ticker li:nth-child(3n + 1) { color: var(--marker); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* İletişim */
.contact { background: var(--marker); }
.contact h2 { font-size: clamp(2.4rem, 6.6vw, 5.25rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; max-width: 12em; }
.contact-text { margin-top: 22px; font-size: 1.2rem; max-width: 30em; }
.contact-list { margin-top: clamp(36px, 5vw, 64px); border-top: 2px solid var(--ink); }
.contact-list a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 20px 4px; border-bottom: 2px solid var(--ink); text-decoration: none; transition: background-color 0.15s, color 0.15s, padding 0.15s; }
.contact-list a:hover { background: var(--ink); color: var(--paper); padding-inline: 16px; }
.contact-list strong { font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.contact-list span { font-family: var(--mono); font-size: 0.9rem; overflow-wrap: anywhere; }

/* Alt bölüm */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(40px, 6vw, 72px) 28px; }
.site-footer a { text-decoration: none; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.05; }
.footer-brand svg { width: clamp(52px, 6vw, 72px); height: auto; flex: none; }
.footer-brand svg rect { fill: var(--paper); }
.footer-brand svg path:first-of-type { fill: var(--ink); }
.footer-brand small { display: block; margin-top: 6px; font-family: var(--body); font-weight: 400; font-size: 0.95rem; letter-spacing: 0; color: rgba(252, 252, 249, 0.65); }
.social { display: flex; gap: 12px; }
.social a, .to-top { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-light); transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.social svg, .to-top svg { width: 22px; height: 22px; }
.social a:hover, .to-top:hover { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.footer-bottom { display: flex; align-items: center; gap: 12px 28px; margin-top: clamp(32px, 5vw, 56px); padding-top: 22px; border-top: 1.5px solid var(--line-light); font-size: 0.92rem; color: rgba(252, 252, 249, 0.7); }
.footer-lang { margin-left: auto; color: var(--paper); border: 1.5px solid var(--line-light); border-radius: 999px; padding: 8px 16px; }
.footer-lang:hover { border-color: var(--paper); }
.to-top { width: 44px; height: 44px; color: var(--paper); }

@media (max-width: 860px) {
  .site-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .lang { text-decoration: none; white-space: nowrap; margin-left: auto; }
  .hero, .split { grid-template-columns: minmax(0, 1fr); }
  .printer { margin-top: 8px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .tile:nth-child(n) { grid-column: span 6; }
  .tile svg { max-width: 240px; margin-bottom: 28px; }
  .project:nth-child(n) { padding-inline: 0; border-right: 0; }
}
@media (max-width: 560px) {
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .receipt { animation: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker ul { flex-wrap: wrap; }
  .ticker ul[aria-hidden] { display: none; }
  * { transition: none !important; }
}
@media print {
  .printer-slot, .actions, .site-nav { display: none; }
  .receipt { animation: none; }
}
