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

html { 
  font-size: 100%; 
  scroll-behavior: smooth; 
}

body, h1, h2, p, ul, li { 
  margin: 0; 
  padding: 0; 
}

ul { 
  list-style: none; 
}

:root {
  --paper: #f7f3eb; /* Parchment/cream base */
  --ink: #3d2314;   /* Deep warm autumn brown (no black) */
  --muted: #8c5e3c; /* Rich autumn leaf brown (no grey) */
  --link: #693b1c;  /* Warm rich brown for links */
  --max-width: 720px; /* Increased by 20% from 600px */
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", Garamond, serif;
  font-size: 1.25rem;
  line-height: 1.82;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(85%, var(--max-width));
  margin: 0 auto;
  padding: 4rem 0 8rem;
}

.site-header { 
  margin-bottom: 3.5rem; 
}

h1 {
  font-size: clamp(2.9rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: .4rem;
}

.tagline { 
  color: var(--muted); 
  font-size: 1.18rem; 
  line-height: 1.4; 
}

section { 
  margin-bottom: 6rem; 
}

h2 {
  font-size: 1.22rem; 
  font-weight: bold; 
  line-height: 1.2;
  margin-bottom: 1.4rem;
}

/* Specific alignments for the bio vs the contact line */
.bio { 
  text-align: justify; 
}

.contact { 
  text-align: left; 
}

.divider {
  border: 0;
  height: 2px; /* Made the line bolder */
  background: var(--muted);
  opacity: 0.6; /* Increased opacity so it stands out more */
  margin: 2.2rem 0; /* Reduced margin (approx. 1.5 enters instead of 2+) */
}

.bibliography li { 
  margin-bottom: 2.4rem; 
}

.bibliography li:last-child { 
  margin-bottom: 0; 
}

.story-title {
  display: inline-block;
  font-size: 1.22rem; 
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
}

.story-title:hover, .story-title:focus {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.publication-meta { 
  margin-top: .2rem; 
  color: var(--muted); 
  font-size: .98em; 
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .18s ease, text-decoration-thickness .18s ease;
}

a:hover, a:focus { 
  color: var(--ink); 
  text-decoration-thickness: 2px; 
}

a:focus-visible { 
  outline: 2px solid var(--muted); 
  outline-offset: 4px; 
}

@media (max-width: 640px) {
  body { 
    font-size: 1.16rem; 
  }
  .container { 
    padding: 3rem 0 5rem; 
    width: 88%; 
  }
  .site-header { 
    margin-bottom: 3.5rem; 
  }
  section { 
    margin-bottom: 4.5rem; 
  }
  .bibliography li { 
    margin-bottom: 2rem; 
  }
  .story-title, h2 { 
    font-size: 1.14rem; 
  }
}