/* ==========================================================================
   Koine Bible Society: site.css
   Palette: paper #FBFAF7 · ink #1C1B1A · Tyrian purple #66203F
            rule #D9D5CC · meta #6F6A61
   Type:    Georgia (body & display) · Gentium Plus (Greek, self-hosted)
   The purple is not decorative: it is the color of the purple codices of
   the Greek Bible (Vienna Genesis, Codex Purpureus Petropolitanus).
   ========================================================================== */

@font-face {
  font-family: "Gentium Plus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/gentium-plus-greek-400-normal.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: "Gentium Plus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/gentium-plus-greek-ext-400-normal.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}

:root {
  --paper: #FBFAF7;
  --ink: #1C1B1A;
  --tyrian: #66203F;
  --rule: #D9D5CC;
  --meta: #6F6A61;
  --measure: 41rem;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Header & navigation ---- */

.masthead {
  max-width: 54rem;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 0;
  text-align: center;
}

.masthead .wordmark {
  font-size: 1.375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  font-weight: normal;
}
.masthead .wordmark a { color: var(--ink); text-decoration: none; }

.masthead .tagline {
  color: var(--meta);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0 0 1.6rem;
}

nav.site-nav {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
nav.site-nav a {
  color: var(--ink);
  text-decoration: none;
  margin: 0 0.85rem;
  padding-bottom: 2px;
  white-space: nowrap;
}
nav.site-nav a:hover { color: var(--tyrian); }
nav.site-nav a[aria-current="page"] {
  color: var(--tyrian);
  border-bottom: 1px solid var(--tyrian);
}

/* ---- Main column ---- */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tyrian);
  margin: 0 0 0.6rem;
}

h1 {
  font-size: 1.9rem;
  font-weight: normal;
  line-height: 1.25;
  margin: 0 0 1.4rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

p { margin: 0 0 1.1rem; }

a { color: var(--tyrian); }
a:hover { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--tyrian);
  outline-offset: 2px;
}

em { font-style: italic; }

/* ---- Greek ---- */

.gk {
  font-family: "Gentium Plus", "Palatino Linotype", "SBL Greek", serif;
  font-size: 1.06em;
}

/* ---- Hero (home page) ---- */

.hero {
  text-align: center;
  padding: 2.4rem 0 2.2rem;
}
.hero .gk-line {
  font-family: "Gentium Plus", "Palatino Linotype", serif;
  font-size: clamp(1.5rem, 4.2vw, 2.35rem);
  line-height: 1.4;
  margin: 0 0 0.9rem;
}
.hero .gk-gloss {
  font-style: italic;
  color: var(--meta);
  font-size: 1rem;
  margin: 0 0 0.4rem;
}
.hero .gk-ref {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tyrian);
  margin: 0;
}
.hero-rule {
  width: 6rem;
  border: 0;
  border-top: 2px solid var(--tyrian);
  margin: 2.2rem auto 0;
}

/* ---- Reading blocks ---- */

blockquote.reading {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 2px solid var(--tyrian);
}
blockquote.reading .gk-line {
  font-family: "Gentium Plus", "Palatino Linotype", serif;
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 0.35rem;
}
blockquote.reading .gloss {
  font-style: italic;
  margin: 0 0 0.25rem;
}
blockquote.reading .ref {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  margin: 0;
}

.note {
  font-size: 0.9rem;
  color: var(--meta);
  border-top: 1px solid var(--rule);
  margin-top: 2.4rem;
  padding-top: 0.9rem;
}

/* ---- Notify form ---- */

.notify {
  border: 1px solid var(--rule);
  padding: 1.4rem 1.5rem 1.5rem;
  margin: 2.8rem 0 0;
}
.notify h2 { border: 0; padding: 0; margin: 0 0 0.4rem; font-size: 1.05rem; }
.notify p { font-size: 0.95rem; color: var(--meta); margin-bottom: 0.9rem; }
.notify form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.notify input[type="email"] {
  flex: 1 1 14rem;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
}
.notify button {
  font-family: Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  background: var(--tyrian);
  color: var(--paper);
  border: 0;
  cursor: pointer;
}
.notify button:hover { background: #4E1830; }

/* ---- Footer ---- */

footer.site-footer {
  border-top: 1px solid var(--rule);
  max-width: 54rem;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 2.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--meta);
}
footer.site-footer p { margin: 0.25rem 0; }
footer.site-footer a { color: var(--meta); }
footer.site-footer a:hover { color: var(--tyrian); }

/* ---- Small screens ---- */

@media (max-width: 40rem) {
  nav.site-nav { font-size: 0.75rem; }
  nav.site-nav a { margin: 0 0.45rem; }
  main { padding-top: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---- Manuscript figures ---- */

figure.ms {
  margin: 2.4rem 0;
}
figure.ms img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
figure.ms figcaption {
  font-size: 0.85rem;
  color: var(--meta);
  line-height: 1.55;
  margin-top: 0.65rem;
}
figure.ms.ms-portrait {
  max-width: 21rem;
  margin-left: auto;
  margin-right: auto;
}
