:root {
  --ink: #5d4e4e;
  --accent: #ff9a75;
  --paper: rgba(252, 250, 247, 0.92);
  --paper-soft: rgba(252, 250, 247, 0.78);
}

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

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
  background: #f2f2f2 url('Bkg3.png') no-repeat center center / cover fixed;
}

.btn {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--paper-soft);
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.back-link {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  transition: color 0.15s ease, background 0.15s ease;
}

.back-link:hover {
  color: #fff;
  background: var(--accent);
}

/* Home */

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 3.25rem 1.5rem 2.5rem;
  gap: 2rem;
}

.home h1 {
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-nav {
  max-width: 36rem;
  margin-top: 2rem;
}

.home ol {
  list-style: decimal;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0;
}

.home ol li {
  padding-left: 0;
}

.home ol li::marker {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 500;
}

.home ol a {
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.home ol a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-footnote {
  margin-top: auto;
  padding-top: 3rem;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.65;
}

/* Articles */

.article-wrap {
  min-height: 100vh;
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  text-align: center;
}

.article-wrap .back-link {
  margin-bottom: 1.5rem;
}

.article {
  background: var(--paper);
  padding: 2.5rem 2.75rem;
  border-radius: 2px;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(93, 78, 78, 0.08);
  text-align: left;
}

.article h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  color: var(--ink);
}

.article h2 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.article p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  text-align: justify;
  color: var(--ink);
}

.article em {
  font-style: italic;
}

.article .lede {
  font-style: italic;
  opacity: 0.88;
  margin-bottom: 1.5rem;
}

.article a.citation {
  color: inherit;
  text-decoration: none;
}

.article a.citation:hover sup {
  color: var(--accent);
}

.article .references p {
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: left;
  margin-bottom: 0.65rem;
}

.article .references a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(93, 78, 78, 0.35);
}

.article .references a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

@media (max-width: 600px) {
  .home {
    gap: 1.5rem;
    padding: 2.5rem 1.25rem 2rem;
  }

  .article-wrap {
    padding: 2rem 1.25rem 3rem;
  }

  .article {
    padding: 1.75rem 1.5rem;
  }
}
