/* ============================================================
   Awuraama's Reads — Editorial Design System
   A calm-luxury reading journal. Not a shop. A mind, on shelves.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600&display=swap');

:root{
  /* ---- Palette ---- */
  --paper:      #F6F2EA;   /* warm bone, primary background */
  --paper-dim:  #EFE9DD;   /* slightly deeper paper for alt sections */
  --ink:        #221F1B;   /* near-black warm charcoal, primary text */
  --ink-soft:   #565149;   /* muted charcoal, secondary text */
  --moss:       #4A5940;   /* deep olive — primary accent */
  --moss-dark:  #333F2C;
  --gold:       #A9824F;   /* antique brass — stars, dividers, hover */
  --gold-pale:  #E4D5BC;
  --rose:       #B99C8E;   /* warm taupe-rose — soft tag accents */
  --line:       #DBD2C1;   /* hairline rule colour */
  --card-alt:   #FBF8F2;

  /* ---- Type ---- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
button{ font-family: inherit; background:none; border:none; cursor:pointer; }

::selection{ background: var(--gold-pale); color: var(--moss-dark); }

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

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

.eyebrow{
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}

.rule{
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------------- Header / Nav ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,242,234,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.site-nav{
  display: flex;
  gap: 34px;
}
.site-nav a{
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color .25s ease;
}
.site-nav a::after{
  content:"";
  position: absolute;
  left:0; right:0; bottom:0;
  height: 1px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"]{ color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after{
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span{
  width: 22px;
  height: 1px;
  background: var(--ink);
  display: block;
}

/* ---------------- Hero ---------------- */
.hero{
  padding: 108px 0 88px;
  text-align: center;
}
.hero-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-title em{
  font-style: italic;
  color: var(--moss);
  font-weight: 400;
}
.hero-sub{
  margin: 26px auto 0;
  max-width: 520px;
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 300;
}


/* ---------------- Big Editorial Quote ---------------- */
.quote-section{
  position: relative;
  padding: 40px 0 120px;
  overflow: hidden;
}
.quote-inner{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  position: relative;
}
.quote-glyph{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 220px;
  line-height: 1;
  color: var(--gold-pale);
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  user-select: none;
  pointer-events: none;
}
blockquote.big-quote{
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 3.2vw, 42px);
  line-height: 1.2;
  color: var(--ink);
}
.quote-attribution{
  position: relative;
  z-index: 1;
  margin-top: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}
.quote-attribution::before{
  content:"";
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 18px;
}

/* ---------------- Section shells ---------------- */
.section{
  padding: 90px 0;
}
.section-alt{ background: var(--paper-dim); }
.section-head{
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  margin-top: 10px;
  color: var(--ink);
}
.section-head p{
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* ---------------- Favorites (home) ---------------- */
.favorites-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.fav-card{
  display: flex;
  flex-direction: column;
}
.fav-cover{
  aspect-ratio: 3 / 4.2;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 22px 44px -22px rgba(34,31,27,0.35);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.fav-card:hover .fav-cover{ transform: translateY(-6px); }
.fav-category{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.fav-title{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-top: 8px;
  color: var(--ink);
}
.fav-author{
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-style: italic;
}
.fav-shift{
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.65;
}

/* ---------------- Browse by category ---------------- */
.category-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.category-card{
  border: 1px solid var(--line);
  padding: 40px 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
  background: var(--card-alt);
}
.category-card:hover{
  border-color: var(--moss);
  transform: translateY(-4px);
}
.category-card .cat-num{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
}
.category-card h3{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin-top: 22px;
  line-height: 1.2;
}
.category-card .cat-arrow{
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-card:hover .cat-arrow{ color: var(--moss); }
.category-card .cat-arrow svg{ transition: transform .3s ease; }
.category-card:hover .cat-arrow svg{ transform: translateX(4px); }

/* ---------------- Category page head ---------------- */
.page-head{
  padding: 78px 0 60px;
  text-align: center;
}
.page-head h1{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 60px);
  color: var(--ink);
}
.page-head p{
  margin: 18px auto 0;
  max-width: 480px;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 16.5px;
}

/* ---------------- Book row (wide horizontal card) ---------------- */
.book-list{
  display: flex;
  flex-direction: column;
}
.book-row{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 76px;
  align-items: center;
  padding: 72px 0;
}
.book-row + .book-row{
  border-top: 1px solid var(--line);
}

/* ---- Book cover (real cover images) ---- */
.book-cover{
  position: relative;
  aspect-ratio: 3 / 4.3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(34,31,27,0.4);
  background: var(--paper-dim);
}

/* Shared by .book-cover and .fav-cover: the actual <img> element */
.book-cover-image{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.book-info .eyebrow{ margin-bottom: 6px; }
.book-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--ink);
}
.book-author{
  margin-top: 6px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15px;
}
.book-rating{
  margin-top: 16px;
  display: flex;
  gap: 4px;
}
.book-rating svg{ width: 15px; height: 15px; }
.book-rating .star-fill path{ fill: var(--gold); }
.book-rating .star-empty path{ fill: none; stroke: var(--gold); stroke-width: 1.2px; }

.book-block{ margin-top: 28px; max-width: 560px; }
.book-block + .book-block{ margin-top: 22px; }
.book-block .label{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 8px;
  display: block;
}
.book-block p{
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
}

.amazon-btn{
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .3s ease, color .3s ease;
}
.amazon-btn:hover{
  background: var(--ink);
  color: var(--paper);
}
.amazon-btn svg{ width: 13px; height: 13px; }

/* ---------------- About / Disclosure ---------------- */
.prose-section{ max-width: 720px; margin: 0 auto; text-align: center; }
.prose-section p{
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.8;
}
.prose-section p + p{ margin-top: 18px; }

/* ---------------- Footer ---------------- */
.site-footer{
  background: var(--moss-dark);
  color: #EDE8DC;
  padding: 76px 0 30px;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(237,232,220,0.16);
}
.footer-logo{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
}
.footer-tagline{
  margin-top: 16px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(237,232,220,0.7);
  max-width: 260px;
  line-height: 1.7;
}
.footer-col h4{
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 18px;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a{
  font-size: 14px;
  color: rgba(237,232,220,0.82);
  transition: color .25s ease;
}
.footer-col a:hover{ color: #fff; }
.footer-social{ display: flex; gap: 16px; }
.footer-social a{
  width: 34px; height: 34px;
  border: 1px solid rgba(237,232,220,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s ease, background .25s ease;
}
.footer-social a:hover{ background: rgba(237,232,220,0.12); border-color: rgba(237,232,220,0.6); }
.footer-social svg{ width: 15px; height: 15px; fill: #EDE8DC; }
.footer-bottom{
  padding-top: 26px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(237,232,220,0.55);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px){
  .favorites-grid{ grid-template-columns: repeat(2, 1fr); row-gap: 46px; }
  .category-grid{ grid-template-columns: repeat(2, 1fr); }
  .book-row{ grid-template-columns: 240px 1fr; gap: 46px; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
   .logo {
    font-size: 12px;
  }
  .header-inner{ padding: 18px 24px; }
  .site-nav{
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 22px;
    display: none;
  }
  .site-nav.open{ display: flex; }
  .site-nav a{ padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after{ display:none; }
  .nav-toggle{ display: flex; }

  .hero{ padding: 68px 0 56px; }
  .quote-glyph{ font-size: 140px; top: -70px; }
  .container{ padding: 0 22px; }

  .favorites-grid{ grid-template-columns: 1fr; gap: 44px; }
  .category-grid{ grid-template-columns: 1fr; }

  .book-row{
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 0;
  }
  .book-cover{ max-width: 230px; margin: 0 auto; }

  .footer-inner{ grid-template-columns: 1fr; gap: 36px; text-align: left; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
