/*
  Minimal academic homepage
  Flat rustic terracotta background, black serif type, and restrained spacing
*/

:root {
  --rustic: #bd765f;
  --ink: #15110f;
  --page-width: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--rustic);
  color: var(--ink);
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    Palatino,
    "Book Antiqua",
    Georgia,
    serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--rustic);
}

.page {
  width: min(calc(100% - 52px), var(--page-width));
  margin: 0 auto;
  padding: 94px 0 106px;
}

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

.site-header {
  max-width: 790px;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.home-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.introduction {
  max-width: 720px;
  margin-top: 52px;
  font-size: clamp(1.08rem, 1.75vw, 1.19rem);
  line-height: 1.72;
  letter-spacing: -0.008em;
}

.introduction p {
  margin-bottom: 1.1rem;
}

.research-section {
  margin-top: 88px;
}

h2 {
  margin-bottom: 32px;
  font-size: clamp(1.95rem, 3.8vw, 2.7rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.research-list {
  display: grid;
  max-width: 770px;
  gap: 31px;
}

.research-list p {
  margin: 0;
  font-size: clamp(1.04rem, 1.55vw, 1.13rem);
  line-height: 1.62;
  letter-spacing: -0.006em;
  hanging-punctuation: first last;
}

.paper-title {
  font-weight: 500;
}

.paper-status {
  white-space: normal;
}

a {
  color: inherit;
  text-decoration-color: rgba(21, 17, 15, 0.78);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.19em;
  transition:
    opacity 150ms ease,
    text-decoration-thickness 150ms ease;
}

a:hover {
  opacity: 0.68;
  text-decoration-thickness: 1.5px;
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .page {
    width: min(calc(100% - 32px), var(--page-width));
    padding: 50px 0 66px;
  }

  h1 {
    font-size: clamp(1.05rem, 5.5vw, 1.9rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
  }

  .introduction {
    margin-top: 36px;
    font-size: 1.01rem;
    line-height: 1.68;
  }

  .research-section {
    margin-top: 58px;
  }

  h2 {
    margin-bottom: 25px;
    font-size: clamp(1.75rem, 7.6vw, 2.15rem);
  }

  .research-list {
    gap: 24px;
  }

  .research-list p {
    font-size: 0.99rem;
    line-height: 1.6;
  }
}

@media (min-width: 561px) and (max-width: 1100px) {
  .page {
    width: min(calc(100% - 64px), var(--page-width));
    padding-top: 78px;
  }

  .introduction {
    margin-top: 46px;
  }

  .research-section {
    margin-top: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a {
    transition: none;
  }
}
