/* CSS RESET & BASE STYLES */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: #fff;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #202642;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: #202642;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C2A461;
  outline: none;
}
ul, ol {
  list-style: none;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* CONTAINER & LAYOUTS */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* BRAND TYPOGRAPHY */
h1, .hero h1 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #202642;
  margin-bottom: 16px;
  line-height: 1.2;
}
h2 {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  font-size: 2rem;
  color: #202642;
  margin-bottom: 12px;
}
h3 {
  font-family: 'Merriweather', serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #202642;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #202642;
}
p, li, address, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #202642;
}
em, cite {
  font-style: italic;
}
strong {
  font-weight: 700;
}

/* HERO SECTION */
.hero, .blog-hero {
  background: #F5F6F9;
  padding-top: 56px;
  padding-bottom: 56px;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(32, 38, 66, 0.05);
  margin-bottom: 60px;
  display: flex;
  align-items: center;
}
.hero .container, .blog-hero .container {
  flex-direction: column;
  gap: 0;
}
.hero .content-wrapper, .blog-hero .content-wrapper {
  max-width: 650px;
  align-items: flex-start;
}
.hero p, .blog-hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #484e65;
}

/* BUTTONS */
.cta-button, .feature-item button, .filter-options button, .genre-tabs button, .post-filters button, .mobile-menu-close, .cookie-btn, .cookie-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #202642;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(32,38,66,0.07);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, filter 0.18s, box-shadow 0.3s;
  margin-top: 12px;
}
.cta-button:hover, .feature-item button:hover, .filter-options button:hover, .genre-tabs button:hover, .post-filters button:hover, .cookie-btn:hover {
  background: #C2A461;
  color: #202642;
  filter: brightness(1.07);
  box-shadow: 0 3px 16px rgba(32,38,66,0.08);
}
.cta-button:focus {
  outline: 2px solid #C2A461;
}
/* Cookie and settings buttons */
.cookie-btn.accept {
  background: #202642;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #202642;
  border: 1px solid #202642;
}
.cookie-btn.settings {
  background: #C2A461;
  color: #202642;
  margin-left: 12px;
}
.cookie-btn.accept:hover,
.cookie-btn.settings:hover {
  background: #484e65;
}
.cookie-btn.reject:hover {
  background: #F5F6F9;
}

/* NAVIGATION */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(32, 38, 66, 0.03);
  position: sticky;
  top: 0;
  z-index: 51;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #202642;
  position: relative;
  padding: 6px 0;
  transition: color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: #C2A461;
}

/* Hide mobile menu on desktop */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}
/* Responsive Nav - Mobile burger */
@media (max-width: 1050px) {
  header .container nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: none;
    border: none;
    color: #202642;
    margin-right: 8px;
    z-index: 199;
    cursor: pointer;
    padding: 8px;
    transition: background 0.18s;
  }
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 32px rgba(32,38,66,0.16);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.55,0,.2,1);
  display: flex;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 8px 32px rgba(32,38,66,0.16);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  font-size: 2.2rem;
  color: #202642;
  border: none;
  cursor: pointer;
  margin: 24px 24px 0 0;
  padding: 5px;
  transition: color 0.18s;
}
.mobile-menu-close:hover {
  color: #C2A461;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin: 48px 0 0 32px;
}
.mobile-nav a {
  font-size: 1.28rem;
  color: #202642;
  width: 100%;
  padding: 12px 0;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5F6F9;
  color: #C2A461;
}


/* CARD CONTAINERS, FLEX UTILS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px rgba(32,38,66,0.07);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 12px 30px rgba(32,38,66,0.13);
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.03);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F6F9;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(32,38,66,0.055);
  flex-direction: column;
  max-width: 650px;
  width: 100%;
}
.testimonial-card blockquote {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-weight: 400;
  color: #202642;
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.testimonial-card p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #484e65;
  align-self: flex-end;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 7px rgba(32,38,66,0.074);
  padding: 30px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s, transform 0.17s;
  margin-bottom: 20px;
}
.feature-item img {
  width: 36px;
  height: 36px;
}
.feature-item h3 {
  color: #202642;
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.feature-item p {
  color: #484e65;
  font-size: 0.98rem;
}
.feature-item:hover {
  box-shadow: 0 8px 22px rgba(32,38,66,0.08);
  transform: translateY(-2px) scale(1.02);
}

/* Book & Review Lists */
.book-list li, .review-list li, .highlighted-books li, .reader-favorites li, .reading-tips-list li, .category-tags li {
  background: #fff;
  color: #202642;
  border-radius: 10px;
  padding: 18px 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(32,38,66,0.06);
  font-size: 1rem;
}
.book-list h3, .review-list h3 {
  font-size: 1.1rem;
  font-family: 'Merriweather', serif;
  color: #202642;
  margin-bottom: 7px;
}
.book-list p, .review-list p {
  color: #484e65;
  margin-bottom: 3px;
}

/* FILTERS, TABS, TAGS */
.filter-options, .post-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 20px 0;
}
.filter-options span, .post-filters span {
  font-size: 1rem;
  color: #484e65;
}
.filter-options button, .genre-tabs button, .post-filters button {
  border-radius: 22px;
  padding: 8px 20px;
  font-size: 1rem;
  background: #F5F6F9;
  color: #202642;
  font-family: 'Roboto', Arial, sans-serif;
  border: none;
  margin: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.filter-options button:hover, .genre-tabs button:hover, .post-filters button:hover {
  background: #C2A461;
  color: #fff;
}
.genre-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.category-tags li {
  display: inline-flex;
  background: #F5F6F9;
  color: #202642;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.98rem;
  box-shadow: none;
}

/* NEWSLETTER SECTION */
.newsletter {
  background: #F5F6F9;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(32, 38, 66, 0.05);
}
.newsletter ul li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: #484e65;
}

/* ADDRESS & FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #F5F6F9;
  box-shadow: 0 -2px 14px rgba(32,38,66,0.03);
  padding: 32px 0 18px 0;
  margin-top: 40px;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  font-size: 1rem;
  margin-bottom: 10px;
}
footer nav a {
  color: #202642;
  opacity: 0.94;
  transition: color 0.18s, opacity 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: #C2A461;
  opacity: 1;
}
footer address {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #484e65;
}
footer p {
  color: #8b8e98;
  font-size: 0.93rem;
  margin-top: 8px;
}
footer img {
  width: 16px; height: 16px;
}

/* INPUTS */
input[type="search"], input[type="text"], textarea {
  background: #F5F6F9;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 10px 17px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  width: 100%;
  margin-bottom: 18px;
  transition: border 0.18s, box-shadow 0.18s;
}
input[type="search"]:focus, input[type="text"]:focus, textarea:focus {
  outline: none;
  border: 1.5px solid #C2A461;
  box-shadow: 0 1px 6px rgba(194,164,97,0.08);
}

/* COOKIES BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #202642;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 12px 22px 12px;
  box-shadow: 0 -6px 18px rgba(32,38,66,0.13);
  z-index: 9000;
  font-size: 1rem;
  animation: cookie-slide-up 0.55s cubic-bezier(.33,1.34,.69,1.01) 1;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}
.cookie-banner a {
  color: #C2A461;
  text-decoration: underline;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,38,66,0.19);
  z-index: 9900;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: modal-overlay-fadein 0.3s cubic-bezier(.33,1.34,.69,1.01) 1;
}
@keyframes modal-overlay-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #202642;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(32,38,66,0.16);
  padding: 42px 32px 32px 32px;
  min-width: 320px;
  max-width: 96vw;
  width: 450px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: modal-fade-in 0.35s cubic-bezier(.33,1.34,.69,1.01) 1;
}
@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.98) translateY(40px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 20px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 18px;
}
.cookie-modal-category input[type=checkbox] {
  width: 22px; height: 22px;
  accent-color: #202642;
}
.cookie-modal-category.disabled label {
  opacity: 0.7;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 22px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  color: #C2A461;
  font-size: 1.9rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.18s;
}
.cookie-modal-close:hover {
  color: #202642;
}


/* RESPONSIVE DESIGN */
@media (max-width: 1050px){
  .container {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-wrapper {
    gap: 24px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  section {
    margin-bottom: 38px;
    padding: 20px 6px;
  }
  .hero, .newsletter, .blog-hero {
    border-radius: 0;
    box-shadow: none;
    padding-top: 32px;
    padding-bottom: 32px;
  }
  h1, .hero h1 {
    font-size: 2rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.44rem;
    margin-bottom: 10px;
  }
  .cta-button {
    width: 100%;
    justify-content: center;
    padding: 13px 0;
    font-size: 1.12rem;
  }
  .content-wrapper {
    gap: 18px;
  }
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    padding: 16px;
    min-width: 0;
    max-width: 100%;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
    padding: 22px 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer .container {
    align-items: flex-start;
    gap: 12px;
  }
  footer nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
  }
  footer address {
    flex-direction: column;
    font-size: 0.99rem;
    gap: 5px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .cookie-modal {
    width: 95vw;
    padding: 32px 10px 24px 10px;
  }
  .cookie-banner {
    font-size: 0.91rem;
    padding: 21px 5px 16px 5px;
  }
}


/* MICRO-INTERACTIONS & TRANSITIONS */
.card, .feature-item, .cta-button, .testimonial-card, .mobile-menu, .mobile-menu-toggle, .cookie-btn, .cookie-modal, .filter-options button, .genre-tabs button, .post-filters button {
  transition: box-shadow 0.22s, background 0.18s, color 0.15s, transform 0.18s;
}

/* UTILITIES & MISC */
[hidden] { display: none !important; }

::-webkit-scrollbar {
  width: 8px;
  background: #f4f4f4;
}
::-webkit-scrollbar-thumb {
  background: #ececec;
  border-radius: 40px;
}

/* ACCESSIBILITY */
:focus-visible {
  outline: 2.5px solid #C2A461 !important;
  outline-offset: 2px;
}

/* BRAND COLORS (root for fallbacks) */
:root {
  --primary: #202642;
  --secondary: #C2A461;
  --accent: #F5F6F9;
}

/* END OF CSS */
