:root {
  --black: #060505;
  --black-2: #11100d;
  --white: #f7f2e8;
  --paper: #fffaf0;
  --muted: #c9bda7;
  --scarlet: #b50918;
  --scarlet-dark: #790712;
  --gold: #b78a35;
  --gold-bright: #e4bf72;
  --neon-blue: #3ed7ff;
  --neon-green: #65f0a7;
  --line: rgba(248, 245, 239, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(6, 5, 5, 0.94);
  color: var(--white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover,
.contact-links a:hover {
  color: var(--gold-bright);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #000;
}

.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(228, 191, 114, 0.58);
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.language-link:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--white);
  border-color: var(--neon-blue);
}

.lang-switch button {
  width: 44px;
  height: 34px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.lang-switch button.active {
  color: var(--black);
  background: var(--gold-bright);
}

.section-dark {
  background:
    linear-gradient(90deg, rgba(181, 9, 24, 0.16) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(228, 191, 114, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(145deg, #040404 0%, #15110a 52%, #050505 100%);
  background-size: auto, 42px 42px, auto;
  color: var(--white);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(42px, 6vw, 78px) clamp(18px, 6vw, 80px);
  overflow: hidden;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow,
.language-label {
  margin: 0 0 14px;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6.6vw, 92px);
  line-height: 1.03;
  font-weight: 700;
}

h2 {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.12;
}

.hero-lede {
  max-width: 690px;
  margin: 24px 0 0;
  color: #e8dcc8;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.56;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--gold);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--neon-blue);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold-bright), #a87528);
  color: var(--black);
}

.button-secondary {
  background: rgba(248, 245, 239, 0.06);
  color: var(--white);
}

.button-small {
  min-height: 42px;
  margin-top: 10px;
  padding: 11px 15px;
  background: var(--black);
  color: var(--white);
}

.proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.proof-line span {
  border: 1px solid rgba(214, 164, 68, 0.36);
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.24);
  color: #f4ead8;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.hero-visual-single {
  display: grid;
  place-items: center;
}

.book-cover {
  position: absolute;
  width: min(44vw, 360px);
  max-height: 78vh;
  object-fit: cover;
  border: 1px solid rgba(228, 191, 114, 0.78);
  outline: 8px solid rgba(0, 0, 0, 0.22);
  box-shadow: var(--shadow);
}

.cover-es {
  left: 0;
  top: 28px;
  transform: rotate(-4deg);
}

.cover-en {
  right: 0;
  bottom: 10px;
  transform: rotate(4deg);
}

.cover-single {
  position: static;
  width: min(42vw, 390px);
  max-height: 78vh;
  transform: rotate(2deg);
}

.books-section,
.audience-section,
.contact-section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 6vw, 80px);
}

.section-intro {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-intro.align-left {
  margin-left: 0;
  text-align: left;
}

.section-intro p:not(.eyebrow) {
  margin: 18px auto 0;
  max-width: 720px;
  color: #5a5042;
  font-size: 18px;
  line-height: 1.65;
}

.section-dark .section-intro p:not(.eyebrow) {
  color: #e8dcc8;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

.book-item {
  display: grid;
  grid-template-columns: minmax(160px, 0.48fr) minmax(0, 0.52fr);
  gap: 24px;
  align-items: center;
  border-top: 3px solid var(--scarlet);
  background:
    linear-gradient(90deg, rgba(183, 138, 53, 0.16), transparent 18%),
    var(--paper);
  box-shadow: 0 24px 60px rgba(19, 15, 8, 0.12);
  padding: clamp(18px, 2.8vw, 32px);
}

.book-item:nth-child(2) {
  border-top-color: var(--gold);
}

.book-feature {
  max-width: 980px;
  margin: 0 auto;
}

.book-item img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(7, 7, 7, 0.26);
  box-shadow: 0 20px 48px rgba(21, 16, 8, 0.22);
}

.book-copy .subtitle {
  margin: 10px 0 16px;
  color: var(--scarlet-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.35;
}

.book-copy p:not(.subtitle):not(.language-label) {
  color: #3d362c;
  line-height: 1.65;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.text-link {
  color: var(--scarlet-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.thesis-section {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 6vw, 80px);
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.thesis-panel {
  min-height: 270px;
  padding: clamp(24px, 3vw, 38px);
  background: rgba(7, 7, 7, 0.84);
}

.thesis-panel span {
  display: inline-block;
  margin-bottom: 46px;
  font-size: 13px;
  font-weight: 900;
}

.thesis-panel h3 {
  margin-bottom: 14px;
}

.thesis-panel p {
  color: #e0d4c0;
  line-height: 1.62;
}

.accent-red span {
  color: var(--scarlet);
}

.accent-gold span {
  color: var(--gold-bright);
}

.accent-neon span {
  color: var(--neon-blue);
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

.audience-list span {
  background: linear-gradient(180deg, #18140d, #080706);
  border: 1px solid rgba(214, 164, 68, 0.52);
  border-radius: 8px;
  color: var(--gold-bright);
  font-size: 15px;
  font-weight: 800;
  padding: 12px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 7px 0 rgba(80, 52, 11, 0.52), 0 16px 28px rgba(0, 0, 0, 0.22);
}

.author-section {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 820px);
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 48px);
  padding: clamp(58px, 8vw, 108px) clamp(18px, 6vw, 80px);
}

.author-photo {
  width: min(100%, 142px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 54% 24%;
  border: 1px solid var(--gold-bright);
  outline: 5px solid rgba(228, 191, 114, 0.08);
  background: #dcebd6;
}

.author-copy p {
  color: #e8dcc8;
  font-size: 18px;
  line-height: 1.65;
}

.author-name {
  display: grid;
  gap: 4px;
}

.author-name span {
  color: var(--muted);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
}

.author-name strong {
  display: block;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  white-space: nowrap;
}

.service-note {
  margin-top: 22px;
  padding-left: 20px;
  border-left: 3px solid var(--gold-bright);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(181, 9, 24, 0.08), transparent 34%),
    linear-gradient(90deg, #fffaf0, #f1e5d0);
}

.contact-heading {
  margin-bottom: 13px;
  color: var(--gold-bright);
  text-align: center;
}

.contact-section p:not(.eyebrow) {
  max-width: 720px;
  color: #514739;
  font-size: 18px;
  line-height: 1.65;
}

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

.contact-email {
  grid-column: 1 / -1;
  justify-content: center;
  text-align: center;
}

.contact-links a {
  border-left: 3px solid var(--scarlet);
  border-radius: 8px;
  background: linear-gradient(180deg, #18140d, #080706);
  color: var(--white);
  padding: 16px 18px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 0 rgba(80, 52, 11, 0.54), 0 14px 24px rgba(0, 0, 0, 0.2);
}

.contact-links a:nth-child(2) {
  border-left-color: var(--gold);
}

.contact-links a:nth-child(3) {
  border-left-color: var(--gold-bright);
}

.contact-links a:nth-child(4) {
  border-left-color: var(--neon-blue);
}

.contact-links a:nth-child(5) {
  border-left-color: var(--gold);
}

.contact-links a:nth-child(6) {
  border-left-color: var(--gold-bright);
}

.contact-links a:nth-child(7) {
  border-left-color: var(--neon-blue);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 6vw, 80px);
  background: var(--black);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  .hero,
  .book-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .book-cover {
    width: min(48vw, 330px);
  }

  .cover-single {
    width: min(58vw, 360px);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    white-space: normal;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 500px;
  }

  .book-cover {
    width: min(62vw, 280px);
  }

  .cover-single {
    width: min(72vw, 320px);
  }

  .cover-es {
    left: 0;
  }

  .cover-en {
    right: 0;
  }

  .book-item,
  .thesis-grid,
  .author-section {
    grid-template-columns: 1fr;
  }

  .book-item img {
    max-width: 280px;
    margin: 0 auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 430px;
  }

  .book-cover {
    width: min(70vw, 230px);
  }

  .cover-single {
    width: min(74vw, 250px);
  }

  .cover-en {
    bottom: 0;
  }
}
