/* ============================================================
   Marcelo Rioja — Poetry site
   Warm & cozy theme · static HTML/CSS · trilingual ES/EN/DE
   ============================================================ */

:root {
  --cream:        #fbf5ec;
  --cream-2:      #f5ead9;
  --surface:      #fffaf2;
  --ink:          #3a322b;
  --ink-soft:     #6f6357;
  --muted:        #9a8c7c;
  --terracotta:   #bf5a35;
  --terracotta-d: #a64a29;
  --sage:         #8a9a7b;
  --line:         #e7d9c5;
  --shadow:       0 18px 40px -22px rgba(90, 60, 35, 0.45);
  --radius:       16px;
  --maxw:         1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, #fdeede 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 10%, #f6ecd9 0%, transparent 55%),
    var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500; color: var(--ink); line-height: 1.12; letter-spacing: -0.01em;
}
a { color: var(--terracotta-d); }

/* ===== Buttons ===== */
.btn {
  display: inline-block; background: var(--terracotta); color: #fff7ef;
  text-decoration: none; padding: 13px 24px; border-radius: 999px;
  font-family: "Fraunces", Georgia, serif; font-size: 1rem; letter-spacing: 0.01em;
  transition: transform .18s ease, background .18s ease; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(191, 90, 53, 0.8); border: 0;
}
.btn:hover { background: var(--terracotta-d); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--terracotta-d); box-shadow: inset 0 0 0 1.5px var(--terracotta); }
.btn--ghost:hover { background: rgba(191, 90, 53, 0.08); }
.btn--small { padding: 9px 17px; font-size: 0.9rem; box-shadow: none; }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 236, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.nav__brand { font-family: "Fraunces", Georgia, serif; font-size: 1.4rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.nav__brand-dot { color: var(--terracotta); }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links > a { color: var(--ink-soft); text-decoration: none; font-size: 1rem; transition: color .15s ease; }
.nav__links > a:hover { color: var(--terracotta-d); }
.nav__links a.btn { color: #fff7ef; }

/* Language switcher */
.lang { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang__btn {
  border: 0; background: transparent; cursor: pointer; font-family: "Fraunces", Georgia, serif;
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted);
  padding: 5px 10px; border-radius: 999px; transition: all .15s ease;
}
.lang__btn:hover { color: var(--terracotta-d); }
.lang__btn.is-active { background: var(--terracotta); color: #fff7ef; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 92px 0 84px; }
.hero__inner { position: relative; z-index: 2; max-width: 780px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; color: var(--terracotta-d); margin: 0 0 18px; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 22px; }
.hero__lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__glow { position: absolute; right: -120px; top: -80px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(191,90,53,0.18), transparent 65%); z-index: 1; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section--warm {
  background: linear-gradient(180deg, rgba(245,234,217,0.7), rgba(245,234,217,0.35));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section__kicker { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.76rem; color: var(--sage); margin: 0 0 12px; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 14px; }
.section__sub { color: var(--ink-soft); margin: 0; font-size: 1.08rem; }

/* ===== Books ===== */
.series__title {
  font-size: 1.15rem; font-style: italic; font-weight: 400; color: var(--ink-soft);
  text-align: center; margin: 8px 0 26px; padding-top: 14px;
}
.series__title:not(:first-of-type) { margin-top: 56px; }
.books {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 30px 26px;
}
.book { display: flex; flex-direction: column; }
.book__cover {
  display: block; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 2 / 3; background: var(--cream-2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.book__cover:hover { transform: translateY(-5px); box-shadow: 0 26px 48px -22px rgba(90,60,35,.55); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book__info { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.book__title { font-size: 1.05rem; margin: 0; line-height: 1.25; }
.book__year { margin: 0; color: var(--muted); font-size: 0.85rem; flex: 1; }
.book__info .btn { align-self: flex-start; margin-top: 4px; }

/* ===== Reviews ===== */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.review {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); position: relative;
}
.review::before {
  content: "\201C"; position: absolute; top: 2px; left: 16px;
  font-family: "Fraunces", Georgia, serif; font-size: 3.4rem; color: var(--cream-2); line-height: 1;
}
.review__text { margin: 10px 0 16px; color: var(--ink); font-style: italic; }
.review__by { color: var(--muted); font-size: 0.9rem; }
.reviews__note { text-align: center; color: var(--muted); margin: 34px 0 0; font-size: 0.92rem; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.about__portrait { aspect-ratio: 4 / 5; }
.about__portrait-placeholder {
  display: flex; align-items: flex-end; justify-content: center; height: 100%; width: 100%;
  border-radius: var(--radius); background: linear-gradient(160deg, #efd9c0, #cf9b75);
  color: #fff8f0; padding: 18px; box-shadow: var(--shadow);
}
.ph-hint { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.66rem; opacity: 0.85; }
.about__text p { color: var(--ink-soft); font-size: 1.1rem; }
.about__text .section__title { margin-top: 6px; }
.about__text .btn { margin-top: 12px; }

/* ===== Footer ===== */
.footer { background: #efe2cf; border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer__brand { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 600; margin: 0; }
.footer__copy { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.footer__top { text-decoration: none; color: var(--terracotta-d); font-size: 0.95rem; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 10px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 18px 24px 24px; display: none;
  }
  body.nav-open .nav__links { display: flex; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 260px; }
}
