/* After Verdict · shared institutional-essay stylesheet
 * Extracted from index.html masthead + body typography for reuse across
 * /essays/index.html and /essays/[slug]/index.html
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #EDE9E0;
  --ink: #15181D;
  --ink-body: #1D2129;
  --ink-soft: #3D4550;
  --muted: #7A8590;
  --muted-strong: #4A5560;
  --slate: #22282F;
  --slate-accent: #4A5560;
  --oxblood: #6B2C2C;
  --rule: #C9C4B8;
  --rule-strong: #B5AE9E;
}

body {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink-body);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem 2rem 2rem;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

/* Masthead */
.masthead {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 3.5rem;
}
.masthead a.wordmark-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.masthead h1.wordmark {
  font-family: "Playfair Display", "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 4rem;
  letter-spacing: -0.015em;
  line-height: 1.03;
  color: var(--ink);
  margin-bottom: 0.6rem;
  font-feature-settings: "onum" 1, "liga" 1;
}
.masthead .kicker {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-weight: 600;
}
.masthead .subnav {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-weight: 600;
  margin-top: 1rem;
}
.masthead .subnav a {
  color: var(--muted-strong);
  text-decoration: none;
  padding: 0 0.75rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.masthead .subnav a:hover {
  color: var(--oxblood);
  border-bottom-color: var(--oxblood);
}
.masthead .subnav .sep { color: var(--rule-strong); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  flex: 1;
}

/* Essay hero (title + byline) */
.hero {
  padding: 1.5rem 0 3rem 0;
}
.hero .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-bottom: 1.75rem;
  text-align: center;
  font-weight: 600;
}
h2.headline {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 2.65rem;
  line-height: 1.13;
  letter-spacing: -0.008em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 1.75rem;
  font-feature-settings: "onum" 1;
}
h2.headline em { font-style: italic; color: var(--oxblood); font-weight: 500; }

.byline {
  text-align: center;
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted-strong);
  margin-bottom: 3rem;
  letter-spacing: 0.01em;
  font-weight: 400;
}
.byline .name { color: var(--ink); font-style: normal; font-weight: 600; letter-spacing: 0.005em; }

/* Signature reserved for post-verdict, hook, and reflection punctuation. Not for the byline.
 * Sized as an author's discreet mark (painter's bottom-right signature register),
 * not as an artwork. Per Sébastien Assohou ratified spec 2026-07-30 morning NYC.
 * "À cheval" repositioning per Sébastien Assohou second visual audit 2026-07-30 evening :
 * the float rises alongside the last closing line rather than floating in white space. */
.signature-mark {
  float: right;
  display: block;
  width: 100px;
  max-width: 100px;
  height: auto;
  margin-top: 0.4rem;
  margin-right: 18%;
  margin-bottom: 1.5rem;
  margin-left: auto;
  opacity: 0.9;
  clear: none;
}
@media (max-width: 640px) {
  .signature-mark {
    width: 80px;
    max-width: 80px;
    margin-top: 0.3rem;
    margin-right: 10%;
  }
}

/* Essay body */
.dropcap {
  border-top: 1px solid var(--rule-strong);
  padding-top: 2.5rem;
  margin-top: 1rem;
}
p.body {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink-body);
  margin-bottom: 1.5rem;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  font-weight: 500;
}
.dropcap > p.body:first-of-type::first-letter {
  font-family: "Playfair Display", "EB Garamond", Georgia, serif;
  font-size: 3.8rem;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  padding-top: 0.45rem;
  padding-right: 0.6rem;
  color: var(--ink);
}
p.body strong {
  font-weight: 600;
  color: var(--ink);
  font-style: italic;
}
p.body em { font-style: italic; }

/* Section headings inside long essays */
h3.section {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 3rem 0 1.25rem 0;
  letter-spacing: -0.005em;
}

/* Block quotes (verbatim excerpts) */
blockquote.excerpt {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--slate);
  border-left: 3px solid var(--oxblood);
  padding: 0.35rem 0 0.35rem 1.5rem;
  margin: 1.75rem 0 1.75rem 0;
}
blockquote.excerpt p { margin-bottom: 0.75rem; font-weight: 500; }
blockquote.excerpt p:last-child { margin-bottom: 0; }
blockquote.excerpt cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted-strong);
  margin-top: 0.75rem;
  font-weight: 600;
}

/* Meta list */
.meta {
  clear: both;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-strong);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.75rem 2rem;
  align-items: baseline;
}
.meta dt {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.meta dd {
  font-size: 1.02rem;
  color: var(--ink-body);
  font-style: italic;
  font-weight: 500;
}
.meta dd a {
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 1px;
  font-style: italic;
  font-weight: 500;
}
.meta dd a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Essay index (list of essays) */
.essay-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 4rem 0;
}
.essay-list li {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.essay-list li:first-child { border-top: 1px solid var(--rule); }
.essay-list a.essay-item {
  text-decoration: none;
  color: inherit;
  display: block;
}
.essay-list .item-num {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.essay-list .item-title {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.005em;
}
.essay-list .item-dek {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted-strong);
  line-height: 1.5;
  font-weight: 500;
}
.essay-list a.essay-item:hover .item-title { color: var(--oxblood); }
.essay-list li.placeholder .item-title { color: var(--muted-strong); font-style: italic; font-weight: 500; }
.essay-list li.placeholder .item-num { color: var(--muted-strong); }

/* Volume header on essays index */
.volume-header {
  margin: 3rem 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-strong);
}
.volume-header .vol-num {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.volume-header .vol-title {
  font-family: "Playfair Display", "EB Garamond", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.volume-header .vol-dek {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted-strong);
  margin-top: 0.4rem;
}

/* Closing tricolon block for essays */
.tricolon {
  text-align: center;
  margin: 3rem 0 1rem 0;
}
.tricolon p {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.65;
  font-weight: 500;
}
.tricolon p span { display: block; }

/* Footer */
footer {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--rule-strong);
}
footer .imprint {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-weight: 600;
}
footer .imprint .sep { color: var(--oxblood); padding: 0 0.35rem; font-weight: 700; }
footer .imprint a { color: var(--muted-strong); text-decoration: none; border-bottom: 1px solid transparent; }
footer .imprint a:hover { color: var(--oxblood); border-bottom-color: var(--oxblood); }
footer .address {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted-strong);
  margin-top: 0.8rem;
  font-style: italic;
}

/* Back link on essay pages */
.back-link {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-strong);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  margin-bottom: 2rem;
  display: inline-block;
  font-weight: 600;
}
.back-link:hover { color: var(--oxblood); border-bottom-color: var(--oxblood); }

/* Footnotes list (essay end) */
.footnotes-list {
  border-top: 1px solid var(--rule-strong);
  margin-top: 3.5rem;
  padding-top: 2rem;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.92rem;
  color: var(--muted-strong);
  list-style: none;
  counter-reset: fn;
}
.footnotes-list li {
  counter-increment: fn;
  margin-bottom: 0.85rem;
  padding-left: 2rem;
  position: relative;
  line-height: 1.55;
}
.footnotes-list li::before {
  content: "[" counter(fn) "]";
  position: absolute;
  left: 0;
  color: var(--oxblood);
  font-weight: 600;
}

/* License stamp */
.license {
  text-align: center;
  margin-top: 3rem;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-weight: 600;
}

@media (max-width: 640px) {
  body { padding: 3rem 1.5rem 2rem 1.5rem; }
  .masthead h1.wordmark { font-size: 2.75rem; }
  .masthead .kicker { font-size: 0.62rem; letter-spacing: 0.28em; }
  h2.headline { font-size: 1.85rem; }
  .byline { font-size: 1rem; }
  p.body { font-size: 1.02rem; line-height: 1.65; text-align: left; }
  .dropcap > p.body:first-of-type::first-letter { font-size: 3rem; }
  h3.section { font-size: 1.25rem; }
  blockquote.excerpt { font-size: 1.02rem; padding-left: 1rem; }
  .meta { grid-template-columns: 1fr; gap: 0.25rem; }
  .meta dt { padding-top: 0.85rem; }
  .masthead { margin-bottom: 2.5rem; }
  .essay-list .item-title { font-size: 1.35rem; }
  .tricolon p { font-size: 1.05rem; }
}

/* Language switcher (EN | FR) · text-only, no flags */
.lang-switcher {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.45rem;
  max-width: 760px;
  margin: 0 auto 1.5rem auto;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}
.lang-switcher .lang-toggle {
  color: var(--muted-strong);
  text-decoration: none;
  padding: 0.1rem 0.15rem;
}
.lang-switcher .lang-toggle:hover {
  color: var(--oxblood);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lang-switcher .lang-toggle[aria-current='page'] {
  color: var(--oxblood);
  font-weight: 700;
  text-decoration: none;
}
.lang-switcher .lang-sep { color: var(--rule-strong); }

/* Translation disclosure note (banner footer, per-language cross-link) */
.translation-note {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted-strong);
  text-align: center;
  line-height: 1.6;
}
.translation-note a {
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
}
.translation-note a:hover { border-bottom-color: var(--oxblood); }
