:root {
  --bg: #f7f3ed;
  --bg-soft: #fbf8f3;
  --text: #2f251f;
  --muted: #6e5d51;
  --accent: #8a5a2b;
  --accent-soft: #c28a4a;
  --line: rgba(138, 90, 43, 0.18);
  --card: rgba(255,255,255,0.76);
  --shadow: 0 12px 30px rgba(60, 35, 10, 0.08);
  --shadow-soft: 0 8px 18px rgba(60, 35, 10, 0.06);
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 164, 0.16), transparent 30%),
    linear-gradient(to bottom, #f9f6f0 0%, #f6f1ea 100%);
  color: var(--text);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(138, 90, 43, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

header.site-header {
  padding: 24px 0 18px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(249, 246, 240, 0.84);
  border-bottom: 1px solid rgba(138, 90, 43, 0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.menu {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.98rem;
}

.menu a {
  color: var(--muted);
}

.menu a:hover {
  color: var(--accent);
  text-decoration: none;
}

main { padding-bottom: 56px; }

.hero {
  padding: 74px 0 52px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero .subtitle {
  max-width: 800px;
  margin: 0 auto 18px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--muted);
  font-style: italic;
}

.hero .manifesto,
.hero .intro {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero .manifesto { margin-bottom: 14px; }
.hero .intro { color: var(--muted); }

section { padding: 44px 0; }

.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
}

.section-intro {
  max-width: 800px;
  color: var(--muted);
  margin-bottom: 26px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.book-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: start;
  padding: 28px;
}

.book-cover img {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(60, 35, 10, 0.18);
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.book-content h2,
.book-content h3 {
  margin-top: 0;
}

.book-subtitle {
  margin-top: -4px;
  color: var(--muted);
  font-style: italic;
}

.book-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: white;
  box-shadow: 0 8px 18px rgba(138, 90, 43, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255,255,255,0.7);
  color: var(--accent);
  border-color: rgba(138, 90, 43, 0.20);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.95);
  text-decoration: none;
}

.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.link-card {
  display: block;
  padding: 20px;
  border-left: 2px solid rgba(138, 90, 43, 0.22);
  background: rgba(255,255,255,0.42);
  border-radius: 0 14px 14px 0;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateX(2px);
  background: rgba(255,255,255,0.66);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.link-card strong { color: var(--text); }
.link-card .small {
  margin-top: 8px;
  color: var(--muted);
}

.text-card {
  padding: 28px;
}

.text-card p:last-child { margin-bottom: 0; }

.meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.97rem;
}

.callout {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.42);
  border-left: 2px solid rgba(138, 90, 43, 0.22);
  border-radius: 0 12px 12px 0;
}

footer.site-footer {
  padding: 36px 0 52px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid rgba(138, 90, 43, 0.08);
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .book-card { grid-template-columns: 1fr; }
  .book-cover { max-width: 260px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .hero { padding: 58px 0 36px; }
  section { padding: 34px 0; }
  .book-card, .text-card { padding: 22px; }
  .menu { gap: 12px; font-size: 0.92rem; }
  body { line-height: 1.7; }
}