:root {
  --bg: #f7efe4;
  --ink: #0a0a0a;
  --muted: #3a3732;
  --line: #b7b0a4;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 250, 243, 0.4), rgba(255, 250, 243, 0.4)),
    url("assets/background.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--ink);
  font-family: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.page {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5.5rem 0 4.25rem;
}

.mark {
  display: block;
  width: min(11.5rem, 42vw);
  height: auto;
  margin-bottom: 3.25rem;
}

.hero h1 {
  margin: 0;
  max-width: 16em;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.argument {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 0 4.5rem;
  border-top: 1px solid var(--line);
}

.argument p {
  margin: 1.35em 0 0;
  font-size: 1.02rem;
  line-height: 1.72;
}

.argument p:first-child {
  margin-top: 2rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.research-index {
  padding: 4.5rem 0 5rem;
}

.research-index h1 {
  margin: 0 0 2.5rem;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

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

.post-list li {
  border-top: 1px solid var(--line);
}

.post-list a {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.15rem 0;
  text-decoration: none;
}

.post-list a:hover span {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.post-list time {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-list span {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: 1.25rem;
}

.page--article {
  width: min(40rem, calc(100% - 3rem));
}

.article {
  padding: 4.5rem 0 5rem;
}

.article-header time {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-header h1 {
  margin: 0 0 2rem;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.article-body {
  color: var(--ink);
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1.1em;
}

.empty {
  color: var(--muted);
}

@media (max-width: 800px) {
  html {
    background-attachment: scroll;
  }

  .page,
  .page--article {
    width: min(var(--max), calc(100% - 2rem));
  }

  .hero {
    padding: 4.25rem 0 3.25rem;
  }

  .post-list a {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 1rem 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

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