:root {
  --bg: #071931;
  --bg-soft: #0d2a4a;
  --surface: #f5f9ff;
  --text: #e8f0ff;
  --text-dark: #11243f;
  --accent: #2f78ff;
  --accent-strong: #1f5ed2;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5vw;
  background: rgba(7, 25, 49, 0.95);
  backdrop-filter: blur(12px);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #A1A1A1;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #8fc2ff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.3rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 999px;
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.6rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 1.4rem;
  min-height: 60vh;
  padding-top: 1rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8fc2ff;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
}

.hero-text,
.bio-card p,
.book-card p,
.contact-copy {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 24px rgba(47, 120, 255, 0.28);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.hero-media img {
  border-radius: 1.6rem;
  min-height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 0.9rem;
}

.bio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

.bio-card,
.book-card,
.contact-section {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.highlight-list ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.7rem;
}

.books-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: start;
}

.book-cover-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.book-cover-block img {
  width: 100%;
  max-width: 130px;
  height: auto;
  max-height: 220px;
  border-radius: 0.9rem;
  object-fit: contain;
  object-position: center;
}

.book-link-under-image {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  font-weight: 700;
  color: #8fc2ff;
}

.book-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.book-content p {
  margin: 0;
}

.contact-section {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.social-links a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.site-footer {
  text-align: center;
  padding: 1rem 1.25rem 2.4rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-page-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.contact-form label {
  font-weight: 600;
  color: #dfefff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.95);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-message {
  min-height: 1.5rem;
  margin: 0;
  color: #8fc2ff;
  font-weight: 600;
}

.book-page {
  padding-bottom: 3rem;
}

.book-hero {
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.book-summary {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-summary h1 {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  width: fit-content;
}

.book-summary h1::after {
  content: none;
}

.book-cover-card {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(7, 25, 49, 0.08);
}

.book-cover-card img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.8rem;
}

.book-summary p,
.book-summary li {
  color: rgba(255, 255, 255, 0.9);
}

.book-meta {
  display: inline-block;
  margin: 1rem 0 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.book-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  min-width: 140px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  height: 420px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.05);
}

.carousel-controls {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-btn {
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(7, 25, 49, 0.8);
  color: white;
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  flex: 1;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.carousel-dot.active {
  background: white;
}

.book-content {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.book-content article,
.book-content aside {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.book-content p,
.book-content li {
  color: rgba(255, 255, 255, 0.9);
}

.book-gallery {
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .hero,
  .bio-grid,
  .books-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 1rem 1rem 0.9rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem 1.2rem;
    background: rgba(7, 25, 49, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .book-card {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 1.25rem, 1120px);
    padding: 3rem 0;
  }

  .book-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .book-cover-card {
    flex-basis: auto;
    width: 100%;
    max-width: 280px;
  }

  .carousel-slide img {
    height: 300px;
  }
}
