/* kemaldostel.com — shared styles */
:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --ink: #111111;
  --text: #333333;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --accent: #1f5fa8;
  --dark: #0b0b0b;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --wrap: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; gap: 16px;
}
.brand { color: #fff; text-decoration: none; font-size: 1.3rem; letter-spacing: .01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #fff; text-decoration: none; font-size: 1.05rem; opacity: .92; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.icons { display: flex; gap: 12px; margin-left: 12px; }
.icons a { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.85); color: #111; align-items: center; justify-content: center; }
.icons a:hover { background: #fff; }
.icons svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background: #111 center / cover no-repeat;
  min-height: 500px; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 70px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.hero > * { position: relative; }
.hero h1 { color: #fff; font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0; letter-spacing: -.01em; }
.hero p { margin: .6em auto 0; max-width: 640px; font-size: 1.2rem; opacity: .92; }
.hero.small { min-height: 390px; }
.hero.small h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.section-title { font-size: 1.9rem; font-weight: 700; margin-bottom: 1.2em; }

/* intro / about */
.intro { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.intro img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; }
.intro .role { font-size: 1.2rem; color: var(--ink); font-weight: 600; margin: 0 0 .9em; }
.intro p { margin: 0 0 1em; }

/* experience */
.job { display: grid; grid-template-columns: 210px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.job:first-of-type { border-top: 0; padding-top: 0; }
.job .when { color: var(--muted); font-size: .95rem; }
.job .when strong { display: block; color: var(--ink); font-size: 1.05rem; }
.job h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: .15em; }
.job .org { color: var(--muted); margin: 0 0 .7em; }
.job .about-org { font-style: italic; margin: 0 0 .5em; }
.job ul { margin: .3em 0 0; padding-left: 1.2em; }
.job li { margin: .25em 0; }
.subrole { margin-top: 1.1em; }
.subrole h4 { margin: 0; color: var(--ink); font-size: 1.02rem; }
.subrole .dates { color: var(--muted); font-size: .95rem; }

/* projects */
.project { display: grid; grid-template-columns: 360px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.project h3 a { color: var(--ink); text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.project p { margin: 0 0 .8em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1em; padding: 0; list-style: none; }
.tags li { font-size: .82rem; background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; color: var(--muted); }
.btn { display: inline-block; font-size: .9rem; padding: 6px 14px; border: 1px solid #bbb; border-radius: 4px; color: var(--ink); text-decoration: none; background: var(--surface); }
.btn:hover { border-color: var(--ink); }
.btn.dark { background: #555; color: #fff; border-color: #555; padding: 8px 26px; }
.btn.dark:hover { background: #333; }

/* education + skills */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.edu { list-style: none; padding: 0; margin: 0; }
.edu li { margin-bottom: 1.1em; }
.edu strong { display: block; color: var(--ink); }
.edu span { color: var(--muted); font-size: .95rem; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.skills li { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 5px 12px; font-size: .95rem; }

/* contact */
.contact-list { list-style: none; padding: 0; margin: 1em 0 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin: .6em 0; font-size: 1.05rem; }
.contact-list svg { width: 20px; height: 20px; fill: var(--ink); flex: none; }

/* article (project pages) */
.article { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; font-family: var(--serif); font-size: 1.08rem; color: #333; }
.article .kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--ink); }
.article h1 { font-size: 2.3rem; margin: .3em 0 .2em; }
.article .date { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin-bottom: 2em; }
.article h2 { font-size: 1.15rem; margin: 2em 0 .8em; }
.article figure { margin: 1.5em 0 2em; }
.article figure img { background: #fff; border: 1px solid var(--line); }
.article figcaption { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin-top: .5em; }
.article .tags { font-family: var(--sans); }
.back { font-family: var(--sans); font-size: .95rem; }

/* footer */
footer { background: var(--dark); color: #ccc; padding: 26px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
footer .icons { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .project, .job { grid-template-columns: 1fr; gap: 14px; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { padding: 16px; flex-wrap: wrap; }
  .nav { gap: 14px; flex-wrap: wrap; }
  .nav a { font-size: .95rem; }
  .topbar .icons { display: none; }
  .wrap { padding: 0 16px; }
  .hero { min-height: 420px; padding: 130px 16px 56px; }
  .hero.small { min-height: 340px; }
  .intro { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: left; }
  .intro img { width: 160px; height: 160px; }
  section { padding: 44px 0; }
  .article { padding: 36px 16px 56px; }
  .article h1 { font-size: 1.8rem; }
  footer { padding: 22px 16px; }
}
