/* L. J. Emory Publishing — "the library" redesign (SC-302)
   deep bottle-green · brass gold · cream · Cormorant/EB Garamond */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/EBGaramond.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/EBGaramond-Italic.woff2') format('woff2');
  font-weight: 400 800; font-style: italic; font-display: swap;
}

:root {
  --green: #16342A; --green-deep: #0E241C; --green-soft: #24493B;
  --cream: #F7F3E8; --cream-deep: #EFE8D6; --card: #FFFDF6;
  --ink: #24211A; --ink-soft: #5C564A;
  --gold: #A9853B; --gold-soft: #C7A96B; --line: #DFD5BC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18.5px; line-height: 1.8;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; }
a { color: var(--gold); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--green); }
img { max-width: 100%; }

/* ── header ─────────────────────────────────────────── */
header.site {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
header.site .inner {
  max-width: 1100px; margin: 0 auto; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.logo img { height: 54px; width: auto; display: block; }
nav.site { display: flex; gap: 30px; }
nav.site a {
  color: var(--ink-soft); text-decoration: none;
  font-variant: small-caps; letter-spacing: 0.22em; font-size: 16.5px;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
nav.site a:hover { color: var(--green); border-bottom-color: var(--gold-soft); }
nav.site a.here { color: var(--green); border-bottom-color: var(--gold); }

/* ── hero (home) ────────────────────────────────────── */
.hero {
  position: relative; background: var(--green-deep); color: var(--cream); overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0;
  background: url('assets/hero-green.jpg') center 38%/cover;
  opacity: 0.5;
}
.hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,36,28,0.55), rgba(14,36,28,0.82));
}
.hero .plate {
  position: relative; max-width: 880px; margin: 84px auto 92px; padding: 64px 48px 58px;
  text-align: center;
  border: 1px solid rgba(199,169,107,0.6);
  outline: 1px solid rgba(199,169,107,0.35); outline-offset: 5px;
  background: rgba(14,36,28,0.35);
}
.hero .kicker { color: var(--gold-soft); }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px); font-weight: 500; line-height: 1.12;
  margin: 18px 0 16px; color: #F6F1E2;
}
.hero p { font-size: clamp(18px, 2.1vw, 21.5px); color: #E4DCC6; max-width: 620px; margin: 0 auto; }
.orn { color: var(--gold-soft); letter-spacing: 0.6em; font-size: 15px; margin-top: 26px; }

/* slim banner for subpages */
.pagehead { background: var(--green-deep); color: var(--cream); border-bottom: 3px double var(--gold-soft); }
.pagehead .inner { max-width: 1100px; margin: 0 auto; padding: 44px 28px 40px; }
.pagehead h1 { font-size: clamp(34px, 4.5vw, 48px); font-weight: 500; margin: 6px 0 0; color: #F6F1E2; }
.pagehead .kicker { color: var(--gold-soft); }

/* ── shared section furniture ───────────────────────── */
main { max-width: 1100px; margin: 0 auto; padding: 16px 28px; }
section { margin: 64px 0; }
.kicker {
  font-variant: small-caps; letter-spacing: 0.32em; font-size: 15px;
  color: var(--gold); margin-bottom: 8px;
}
h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 0 0 8px; color: var(--green); }
p.lede { font-size: 21px; color: var(--ink-soft); max-width: 700px; margin-top: 10px; }
.rule {
  border: 0; height: 1px; background: var(--line); position: relative;
  overflow: visible; margin: 0;
}
.rule::after {
  content: '◆'; position: absolute; left: 50%; top: -11px; transform: translateX(-50%);
  color: var(--gold-soft); font-size: 11px; background: var(--cream); padding: 0 14px;
}

/* ── cover shelves ──────────────────────────────────── */
.covers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 34px 26px; margin-top: 34px; align-items: end;
}
.covers figure { margin: 0; text-align: center; }
.covers img {
  width: 100%; height: auto;
  filter: drop-shadow(0 18px 22px rgba(14,36,28,0.30));
  transition: transform 0.25s ease;
}
.covers figure:hover img { transform: translateY(-7px); }
.covers figcaption {
  margin-top: 14px; font-size: 16px; color: var(--ink-soft);
}
.covers figcaption .no {
  display: block; font-variant: small-caps; letter-spacing: 0.26em;
  font-size: 13.5px; color: var(--gold);
}
.covers figcaption .title { font-style: italic; font-size: 18px; color: var(--ink); }

/* flat-cover shelves (non-3D artwork) */
.covers.flat { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 30px 24px; }
.covers.flat img {
  filter: none; border: 1px solid rgba(36,33,26,0.12);
  box-shadow: 0 14px 26px rgba(14,36,28,0.22);
}
.covers.flat figcaption .title { font-size: 16.5px; }
p.more { margin-top: 30px; font-size: 19px; }
.note-center { text-align: center; color: var(--ink-soft); font-style: italic; margin: 10px 0 0; }

/* ── approach pillars ───────────────────────────────── */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px 36px; margin-top: 38px;
}
.pillar { border-top: 2px solid var(--gold-soft); padding-top: 20px; }
.pillar .num {
  font-variant: small-caps; letter-spacing: 0.3em; font-size: 13px; color: var(--gold);
}
.pillar h3 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: 26px; color: var(--green); margin: 6px 0 10px;
}
.pillar p { margin: 0; color: var(--ink-soft); font-size: 17.5px; }

/* ── dark interlude band ────────────────────────────── */
.credo { background: var(--green); color: var(--cream); border-top: 3px double var(--gold-soft); border-bottom: 3px double var(--gold-soft); }
.credo .inner { max-width: 820px; margin: 0 auto; padding: 58px 28px; text-align: center; }
.credo .fleuron { color: var(--gold-soft); font-size: 20px; letter-spacing: 0.5em; margin-bottom: 18px; }
.credo p {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
  font-size: clamp(23px, 3vw, 30px); line-height: 1.5; margin: 0; color: #F0EAD8;
}

/* ── author / find band ─────────────────────────────── */
.band { background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .inner {
  max-width: 1100px; margin: 0 auto; padding: 56px 28px;
  display: flex; gap: 48px; flex-wrap: wrap;
}
.band .inner > div { flex: 1 1 380px; }
.band h2 { font-size: 30px; }

/* ── about editorial ────────────────────────────────── */
.dropcap::first-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  float: left; font-size: 74px; line-height: 0.83;
  padding: 6px 12px 0 0; color: var(--gold); font-weight: 500;
}

/* ── contact card ───────────────────────────────────── */
.contact-card {
  background: var(--card); border: 1px solid var(--gold-soft);
  outline: 1px solid var(--line); outline-offset: 4px;
  padding: 34px 40px; max-width: 560px; margin-top: 30px;
}
.contact-card dt {
  font-variant: small-caps; letter-spacing: 0.26em; font-size: 14px;
  color: var(--gold); margin-top: 20px;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 3px 0 0; font-size: 19.5px; }

/* ── footer ─────────────────────────────────────────── */
footer.site { background: var(--green-deep); color: #CFC6AE; border-top: 3px double var(--gold-soft); margin-top: 84px; }
footer.site .inner {
  max-width: 1100px; margin: 0 auto; padding: 46px 28px;
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center;
  font-size: 15.5px; line-height: 1.7;
}
footer.site img { height: 44px; width: auto; opacity: 0.92; display: block; margin-bottom: 14px; }
footer.site a { color: var(--gold-soft); }
footer.site .quiet { font-size: 13.5px; color: #9A917B; }

@media (max-width: 680px) {
  header.site .inner { justify-content: center; }
  nav.site { gap: 18px; }
  nav.site a { font-size: 15px; letter-spacing: 0.16em; }
  .hero .plate { margin: 40px 18px 48px; padding: 40px 22px 38px; }
  main { padding: 8px 20px; }
  section { margin: 48px 0; }
}
