/*
  Minimal academic homepage stylesheet.
  Put this file in: $HOME/www/assets/style.css
*/

:root {
  --background: #f7f7f4;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #65707a;
  --border: #deded8;
  --accent: #245c8a;
  --accent-hover: #174363;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.08);

  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-size: 16px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(36, 92, 138, 0.10), transparent 34rem),
    var(--background);
  color: var(--text);
  line-height: 1.6;
}

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

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

a:focus-visible {
  outline: 3px solid rgba(36, 92, 138, 0.32);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.page {
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
  padding: 4rem 0 2.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.portrait {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 28px;
  background: #e7e7e2;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.04rem;
  line-height: 1.35;
}

.lead {
  max-width: 65ch;
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.5rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.profile-links a:hover,
.profile-links a:focus {
  border-color: rgba(36, 92, 138, 0.45);
  color: var(--accent-hover);
}

.card {
  margin-top: 1rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 30px rgba(31, 41, 51, 0.045);
}

.notice {
  border-color: rgba(36, 92, 138, 0.3);
  border-left-width: 4px;
  background: rgba(36, 92, 138, 0.06);
}

.notice h2 { margin-bottom: 0.45rem; }

.notice p {
  max-width: 65ch;
  margin-bottom: 1.1rem;
  color: var(--muted);
}

.notice .deadline {
  color: var(--text);
  font-weight: 650;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  align-items: center;
}

.notice .notice-contact {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.apply {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
}

.apply:hover,
.apply:focus { background: var(--accent-hover); color: #ffffff; }

.section-heading {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fbfbf9;
  color: #34404a;
}

.publication-list {
  padding-left: 1.35rem;
  margin: 0;
}

.publication-list li + li {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.authors,
.venue,
.publication-links {
  margin-bottom: 0.2rem;
  color: var(--muted);
}

.authors {
  color: #3e4952;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.95rem;
}

.publication-links a {
  font-weight: 650;
}

.footer {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

.email > span:nth-child(3) {
  display: none;
}


@media (max-width: 720px) {
  .page {
    width: min(100% - 1.25rem, 980px);
    padding-top: 1.25rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .portrait {
    width: 168px;
    height: 168px;
    border-radius: 22px;
  }

  .section-heading {
    display: block;
  }

  .profile-links a {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .profile-links a {
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
  }
}
