/* voce faringea — editorial stylesheet
   Palette: paper #FAF8F3 · ink #1E1E1C · navy #163A5F · cobalt #1B5FAA */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --paper: #FAF8F3;
  --ink: #1E1E1C;
  --navy: #163A5F;
  --cobalt: #1B5FAA;
  --cobalt-light: #7FA8D4;
  --paper-on-navy: #FAF8F3;
  --muted: #5C6067;
  --line: #DCD8CE;
  --display: "Fraunces", Georgia, serif;
  --body: "Spectral", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--paper-on-navy);
  padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--paper-on-navy);
  padding: 1.4rem 1.5rem;
}
.site-header .inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem 2rem;
}
.wordmark { display: block; color: inherit; text-decoration: none; }
.wordmark svg { display: block; height: 3.4rem; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.site-nav a {
  color: var(--paper-on-navy);
  text-decoration: none;
  font-family: var(--body); font-weight: 500;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover, .site-nav a:focus { border-bottom-color: var(--cobalt-light); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--paper-on-navy); }

/* ---------- Structure ---------- */
main { display: block; }
.column {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wide { max-width: 62rem; margin-left: auto; margin-right: auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 .8rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 3rem 0 1rem; clear: both; }
h3 { font-size: 1.2rem; margin: 2.2rem 0 .8rem; }

.kicker {
  font-family: var(--body); font-weight: 500;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cobalt); margin: 3.5rem 0 .8rem;
}
.page-head { padding-top: 0; }
.lede { font-size: 1.25rem; line-height: 1.65; color: var(--ink); }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

p { margin: 0 0 1.3rem; }
em, i { font-style: italic; }
strong, b { font-weight: 500; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* Drop cap for essay openings */
.dropcap::first-letter {
  font-family: var(--display);
  font-weight: 500;
  color: var(--navy);
  float: left;
  font-size: 3.4em;
  line-height: .82;
  padding: .06em .12em 0 0;
}

/* ---------- Plates ---------- */
figure.plate { margin: 3rem 0; clear: both; }
figure.plate .frame {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 2.2rem);
  text-align: center;
}
figure.plate img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
figure.plate figcaption {
  margin-top: .9rem;
  font-size: .92rem; line-height: 1.6; color: var(--muted);
}
figure.plate figcaption .plate-no {
  font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  font-size: .72rem; color: var(--cobalt);
  display: inline-block; margin-right: .6em;
}
figure.inset {
  float: right;
  width: min(250px, 46%);
  margin: .4rem 0 1.4rem 2.2rem;
}
figure.inset img { width: 100%; height: auto; display: block; }
figure.inset figcaption { margin-top: .6rem; font-size: .85rem; line-height: 1.55; color: var(--muted); }
.clear { clear: both; }
@media (max-width: 560px) {
  figure.inset { float: none; width: 100%; margin: 2rem 0; text-align: center; }
  figure.inset img { max-width: 260px; margin: 0 auto; }
}

figure.frontispiece { margin: 3.5rem 0 3rem; }
figure.frontispiece .frame { border: none; background: transparent; padding: 0; }
figure.frontispiece img { max-width: min(330px, 70vw); }
figure.frontispiece figcaption { text-align: center; max-width: 34rem; margin-left: auto; margin-right: auto; }

/* ---------- Bilingual quotes ---------- */
.quote {
  margin: 2.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0 1.2rem;
}
.quote .texts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
@media (max-width: 640px) { .quote .texts { grid-template-columns: 1fr; } }
.quote blockquote { margin: 0; font-size: 1rem; line-height: 1.7; }
.quote .original { font-style: italic; }
.quote .original em, .quote .original i { font-style: normal; }
.quote .lang {
  display: block; font-style: normal; font-weight: 500;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: .5rem;
}
.quote .source { margin: 1.2rem 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- Aside / book box ---------- */
.aside-box {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.4rem 1.5rem;
  margin: 2.5rem 0;
  display: flex; gap: 1.4rem; align-items: flex-start;
}
.aside-box img { width: 110px; height: auto; flex: none; }
.aside-box p { font-size: .98rem; margin-bottom: .8rem; }
.aside-box p:last-child { margin-bottom: 0; }

/* ---------- Video facade ---------- */
.video-facade {
  position: relative;
  margin: 3rem 0;
  background: var(--navy);
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade button {
  appearance: none; border: 0; background: transparent; color: var(--paper-on-navy);
  font-family: var(--body); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  padding: 2rem; width: 100%; height: 100%; justify-content: center;
}
.video-facade .play {
  width: 78px; height: 78px; border-radius: 50%;
  border: 2px solid var(--paper-on-navy);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.video-facade .play svg { margin-left: 5px; }
.video-facade button:hover .play, .video-facade button:focus .play { background: rgba(250, 248, 243, .12); }
.video-facade .vf-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 2.6vw, 1.5rem); max-width: 34rem; line-height: 1.35; }
.video-facade .vf-note { font-size: .8rem; color: var(--cobalt-light); max-width: 30rem; line-height: 1.5; }

/* ---------- Audio (Analyses) ---------- */
.listen { margin: 1.6rem 0 0; }
.listen .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .listen .pair { grid-template-columns: 1fr; } }
.listen .clip { background: #fff; border: 1px solid var(--line); padding: .9rem 1rem; }
.listen .clip .label {
  display: block; font-weight: 500; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
  margin-bottom: .55rem;
}
.listen audio { width: 100%; display: block; }

/* ---------- Publications ---------- */
.pub { border-top: 1px solid var(--line); padding: 1.8rem 0; }
.pub:last-of-type { border-bottom: 1px solid var(--line); }
.pub h3 { margin: 0 0 .4rem; }
.pub .meta { font-size: .95rem; color: var(--muted); margin-bottom: .5rem; }
.pub p { font-size: 1rem; }
.pub .doc { font-size: .95rem; }

/* ---------- Citation box ---------- */
.cite-box {
  border: 1px solid var(--line);
  border-left: 3px solid var(--cobalt);
  background: #fff;
  padding: 1.2rem 1.4rem;
  margin: 3rem 0;
  font-size: .95rem;
}
.cite-box .cite-label {
  font-weight: 500; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--cobalt);
  display: block; margin-bottom: .5rem;
}

/* ---------- Forms (contact) ---------- */
form.contact { margin: 2rem 0 3rem; }
form.contact label { display: block; font-weight: 500; font-size: .95rem; margin: 1.2rem 0 .3rem; }
form.contact input[type="text"], form.contact input[type="email"], form.contact textarea {
  width: 100%; padding: .65rem .8rem;
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 0;
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
form.contact .hp { position: absolute; left: -9999px; }
form.contact button {
  margin-top: 1.6rem;
  font-family: var(--body); font-weight: 500; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper-on-navy); background: var(--navy);
  border: 0; padding: .85rem 2.2rem; cursor: pointer;
  transition: background .2s ease;
}
form.contact button:hover, form.contact button:focus { background: var(--cobalt); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 5rem;
  background: var(--navy);
  color: var(--cobalt-light);
  font-size: .9rem;
  padding: 2.4rem 1.5rem 2.8rem;
}
.site-footer .inner { max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; }
.site-footer a { color: var(--paper-on-navy); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { text-decoration: underline; text-underline-offset: 3px; color: var(--paper-on-navy); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--navy);
  color: var(--paper-on-navy);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 5;
}
.to-top.visible { opacity: .92; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus { opacity: 1; background: var(--cobalt); }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .video-facade, .skip-link, form.contact button, .to-top { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .column, .wide { max-width: 100%; padding: 0; }
  figure.plate .frame { border: 1px solid #999; }
  a { color: #000; text-decoration: none; }
  .quote { border-color: #999; }
}

/* ---------- Lightbox (click-to-enlarge plates) ---------- */
figure.plate .frame img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(16, 26, 38, .93);
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem;
  cursor: zoom-out;
}
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; background: #fff; padding: 8px; }
.lightbox .lb-close {
  position: absolute; top: 1rem; right: 1rem;
  appearance: none; border: 0; background: transparent; color: #FAF8F3;
  font-size: 2rem; line-height: 1; cursor: pointer; padding: .4rem .7rem;
}
@media print { .lightbox { display: none; } }
