/* ---------- Tokens ---------- */
:root {
  --black: #0D0A09;
  --red: #991D0E;
  --red-dark: #2B0F0B;
  --blush: #EBA1A1;
  --cream: #EDE6DE;
  --cream-dim: #C9C0B6;

  --display: "Oswald", sans-serif;
  --body: "EB Garamond", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.65;
}

a {
  color: var(--blush);
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  opacity: 0;
  animation: hero-fade-in 2.2s ease-out 0.15s forwards;
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,10,9,0.15) 0%, rgba(13,10,9,0.55) 60%, rgba(13,10,9,0.92) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 6vw 8vh;
  max-width: 900px;
}

.hero__eyebrow {
  font-family: var(--body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream-dim);
  margin: 0 0 0.4rem;
}

.hero__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--blush);
  letter-spacing: 0.5px;
}

.hero__line {
  font-family: var(--body);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 60ch;
  color: var(--cream);
  margin: 0;
}

/* ---------- Book section ---------- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6vw;
}

.book {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 5vw;
  align-items: start;
  padding: 9vh 0 7vh;
}

.book__cover img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.book__label {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--red);
  margin: 0.4rem 0 0.6rem;
}

.book__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 0 0 1.4rem;
  color: var(--cream);
}

.book__body {
  max-width: 62ch;
  color: var(--cream);
  margin: 0 0 1.2rem;
  font-size: 1.15rem;
}

.book__meta {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--cream-dim);
  margin: 1.6rem 0 0.8rem;
}

.link-primary {
  display: inline-block;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--blush);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 0.15rem;
}

.link-primary:hover { color: var(--cream); border-color: var(--blush); }

/* ---------- Divider ---------- */
.divider {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6vw;
}

.divider::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--red-dark);
}

/* ---------- Nonfiction ---------- */
.nonfiction {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6vh 6vw;
}

.nonfiction__label {
  font-family: var(--body);
  font-style: italic;
  color: var(--cream-dim);
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.nonfiction__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
  color: var(--cream);
}

.nonfiction__body {
  max-width: 50ch;
  color: var(--cream-dim);
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.link-secondary {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link-secondary:hover { color: var(--blush); border-color: var(--blush); }

/* ---------- About ---------- */
.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6vh 6vw 10vh;
}

.about__label {
  font-family: var(--body);
  font-style: italic;
  color: var(--cream-dim);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.about__body {
  max-width: 68ch;
  color: var(--cream-dim);
  font-size: 1.1rem;
  margin: 0 0 1.3rem;
}

.about__body:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 4vh 6vw 6vh;
  font-family: var(--display);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--cream-dim);
  text-decoration: none;
}

.site-footer a:hover { color: var(--blush); }

.footer__divider {
  color: var(--red-dark);
  margin: 0 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .book {
    grid-template-columns: 1fr;
  }
  .book__cover {
    max-width: 240px;
  }
  body { font-size: 17px; }
}
