/* ---------- Değişkenler ---------- */
:root {
  --bg: #FAF7F2;
  --surface: #F2EDE4;
  --text: #2A2622;
  --muted: #6F675E;
  --line: #E2DACD;
  --accent: #A8553A;
  --accent-dark: #8E4530;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1040px;
  --gutter: 24px;
  --header-h: 64px;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 500; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Bağlantı ve buton ---------- */
.link {
  color: var(--accent);
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .3s ease;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  background: var(--accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  border-radius: 3px;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { font-family: var(--serif); font-size: 1.15rem; }

.nav { display: flex; align-items: center; gap: 28px; font-size: .93rem; }
.nav > a { color: var(--muted); transition: color .2s ease; }
.nav > a:hover, .nav > a.active { color: var(--text); }

.lang {
  display: flex;
  gap: 6px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--line);
  font-size: .85rem;
  letter-spacing: .04em;
}
.lang button { color: var(--muted); transition: color .2s ease; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--accent); }

.nav-toggle { display: none; width: 40px; height: 40px; margin-right: -8px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Giriş ---------- */
.hero { padding-top: clamp(72px, 14vh, 140px); padding-bottom: clamp(72px, 12vh, 120px); }

.kicker {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.05; }
.lead { max-width: 34em; margin-top: 24px; color: var(--muted); font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }

/* ---------- Bölümler ---------- */
.section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding-block: clamp(56px, 9vh, 96px);
  border-top: 1px solid var(--line);
}
/* .wrap'in yatay dolgusunu çizgi hizası için koru */
.section.wrap { border-top: 0; position: relative; }
.section.wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

.section-head { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.section-head .num {
  display: block;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.section-head h2 { font-size: 1.7rem; line-height: 1.2; }

.prose { max-width: 38em; }
.prose p + p { margin-top: 1em; }

.sub {
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.after { margin-top: 32px; }

/* ---------- Hakkımda ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }

.facts div { padding-block: 10px; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts dt { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { font-size: .95rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .85rem;
}

/* ---------- Zaman çizelgesi ---------- */
.timeline li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.timeline li:first-child { padding-top: 0; }
.when { color: var(--muted); font-size: .88rem; padding-top: 2px; }
.org { color: var(--accent); font-size: .93rem; }
.timeline ul {
  max-width: 40em;
  margin-top: 10px;
  padding-left: 1.1em;
  list-style: disc;
  color: var(--muted);
  font-size: .95rem;
}
.timeline ul li { display: list-item; padding: 0; border: 0; }
.timeline ul li + li { margin-top: 4px; }
.timeline ul li::marker { color: var(--line); }

/* ---------- Kartlar ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* İki fotoğraf yan yana */
.thumb.duo { grid-template-columns: 1fr 1fr; gap: 2px; place-items: stretch; background: var(--bg); }
.thumb.duo a { display: block; min-height: 0; overflow: hidden; }
.card:hover .thumb, .work:hover .thumb { transform: translateY(-3px); border-color: var(--accent); }

.card h3 { margin-top: 18px; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.card > p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.card .tags { margin-top: 14px; }
.card-links { display: flex; gap: 20px; margin-top: 14px; font-size: .9rem; }

.work .thumb { aspect-ratio: 4 / 5; }
/* Yatay fotoğraf: iki sütun kaplar, dikey olanlarla aynı yükseklikte durur */
.work.wide { grid-column: span 2; }
.work.wide .thumb { aspect-ratio: 5 / 3; }
.work figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.work figcaption strong {
  margin-right: 6px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.job + .job { margin-top: 48px; }
.job-head { margin-bottom: 18px; }
.job-head h4 { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.job-head p { color: var(--muted); font-size: .95rem; }

/* ---------- Satır listeleri (yetenekler, hizmetler, iletişim) ---------- */
.rows > li {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.rows > li:first-child { border-top: 1px solid var(--line); }
.rows strong { font-weight: 500; }
.rows span { color: var(--muted); font-size: .95rem; }

/* ---------- İletişim ---------- */
.contact { margin-top: 32px; }
.contact a { justify-self: start; overflow-wrap: anywhere; }

/* ---------- Alt bilgi ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; padding-block: 28px; }

/* ---------- Görünüme girme animasyonu ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* Girişte sırayla belirme */
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Duyarlı ---------- */
@media (max-width: 860px) {
  .section { grid-template-columns: 1fr; gap: 28px; }
  .section-head { position: static; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { width: 100%; padding-block: 12px; border-bottom: 1px solid var(--line); }
  .lang { margin-top: 18px; padding-left: 0; border-left: 0; font-size: .95rem; }

  .grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .rows > li { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
