:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --paper-deep: #e6ddce;
  --ink: #25251f;
  --muted: #686554;
  --line: rgba(37, 37, 31, 0.16);
  --rust: #b24a36;
  --moss: #596345;
  --ochre: #c69a4a;
  --night: #313327;
  --white: #fffaf0;
  --shadow: 0 22px 60px rgba(37, 37, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

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

section[id] {
  scroll-margin-top: 76px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 8px clamp(20px, 5vw, 64px);
  background: rgba(244, 241, 232, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}

.site-header--scrolled {
  border-bottom-color: var(--line);
}

.site-mark {
  justify-self: center;
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.82rem, 2.8vw, 0.92rem);
  font-weight: 750;
  text-decoration: none;
}

.language-switcher {
  position: relative;
  justify-self: end;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 70px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.56);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.language-switcher__button::-webkit-details-marker {
  display: none;
}

.language-switcher__button::after {
  content: "";
  width: 0;
  height: 0;
  border-inline: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.language-switcher[open] .language-switcher__button::after {
  transform: rotate(180deg);
}

.language-switcher__flag {
  font-size: 1rem;
  line-height: 1;
}

.language-switcher__code {
  letter-spacing: 0;
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  display: grid;
  width: 210px;
  gap: 2px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(37, 37, 31, 0.24);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.language-switcher__link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
}

.language-switcher__link:hover {
  background: rgba(37, 37, 31, 0.06);
  color: var(--ink);
}

.language-switcher__link[aria-current="page"] {
  background: rgba(37, 37, 31, 0.08);
  color: var(--ink);
  font-weight: 800;
}

.menu-toggle {
  position: relative;
  justify-self: start;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.56);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  top: 20px;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: clamp(20px, 5vw, 64px);
  z-index: 1000;
  display: grid;
  width: min(280px, calc(100vw - 40px));
  gap: 2px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(37, 37, 31, 0.24);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0ms linear 160ms;
}

.site-header.menu-open .site-nav {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0ms;
}

.site-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover {
  background: rgba(37, 37, 31, 0.06);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rust);
}

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.25rem, 4.8vw, 4.2rem);
  line-height: 1;
  font-weight: 500;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.65rem);
  line-height: 1.08;
  font-weight: 500;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 650;
}

.hero__lead {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.hero h1,
.hero__lead {
  text-shadow: none;
}

.hero__actions,
.book-card__actions,
.author__links,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.button--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.hero .button--primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.button--secondary {
  background: transparent;
  color: currentColor;
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.section--books {
  padding-top: 38px;
  padding-bottom: 24px;
}

.section--books h2 {
  font-size: clamp(1.45rem, 2.25vw, 2.35rem);
  line-height: 1.12;
}

.section--intro {
  padding-top: 20px;
}

.section--intro .section__heading {
  max-width: 720px;
  margin-bottom: 18px;
}

.section--intro h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.18rem, 1.45vw, 1.55rem);
  line-height: 1.35;
  font-weight: 650;
}

.section__heading {
  max-width: 940px;
  margin-bottom: 24px;
}

.section__heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 24px;
  align-items: end;
  max-width: none;
}

.section__heading--split p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.principles article {
  min-height: 190px;
  padding: 24px;
  background: var(--paper);
}

.principles p,
.book-card__pitch,
.book-card__note,
.access p,
.author p {
  color: var(--muted);
}

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

.professional-note {
  max-width: none;
  margin: 24px 0 0;
  padding: 16px 18px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.book-card {
  display: grid;
  grid-template-columns: minmax(116px, 136px) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(37, 37, 31, 0.06);
}

.book-card::after {
  content: none;
}

.book-card__cover {
  align-self: start;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 4px 0 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}

.book-card__cover img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.book-card__body {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: 0;
}

.book-card__status {
  margin: 0 0 8px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--moss);
}

.book-card--private .book-card__status {
  color: var(--rust);
}

.book-card__original-title {
  margin: -4px 0 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
}

.book-card__pitch {
  margin: 12px 0 0;
  font-size: 1rem;
  text-wrap: pretty;
  hyphens: auto;
}

.book-card__note {
  margin: 10px 0 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  text-wrap: pretty;
  hyphens: auto;
}

.book-card__actions {
  margin-top: auto;
  padding-top: 12px;
}

.access {
  width: 100%;
  max-width: none;
  padding: 58px max(20px, calc((100vw - 1180px) / 2));
  background: var(--night);
  color: var(--white);
}

.access .section__heading {
  margin-bottom: 20px;
}

.access .eyebrow {
  margin-bottom: 8px;
  color: #f3c56f;
}

.access h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  line-height: 1.18;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 250, 240, 0.22);
  border: 1px solid rgba(255, 250, 240, 0.22);
}

.access-grid article {
  padding: 24px 28px;
  background: var(--night);
}

.access-grid h3 {
  font-size: 1.12rem;
}

.access p {
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

.inline-links a {
  display: inline-flex;
  padding: 8px 0;
  color: var(--white);
  font-weight: 700;
}

.author {
  display: block;
}

.author__copy {
  max-width: 760px;
}

.author__copy p {
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 750;
  text-decoration: none;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 880px) {
  .site-header {
    align-items: center;
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
    padding: 14px 16px;
    gap: 12px;
  }

  .site-nav {
    left: 16px;
    justify-content: stretch;
    gap: 2px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
  }

  .section__heading--split,
  .book-grid,
  .principles,
  .access-grid,
  .author {
    grid-template-columns: 1fr;
  }

  .book-card__cover {
    float: none;
    width: 138px;
    min-height: 0;
  }

  .book-card {
    grid-template-columns: 138px minmax(0, 1fr);
  }

}

@media (max-width: 620px) {
  .site-header {
    position: sticky;
    grid-template-columns: 72px 1fr 72px;
  }

  .language-switcher__button {
    min-width: 62px;
    padding-inline: 8px;
  }

  .language-switcher__menu {
    width: min(210px, calc(100vw - 32px));
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  .hero__inner {
    width: min(100% - 32px, 1180px);
    padding: 28px 0 24px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .hero__lead {
    font-size: 0.98rem;
  }

  .section {
    width: min(100% - 32px, 1180px);
    padding: 38px 0;
  }

  .section--books {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .section--intro {
    padding-top: 20px;
  }

  .section__heading--split p:last-child {
    font-size: 1rem;
  }

  .access .section__heading {
    padding-inline: 28px;
  }

  .book-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .book-card__cover {
    float: none;
    width: min(100%, 260px);
    max-width: 100%;
    min-height: 0;
    margin: 0 0 16px;
    aspect-ratio: auto;
  }

  .book-card__body {
    padding: 0;
  }

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