/* Academic website draft for Mark Nader Basafa */

:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --ink: #202426;
  --muted: #646d70;
  --line: #d8d8d2;
  --accent: #6f2f26;
  --accent-soft: #efe7e4;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
.profile-photo {
  margin: 0;
}
.profile-photo {
  margin: 0 0 1.5rem;
}
.profile-photo img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  border: 1px solid var(--line);
}
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(32, 36, 38, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.68;
}

a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: #4f2019;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 247, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-title {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: flex-end;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

main,
footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(3.25rem, 8vw, 6rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 730px;
  color: #303638;
  font-size: clamp(1.03rem, 1.8vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: #4f2019;
  color: #ffffff;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--accent-soft);
  color: #4f2019;
}

.profile-card {
  padding: 1.1rem 1.15rem;
  border-top: 3px solid var(--accent);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(32, 36, 38, 0.05);
}

.profile-card h2 {
  font-size: 1.05rem;
}

.profile-card p {
  margin-bottom: 0.95rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-card p:last-child {
  margin-bottom: 0;
}

.profile-card strong {
  color: var(--ink);
}

.section {
  padding: clamp(2rem, 5vw, 3.4rem) 0;
  border-bottom: 1px solid var(--line);
}

.section > p,
.section > .timeline,
.section > .publication-list,
.contact p {
  max-width: 760px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.research-list {
  display: grid;
  gap: 1rem;
}

.research-list article,
.publication,
.timeline > div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.research-list article:first-child,
.publication:first-child,
.timeline > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.research-list p,
.publication p,
.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication h3 {
  max-width: 820px;
}
.reading-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  max-width: 760px;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.book-cover {
  display: block;
  width: 120px;
  height: auto;
  border: 1px solid var(--line);
  background: #ffffff;
}

@media (max-width: 560px) {
  .reading-item {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 1rem;
  }

  .book-cover {
    width: 90px;
  }
}
.timeline {
  display: grid;
  gap: 1rem;
}

.note {
  margin-top: 1.35rem;
  color: var(--muted);
  font-style: italic;
}

.contact .email {
  font-size: 1.12rem;
  font-weight: 700;
}

footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }
}
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 620px;
  margin-top: 1.25rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}
.reading-month {
  max-width: 760px;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.reading-month summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.reading-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 1rem;
}

.book-cover {
  display: block;
  width: 120px;
  height: auto;
  border: 1px solid var(--line);
  background: #ffffff;
}

@media (max-width: 560px) {
  .reading-item {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 1rem;
  }

  .book-cover {
    width: 90px;
  }
}
.thought-day {
  max-width: 760px;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.thought-day summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.thought-box {
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: #ffffff;
  color: var(--ink);
}

.thought-box p {
  margin: 0;
  font-size: 1.08rem;
  font-style: italic;
}


.contact-form textarea {
  resize: vertical;
}
.thought-box li {
  margin-bottom: 1.4rem;
}
