/* cigdemhimmetoglu.com — quiet, editorial style for a physician profile.
   Accent colors nod to H&E staining: hematoxylin indigo and eosin rose. */
:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #1c2230;
  --muted: #586172;
  --line: #e5e1d8;
  --hema: #34327a;
  --hema-soft: #ecebf6;
  --eosin: #b9506f;
  --radius: 14px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
a { color: var(--hema); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--eosin); }
:focus-visible { outline: 3px solid var(--eosin); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: .5rem; padding: .5rem .9rem; background: var(--surface); border-radius: 8px; z-index: 10; }
.skip-link:focus { left: .5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--hema), var(--eosin));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { font: 600 1.15rem/1.2 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .005em; }
.brand span { color: var(--muted); font-weight: 500; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { padding: .45rem .75rem; border-radius: 999px; color: var(--muted); font-size: .92rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--ink); background: var(--hema-soft); }
.site-nav .nav-cv { color: var(--hema); border: 1px solid #cfcde6; margin-left: .35rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-inner { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.portrait { margin: 0; position: relative; }
.portrait::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--hema-soft), #f6e3ea);
  z-index: -1;
}
.portrait img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 18px 40px -22px rgba(28, 34, 48, .45); }
.eyebrow { margin: 0 0 .6rem; color: var(--eosin); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font: 600 clamp(2.2rem, 5.2vw, 3.6rem)/1.08 var(--serif); letter-spacing: -.015em; }
.postnominals { display: block; margin-top: .55rem; color: var(--muted); font: 500 clamp(1rem, 1.8vw, 1.2rem)/1.3 var(--sans); letter-spacing: .06em; }
.lede { margin: 1.25rem 0 0; max-width: 36rem; color: #343c4c; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.tags li { padding: .3rem .8rem; border-radius: 999px; background: var(--hema-soft); color: var(--hema); font-size: .85rem; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { color: var(--ink); border-color: #c9c4b8; box-shadow: 0 6px 18px -10px rgba(28, 34, 48, .35); transform: translateY(-1px); }
.btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--hema); border-color: var(--hema); color: #fff; }
.btn-primary:hover { background: #2a2866; border-color: #2a2866; color: #fff; }

/* Sections */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.section-alt { background: #f4f2ec; }
.section-title { margin: 0 0 1.75rem; font: 600 clamp(1.5rem, 2.6vw, 1.95rem)/1.2 var(--serif); }
.section-title::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: .6rem; border-radius: 3px; background: var(--eosin); }

.facts { margin: 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-top: .2rem; }
.facts dd { margin: 0; font-size: 1.05rem; }
.facts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.when { color: var(--muted); font-size: .92rem; white-space: nowrap; margin-left: .35rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.media { display: block; aspect-ratio: 16 / 9; background: #e9e6df; overflow: hidden; }
.media img, .media iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-kicker { margin: 0 0 .35rem; color: var(--eosin); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card h3 { margin: 0; font: 600 1.2rem/1.35 var(--serif); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--hema); text-decoration: underline; }
.card-body p:not(.card-kicker) { margin: .6rem 0 0; color: var(--muted); }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; background: #1c2230; color: #c9cdd6; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.footer-name { margin: 0; color: #fff; font: 600 1.1rem/1.3 var(--serif); }
.footer-meta { margin: .35rem 0 0; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.footer-links a:hover { color: #f2c6d3; }
.site-footer :focus-visible { outline-color: #f2c6d3; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .portrait { width: min(220px, 60vw); }
  .tags, .actions { justify-content: center; }
  .lede { margin-inline: auto; }
  .facts > div { grid-template-columns: 1fr; gap: .25rem; }
  .site-nav a:not(.nav-cv) { display: none; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .actions, .media-video, .skip-link { display: none; }
  body, .section-alt { background: #fff; }
  .site-footer { background: #fff; color: #000; }
  .footer-name, .footer-links a { color: #000; }
}
