/* Firuzan Melike Sümertaş — personal site
   Palette: stone and olive. */
:root {
  --paper: #ecede8;
  --paper-2: #e2e4dc;
  --ink: #2b2f26;
  --ink-2: #5d6356;
  --rule: #cdd0c5;
  --kagir: #c8cfa9;
  --ahsap: #dcdccf;
  --su: #b8c4bd;
  --su-deep: #4f5e27;
  --olive-light: #d5dcb6;
  --serif: "Piazzolla", "Iowan Old Style", Georgia, serif;
  --sans: "Commissioner", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

/* Language switching: elements carry data-l="en" or data-l="tr" */
html[data-lang="en"] [data-l="tr"],
html[data-lang="tr"] [data-l="en"] { display: none !important; }

a { color: var(--su-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--su-deep); outline-offset: 3px; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(236, 237, 232, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ink);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 64px;
}
.brand {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-family: var(--sans); }
.nav a {
  font-size: 0.84rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 6px 9px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.lang-switch { margin-left: 12px; display: inline-flex; border: 1px solid var(--ink); }
.lang-switch button {
  font: inherit; font-family: var(--sans); font-size: 0.76rem; font-weight: 600;
  background: transparent; color: var(--ink); border: 0; padding: 4px 10px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu-toggle {
  display: none; font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  background: none; border: 1px solid var(--ink); padding: 6px 12px; color: var(--ink); cursor: pointer;
}

/* Hero */
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.02;
}
.tagline {
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-2);
  margin: 26px 0 30px; line-height: 1.55; padding-left: 16px; border-left: 3px solid var(--kagir);
}
.tagline .sep { display: block; height: 0; overflow: hidden; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  padding: 10px 18px; border: 1px solid var(--ink); color: var(--ink); background: transparent;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--kagir); color: var(--ink); }

/* Hero portrait */
.hero-art { position: relative; width: 100%; max-width: 290px; justify-self: end; margin-right: 14px; }
.hero-art .hero-photo {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  border: 1px solid var(--ink); background: var(--paper-2); overflow: hidden;
  box-shadow: 14px 14px 0 var(--kagir);
}
.hero-art .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.legend {
  font-family: var(--sans); font-size: 0.74rem; color: var(--ink-2); line-height: 1.45;
  margin: 10px 0 0; max-width: 380px;
}
.legend i { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--ink); margin: 0 4px -1px 0; }
.legend .k { background: var(--kagir); }
.legend .a { background: var(--ahsap); }
.legend .s { background: var(--su); }

/* Page title band */
.page-head { padding: 56px 0 30px; border-bottom: 1px solid var(--ink); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -0.015em; }
.page-head p { font-family: var(--sans); color: var(--ink-2); max-width: 60ch; margin: 14px 0 0; font-size: 0.98rem; }

/* Sections */
section.block { padding: 52px 0; }
section.block + section.block { border-top: 1px solid var(--rule); }
.block h2 { font-size: 1.95rem; font-weight: 400; margin-bottom: 26px; }
.block h3 { font-size: 1.3rem; font-weight: 600; margin: 34px 0 10px; }
.block h3:first-child { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.two-col > .label { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; padding-top: 2px; }
.prose p { margin: 0 0 1em; max-width: 66ch; }
.prose ul { padding-left: 1.2em; max-width: 66ch; }
.prose li { margin-bottom: 0.35em; }

/* Current work */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.card { padding: 24px 28px 26px 0; border-bottom: 1px solid var(--rule); }
.card:nth-child(odd) { border-right: 1px solid var(--rule); }
.card:nth-child(even) { padding-left: 28px; padding-right: 0; }
.card .meta { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-2); margin-bottom: 6px; }
.card h3 { font-size: 1.45rem; font-weight: 500; margin: 0 0 8px; }
.card p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.card .more { display: inline-block; margin-top: 12px; font-family: var(--sans); font-size: 0.88rem; font-weight: 500; }

/* Entry lists (CV, talks) */
.entries { list-style: none; margin: 0; padding: 0; }
.entries li {
  display: grid; grid-template-columns: 104px 1fr; gap: 24px; padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.entries li:last-child { border-bottom: 0; }
.entries .when { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 3px; }
.entries .sub { display: block; font-family: var(--sans); font-size: 0.86rem; color: var(--ink-2); margin-top: 2px; }
.tag {
  display: inline-block; font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  color: var(--ink); background: var(--ahsap); padding: 1px 7px; margin-left: 8px; vertical-align: 2px;
  text-indent: 0; white-space: nowrap;
}

/* Bibliography */
.bib { list-style: none; padding: 0; margin: 0; }
.bib li { padding: 12px 0 12px 24px; text-indent: -24px; border-bottom: 1px solid var(--rule); max-width: 80ch; }
.bib li:last-child { border-bottom: 0; }

/* İstanbul page */
.city { background: var(--ink); color: var(--paper); padding: 88px 0; }
.city .verse { max-width: 720px; margin: 0 auto; }
.city .verse p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.5; margin: 0 0 1.1em; }
.city .verse p:last-child { color: var(--olive-light); font-style: italic; }
.city .lang-note { text-align: center; font-family: var(--sans); font-size: 0.82rem; color: #b9bdb0; margin-top: 28px; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 16px; align-items: baseline; }
.contact-list .k { width: 110px; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-2); }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
.video { margin: 0; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--ink); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 12px; }
.video figcaption .when { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--ink-2); }
.video figcaption strong { display: block; font-size: 1.2rem; font-weight: 500; line-height: 1.3; margin: 2px 0 4px; }
.video figcaption .sub { display: block; font-family: var(--sans); color: var(--ink-2); font-size: 0.86rem; }

/* Footer */
.site-footer { background: var(--ink); color: #c9ccc0; padding: 36px 0; margin-top: 48px; font-family: var(--sans); font-size: 0.88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--olive-light); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 230px; justify-self: start; }
  .cards { grid-template-columns: 1fr; }
  .card, .card:nth-child(even) { padding: 22px 0; border-right: 0; }
  .two-col { grid-template-columns: 1fr; gap: 8px; }
  .videos { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--ink); flex-direction: column; align-items: stretch; padding: 8px 24px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1rem; }
  .lang-switch { margin: 12px 0 0; align-self: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .entries li { grid-template-columns: 1fr; gap: 2px; }
  .hero { padding: 40px 0 36px; }
}

/* Public-facing home */
.lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.45; color: var(--ink); max-width: 30ch; margin: 22px 0 30px; font-weight: 300; }
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.story { padding: 22px 26px 26px 0; border-right: 1px solid var(--rule); }
.story + .story { padding-left: 26px; }
.story:last-child { border-right: 0; padding-right: 0; }
.story h3 { font-size: 1.4rem; font-weight: 500; margin: 0 0 10px; }
.story p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.story .more { display: inline-block; margin-top: 12px; font-family: var(--sans); font-size: 0.88rem; font-weight: 500; }
.soon { display: inline-block; margin-top: 12px; font-family: var(--sans); font-size: 0.8rem; color: var(--ink-2); background: var(--paper-2); padding: 2px 8px; }
.maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.map-card { display: block; text-decoration: none; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); padding: 20px 20px 22px; border-top: 6px solid var(--kagir); }
.map-card:hover { border-color: var(--ink); color: var(--ink); }
.map-card strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 6px; }
.map-card span { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-2); }
.listen { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.listen figcaption strong { display: block; font-size: 1.15rem; font-weight: 500; margin-top: 10px; }
.pods { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.pods li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pods li a { font-size: 1.02rem; }
.pods li span { display: block; font-family: var(--sans); font-size: 0.82rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .stories, .maps, .listen { grid-template-columns: 1fr; }
  .story, .story + .story { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
}
.bib .role { display: block; text-indent: 0; margin-top: 4px; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-2); }

/* Dark header */
.site-header { background: var(--ink); backdrop-filter: none; border-bottom: 1px solid var(--ink); }
.brand, .brand:hover { color: var(--paper); }
.nav { background: var(--ink); }
.nav a { color: #c9ccc0; }
.nav a:hover { color: var(--paper); border-bottom-color: #6b7262; }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--olive-light); }
.lang-switch { border-color: #c9ccc0; }
.lang-switch button { color: #c9ccc0; }
.lang-switch button[aria-pressed="true"] { background: var(--olive-light); color: var(--ink); }
.menu-toggle { color: var(--paper); border-color: #c9ccc0; }