/* CV of Serra Yasemin Buran. Colours are tokens on :root; the dark theme only redefines them. */
@font-face {
  font-family: "Fraunces";
  src: url("fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f6efe9;
  --bg-deep: #ece1d9;
  --ink: #2a1722;
  --ink-soft: #5e4a56;
  --line: #d9c9c0;
  --accent: #6b1d45;
  --accent-ink: #f6efe9;
  --accent-tint: #ead3dd;
  --warm: #94441d;
  --contact-bg: #4a1531;
  --contact-ink: #f6efe9;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #1a1016;
  --bg-deep: #231720;
  --ink: #f5ebf0;
  --ink-soft: #c4b3bc;
  --line: #3d2c37;
  --accent: #f0a3c4;
  --accent-ink: #1a1016;
  --accent-tint: #3a2130;
  --warm: #f0a272;
  --contact-bg: #2c0f1f;
  --contact-ink: #f5ebf0;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1016;
    --bg-deep: #231720;
    --ink: #f5ebf0;
    --ink-soft: #c4b3bc;
    --line: #3d2c37;
    --accent: #f0a3c4;
    --accent-ink: #1a1016;
    --accent-tint: #3a2130;
    --warm: #f0a272;
    --contact-bg: #2c0f1f;
    --contact-ink: #f5ebf0;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--serif); margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { width: min(1120px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: italic 600 0.95rem var(--serif); }
.brand-name { font: 500 1.05rem var(--serif); }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* Hero: the name is the picture */
.hero { padding: clamp(56px, 11vw, 140px) 0 clamp(40px, 7vw, 88px); }
.hero h1 { font-size: clamp(3rem, 10.5vw, 6rem); line-height: 1; letter-spacing: -0.03em; font-weight: 400; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--accent); }
.lead { max-width: 34em; margin: clamp(24px, 4vw, 40px) 0; font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.55; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font: 500 0.97rem var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.facts { margin: clamp(40px, 7vw, 80px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 18px 20px 4px 0; }
.facts dt { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 4px 0 0; font: 500 1.1rem/1.35 var(--serif); }

/* Sections: heading on the left, content on the right */
.section { padding: clamp(48px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.split { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; } .split > h2 { position: sticky; top: 92px; align-self: start; } }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); letter-spacing: -0.01em; }
.body { max-width: 46rem; }
.body p { color: var(--ink-soft); }
.intro { font: 400 clamp(1.3rem, 2.8vw, 1.7rem)/1.4 var(--serif); color: var(--ink) !important; letter-spacing: -0.01em; text-wrap: pretty; }

.tags, .chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 14px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 0.92rem; font-weight: 500; }
.chips { margin: 14px 0 0; }
.chips li { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.92rem; }
.sub { font: 500 1.15rem var(--serif); margin-top: 8px; }
.sub:not(:first-child) { margin-top: 44px; }

/* Entries: dates and place on the left, the work on the right, hairlines between */
.entry { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .entry { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; } }
.meta { margin: 0; display: grid; gap: 2px; align-content: start; font-size: 0.92rem; line-height: 1.45; }
.when { font-weight: 600; color: var(--warm); font-variant-numeric: tabular-nums; }
.where { color: var(--ink-soft); }
.entry h3 { font-size: 1.35rem; letter-spacing: -0.005em; margin-bottom: 8px; }
.entry p { margin-bottom: 0; }
.entry .role { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.entry ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.entry li { margin-bottom: 8px; padding-left: 4px; }
.entry li::marker { color: var(--accent); }

/* Languages */
.langs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; max-width: 28rem; }
.langs li { display: grid; grid-template-columns: 90px 1fr 100px; align-items: center; gap: 14px; }
.langs em { font-style: normal; font-size: 0.9rem; color: var(--ink-soft); }
.level { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.level i { height: 6px; border-radius: 99px; background: var(--line); }
.level[data-level="1"] i:nth-child(-n+1),
.level[data-level="2"] i:nth-child(-n+2),
.level[data-level="3"] i:nth-child(-n+3),
.level[data-level="4"] i:nth-child(-n+4) { background: var(--accent); }

/* Contact */
.contact { background: var(--contact-bg); color: var(--contact-ink); padding: clamp(64px, 10vw, 128px) 0; }
.contact h2 { font-size: clamp(2.2rem, 6.5vw, 4.5rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 400; max-width: 14em; }
.contact h2 em { font-style: italic; font-weight: 300; }
.contact p { margin: 20px 0 28px; color: color-mix(in srgb, var(--contact-ink) 80%, transparent); font-size: 1.15rem; }
.contact a { color: var(--contact-ink); }
.big-link { display: inline-block; font: 400 clamp(1.25rem, 4.2vw, 2.2rem)/1.2 var(--serif); overflow-wrap: anywhere; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.contact .more { margin: 20px 0 0; font-size: 1rem; }
.contact .more a { display: inline-block; padding: 10px 2px; }
.footer { padding: 28px 0; color: var(--ink-soft); font-size: 0.9rem; }
.footer p { margin: 0; }

/* One authored moment: the name rises into place. The default state is the visible one. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { transform: translateY(105%); } }
  @keyframes fade { from { opacity: 0; transform: translateY(8px); } }
  .hero h1 .line > span { display: inline-block; animation: rise 0.9s var(--ease) backwards; }
  .hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
  .hero .lead, .hero .actions, .hero .facts { animation: fade 0.8s var(--ease) 0.35s backwards; }
}

@media (max-width: 640px) {
  .brand-name { display: none; }
  .langs li { grid-template-columns: 76px 1fr; }
  .langs em { grid-column: 2; margin-top: -8px; }
}

/* Print: a clean one-column CV */
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --bg-deep: #fff; --ink: #000; --ink-soft: #333; --line: #bbb; --accent: #6b1d45; --accent-tint: #f4e8ee; --warm: #6b1d45; --contact-bg: #fff; --contact-ink: #000; color-scheme: light; }
  .topbar, .no-print, .skip, .footer { display: none !important; }
  body { font-size: 10.5pt; line-height: 1.45; }
  .hero { padding: 0 0 12px; }
  .hero h1 { font-size: 30pt; }
  .hero h1 .line { overflow: visible; }
  .section { padding: 14px 0; }
  .split { grid-template-columns: 150px 1fr; gap: 20px; }
  .split > h2 { position: static; }
  .entry { break-inside: avoid; padding: 12px 0; }
  .contact { padding: 14px 0; border-top: 1px solid var(--line); }
  .contact h2 { font-size: 16pt; }
  .big-link { font-size: 12pt; }
  a { color: inherit; text-decoration: none; }
}
