@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --paper: #f4e8d0;
  --paper-light: #fbf3e2;
  --ink: #171a2e;
  --forest: #262d5c;
  --forest-dark: #171a38;
  --brass: #e2a233;
  --brass-dark: #b8720f;
  --rule: rgba(23, 26, 46, 0.16);
  --rule-on-dark: rgba(251, 243, 226, 0.24);
  --max: 68rem;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: var(--forest-dark);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-family: var(--sans);
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--brass-dark);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--forest);
  color: var(--paper-light);
  border-bottom: 1px solid var(--rule-on-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  position: relative;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.wordmark img {
  height: 42px;
  width: auto;
  display: block;
}
.footer-top .wordmark img { height: 34px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-on-dark);
  color: var(--paper-light);
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--paper-light);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--brass);
  color: var(--brass);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--brass);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--forest);
  color: var(--paper-light);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
  align-items: end;
}

.hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 1.1rem;
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.5rem;
  font-weight: 600;
  max-width: 16ch;
}

.hero blockquote {
  margin: 0 0 2.2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--brass);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--paper-light);
  opacity: 0.92;
  max-width: 34ch;
}

.hero blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--brass);
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brass);
  color: var(--forest-dark);
}
.btn-primary:hover { background: var(--paper-light); }

.btn-secondary {
  background: transparent;
  color: var(--paper-light);
  border-color: var(--rule-on-dark);
}
.btn-secondary:hover {
  border-color: var(--brass);
  color: var(--brass);
}

/* colophon list in hero (titles ticking down) */
.hero-shelf {
  border-left: 1px solid var(--rule-on-dark);
  padding-left: 2rem;
}
.hero-shelf p {
  font-family: var(--sans);
  text-transform: none;
  font-size: 0.8rem;
  color: var(--brass);
  margin: 0 0 0.9rem;
  letter-spacing: 0.02em;
}
.hero-shelf ol {
  list-style: decimal;
  margin: 0;
  padding-left: 1.1rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--paper-light);
}
.hero-shelf li {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule-on-dark);
}
.hero-shelf li:last-child { border-bottom: none; margin-bottom: 0; }

/* ---------- General sections ---------- */
.section {
  padding: 4.5rem 0;
}
.section-tight { padding: 3rem 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.1rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0;
  font-weight: 600;
}

.section-head .count {
  font-family: var(--sans);
  color: var(--brass-dark);
  font-size: 0.9rem;
  white-space: nowrap;
}

.lede {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 2rem;
}

/* ---------- Catalog / bibliography list ---------- */
.catalog {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-item {
  display: grid;
  grid-template-columns: 6.5rem 2.4fr 3fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.catalog-item:first-child { padding-top: 0; }
.catalog-item:last-child { border-bottom: none; }

.catalog-cover {
  width: 6.5rem;
  height: 9.75rem;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--paper-light);
}
.catalog-item.no-cover { grid-template-columns: 2.4fr 3fr; }

.catalog-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.catalog-meta {
  font-size: 0.85rem;
  color: var(--brass-dark);
  margin: 0;
}

.catalog-desc {
  margin: 0 0 0.75rem;
  color: var(--ink);
  max-width: 58ch;
}

.catalog-buy {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brass-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.catalog-buy:hover { color: var(--forest-dark); }

/* ---------- Mission ---------- */
.mission-panel {
  background: var(--forest);
  color: var(--paper-light);
  border-radius: 2px;
  padding: 4rem 3rem;
  text-align: left;
}
.mission-panel blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.5;
  margin: 0;
  max-width: 44ch;
}
.mission-panel .attribution {
  margin-top: 1.75rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--brass);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  border-top: 2px solid var(--brass);
  padding-top: 0.9rem;
}
.pillar p { margin: 0; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
}

.contact-info dt {
  font-size: 0.82rem;
  color: var(--brass-dark);
  margin-top: 1.5rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.contact-info a { text-decoration: underline; text-underline-offset: 3px; }

.contact-social {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  gap: 1.25rem;
}
.contact-social a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.contact-social a:hover { border-color: var(--brass-dark); color: var(--brass-dark); }

form.contact-form {
  background: var(--paper-light);
  border: 1px solid var(--rule);
  padding: 2.25rem;
}

.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--forest-dark);
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
}
.field textarea { resize: vertical; min-height: 8rem; }

.contact-form .btn-primary {
  width: 100%;
  text-align: center;
  border: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-dark);
  color: var(--paper-light);
  padding: 3rem 0 2.25rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule-on-dark);
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-top .wordmark { font-size: 1.15rem; }
.footer-email {
  margin: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-on-dark);
  font-size: 0.95rem;
  color: var(--brass);
}
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-nav a { text-decoration: none; font-size: 0.9rem; opacity: 0.85; }
.footer-nav a:hover { color: var(--brass); opacity: 1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  opacity: 0.75;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom .contact-social { margin-top: 0; }
.footer-bottom .contact-social a { border-color: var(--rule-on-dark); color: var(--paper-light); }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shelf { border-left: none; border-top: 1px solid var(--rule-on-dark); padding-left: 0; padding-top: 2rem; }
  .catalog-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .pillars { grid-template-columns: 1fr; gap: 1.75rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .mission-panel { padding: 2.75rem 1.75rem; }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest);
    border-bottom: 1px solid var(--rule-on-dark);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.75rem 1.25rem;
  }
  .site-nav li { padding: 0.55rem 0; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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