/* Household Theology Press
 * Classical-modern Reformed publishing imprint
 * Pure HTML + CSS, no JavaScript, no framework.
 */

:root {
  --cream: #FAF6EE;
  --charcoal: #2C2C2C;
  --navy: #1E2A44;
  --oxblood: #6B1E1E;
  --rule: #D8D2C5;
  --charcoal-muted: #6B6B6B;

  --serif-body: "EB Garamond", "Hoefler Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --serif-display: "Cormorant Garamond", "Hoefler Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --serif-smallcaps: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: var(--serif-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 120ms ease;
}

a:hover,
a:focus-visible {
  color: var(--oxblood);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.005em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.375rem;
  margin-top: 2.25rem;
}

p {
  margin: 0 0 1.25rem;
}

ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(250, 246, 238, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 1.5rem;
}

.site-header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--serif-smallcaps);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--oxblood);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-family: var(--serif-smallcaps);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}

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

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

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero img {
  display: block;
  margin: 0 auto;
  max-width: min(480px, 70vw);
  height: auto;
}

.hero-tagline {
  margin: 2rem 0 0;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--navy);
}

.section {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
}

.section h2 {
  margin-top: 0;
}

.find-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 0;
}

.find-list li {
  margin-bottom: 0.75rem;
}

.find-list .label {
  font-weight: 600;
  color: var(--navy);
  margin-right: 0.25rem;
}

/* ---------- Long-form prose (privacy / terms / contact) ---------- */

.prose h1 {
  margin-bottom: 0.5rem;
}

.prose > p:first-of-type em {
  color: var(--charcoal-muted);
  font-size: 0.9375rem;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--charcoal-muted);
}

.site-footer-inner {
  max-width: 720px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--charcoal-muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--oxblood);
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-top: 2.25rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .site-header {
    padding: 0.875rem 1.25rem;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-nav {
    gap: 1.25rem;
  }

  main {
    padding: 3rem 1.25rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-tagline {
    font-size: 1.125rem;
  }

  .section {
    padding-top: 2.25rem;
    margin-top: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
