/* ozanbozdag.github.io */

:root {
  --paper: #fbfcfb;
  --ink: #1d2528;
  --muted: #5a666b;
  --rule: #dce2e0;
  --accent: #0f6873;
  --accent-ink: #0a4d55;
  --wash: #eef3f2;
  --measure: 40rem;
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151b1d;
    --ink: #e4e9e8;
    --muted: #9aa8ac;
    --rule: #2c3639;
    --accent: #6cc3cc;
    --accent-ink: #9ad9df;
    --wash: #1c2427;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.home-link svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: var(--accent);
  flex: none;
  align-self: center;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-size: 2.1rem;
  letter-spacing: -0.012em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 3.25rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.1rem;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

p { margin: 0 0 1.1rem; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent-ink); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

em, i { font-style: italic; }

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- home ---------- */

.intro {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.intro img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 3px;
  display: block;
}

.intro h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

.intro .role {
  color: var(--muted);
  margin: 0 0 0.9rem;
  line-height: 1.45;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

@media (max-width: 34rem) {
  .intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .intro img { width: 8rem; }
}

/* ---------- findings list ---------- */

.findings {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.findings li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}

.findings li:last-child { border-bottom: 1px solid var(--rule); }

.cite {
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- publications ---------- */

.pubs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pubs li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  line-height: 1.5;
}

.pubs .year {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  padding-top: 0.08rem;
}

.pubs .year.repeat { visibility: hidden; }

.pubs .title { display: block; font-weight: 600; }
.pubs .title a { color: var(--ink); text-decoration-color: var(--rule); }
.pubs .title a:hover { color: var(--accent); text-decoration-color: currentColor; }
.pubs .authors { display: block; color: var(--muted); font-size: 0.95rem; }
.pubs .authors b { color: var(--ink); font-weight: 600; }
.pubs .venue { display: block; font-size: 0.95rem; }

@media (max-width: 34rem) {
  .pubs li { grid-template-columns: 1fr; }
  .pubs .year.repeat { display: none; }
}

/* ---------- tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  font-variant-numeric: tabular-nums;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--muted);
  border-bottom-color: var(--ink);
}

td.num, th.num { text-align: right; padding-left: 1.25rem; padding-right: 0; white-space: nowrap; }
td:last-child, th:last-child { padding-right: 0; }

/* ---------- quotes ---------- */

.quotes h3 { margin-top: 2rem; }

blockquote {
  margin: 0 0 1rem;
  padding: 0.1rem 0 0.1rem 1.1rem;
  border-left: 2px solid var(--accent);
}

blockquote p { margin: 0; }

blockquote footer {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ---------- simple lists ---------- */

.plain {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.plain li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule);
  line-height: 1.5;
}

.plain li:last-child { border-bottom: 1px solid var(--rule); }

.plain .when {
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 34rem) {
  .plain li { grid-template-columns: 1fr; }
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
}

.button:hover { background: var(--wash); }

/* ---------- footer ---------- */

.site-foot {
  margin-top: 4.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-foot .wrap {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.site-foot p { margin: 0; }
.site-foot a { color: var(--muted); }

@media print {
  .site-head nav, .site-foot { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
