/* ==========================================================================
   Design-System johannawinterbooks.com
   Fidelia-Bereich: verspielt, hell (Creme/Mint/Salbei/Petrol)
   Glenwynd-Bereich: ruhig, dunkel (Mitternacht/Gold/Ember/Pergament)
   ========================================================================== */

:root {
  /* Fidelia-Palette */
  --color-cream: #FFFEF9;
  --color-mint: #D7F5ED;
  --color-sage: #ADC9A0;
  --color-teal: #00707E;
  --color-dark: #2F2B26;
  --color-btn-gray: #CBC9C4;

  /* Glenwynd-Palette */
  --color-midnight: #0B0A10;
  --color-gold: #B8874A;
  --color-ember: #8B4A24;
  --color-parchment: #F3D9B1;

  --font-heading: 'Schoolbell', cursive;
  --font-body: 'Noto Sans', sans-serif;
  --font-glenwynd-heading: 'Cinzel', serif;

  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-cream);
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-teal);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------- Navigation -------------------- */

.site-nav {
  background: var(--color-cream);
  border-bottom: 1px solid rgba(47,43,38,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--color-dark);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

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

.site-nav a.nav-glenwynd {
  color: var(--color-gold);
  font-weight: 500;
}

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

/* -------------------- Sections -------------------- */

.section {
  padding: 70px 0;
}

.section--cream   { background: var(--color-cream); }
.section--mint    { background: var(--color-mint); }
.section--sage    { background: var(--color-sage); }
.section--dark    { background: var(--color-dark); color: var(--color-cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-mint); }

.hero {
  text-align: center;
  padding: 90px 0;
}

.hero .kicker {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-dark);
  display: block;
  margin-bottom: 4px;
}

.hero p.lead {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 1.15rem;
}

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 200px;
  background: var(--color-sage);
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn:hover { background: #9bb98c; }

.btn--outline {
  background: var(--color-mint);
  border: 1px solid var(--color-sage);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-midnight);
}

.btn--gold:hover { background: #c99a5f; }

/* -------------------- Cards / grids -------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.card {
  background: var(--color-cream);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}

.card img {
  border-radius: 10px;
  margin-bottom: 14px;
}

/* -------------------- Glenwynd theme -------------------- */

.glenwynd-page {
  background: var(--color-midnight);
  color: var(--color-parchment);
}

.glenwynd-page h1,
.glenwynd-page h2,
.glenwynd-page h3 {
  color: var(--color-gold);
  font-family: var(--font-glenwynd-heading);
  letter-spacing: 0.5px;
}

.glenwynd-page .site-nav {
  background: var(--color-midnight);
  border-bottom: 1px solid rgba(184,135,74,0.25);
}

.glenwynd-page .site-nav a { color: var(--color-parchment); }
.glenwynd-page .site-nav a:hover,
.glenwynd-page .site-nav a[aria-current="page"] { border-bottom-color: var(--color-gold); }

.glenwynd-teaser {
  background: var(--color-midnight);
  color: var(--color-parchment);
}

.glenwynd-teaser .kicker {
  color: var(--color-gold);
}

.glenwynd-teaser h2 {
  font-family: var(--font-glenwynd-heading);
  color: var(--color-gold);
  letter-spacing: 0.5px;
}

.glenwynd-hero {
  background:
    linear-gradient(180deg, rgba(11,10,16,0.45) 0%, rgba(11,10,16,0.75) 65%, var(--color-midnight) 100%),
    url('../images/glenwynd-hero-bg.jpg') center 35% / cover no-repeat;
  padding-top: 120px;
  padding-bottom: 90px;
}

.age-badge {
  display: inline-block;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  border-radius: 200px;
  padding: 6px 18px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

.site-footer {
  background: var(--color-dark);
  color: var(--color-cream);
  padding: 50px 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-cream);
  text-decoration: underline;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  opacity: 0.85;
}

/* -------------------- Book rows -------------------- */

.book-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin: 40px 0;
}

.book-row img {
  width: 260px;
  flex-shrink: 0;
  border-radius: 10px;
}

.book-row .book-text {
  flex: 1;
  min-width: 260px;
}

.book-row .book-kicker {
  opacity: 0.65;
  margin-top: -0.4em;
  margin-bottom: 1em;
}

/* -------------------- Utility -------------------- */

.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.disclaimer {
  font-size: 0.8rem;
  color: var(--color-dark);
  opacity: 0.7;
  max-width: 480px;
  margin: 10px auto 0;
}

@media (max-width: 640px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.8rem; }
  .section { padding: 48px 0; }
}
