/* ==========================================================
   Sedat Ors | Academic Website
   ========================================================== */

/* ---------- Variables ---------- */

:root {

  --bg: #ffffff;
  --nav-bg: #ffffff;
  --panel: #f7f8f9;

  --text: #222222;
  --text-muted: #666666;
  --text-dim: #888888;

  --accent: #0f766e;
  --accent-hover: #115e59;

  --hairline: #e5e5e5;

  --container: 940px;
  --sidebar: 260px;

  --font: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Container ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================
   Header
   ========================================================== */

header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--hairline);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}

.site-title a {
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color .2s ease;
}

.site-title a:hover {
  color: var(--accent);
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: var(--text-dim);
  font-size: 16px;
  font-weight: 400;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

nav a:hover {
  color: var(--text);
}

nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ==========================================================
   Home page grid
   ========================================================== */

.page {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding-top: 52px;
  padding-bottom: 72px;
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: sticky;
  top: 32px;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.name {
  margin: 18px 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.position {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--accent);
}

.institution {
  margin: 6px 0 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-muted);
}

.links {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.links a {
  color: var(--accent);
  transition: color .2s ease;
}

.links a:hover {
  color: var(--accent-hover);
}

.links span {
  color: var(--text-dim);
  margin: 0 6px;
}

/* ---------- Degrees ---------- */

.degrees {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.degrees p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.degrees p:last-child {
  margin-bottom: 0;
}

.degrees strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- About ---------- */

.about h1 {
  margin: 0 0 22px;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
}

.about p {
  margin: 0 0 20px;
}

.about p:last-child {
  margin-bottom: 0;
}

.about a {
  color: var(--accent);
  transition: color .2s ease;
}

.about a:hover {
  color: var(--accent-hover);
}

.about strong {
  font-weight: 600;
}

/* ==========================================================
   Content pages (research, teaching, blog)
   ========================================================== */

.content {
  max-width: 780px;
  padding-top: 52px;
  padding-bottom: 72px;
}

.content h1 {
  margin: 0 0 18px;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
}

.content .lead {
  margin: 0;
  color: var(--text-muted);
}

.content h2 {
  margin: 46px 0 4px;
  font-size: 22px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

/* ---------- Paper lists ---------- */

.papers {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paper;
}

.papers li {
  position: relative;
  padding: 18px 0 18px 32px;
  border-bottom: 1px solid var(--hairline);
  counter-increment: paper;
}

.papers li::before {
  content: counter(paper) ".";
  position: absolute;
  left: 0;
  top: 18px;
  font-size: 16px;
  color: var(--text-dim);
}

.papers li:last-child {
  border-bottom: none;
}

.paper-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.paper-meta {
  display: block;
  margin-top: 4px;
  font-size: 15.5px;
  color: var(--text-muted);
}

.paper-links {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.paper-links a {
  color: var(--accent);
  transition: color .2s ease;
}

.paper-links a:hover {
  color: var(--accent-hover);
}

.paper-links span {
  color: var(--text-dim);
  margin: 0 6px;
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 3px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  vertical-align: middle;
}




/* ---------- Teaching ---------- */

.teaching-item {
  padding: 18px 0;
}

.teaching-item p {
  margin: 0 0 6px;
}

.teaching-item p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 16.5px;
}

.role {
  font-size: 18px;
  font-weight: 600;
}

.dates {
  margin-left: 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dim);
}

.courses {
  font-size: 16.5px;
  color: var(--text-muted);
}

.courses strong {
  color: var(--text);
  font-weight: 600;
}




/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 48px;
  margin-top: 40px;
}

.contact-item h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.contact-item a {
  color: var(--accent);
  transition: color .2s ease;
}

.contact-item a:hover {
  color: var(--accent-hover);
}



/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 820px) {

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 18px;
  }

  .page {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 34px;
    padding-bottom: 52px;
  }

  .sidebar {
    position: static;
    max-width: 300px;
  }

  .about h1 {
    font-size: 32px;
  }

  .content {
    padding-top: 34px;
    padding-bottom: 52px;
  }

  .content h1 {
    font-size: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

}

/* ==========================================================
   Reduced motion
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

}