
:root {
  --bg: #090d13;
  --panel: #101720;
  --panel-2: #151e29;
  --text: #f2f5f7;
  --muted: #aeb8c4;
  --accent: #d59a43;
  --accent-soft: #f0c477;
  --line: rgba(255,255,255,.11);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9,13,19,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 750;
}
.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.brand-text { letter-spacing: .02em; }
nav { display: flex; gap: 26px; }
nav a { text-decoration: none; color: #d8dee5; font-size: .95rem; }
nav a:hover { color: var(--accent-soft); }

.hero {
  min-height: 72vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 28%, rgba(213,154,67,.18), transparent 22%),
    radial-gradient(circle at 22% 20%, rgba(70,99,135,.18), transparent 28%),
    linear-gradient(135deg, #0a0f16 0%, #0d141e 45%, #090d13 100%);
}
.hero:before, .hero:after {
  content: "";
  position: absolute;
  inset: auto -10% 8% auto;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(213,154,67,.45), transparent);
  transform: rotate(-8deg);
}
.hero:after { bottom: 20%; width: 90%; opacity: .55; transform: rotate(5deg); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,13,19,.96) 0%, rgba(9,13,19,.84) 42%, rgba(9,13,19,.48) 100%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 48px;
  align-items: center;
}
.hero-content { padding: 90px 0; }
.hero-logo-card {
  justify-self: end;
  width: min(100%, 410px);
  background: rgba(255,255,255,.98);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.15);
}
.hero-logo-card img { width: 100%; height: auto; }
.eyebrow, .section-kicker { color: var(--accent-soft); text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 800; }
.hero h1 { margin: 14px 0 22px; max-width: 820px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.045em; }
.hero-copy { max-width: 690px; font-size: 1.15rem; color: #c4ccd5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-block; padding: 13px 20px; border-radius: 999px; text-decoration: none; font-weight: 750; }
.button.primary { background: var(--accent); color: #111; }
.button.primary:hover { background: var(--accent-soft); }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.button.secondary:hover { border-color: rgba(213,154,67,.55); }

.section { padding: 90px 0; }
.intro-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0c121a; }
.intro-grid, .about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: start; }
.intro-grid h2, .section-heading h2, .feature-copy h2, .about-grid h2, .contact h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; margin: 10px 0 0; letter-spacing: -.035em; }
.intro-grid p, .section-heading p, .about-copy, .feature-copy p, .contact p { color: var(--muted); font-size: 1.04rem; }
.section-heading { margin-bottom: 36px; max-width: 760px; }
.section-heading p { margin-top: 12px; }

.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.book-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.book-card:hover { transform: translateY(-4px); border-color: rgba(213,154,67,.42); }
.book-cover-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #0b1118;
}
.book-info { padding: 18px 18px 20px; }
.book-info h3 { margin: 4px 0 0; font-size: 1.12rem; }
.book-number { color: var(--accent-soft); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 800; }

.feature { background: #0d141d; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: minmax(250px, 380px) 1fr; gap: 70px; align-items: center; }
.feature-cover { display: flex; justify-content: center; }
.feature-cover-img {
  width: min(100%, 340px);
  border-radius: 10px;
  box-shadow: 0 26px 70px rgba(0,0,0,.5);
}
.feature-copy { max-width: 670px; }
.text-link { color: var(--accent-soft); text-decoration: none; font-weight: 800; }

.alt { background: #0b1017; }
.other-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.other-card { border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 24px; display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; }
.other-card h3 { margin: 0 0 8px; font-size: 1.3rem; }
.other-card p { margin: 0; color: var(--muted); }
.mini-cover-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,.28);
  background: #0b1118;
}

.about-copy p:first-child { margin-top: 0; }
.contact { padding-top: 30px; }
.contact-box { background: linear-gradient(135deg,#151e29,#101720); border: 1px solid var(--line); border-radius: 22px; padding: 46px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; }
.link-stack { display: grid; align-content: center; }
.link-stack a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; display: flex; justify-content: space-between; color: #e9edf1; }
.link-stack a:hover { color: var(--accent-soft); }
.site-footer { border-top: 1px solid var(--line); color: #8d99a6; padding: 28px 0 42px; }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; font-size: .9rem; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo-card { justify-self: start; width: min(100%, 360px); margin-top: -10px; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  nav { display: none; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid, .about-grid, .feature-grid, .contact-box { grid-template-columns: 1fr; gap: 34px; }
  .feature-cover { justify-content: flex-start; }
  .other-grid { grid-template-columns: 1fr; }
  .hero { min-height: 66vh; }
}

@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .brand-logo { width: 50px; height: 50px; border-radius: 12px; }
  .brand-text { font-size: .95rem; }
  .hero-content { padding: 72px 0 28px; }
  .hero h1 { font-size: 3.1rem; }
  .section { padding: 68px 0; }
  .book-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .book-info { padding: 14px; }
  .other-card { grid-template-columns: 90px 1fr; gap: 18px; padding: 18px; }
  .contact-box { padding: 28px; }
  .footer-wrap { flex-direction: column; gap: 4px; }
}


/* Book links and bestseller treatment */
.book-actions, .feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.book-button:hover { transform: translateY(-1px); }
.book-button.buy {
  background: var(--accent);
  color: #111;
  border: 1px solid var(--accent);
}
.book-button.buy:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.book-button.goodreads {
  background: rgba(255,255,255,.045);
  color: #eef2f5;
  border: 1px solid rgba(255,255,255,.18);
}
.book-button.goodreads:hover { border-color: rgba(213,154,67,.7); color: var(--accent-soft); }
.book-button.disabled {
  background: rgba(255,255,255,.035);
  color: #98a4b0;
  border: 1px solid rgba(255,255,255,.11);
}

.bestseller-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  padding: 9px 13px;
  border: 1px solid rgba(213,154,67,.65);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(213,154,67,.18), rgba(213,154,67,.07));
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.bestseller-badge strong { font-size: .7rem; line-height: 1.2; }
.bestseller-badge span { font-size: .6rem; font-weight: 800; line-height: 1.25; color: #d7c19a; }
.bestseller-card { border-color: rgba(213,154,67,.32); }

@media (max-width: 560px) {
  .book-actions { gap: 7px; }
  .book-button { flex: 1 1 100%; min-width: 0; }
  .bestseller-badge { width: 100%; }
}


/* Author photo and final contact polish */
.about-grid {
  grid-template-columns: minmax(260px, 360px) 1fr;
  align-items: center;
}
.about-photo-wrap {
  position: relative;
}
.about-photo-wrap:after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(213,154,67,.34);
  border-radius: 18px;
  z-index: 0;
}
.author-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 55px rgba(0,0,0,.38);
}
.about-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  margin: 10px 0 24px;
  letter-spacing: -.035em;
}
.link-placeholder {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #87929e;
}
.link-placeholder span {
  color: #697480;
  font-size: .85rem;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { width: min(100%, 360px); }
}
