:root {
  --ink: #141414;
  --muted: #5d5961;
  --paper: #fffaf7;
  --soft: #fff1ec;
  --gold: #f0c64f;
  --gold-deep: #b98413;
  --blue: #075ea8;
  --blue-deep: #073a63;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(20, 20, 20, 0.12);
  --shadow: 0 22px 60px rgba(55, 35, 20, 0.16);
  --radius: 26px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 4%, rgba(255,255,255,.95) 0 12%, rgba(255,255,255,0) 34%),
    radial-gradient(circle at 50% 112%, rgba(250, 215, 206, 0.7) 0 18%, rgba(255,255,255,0) 42%),
    linear-gradient(135deg, #fff 0%, #fff7f3 42%, #f7f7f4 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: white;
  padding: .7rem 1rem;
  border-radius: 999px;
  z-index: 20;
}
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand img {
  width: min(620px, 72vw);
  height: auto;
}
.hub-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(240, 198, 79, .55);
  background: linear-gradient(135deg, rgba(20,20,20,.96), rgba(59,44,12,.92));
  color: white;
  box-shadow: 0 10px 24px rgba(20,20,20,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hub-link.top { padding: .8rem 1rem; border-radius: 999px; font-size: .95rem; }
.hub-link.large { padding: 1rem 1.25rem; border-radius: 999px; margin-top: 1.1rem; }
.hub-link:hover, .button:hover, .book-button:hover { transform: translateY(-2px); }
.arrow { color: var(--gold); font-size: 1.2em; }

.section-pad {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}
.hero {
  min-height: 68vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: 34px;
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 900;
}
h1, h2, h3, p { overflow-wrap: break-word; }
h1 {
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: .92;
  letter-spacing: -.06em;
  margin: 0;
  max-width: 820px;
}
.hero-text {
  max-width: 670px;
  font-size: clamp(1.12rem, 2.4vw, 1.45rem);
  color: var(--muted);
  line-height: 1.6;
  margin: 1.5rem 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button, .book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button { min-height: 50px; padding: .9rem 1.1rem; }
.button.primary { background: var(--blue); color: white; box-shadow: 0 12px 25px rgba(7, 94, 168, .2); }
.button.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.62); }
.hero-art {
  border-radius: 38px;
  background: rgba(255,255,255,.45);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.65);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.hero-art img { filter: drop-shadow(0 22px 35px rgba(0,0,0,.12)); }

.section-heading { max-width: 790px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 0 0 1rem;
}
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.65;
  margin: .5rem auto 0;
}
.about { display: grid; grid-template-columns: .72fr 1.28fr; gap: 30px; align-items: start; }
.about-card, .closing-card {
  border: 1px solid rgba(255,255,255,.78);
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.about-card p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #34313a;
  margin: 0 0 1rem;
}
.about-card p:last-child { margin-bottom: 0; }

.book-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
}
.book-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(20,20,20,.08);
  box-shadow: 0 18px 45px rgba(20,20,20,.11);
  transition: transform .2s ease, box-shadow .2s ease;
}
.book-card:hover { transform: translateY(-5px); box-shadow: 0 24px 62px rgba(20,20,20,.16); }
.book-cover {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #111;
}
.book-details { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.book-details h3 { font-size: 1.02rem; line-height: 1.25; margin: 0 0 .65rem; }
.book-details p { color: var(--muted); line-height: 1.55; margin: 0 0 1rem; font-size: .95rem; }
.book-button {
  margin-top: auto;
  background: var(--ink);
  color: white;
  min-height: 42px;
  padding: .65rem .85rem;
  font-size: .9rem;
}
.featured { outline: 2px solid rgba(240, 198, 79, .55); }

.closing { padding-top: 42px; }
.closing-card {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.closing-card p { color: var(--muted); font-size: 1.08rem; line-height: 1.65; margin: 0 auto; max-width: 650px; }
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  text-align: center;
  font-size: .95rem;
}

@media (max-width: 1120px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: min(620px, 100%);
  }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 42px; }
  .hero-art { max-width: 560px; margin-inline: auto; }
  .about { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header { align-items: flex-start; flex-direction: column; padding-top: 16px; }
  .brand img {
    width: 100%;
    max-width: 520px;
  }
  .hub-link.top { width: 100%; justify-content: center; }
  .section-pad { padding: 48px 0; }
  h1 { font-size: clamp(2.65rem, 16vw, 4.4rem); }
  .hero-actions .button { width: 100%; }
  .hero-art { padding: 12px; border-radius: 26px; }

  /* Mobile book cards: keep covers as small thumbnails so they never bleed or crop. */
  .book-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .book-card {
    display: grid;
    grid-template-columns: clamp(92px, 34vw, 132px) minmax(0, 1fr);
    align-items: stretch;
  }

  .book-cover {
    width: 100%;
    height: 100%;
    min-height: 172px;
    object-fit: contain;
    object-position: center;
  }

  .book-details {
    min-width: 0;
    padding: 1rem;
  }

  .book-details h3 {
    font-size: clamp(.88rem, 3.8vw, 1rem);
  }

  .book-details p {
    font-size: clamp(.82rem, 3.4vw, .95rem);
  }

  .book-button {
    width: 100%;
    min-height: 40px;
    padding: .6rem .75rem;
    font-size: .85rem;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .book-card {
    grid-template-columns: clamp(82px, 32vw, 106px) minmax(0, 1fr);
  }

  .book-cover {
    min-height: 150px;
  }

  .book-details {
    padding: .85rem;
  }
}
