/* ================================================
   THE READER'S ALMANAC — Stylesheet v2.0
   Light / Editorial Theme — Large Typography
   Fonts: Plus Jakarta Sans / Cormorant Garamond / Bebas Neue
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Bebas+Neue&display=swap');

/* ── Variables ── */
:root {
  /* Light palette */
  --bg:           #faf7f2;
  --surface:      #ffffff;
  --surface-2:    #f4f0e6;
  --surface-3:    #ebe5d5;

  /* Accent – adjusted for legibility on light backgrounds */
  --gold:         #8c5e0c;
  --gold-light:   #b07d20;
  --gold-dark:    #6a4208;
  --gold-bg:      #fdf3dc;   /* subtle gold tint for cards */

  --sage:         #26624e;
  --sage-light:   #327a62;
  --sage-bg:      #e8f4ef;

  /* Text */
  --text:         #1c1c2e;
  --text-2:       #36364e;
  --off-white:    #faf7f2;   /* alias for bg, used in hero zones */
  --muted:        #505868;
  --coral:        #aa2d1e;

  /* Borders */
  --border:       rgba(0,0,0,0.13);
  --border-dim:   rgba(0,0,0,0.07);

  /* Dark zone (hero banners keep dark) */
  --hero-bg:      #080b12;
  --hero-text:    #f4edd8;
  --hero-muted:   #8899aa;

  /* Fonts */
  --sans:    'Plus Jakarta Sans', system-ui, sans-serif;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --display: 'Bebas Neue', Impact, cursive;

  --radius:    6px;
  --radius-lg: 14px;
  --shadow:    0 4px 32px rgba(0,0,0,0.14);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.09);
  --shadow-card: 0 2px 18px rgba(0,0,0,0.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 20px; }  /* UP from 16 → 20px base */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
}

.display-label {
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--gold);
  text-transform: uppercase;
}

p + p { margin-top: 1.2em; }

/* ── Utility ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

.text-gold    { color: var(--gold); }
.text-sage    { color: var(--sage); }
.text-muted   { color: var(--muted); }
.text-serif   { font-family: var(--serif); }
.text-display { font-family: var(--display); }

.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 22px auto;
  border: none;
}
.divider--left { margin-left: 0; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.nav__logo {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.1em;
  color: var(--text);
}
.nav__logo span { color: var(--gold); }
.nav__links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav__links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-2);
}
.nav__links a:hover { color: var(--gold); }

/* ── Site Hero / Intro ── */
.site-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px 28px 90px;
  position: relative;
  background: linear-gradient(170deg, #fdf8f0 0%, #f4edd8 50%, #faf7f2 100%);
  overflow: hidden;
}
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 20%, rgba(140,94,12,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.site-hero__eyebrow {
  font-family: var(--display);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 20px;
}
.site-hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.05;
}
.site-hero__title em {
  font-style: italic;
  color: var(--gold);
}
.site-hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--muted);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 44px;
}
.site-hero__intro {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.9;
}
.site-hero__intro p + p { margin-top: 1.1em; }

/* ── Current Feature Banner ── */
.current-feature {
  padding: 100px 0 90px;
  background: var(--surface);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  position: relative;
}
.current-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(140,94,12,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.current-feature__label {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--coral);
  margin-bottom: 14px;
}
.current-feature__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.current-feature__cover {
  position: relative;
}
.current-feature__cover img,
.current-feature__cover .book-cover-placeholder {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.current-feature__cover .badge {
  position: absolute;
  top: -14px;
  left: -14px;
  background: var(--coral);
  color: #fff;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  padding: 7px 16px;
  border-radius: 4px;
}
.current-feature__content h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
}
.current-feature__content .series-label {
  font-size: 0.82rem;
  color: var(--gold);
  font-family: var(--display);
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  display: block;
}
.current-feature__content .author {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--sage);
  margin-bottom: 22px;
}
.current-feature__content .synopsis {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.85;
}
.current-feature__content .synopsis p + p { margin-top: 1em; }

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.22s;
}
.btn:hover {
  background: var(--gold);
  color: #fff;
}
.btn--filled {
  background: var(--gold);
  color: #fff;
}
.btn--filled:hover {
  background: var(--gold-light);
  color: #fff;
}

/* ── Past Features Grid ── */
.past-features {
  padding: 100px 0;
  background: var(--surface-2);
}
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}
.section-heading h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 10px;
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
.book-card:hover {
  transform: translateY(-5px);
  border-color: rgba(140,94,12,0.25);
  box-shadow: var(--shadow-card);
  color: var(--text);
}
.book-card__cover {
  height: 240px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.book-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,11,18,0.72) 0%, transparent 60%);
  pointer-events: none;
}
.book-card__cover-title {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  z-index: 1;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.book-card__body {
  padding: 22px 24px 26px;
}
.book-card__author {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--sage);
  margin-bottom: 6px;
}
.book-card__year {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.book-card__excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-family: var(--display);
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ── Book Cover Placeholder Gradients (fallback) ── */
.grad-masks-of-god     { background: linear-gradient(135deg, #0d1b3e 0%, #1a0a2e 40%, #2d1a00 100%); }
.grad-cloud-atlas      { background: linear-gradient(135deg, #1a0533 0%, #0d2240 50%, #003d3a 100%); }
.grad-foundation       { background: linear-gradient(135deg, #2a1500 0%, #5c2d00 50%, #8c4a00 100%); }
.grad-dune             { background: linear-gradient(135deg, #2e1b00 0%, #6b3e00 50%, #9e6000 100%); }
.grad-name-rose        { background: linear-gradient(135deg, #1a0011 0%, #400020 50%, #1a0000 100%); }
.grad-stranger         { background: linear-gradient(135deg, #001a3d 0%, #003d6b 50%, #001a33 100%); }
.grad-glass-bead       { background: linear-gradient(135deg, #001a0d 0%, #003d1a 50%, #0d2200 100%); }
.grad-martian          { background: linear-gradient(135deg, #2e0000 0%, #6b0f00 50%, #400d00 100%); }
.grad-immortal         { background: linear-gradient(135deg, #0d0d0d 0%, #222233 50%, #111122 100%); }
.grad-sins-remembered  { background: linear-gradient(135deg, #111b2e 0%, #1c2b42 50%, #0d141e 100%); }
.grad-dying-earth      { background: linear-gradient(135deg, #2e1a00 0%, #5c1a00 50%, #3d0f00 100%); }

/* ── Book Page: Hero (stays dark/dramatic) ── */
.book-hero {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: 130px 0 56px;
  position: relative;
  overflow: hidden;
}
.book-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.book-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,11,18,1) 0%, rgba(8,11,18,0.75) 40%, rgba(8,11,18,0.45) 100%);
  z-index: 1;
}
.book-hero__content {
  position: relative;
  z-index: 2;
}
.book-hero__series {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.book-hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: #f4edd8;
  line-height: 1.05;
  margin-bottom: 10px;
}
.book-hero__author {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: #a4c5be;
  margin-bottom: 8px;
}
.book-hero__year {
  font-family: var(--display);
  letter-spacing: 0.15em;
  font-size: 0.82rem;
  color: #7a8899;
}

/* ── Book Cover Float (inside content sections) ── */
.book-cover-float {
  float: right;
  margin: 6px 0 28px 44px;
  width: 200px;
  flex-shrink: 0;
}
.book-cover-float img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.book-cover-float .cover-placeholder {
  width: 100%;
  height: 290px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  text-align: center;
}
.book-cover-float .cover-placeholder span {
  font-family: var(--display);
  font-size: 1.1rem;
  color: #f4edd8;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* ── Book Page: Sections ── */
.book-section {
  padding: 70px 0;
  border-top: 1px solid var(--border-dim);
  background: var(--surface);
}
.book-section:nth-child(even) {
  background: var(--surface-2);
}
.book-section h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 30px;
}
.book-section h3.serif-heading {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

/* ── Review Cards ── */
.review-card {
  background: var(--gold-bg);
  border: 1px solid rgba(140,94,12,0.18);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  margin-bottom: 24px;
  position: relative;
}
.review-card::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 8px;
  left: 24px;
}
.review-card__source {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 6px;
}
.review-card__rating {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.review-card__text {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.85;
}
.review-card__reviewer {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}
.review-card--sage {
  background: var(--sage-bg);
  border-color: rgba(38,98,78,0.18);
}
.review-card--sage .review-card__source { color: var(--sage); }
.review-card--sage::before { color: var(--sage); }

/* ── Musing Section ── */
.musing {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 2.0;
  color: var(--text-2);
}
.musing h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin: 2.8em 0 0.9em;
}
.musing p + p { margin-top: 1.45em; }
.musing .drop-cap::first-letter {
  font-family: var(--serif);
  font-size: 4.5em;
  font-weight: 700;
  color: var(--gold);
  float: left;
  line-height: 0.72;
  margin: 0.1em 0.09em 0 0;
}
.musing .pull-quote {
  border-left: 4px solid var(--gold);
  padding: 18px 28px;
  margin: 2.2em 0;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-dark);
  background: var(--gold-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.7;
}

/* ── Comments Section ── */
.comments-section {
  padding: 70px 0;
  border-top: 1px solid var(--border-dim);
  background: var(--surface-2);
}
.comments-section h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 34px;
}
.comment-form {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-size: 0.8rem;
  font-family: var(--display);
  letter-spacing: 0.1em;
  color: var(--muted);
}
.form-group input,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: #fff;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.comment-submit { margin-top: 18px; }

/* Comment display */
.comments-list { margin-top: 8px; }
.comment-item {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.comment-item__header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}
.comment-item__name {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.comment-item__date {
  font-size: 0.78rem;
  color: var(--muted);
}
.comment-item__text {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-2);
  font-style: italic;
}
.no-comments {
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 40px;
  text-align: center;
}
.site-footer__logo {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: #f4edd8;
  margin-bottom: 10px;
}
.site-footer__logo span { color: var(--gold-light); }
.site-footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  color: #7a8899;
  font-size: 1.05rem;
  margin-bottom: 30px;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  list-style: none;
  margin-bottom: 34px;
}
.site-footer__nav a {
  font-size: 0.78rem;
  font-family: var(--display);
  letter-spacing: 0.1em;
  color: #7a8899;
}
.site-footer__nav a:hover { color: var(--gold-light); }
.site-footer__copy {
  font-size: 0.76rem;
  color: #4a5568;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .current-feature__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .current-feature__cover { max-width: 280px; }
  .form-row { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .books-grid { grid-template-columns: 1fr 1fr; }
  .book-cover-float { float: none; width: 180px; margin: 0 0 28px 0; }
}
@media (max-width: 560px) {
  html { font-size: 17px; }
  .books-grid { grid-template-columns: 1fr; }
  .musing { font-size: 1.15rem; }
  .review-card__text { font-size: 1.05rem; }
}
