/* This page reuses /style.css for tokens, fonts, nav, dividers, .reveal, buttons and
   footer; the rules below cover only the events layout. Load after /style.css.
   Class names deliberately match /articles/style.css so both pages share one
   visual language — only the .essays-hero / .essay-section subset actually
   used on this page is duplicated here rather than pulled in as a shared file. */

.essays-hero {
  padding: 9rem 4rem 4rem;
  position: relative;
}
.essays-hero h1 {
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 0.7s 0.7s forwards;
}
.essays-byline {
  margin-top: 1.6rem;
  max-width: 760px;
  font-size: var(--prose-size);
  font-weight: var(--prose-weight);
  line-height: 1.75;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.6s 1.4s forwards;
}
.essays-byline strong { font-weight: 500; color: var(--text-body); }

.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--gold); }
.breadcrumb span[aria-hidden="true"] { margin: 0 0.6rem; color: var(--line); }
.breadcrumb [aria-current="page"] { color: var(--gold); }

.essay-section { padding: 5rem 4rem; }

.category-head { max-width: 860px; margin-bottom: 3.5rem; }
.category-head h2 { margin-bottom: 1.5rem; }
.category-intro {
  font-size: var(--prose-size);
  font-weight: var(--prose-weight);
  line-height: 1.75;
  color: var(--muted);
}
.category-intro strong { font-weight: 500; color: var(--text-body); }

.essay--row {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  align-items: start;
  border-top: 1px solid var(--line);
}
.essay--row:first-child { border-top: none; }

.essay-media {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--cream);
}
.essay-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.essay-media:hover img,
.essay-media:focus-visible img { transform: scale(1.04); }

.essay-body h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--ink); }
.essay-body p {
  font-size: var(--prose-size-sm);
  font-weight: var(--prose-weight);
  line-height: 1.7;
  color: var(--text-body);
  max-width: var(--prose-measure);
  margin-bottom: 1rem;
}
.essay-body p a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; transition: color 0.3s; }
.essay-body p a:hover, .essay-body p a:focus-visible { color: var(--gold-light); }
.essay-body p strong { font-weight: 500; color: var(--ink); }

.essay-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}
.essay-link::after { content: '\2192'; transition: transform 0.3s; }
.essay-link:hover::after, .essay-link:focus-visible::after { transform: translateX(4px); }
.essay-link:hover, .essay-link:focus-visible { color: var(--gold-light); }

.essay-internal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-left: 1.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.essay-internal:hover, .essay-internal:focus-visible { color: var(--gold); border-color: var(--gold); }

.essay-source {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .essays-hero { padding: 8rem 2rem 3rem; }
  .essay-section { padding: 4rem 2rem; }
  .essay--row { grid-template-columns: 1fr; gap: 1.5rem; }
  .essay-internal { margin-left: 0; }
}

/* No-JS fallback: show hero text immediately (html.no-js is removed by the
   inline script once JS runs; this rule only ever applies without it) */
.no-js .essays-hero h1,
.no-js .essays-byline,
.no-js .breadcrumb {
  opacity: 1;
  animation: none;
}

/* ── Reduced motion: show everything, kill transforms/animation ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .essays-hero h1, .essays-byline, .breadcrumb { opacity: 1 !important; animation: none !important; }
  .essay-media img { transform: none !important; }
}
