:root {
  --cream: #f7f1e8;
  --paper: #fffaf3;
  --ink: #2f2a25;
  --soft-ink: #655b51;
  --accent: #9b6a3d;
  --accent-dark: #6d4728;
  --line: rgba(47, 42, 37, 0.14);
  --shadow: 0 22px 60px rgba(44, 33, 23, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Open Sans", system-ui, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  min-height: 88vh;
  padding: 28px clamp(20px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: visible;
  color: #fff;
  background-image:
    linear-gradient(
      110deg,
      rgba(29, 22, 17, 0.74),
      rgba(54, 40, 28, 0.44),
      rgba(44, 37, 30, 0.22)
    ),
    url("images/hero-rainbow.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.brand-logo img {
  display: block;
  width: 360px;
  max-width: 62vw;
  height: auto;
}

.lang-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switcher a,
.button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: 0.2s ease;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lang-switcher .flag {
  font-size: 18px;
  line-height: 1;
}

.lang-switcher a:hover,
.lang-switcher a.active,
.button:hover {
  background: #fff;
  color: var(--accent-dark);
}

.hero-copy {
  max-width: 760px;
  padding: 96px 0 64px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  font-family: "Roboto Mono", serif;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 92px);
  max-width: 880px;
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button.primary {
  background: #fff;
  color: var(--accent-dark);
}

section {
  padding: 86px clamp(20px, 5vw, 72px);
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
  align-items: start;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.section-heading p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: stretch;
}

.about-card {
  padding: clamp(28px, 4vw, 52px);
  color: var(--soft-ink);
}

.author-logo-card {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-logo-card img {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  border-radius: 22px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.book-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.book-cover {
  background: #f1e5d4;
  padding: 18px;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
}

.book-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.book-body h3 {
  font-size: clamp(34px, 4vw, 48px);
}

.book-body p {
  margin: 0;
  color: var(--soft-ink);
}

.book-options {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: #fffdf8;
}

.option-box strong {
  display: block;
  margin-bottom: 10px;
}

.mini-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-links a {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(109, 71, 40, 0.35);
}

.feature-band {
  background: #efe4d4;
  border-block: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.feature-grid h2 {
  font-size: clamp(42px, 5vw, 70px);
  margin-bottom: 20px;
}

.feature-grid p {
  color: var(--soft-ink);
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-grid li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 700;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

blockquote {
  margin: 0;
  padding: 28px;
  min-height: 210px;
  display: flex;
  align-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 29px;
  line-height: 1.15;
  color: var(--accent-dark);
}

.contact {
  text-align: center;
}

.contact .card {
  padding: clamp(32px, 5vw, 64px);
  max-width: 760px;
  margin: 0 auto;
}

.contact h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.contact p {
  color: var(--soft-ink);
  font-size: 18px;
}

.contact .button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  margin-top: 10px;
}

footer {
  padding: 32px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--soft-ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 840px) {
  .nav,
  footer {
    align-items: flex-start;
  }

  .nav {
    flex-direction: column;
  }

  .lang-switcher {
    justify-content: flex-start;
  }

  .section-heading,
  .about-layout,
  .feature-grid,
  .books-grid,
  .quotes {
    grid-template-columns: 1fr;
  }

  .book-options,
  .list-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .book-cover img {
    height: auto;
  }

  blockquote {
    min-height: auto;
  }
}
