:root {
  --bg: #f5f0e8;
  --ink: #181613;
  --muted: #6f675d;
  --paper: #fffaf2;
  --line: #ded0bd;
  --gold: #a98a50;
  --gold-light: #d8c39a;
  --gold-dark: #806638;
  --night: #171613;
  --night-2: #24211c;
  --accent: #506056;
  --shadow: 0 24px 70px rgba(26, 22, 16, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222, 208, 189, 0.8);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img { width: 34px; height: 34px; }

nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}
nav a { text-decoration: none; transition: color 180ms ease; }
nav a:hover { color: var(--ink); }

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255,250,242,.72);
  font-weight: 700;
}

.language-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: radial-gradient(circle at 80% 20%, rgba(169, 138, 80, .18), transparent 32%), linear-gradient(135deg, #171613, #27231d);
  color: #f5f0e8;
}
.language-header,
.language-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(20px, 6vw, 88px);
}
.language-header .brand img { filter: invert(1); }
.language-footer { color: #d9ccbb; font-size: .92rem; }
.language-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .85fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
  padding: clamp(34px, 6vw, 88px) clamp(20px, 6vw, 88px) clamp(60px, 8vw, 110px);
}
.language-copy { max-width: 760px; }
.language-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 7.4rem);
  line-height: .95;
  letter-spacing: -.055em;
  margin: 0;
}
.language-copy p {
  max-width: 640px;
  color: #d9ccbb;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
}
.language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.language-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(216,195,154,.28);
  background: rgba(255,255,255,.06);
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}
.language-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.1);
  border-color: rgba(216,195,154,.58);
}
.language-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
}
.language-card span { color: #d9ccbb; }
.language-visual {
  position: relative;
  min-height: 540px;
}
.language-cover {
  position: absolute;
  width: min(270px, 45vw);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 34px 76px rgba(0,0,0,.55);
  background: #000;
}
.language-cover.pt { left: 0; top: 35px; transform: rotate(-4deg); }
.language-cover.en { right: 0; bottom: 30px; transform: rotate(5deg); }
.language-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 126px;
  height: 126px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,195,154,.55);
  background: rgba(23,22,19,.88);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.language-seal img { width: 92px; }

.hero {
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: clamp(64px, 9vw, 130px) clamp(20px, 6vw, 88px) clamp(60px, 8vw, 110px);
}
.hero-copy { max-width: 780px; }
.kicker {
  margin: 0 0 18px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
}
.section.dark .kicker, .language-copy .kicker { color: var(--gold-light); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  margin: 0;
  font-weight: 500;
}
h1 {
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  letter-spacing: -0.055em;
}
.subtitle {
  margin: 10px 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3.2vw, 3.1rem);
  line-height: 1.12;
  color: var(--night-2);
}
.lede {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  color: #3a342d;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: #fffaf2; }
.button.primary:hover { background: #000; }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--paper); }
.button.disabled,
.buy-card a.disabled {
  pointer-events: none;
  opacity: .62;
  border-color: rgba(111,103,93,.35);
  color: var(--muted);
}

.hero-card {
  position: relative;
  justify-self: center;
  width: min(370px, 90vw);
  padding: 18px;
  background: rgba(255, 250, 242, 0.7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
}
.book-cover { overflow: hidden; border-radius: 20px; box-shadow: 0 28px 50px rgba(0, 0, 0, 0.24); background: var(--night); }
.badge {
  position: absolute;
  right: -24px;
  bottom: -22px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--night);
  border: 1px solid rgba(169, 138, 80, 0.65);
  box-shadow: 0 16px 30px rgba(0,0,0,.25);
}
.badge img { width: 68px; height: 68px; }

.section { padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 88px); }
.section.alt { background: var(--paper); }
.section.dark { background: linear-gradient(135deg, var(--night), #27231d); color: #f5f0e8; }
.section-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 7vw, 90px); align-items: start; }
.section-title { font-size: clamp(2.3rem, 5vw, 4.8rem); letter-spacing: -0.04em; }
.section .kicker + .section-title { margin-top: 10px; }
.prose { max-width: 780px; font-size: 1.05rem; color: #3f3931; }
.section.dark .prose, .section.dark .muted { color: #d9ccbb; }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); }
.section.dark .prose strong { color: #fffaf2; }

.image-panel {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper);
}
.image-panel img { width: 100%; height: 100%; object-fit: cover; }
.image-caption { margin-top: 10px; color: var(--muted); font-size: .88rem; }
.profile-grid {
  display: grid;
  grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.buy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.buy-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,250,242,0.76);
  box-shadow: 0 16px 40px rgba(31, 25, 17, 0.08);
}
.buy-card h3 { font-size: 1.45rem; }
.buy-card p { margin: 8px 0 0; color: var(--muted); }
.buy-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.buy-card a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink);
  font-size: .91rem;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
}
.buy-card a:hover { background: var(--ink); color: var(--paper); }
.buy-card .status {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(169,138,80,.12);
  color: var(--gold-dark);
  font-size: .86rem;
  font-weight: 800;
}
.mini-cover { width: 100%; max-width: 124px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22); background: var(--night); }

.quote-block {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 42px);
  border-left: 4px solid var(--gold);
  background: rgba(169, 138, 80, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.22;
}
.series-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.series-item { padding: 22px; border: 1px solid rgba(222, 208, 189, 0.24); border-radius: 22px; background: rgba(255,255,255,0.04); }
.series-item .number { color: #d8c39a; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.series-item h3 { margin-top: 10px; font-size: 1.45rem; color: #fffaf2; }
.series-item p { margin: 10px 0 0; color: #d9ccbb; }

.author-card { display: grid; grid-template-columns: minmax(190px, 260px) minmax(0, 1fr); gap: 30px; align-items: center; margin-top: 26px; padding: 28px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,250,242,.78); }
.author-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 18px 34px rgba(0,0,0,.15); }
.author-card h3 { font-size: 1.6rem; }
.author-card p { margin: 10px 0 0; color: var(--muted); }
.contact-link { font-weight: 800; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(24,22,19,.18);
  border-radius: 999px;
  background: rgba(255,250,242,.72);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}
.social-links a:hover {
  transform: translateY(-2px);
  background: var(--paper);
  border-color: rgba(24,22,19,.45);
}
.social-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.site-footer .social-links,
.language-footer .social-links {
  margin-top: 0;
}
.site-footer .social-links a,
.language-footer .social-links a {
  min-height: 34px;
  padding: 7px 10px;
  border-color: rgba(245,240,232,.24);
  background: rgba(255,255,255,.05);
  color: #f5f0e8;
}
.site-footer .social-links span,
.language-footer .social-links span {
  display: none;
}
.site-footer .social-links svg,
.language-footer .social-links svg {
  width: 17px;
  height: 17px;
}


.newsletter { max-width: 920px; margin: 0 auto; text-align: center; }
.newsletter p { max-width: 680px; margin: 20px auto 0; color: #d9ccbb; }
.newsletter-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.newsletter-actions a { color: #171613; background: #d8c39a; border-radius: 999px; padding: 12px 18px; text-decoration: none; font-weight: 800; }
.newsletter-actions a.secondary-light { color: #f5f0e8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 6vw, 88px); border-top: 1px solid rgba(222,208,189,.28); background: var(--night); color: #d9ccbb; font-size: .92rem; }
.site-footer a { color: #f5f0e8; text-decoration: none; border-bottom: 1px solid rgba(245,240,232,.35); }

@media (max-width: 980px) {
  .site-header { align-items: flex-start; flex-direction: column; position: static; }
  nav { flex-wrap: wrap; }
  .hero, .section-grid, .language-shell, .profile-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-card { justify-self: start; }
  .buy-grid, .series-list { grid-template-columns: 1fr; }
  .language-visual { min-height: 480px; }
}
@media (max-width: 640px) {
  .language-options { grid-template-columns: 1fr; }
  .language-cover { width: min(220px, 62vw); }
  .language-cover.pt { left: 0; top: 18px; }
  .language-cover.en { right: 0; bottom: 20px; }
  .language-seal { width: 104px; height: 104px; }
  .language-seal img { width: 76px; }
  .buy-card { grid-template-columns: 88px minmax(0,1fr); padding: 18px; }
  .mini-cover { max-width: 88px; }
  .author-card { grid-template-columns: 1fr; }
  .site-footer, .language-header, .language-footer { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .badge { right: 10px; bottom: -28px; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
