/* İbrahim Tunç Kapar — halka açık site. Sürümlü dosya adı: içerik değişince site.v2.css olarak yeni dosya üretin
   ve worker/site/render.ts içindeki CSS_HREF'i güncelleyin (uzun süreli önbellek). Satır içi stil yoktur (CSP). */

/* ---------------------------------------------------------------- yazı tipleri (yerel, OFL-1.1; @fontsource 5.3.0) */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/fraunces-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/fraunces-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/hanken-grotesk-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/hanken-grotesk-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------------------------------------------------------------- tokenlar */
:root {
  --ground: #f1f3f0;        /* serin taş beyazı zemin */
  --ink: #15221e;           /* koyu yeşil-siyah mürekkep */
  --muted: #4a5751;         /* ikincil metin (zeminde ≈ 7:1) */
  --accent: #2c5b4c;        /* okaliptüs yeşili: eylem ve adın ikinci satırı */
  --accent-press: #22493d;
  --on-accent: #f6f6f2;
  --sage: #dfe6e0;          /* açık adaçayı alanı */
  --sage-deep: #d2dcd4;
  --field: #18302a;         /* koyu orman alanı */
  --on-field: #eef2ee;
  --on-field-2: #a9c8b8;
  --draft: #f0d48c;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 0.9rem + 5.2vw, 6.25rem);
  --step-display: clamp(3rem, 13.5vw, 13rem);

  --gutter: clamp(16px, 3.2vw, 48px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(88px, 10vw, 168px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------- temel */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-decoration-thickness 160ms, color 160ms; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: #cfe0d6; color: var(--ink); }
.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip {
  position: absolute; left: var(--gutter); top: 8px; z-index: 50; padding: 12px 18px;
  background: var(--ink); color: var(--ground); text-decoration: none; transform: translateY(-160%);
}
.skip:focus { transform: none; }

.preview-ribbon {
  position: sticky; top: 0; z-index: 40; padding: 10px var(--gutter);
  background: var(--draft); color: var(--ink); font-size: var(--step-small);
}
.draft { display: inline-block; margin-left: 0.5em; padding: 2px 8px; background: var(--draft); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-small); font-weight: 500; line-height: 1.4; vertical-align: middle; letter-spacing: 0; }

/* ---------------------------------------------------------------- düğme */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-family: var(--font-text); font-size: var(--step-body); font-weight: 500; letter-spacing: 0.005em;
  transition: background-color 180ms, transform 180ms var(--ease-out);
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- üst şerit */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; font-size: var(--step-small); }
.mark { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.02em; text-decoration: none; padding: 6px 0; }
.top nav ul { display: flex; flex-wrap: wrap; gap: 6px 28px; list-style: none; margin: 0; padding: 0; }
.top nav a { text-decoration-color: transparent; padding: 10px 0; display: inline-block; }
.top nav a:hover, .top nav a:focus-visible { text-decoration-color: currentColor; }
.lang { font-weight: 500; }
.lang-short { display: none; }
@media (max-width: 719px) {
  .nav-anchor { display: none; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .top { min-height: 64px; }
}

/* ---------------------------------------------------------------- giriş */
.hero { display: flex; min-height: calc(100svh - 76px); }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto;
  column-gap: var(--gap); row-gap: 48px; padding-block: clamp(40px, 11vh, 140px) clamp(32px, 6vh, 64px);
}
.hero-head { grid-column: 1 / -1; grid-row: 1; align-self: start; }
.hero-name {
  font-family: var(--font-display); font-weight: 400; font-size: var(--step-display);
  line-height: 0.92; letter-spacing: -0.035em; color: var(--ink);
  font-variation-settings: normal;
}
.hero-name .line { display: block; overflow: clip; padding-bottom: 0.07em; margin-bottom: -0.07em; }
.hero-name .line > span { display: block; }
.hero-name .w { display: inline; }
.hero-name .line-2 { color: var(--accent); }
.hero-role { margin-top: clamp(24px, 3.2vw, 44px); font-size: var(--step-lead); line-height: 1.3; }
.hero-sep { color: var(--muted); }
.hero-foot { grid-column: 7 / -1; grid-row: 2; align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-lead { font-size: var(--step-body); max-width: 36ch; }

.hero--portrait .hero-head { grid-column: 1 / 8; }
.hero--portrait .hero-name { font-size: clamp(3rem, 7.6vw, 8.5rem); }
.hero--portrait .hero-foot { grid-column: 1 / 8; }
.hero-portrait { grid-column: 9 / -1; grid-row: 1 / span 2; align-self: stretch; }
.hero-portrait .portrait { width: 100%; height: 100%; max-height: 78svh; object-fit: cover; aspect-ratio: 4 / 5; }

@media (max-width: 719px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-rows: auto auto; row-gap: 56px; padding-block: 9svh 72px; }
  .hero-name { font-size: 16.4vw; line-height: 0.92; }
  .hero-foot, .hero--portrait .hero-foot, .hero--portrait .hero-head { grid-column: 1 / -1; }
  .hero--portrait .hero-name { font-size: 16.4vw; }
  .hero-portrait { grid-column: 1 / -1; grid-row: auto; max-width: 440px; }
  .hero--portrait .hero-grid { grid-template-rows: auto auto auto; }
  .btn { width: 100%; }
}

/* ---------------------------------------------------------------- bölüm ortakları */
.sec { padding-block: var(--section); }
.sec-title { font-family: var(--font-text); font-size: var(--step-lead); font-weight: 500; line-height: 1.25; letter-spacing: -0.005em; }

/* hakkında: yan bilgiler + geniş paragraf */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.about-side { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 40px; }
.about-body { grid-column: 5 / -1; display: flex; flex-direction: column; gap: 1.1em; font-size: var(--step-lead); line-height: 1.45; max-width: 46ch; }
.facts { display: flex; flex-direction: column; gap: 20px; font-size: var(--step-small); }
.facts dt { color: var(--muted); }
.facts dd { font-size: var(--step-body); }
@media (max-width: 899px) {
  .about-side, .about-body { grid-column: 1 / -1; }
  .about-body { order: -1; }
  .about-side { order: 0; }
  .about-grid { row-gap: 48px; }
  .about-side .sec-title { order: -1; }
}

/* hizmetler: koyu alan üzerinde merdiven */
.services { background: var(--field); color: var(--on-field); }
.services .sec-title { color: var(--on-field-2); margin-bottom: clamp(40px, 6vw, 88px); }
.stairs { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 26px); }
.stair { font-family: var(--font-display); font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; }
.stair:nth-child(even) { color: var(--on-field-2); }
.stair-title { display: inline; }
.stair-sub, .stair-body { display: block; margin-top: 0.6rem; max-width: 52ch; font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; letter-spacing: 0; color: var(--on-field); }
.stair-body p + p { margin-top: 0.8em; }
.stairs { --stair: 7vw; }
.stairs--n1 { --stair: 0; } .stairs--n2 { --stair: 30vw; } .stairs--n3 { --stair: 21vw; } .stairs--n4 { --stair: 14vw; } .stairs--n5 { --stair: 10vw; }
.s1 { padding-left: var(--stair); } .s2 { padding-left: calc(var(--stair) * 2); } .s3 { padding-left: calc(var(--stair) * 3); }
.s4 { padding-left: calc(var(--stair) * 4); } .s5 { padding-left: calc(var(--stair) * 5); } .s6 { padding-left: calc(var(--stair) * 6); } .s7 { padding-left: calc(var(--stair) * 7); }
@media (max-width: 719px) {
  .stairs, .stairs--n2, .stairs--n3, .stairs--n4, .stairs--n5 { --stair: 5vw; }
  .s5, .s6, .s7 { padding-left: 20vw; }
}

/* eğitim / deneyim / sertifikalar: adaçayı bandı */
.records { background: var(--sage); padding-block: var(--section); }
.records-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); column-gap: clamp(32px, 6vw, 112px); row-gap: 88px; }
.records .sec { padding-block: 0; }
.record .sec-title { color: var(--muted); margin-bottom: clamp(20px, 2.4vw, 36px); }
.rows { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); }
.row-title { font-family: var(--font-display); font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; overflow-wrap: anywhere; hyphens: auto; }
.row-sub { margin-top: 0.7rem; font-size: var(--step-body); }
.row-body { margin-top: 0.7rem; max-width: 56ch; color: var(--ink); }
.row-body p + p { margin-top: 0.8em; }
.rows:has(> li:nth-child(4)) .row-title { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
.rows:has(> li:nth-child(4)) { gap: 22px; }

/* görseller: farklı boylarda baskılar */
.media-sec .sec-title { margin-bottom: clamp(32px, 4vw, 64px); }
.prints { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 6vw, 96px); align-items: start; }
.print figure { display: flex; flex-direction: column; gap: 12px; }
.print-img { width: 100%; background: var(--sage); }
.print figcaption { font-size: var(--step-small); color: var(--muted); }
.cap-title { color: var(--ink); font-weight: 500; }
.p0 { grid-column: 1 / 8; }
.p1 { grid-column: 9 / -1; margin-top: 18vw; }
.p2 { grid-column: 2 / 7; }
.p3 { grid-column: 7 / -1; margin-top: 8vw; }
@media (max-width: 719px) {
  .p0, .p1, .p2, .p3 { grid-column: 1 / -1; margin-top: 0; }
}

/* iletişim: görüntü boyunda satırlar */
.contact { background: var(--ground); }
.contact .sec-title { margin-bottom: clamp(24px, 3vw, 48px); }
.crows { display: flex; flex-direction: column; }
.crow { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--gap); align-items: baseline; padding: clamp(18px, 2.4vw, 32px) clamp(16px, 1.6vw, 24px); }
.crow:nth-child(odd) { background: var(--sage); }
.crow:nth-child(even) { background: var(--sage-deep); }
.crow dt { font-size: var(--step-small); color: var(--muted); }
.crow dd { font-family: var(--font-display); font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.crow dd a { text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.crow dd a:hover { color: var(--accent); }
@media (max-width: 719px) {
  .crow { display: flex; flex-direction: column-reverse; gap: 8px; }
  .crow dd { font-size: clamp(1.75rem, 8vw, 2.5rem); }
}

/* bağlantılar */
.social { background: var(--ground); }
.social-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; }
.social .sec-title { grid-column: 1 / 5; }
.links { grid-column: 5 / -1; display: flex; flex-direction: column; gap: 4px; }
.links a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; min-height: 48px; text-decoration: none; }
.link-name { font-family: var(--font-display); font-size: var(--step-lead); letter-spacing: -0.01em; transition: color 160ms; }
.link-host { font-size: var(--step-small); color: var(--muted); }
.links a:hover .link-name, .links a:focus-visible .link-name { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
@media (max-width: 719px) { .social .sec-title, .links { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- belge sayfası (gizlilik) */
.doc { padding-block: clamp(56px, 9vw, 140px) var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; }
.doc-head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 28px; }
.doc-title { font-family: var(--font-display); font-weight: 400; font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch; }
.doc-lead { font-size: var(--step-lead); line-height: 1.4; max-width: 44ch; }
.doc-body { grid-column: 4 / 12; display: flex; flex-direction: column; gap: 48px; max-width: 68ch; }
.doc-body h2 { font-size: var(--step-lead); font-weight: 500; line-height: 1.25; margin-bottom: 14px; }
.doc-body p + p { margin-top: 0.9em; }
.doc-body ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.doc-body li::marker { color: var(--accent); }
.doc-date { color: var(--muted); font-size: var(--step-small); }
@media (max-width: 899px) { .doc-body { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- 404 */
.nf { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-block: 64px; }
.nf-code { font-family: var(--font-display); font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.04em; color: var(--accent); }
.nf-title { font-family: var(--font-display); font-weight: 400; font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; }
.nf-text { font-size: var(--step-lead); max-width: 40ch; }

/* ---------------------------------------------------------------- alt bilgi */
.foot { background: var(--ink); color: var(--on-field); padding-top: clamp(64px, 8vw, 120px); font-size: var(--step-body); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; }
.foot-cols p + p { margin-top: 6px; }
.foot-cols ul { display: flex; flex-direction: column; gap: 2px; }
.foot-cols a { display: inline-block; padding: 6px 0; text-decoration-color: rgb(238 242 238 / 0.45); }
.foot-cols a:hover { text-decoration-color: currentColor; }
.foot-strong { font-weight: 500; }
.foot-note { color: var(--on-field-2); max-width: 36ch; }
.foot :focus-visible { outline-color: var(--on-field-2); }
.foot-mark { padding-top: clamp(64px, 10vw, 160px); padding-bottom: clamp(16px, 2vw, 28px); }
.wordmark { display: block; width: 100%; height: auto; overflow: visible; }
.wordmark text { font-family: var(--font-display); fill: var(--on-field); letter-spacing: -0.02em; }
@media (max-width: 899px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .foot-cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- hareket (yalnız CSS; azaltılmış hareket tercihine saygı) */
@keyframes gk-rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes gk-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes gk-enter { from { opacity: 0.2; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-name .line > span { animation: gk-rise 900ms var(--ease-out) both; }
  .hero-name .line-2 > span { animation-delay: 110ms; }
  .hero-role { animation: gk-fade-up 700ms var(--ease-out) 320ms both; }
  .hero-foot { animation: gk-fade-up 700ms var(--ease-out) 420ms both; }
  .hero-portrait { animation: gk-fade-up 900ms var(--ease-out) 200ms both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: gk-enter linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
    .print-img { animation: gk-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes gk-drift { from { transform: scale(1.04) translateY(-1.5%); } to { transform: scale(1) translateY(1.5%); } }
.print-frame { display: block; overflow: clip; }

@media print {
  .top nav, .skip, .preview-ribbon, .foot-mark { display: none; }
  .services, .records, .foot { background: none; color: #000; }
  .stair:nth-child(even) { color: #000; }
}
