/* A paper-and-ink collage. Reading typography and the journal wordmark stay intact. */
:root {
  --terracotta: #994e3f;
  --terracotta-dark: #7f3f33;
  --beige-light: #e7dac9;
  --beige-dark: #a68b78;
  --gray-blue: #b2a5ca;
  --gray-dark: #62606b;
  --gray-medium: #606e70;
  --page-bg: #f8f3ea;
  --ink-plum: #6842a6;
  --ink-pine: #236a63;
  --ink-rust: #994e3f;
}

.site-header { background: #fffcf6; border-bottom: 0; }
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink-plum) 0 19%, #dbb94c 19% 37%, var(--ink-pine) 37% 73%, var(--ink-rust) 73%);
  pointer-events: none;
}
.site-header .brand:hover, .site-header .brand:focus-visible { color: #bd5b5a; }
.site-header .main-nav { gap: 12px 32px; }
.site-header .main-nav a { line-height: 1.2; }
.site-header .main-nav a::after { background: currentColor; height: 2px; bottom: 4px; }
.site-header .main-nav a[href="archive.html"] {
  font-family: "Tinos Editorial", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 25px;
  color: var(--ink-plum);
}
.site-header .main-nav a[href="authors.html"] {
  font-family: "Neucha", "Geologica", sans-serif;
  font-weight: 400;
  font-size: 25px;
  letter-spacing: 0.025em;
  color: var(--ink-pine);
}
.site-header .main-nav a[href="about.html"] {
  font-family: "Geologica", Arial, sans-serif;
  font-weight: 650;
  font-size: 20px;
  letter-spacing: 0.07em;
  color: var(--ink-rust);
}
.site-header .main-nav a[aria-current]::after { transform: scaleX(1); }

.hero {
  background:
    radial-gradient(ellipse at 8% 12%, #d9e5d9 0, transparent 44%),
    radial-gradient(ellipse at 93% 91%, #e8dced 0, transparent 46%),
    var(--page-bg);
  border-bottom: 1px solid #d7c8b8;
}
.hero h1 { color: #40364c; }
/* Only semantic content headings; body copy and header typography stay independent. */
main :is(h1, h2, h3, h4, h5, h6) {
  --font-display: "Tinos", Georgia, serif;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
}
.hero-cover {
  --cover-rim: 3px;
  --cover-page-x: 10px;
  --cover-page-y: 12px;
  --cover-aura: linear-gradient(115deg, #9270d6, #639ee0, #8bcbb9, #edc17c, #e7a1b7, #9270d6);
  position: relative;
  isolation: isolate;
  border-radius: 0;
  transform: rotate(-1.25deg);
  box-shadow: 0 12px 28px #353f4d20;
}
.hero-cover-sheet {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate(var(--cover-page-x), var(--cover-page-y));
  background: #d9bd78;
  border: 1px solid #bda268;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.hero-cover:hover .hero-cover-sheet,
.hero-cover:focus-visible .hero-cover-sheet {
  background: #c2d7cc;
  border-color: #9ab8a7;
}
.hero-cover::before,
.hero-cover::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: var(--cover-aura);
  background-size: 300% 300%;
  background-position: 0% 50%;
}
/* A real paper layer stays visible above the halo, even while the image decodes. */
.hero-cover::before {
  inset: calc(-1 * var(--cover-rim));
  z-index: 1;
  border-radius: 0;
}
.hero-cover::after {
  inset: -6px;
  z-index: -1;
  border-radius: 0;
  filter: blur(11px);
  opacity: 0.6;
}
.hero-cover img { position: relative; z-index: 2; border-radius: 0; background: var(--white); }
.hero-cover:hover,
.hero-cover:focus-visible { box-shadow: 0 14px 34px #353f4d28; }
.hero-cover:focus-visible { outline: 2px solid var(--navy); outline-offset: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-cover::before,
  .hero-cover::after { animation: cover-aura-flow 10s ease-in-out infinite; }
}
@keyframes cover-aura-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.featured-authors { background: #fffcf6; }
.featured-authors .section-title { color: var(--ink-pine); letter-spacing: 0.16em; }
.featured-authors .contributor:nth-child(3n + 1) .avatar { box-shadow: 0 0 0 3px #c0abc9; }
.featured-authors .contributor:nth-child(3n + 2) .avatar { box-shadow: 0 0 0 3px #b4cdbb; }
.featured-authors .contributor:nth-child(3n) .avatar { box-shadow: 0 0 0 3px #d8b29a; }
.archive-preview .archive-header h2 { color: var(--ink-plum); }
.archive-preview .issue-card { background: #f0e9dd; border-color: #bca99b; }
.site-footer { border-top: 3px solid #b2a5ca; }

@media (max-width: 768px) {
  .site-header .main-nav { gap: 4px 22px; }
  .site-header .main-nav a[href="archive.html"],
  .site-header .main-nav a[href="authors.html"] { font-size: 22px; }
  .site-header .main-nav a[href="about.html"] { font-size: 18px; }
  .hero-cover {
    --cover-rim: 2px;
    --cover-page-x: 6px;
    --cover-page-y: 8px;
    transform: rotate(-0.75deg);
  }
  .hero-cover::after { inset: -4px; filter: blur(8px); opacity: 0.5; }
}
