:root {
  --bg: #f8f5f0;
  --text: #2d2a26;
  --muted: #6f6760;
  --accent: #8b5e3c;
  --accent-dark: #6f482d;
  --card: #ffffff;
  --border: #e3dbd2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-name {
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
}

.site-name:hover {
  color: var(--accent);
  text-decoration: none;
}

nav a {
  margin-left: 18px;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
}

.hero {
  padding: 86px 0 76px;
  text-align: center;
  background:
    linear-gradient(rgba(248, 245, 240, 0.82), rgba(248, 245, 240, 1)),
    radial-gradient(circle at top, #efe2d5 0%, transparent 55%);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero p {
  font-size: 1.18rem;
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--muted);
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  appearance: none;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.button.secondary:hover {
  background: var(--accent);
  color: #fff;
}

section {
  padding: 64px 0;
}

.section-title {
  font-size: 2rem;
  margin: 0 0 16px;
  text-align: center;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 34px;
  color: var(--muted);
  text-align: center;
  font-size: 1.05rem;
}

.about-card,
.contact-box,
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.about-card p:first-child {
  margin-top: 0;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.author-photo {
  width: 220px;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto 24px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.book-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.book-cover-placeholder {
  height: 320px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d8c7b6, #f2e9df);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-align: center;
  padding: 20px;
}

.book-cover {
  width: 100%;
  height: 510px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.book-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.book-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.book-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.blog-card,
.contact-box {
  text-align: center;
}

.contact-box p:first-child,
.blog-card p:first-child {
  margin-top: 0;
}

.contact-box p:last-child,
.blog-card p:last-child {
  margin-bottom: 0;
}

.social-heading {
  margin: 28px 0 18px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: var(--text);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fcfaf7;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: #d2c2b3;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.05);
}

.social-icon-wrap {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.social-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.social-platform,
.social-handle {
  font-family: Arial, sans-serif;
}

.social-platform {
  font-size: 0.95rem;
  font-weight: bold;
}

.social-handle {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

footer {
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 650px) {
  header {
    position: static;
  }

  .nav {
    justify-content: center;
    text-align: center;
  }

  nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  nav a {
    margin: 0 6px;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .about-card,
  .contact-box,
  .blog-card,
  .book-card {
    padding: 24px;
  }

  .social-links {
    grid-template-columns: 1fr;
  }
}
