/* Nusret Berk Mertoğlu, kişisel CV sitesi */
:root {
  --bg: #eef2f5;
  --ink: #16263a;
  --muted: #566577;
  --rule: #c9d2db;
  --field: #4f7ca8;
  --ops: #e3a600;
  --ops-ink: #8a6500;
  --focus: #1f6fd1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1b2a; --ink: #e4eaf0; --muted: #9aa8b7; --rule: #2a3a4d;
    --field: #7fa6cc; --ops: #f2b705; --ops-ink: #f2c53d; --focus: #8ab8ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1b2a; --ink: #e4eaf0; --muted: #9aa8b7; --rule: #2a3a4d;
  --field: #7fa6cc; --ops: #f2b705; --ops-ink: #f2c53d; --focus: #8ab8ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
}
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Üst şerit */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; gap: 24px; height: 56px; }
.mark { font-weight: 800; font-variation-settings: "wdth" 125; text-decoration: none; letter-spacing: .02em; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 20px; font-size: .9375rem; }
.top nav a, .lang { text-decoration: none; color: var(--muted); }
.top nav a:hover, .lang:hover { color: var(--ink); text-decoration: underline; }
.lang { font-size: .9375rem; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); }
@media (max-width: 760px) { .top nav { display: none; } .lang { margin-left: auto; } }

/* Giriş */
.hero { padding-top: clamp(48px, 10vw, 112px); padding-bottom: clamp(48px, 8vw, 88px); }
h1 {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  line-height: .95;
  letter-spacing: -.015em;
}
.lead { margin-top: 28px; max-width: 38em; font-size: clamp(1.125rem, 2.2vw, 1.3125rem); line-height: 1.5; }
.where { margin-top: 16px; color: var(--muted); }
.where .sep { margin-inline: .4em; }
.where a { color: var(--ink); }

/* Güzergâh */
.route { margin-top: clamp(48px, 7vw, 72px); }
.route__phases { display: flex; font-size: .8125rem; line-height: 1.3; color: var(--muted); margin-bottom: 14px; }
.route__phases span { padding-right: 12px; }
.route__phases span:first-child { border-left: 3px solid var(--field); padding-left: 8px; }
.route__phases span:last-child { border-left: 3px solid var(--ops); padding-left: 8px; }
.route__track { position: relative; height: 22px; margin-inline: 9px; }
.seg { position: absolute; top: 8px; height: 6px; transform-origin: left center; }
.seg--field { left: 0; background: var(--field); }
.seg--ops { background: var(--ops); }
.stop {
  position: absolute; top: 2px; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: var(--bg); border: 4px solid var(--field);
}
.stop--ops { border-color: var(--ops); }
.stop--end { background: var(--ops); border-color: var(--ops); }
a.stop:hover { transform: scale(1.25); }
.route__years { position: relative; height: 1.4em; margin: 10px 9px 0; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.route__years span { position: absolute; transform: translateX(-50%); }
.route__years span:first-child { transform: none; margin-left: -9px; }
.route__years span:last-child { transform: translateX(-100%); margin-left: 9px; }

@media (prefers-reduced-motion: no-preference) {
  .seg--field { animation: draw .9s cubic-bezier(.5, 0, .2, 1) both .2s; }
  .seg--ops { animation: draw .6s cubic-bezier(.3, 0, .2, 1) both 1.1s; }
  .stop { animation: appear .3s ease-out both 1.7s; transition: transform .15s; }
  @keyframes draw { from { transform: scaleX(0); } }
  @keyframes appear { from { opacity: 0; } }
}

/* Bölümler */
.band { display: grid; gap: 20px; padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--rule); }
@media (min-width: 900px) {
  .band { grid-template-columns: 220px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
  .band h2 { position: sticky; top: 80px; align-self: start; }
}
h2 { font-size: 1.5rem; font-weight: 750; font-variation-settings: "wdth" 115; line-height: 1.2; scroll-margin-top: 72px; }
.band { scroll-margin-top: 56px; }
.band__body { min-width: 0; max-width: 46rem; }
h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; }
.sub { margin: 40px 0 12px; }
.note { margin-bottom: 20px; }

/* Deneyim zaman çizelgesi */
.leg + .leg { margin-top: 40px; }
.leg__title { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-weight: 650; margin-bottom: 8px; }
.leg__years { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline { border-left: 6px solid var(--field); margin-left: 6px; }
.leg--ops .timeline { border-color: var(--ops); }
.role { position: relative; padding: 20px 0 20px 28px; scroll-margin-top: 72px; }
.role + .role { border-top: 1px solid var(--rule); }
.role::before {
  content: ""; position: absolute; left: -12px; top: 25px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--bg); border: 4px solid var(--field);
}
.leg--ops .role::before { border-color: var(--ops); }
.role:target::before { background: var(--ink); }
.role__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; }
.role__head h3 { flex: 1 1 18rem; }
.role__date { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 2px; }
.role__org { color: var(--muted); }
.role__focus { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.role__focus li { font-size: .875rem; line-height: 1.3; padding: 4px 9px; border: 1px solid var(--rule); border-radius: 3px; }
details { margin-top: 12px; }
summary { cursor: pointer; width: fit-content; font-size: .9375rem; font-weight: 600; color: var(--muted); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 1.1em; font-weight: 700; }
details[open] summary::before { content: "−"; }
summary:hover { color: var(--ink); }
details dl { margin-top: 12px; max-width: 40rem; }
details dt { font-weight: 650; }
details dd { margin: 2px 0 14px; color: var(--ink); }

/* Ölçek tablosu */
.manifest { width: 100%; border-collapse: collapse; }
.manifest th, .manifest td { text-align: left; vertical-align: baseline; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.manifest thead th { font-size: .8125rem; font-weight: 600; color: var(--muted); padding-top: 0; border-bottom-color: var(--ink); }
.manifest tbody th {
  font-size: clamp(1.375rem, 3.4vw, 1.875rem); font-weight: 800; font-variation-settings: "wdth" 120;
  font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.1;
}
.manifest td:last-child { color: var(--muted); font-size: .9375rem; }
@media (max-width: 600px) {
  .manifest thead { display: none; }
  .manifest tr { display: grid; grid-template-columns: 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .manifest th, .manifest td { padding: 0; border: 0; }
  .manifest td { margin-top: 4px; }
}

/* Yetkinlikler */
.skills { display: grid; gap: 32px; }
@media (min-width: 600px) { .skills { grid-template-columns: 1fr 1fr; } .skillset:last-child { grid-column: 1 / -1; } }
.skillset h3 { margin-bottom: 10px; }
.skillset ul { display: flex; flex-wrap: wrap; gap: 6px; }
.skillset li { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 3px; font-size: .9375rem; }
.skillset:last-child li { border-style: dashed; }

/* Eğitim */
.edu { display: grid; gap: 24px; }
.edu p { margin-top: 2px; }
.certs li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.certs .yr { color: var(--muted); font-variant-numeric: tabular-nums; }
.plain li { padding: 4px 0; }

/* İletişim */
.mail { margin: 12px 0 16px; font-size: clamp(1.25rem, 4.4vw, 2.25rem); font-weight: 750; font-variation-settings: "wdth" 115; overflow-wrap: anywhere; }
.mail a { text-decoration-color: var(--ops); text-decoration-thickness: 3px; text-underline-offset: .2em; }

.foot { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }

@media print {
  .top, .skip, .route { display: none; }
  details > *:not(summary) { display: block; }
  summary { display: none; }
}

@media (max-width: 480px) {
  .where .sep { display: none; }
  .where a { display: block; margin-top: 2px; }
}
