/*
  Hönscheidt Publishing – static GitHub Pages stylesheet.
  The design uses calm publishing colors, fluid spacing, and responsive grids.
*/
:root {
  --green: #12352b;
  --green-2: #1f4a3d;
  --cream: #fbf4e6;
  --paper: #fffaf0;
  --gold: #c49a45;
  --gold-dark: #96702d;
  --ink: #19221f;
  --muted: #5c6862;
  --border: rgba(18, 53, 43, 0.16);
  --shadow: 0 1.2rem 3rem rgba(18, 53, 43, 0.14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

a { color: var(--green-2); text-underline-offset: 0.2em; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; }

.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--gold);
  color: var(--green);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.1;
  color: var(--green);
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.7rem, 8vw, 5.8rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.025em; }
h3 { font-size: 1.5rem; }

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 244, 230, 0.93);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--green); font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; font-family: var(--serif); font-weight: 700; }
.brand-text { font-size: 1.08rem; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { text-decoration: none; color: var(--green); font-weight: 650; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-dark); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 999px; width: 46px; height: 46px; }
.nav-toggle-line, .nav-toggle-line::before, .nav-toggle-line::after { display: block; width: 20px; height: 2px; background: var(--green); margin: auto; content: ""; }
.nav-toggle-line::before { transform: translateY(-7px); }
.nav-toggle-line::after { transform: translateY(5px); }

/* Hero */
.hero { background: radial-gradient(circle at 78% 22%, rgba(196, 154, 69, 0.25), transparent 28%), linear-gradient(135deg, var(--green), #0b241d); color: var(--paper); }
.hero h1, .hero .eyebrow { color: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.eyebrow { margin: 0 0 0.8rem; color: var(--gold-dark); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }
.hero-lead { font-size: clamp(1.15rem, 2vw, 1.45rem); max-width: 680px; color: #f5ead4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0.9rem 1.25rem; font-weight: 800; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: var(--green); box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.16); }
.button-secondary { border: 1px solid rgba(255, 250, 240, 0.45); color: var(--paper); }
.hero-card { border: 1px solid rgba(255, 250, 240, 0.26); border-radius: 2rem; padding: 2rem; background: rgba(255, 250, 240, 0.08); box-shadow: var(--shadow); }
.hero-card p { font-family: var(--serif); font-size: 1.55rem; line-height: 1.35; margin: 0; }

/* Books and content sections */
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading p { color: var(--muted); }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.book-card { background: var(--paper); border: 1px solid var(--border); border-radius: 1.4rem; overflow: hidden; box-shadow: 0 0.6rem 1.5rem rgba(18, 53, 43, 0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cover-placeholder { min-height: 260px; display: grid; place-items: center; text-align: center; padding: 1.5rem; background: linear-gradient(145deg, #173f33, #285849); color: var(--paper); font-family: var(--serif); font-size: 1.65rem; }
.cover-placeholder-alt { background: linear-gradient(145deg, #3b2f25, #8a6b38); }
.cover-placeholder-light { background: linear-gradient(145deg, #efe0bd, #c49a45); color: var(--green); }
.book-card-body { padding: 1.4rem; }
.book-author { color: var(--gold-dark); font-weight: 800; margin-top: -0.4rem; }
.text-link { font-weight: 800; }
.section-muted { background: #f3ead7; }
.two-column { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
.rich-text p { margin: 0 0 1.1rem; }
.rich-text h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.contact-box { background: var(--paper); border: 1px solid var(--border); border-radius: 1.8rem; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.placeholder { display: inline-block; color: var(--green); background: rgba(196, 154, 69, 0.2); border: 1px solid rgba(196, 154, 69, 0.45); border-radius: 0.45rem; padding: 0.08rem 0.35rem; }

/* Footer and utility pages */
.site-footer { background: var(--green); color: var(--paper); padding: 2rem 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 1rem; }
.footer-inner a { color: var(--paper); }
.legal-page { background: var(--paper); }
.error-page { min-height: 100vh; background: var(--cream); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; inset: 76px 1rem auto 1rem; display: none; flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.75rem; }
  .hero-grid, .two-column { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .book-grid { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .brand-text { font-size: 0.98rem; }
  .section { padding: 3.4rem 0; }
}
