:root {
  --ink: #111315;
  --ink-2: #1d2422;
  --paper: #f4efe4;
  --paper-2: #ebe0cf;
  --white: #fffaf0;
  --muted: #6f6a60;
  --gold: #c9a45a;
  --green: #41594e;
  --wine: #71373b;
  --line: rgba(17, 19, 21, 0.14);
  --shadow: 0 24px 70px rgba(17, 19, 21, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3,
p,
a,
button {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  font-size: 68px;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 25px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 36px;
  background: rgba(244, 239, 228, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  font-family: var(--serif);
  font-size: 22px;
}

.brand-mark span {
  white-space: nowrap;
}

.brand-mark img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  width: 100%;
  font-size: 14px;
}

.main-nav a {
  color: var(--ink-2);
}

.main-nav a:hover,
.text-link:hover {
  color: var(--wine);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 250, 240, 0.6);
}

.lang-link {
  min-width: 38px;
  padding: 5px 9px;
  border-radius: 5px;
  text-align: center;
}

.lang-link.active {
  background: var(--ink);
  color: var(--white);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}

.button:hover {
  background: var(--wine);
  border-color: var(--wine);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

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

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

.button.small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 14px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 58px 6vw 54px;
  background: var(--paper);
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.hero-section > *,
.position-section > *,
.method-section > *,
.featured-section > *,
.author-section > *,
.filters-section > *,
.related-section > *,
.book-detail-section > *,
.book-form-section > *,
.book-card {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 660px;
  margin-top: 24px;
  color: #3d3b36;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.35;
}

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

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 44px 26px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(ellipse 80% 62% at 50% 36%, rgba(201, 164, 90, 0.18), transparent 66%),
    repeating-radial-gradient(circle at 50% 40%, transparent 0 62px, rgba(201, 164, 90, 0.06) 62px 63px),
    var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.book-hero-cover {
  position: relative;
}

.cover-fan {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fan-item {
  position: relative;
  display: block;
  width: clamp(104px, 11.5vw, 172px);
  aspect-ratio: 5 / 8;
  border-radius: 6px;
  background: #161819;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.fan-item img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.fan-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(201, 164, 90, 0.4);
  border-radius: 6px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
}

.fan-item.left {
  z-index: 1;
  transform: rotate(-8deg) translate(22px, 8px);
}

.fan-item.right {
  z-index: 1;
  transform: rotate(8deg) translate(-22px, 8px);
}

.fan-item.center {
  z-index: 2;
  width: clamp(132px, 14.5vw, 212px);
}

.fan-item:hover {
  z-index: 3;
  transform: rotate(0deg) translateY(-12px);
  box-shadow: 0 34px 64px rgba(0, 0, 0, 0.55);
}

.fan-caption {
  color: rgba(255, 250, 240, 0.85);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  text-align: center;
}

.fan-caption a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 164, 90, 0.45);
  padding-bottom: 2px;
}

.fan-caption a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.cover-link {
  display: block;
  position: relative;
}

.position-section,
.method-section,
.featured-section,
.author-section,
.filters-section,
.related-section,
.book-detail-section,
.book-form-section {
  padding: 78px 6vw;
}

.position-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 44px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-copy p:not(.eyebrow),
.section-heading p,
.author-section p,
.library-hero p,
.form-hero p,
.book-hero-copy p,
.book-description {
  color: var(--muted);
}

.section-copy p:not(.eyebrow) {
  margin-top: 18px;
  max-width: 700px;
  font-size: 19px;
}

.principle-list {
  display: grid;
  gap: 14px;
}

.principle-list div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.principle-list span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 28px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 19px;
}

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

.pillar-grid article {
  min-height: 210px;
  padding: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.pillar-grid h3 {
  margin-bottom: 12px;
}

.pillar-grid p {
  color: rgba(255, 250, 240, 0.74);
}

.featured-section,
.related-section {
  background: var(--paper);
}

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

.catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(17, 19, 21, 0.06);
}

.featured-grid .book-card,
.related-grid .book-card {
  grid-template-columns: 1fr;
}

.cover-link {
  align-self: start;
}

.book-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
  background: var(--ink);
  box-shadow: 0 16px 32px rgba(17, 19, 21, 0.22);
}

.cover-fallback {
  width: 150px;
  aspect-ratio: 5 / 8;
  border-radius: 5px;
  background: var(--ink);
  box-shadow: 0 16px 32px rgba(17, 19, 21, 0.22);
}

.featured-grid .book-cover,
.related-grid .book-cover,
.featured-grid .cover-fallback,
.related-grid .cover-fallback {
  width: 100%;
  max-width: 190px;
}

.featured-grid .cover-link,
.related-grid .cover-link {
  width: 100%;
  max-width: 190px;
  margin: 0 auto;
}

.cover-fallback,
.rail-fallback,
.detail-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
}

.book-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.book-meta,
.book-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.book-meta span,
.book-facts span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #555049;
  font-size: 12px;
  background: rgba(244, 239, 228, 0.72);
}

.book-card h3 {
  font-size: 23px;
}

.book-card h3 a:hover {
  color: var(--wine);
}

.book-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.book-actions {
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
}

.text-link {
  font-weight: 700;
  color: var(--green);
}

.center-action {
  margin-top: 32px;
  text-align: center;
}

.author-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 42px;
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.author-section img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 18px 48px rgba(17, 19, 21, 0.22);
}

.author-section p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 19px;
}

.waitlist-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 58px 6vw;
  background: var(--green);
  color: var(--white);
}

.waitlist-band .eyebrow {
  color: var(--gold);
}

.waitlist-band h2 {
  max-width: 900px;
  font-size: 34px;
}

.waitlist-band.compact {
  margin-top: 40px;
}

.library-hero,
.form-hero {
  padding: 86px 6vw 58px;
}

.library-hero {
  background: var(--ink);
  color: var(--white);
}

.library-hero .eyebrow,
.book-hero .eyebrow {
  color: var(--gold);
}

.library-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 20px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 21px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.empty-state {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.book-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 820px);
  gap: 48px;
  align-items: center;
  padding: 72px 6vw;
  background: var(--ink);
  color: var(--white);
}

.detail-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.detail-fallback {
  width: 300px;
  aspect-ratio: 5 / 8;
  border-radius: 6px;
  background: #161819;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.book-hero h1 {
  font-size: 56px;
}

.book-hero .subtitle {
  margin-top: 18px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.35;
}

.book-hero-copy > p:not(.eyebrow):not(.subtitle) {
  max-width: 760px;
  margin-top: 20px;
  color: rgba(255, 250, 240, 0.76);
}

.book-hero .button.ghost {
  color: var(--white);
  border-color: rgba(255, 250, 240, 0.45);
}

.book-hero .button.ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.book-facts {
  margin-top: 28px;
}

.book-facts span {
  background: rgba(255, 250, 240, 0.08);
  color: rgba(255, 250, 240, 0.78);
  border-color: rgba(255, 250, 240, 0.2);
}

.book-detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 34px;
  background: var(--white);
}

.audience-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: var(--paper);
}

.commitment-box {
  align-self: start;
  padding: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.commitment-box p:not(.eyebrow) {
  color: rgba(255, 250, 240, 0.74);
}

.book-form-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  background: var(--white);
}

.form-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  min-height: calc(100vh - 78px);
  background: var(--paper);
}

.form-hero h1 {
  font-size: 48px;
}

.form-hero p:not(.eyebrow) {
  margin-top: 20px;
  font-size: 19px;
}

.form-panel,
.reader-form {
  min-width: 0;
}

.reader-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(17, 19, 21, 0.08);
}

.reader-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.reader-form .wide,
.reader-form button.wide {
  grid-column: 1 / -1;
}

.reader-form input,
.reader-form select,
.reader-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--ink);
  padding: 12px 13px;
}

.reader-form textarea {
  resize: vertical;
}

.site-footer {
  padding: 44px 6vw 24px;
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1fr);
  gap: 34px;
}

.footer-brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 420px;
  color: rgba(255, 250, 240, 0.8);
}

.footer-brand small,
.footer-copy {
  display: block;
  margin-top: 14px;
  color: rgba(255, 250, 240, 0.58);
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  align-content: start;
}

.footer-links a {
  color: rgba(255, 250, 240, 0.82);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 250, 240, 0.12);
}

@media (max-width: 1100px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-section,
  .position-section,
  .book-hero,
  .book-detail-section,
  .book-form-section,
  .form-hero {
    grid-template-columns: 1fr;
  }

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

  .pillar-grid,
  .book-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  h1,
  .book-hero h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .site-header {
    padding: 12px 18px;
  }

  .brand-mark {
    min-width: 0;
    font-size: 19px;
  }

  .brand-mark img {
    width: 44px;
    height: 44px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px rgba(17, 19, 21, 0.12);
  }

  .main-nav.open {
    display: grid;
    gap: 12px;
  }

  .lang-switch {
    justify-self: start;
  }

  .hero-section,
  .position-section,
  .method-section,
  .featured-section,
  .author-section,
  .filters-section,
  .related-section,
  .book-detail-section,
  .book-form-section,
  .library-hero,
  .form-hero,
  .book-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-section {
    padding-top: 42px;
    padding-bottom: 44px;
    gap: 28px;
  }

  .hero-lead,
  .book-hero .subtitle {
    font-size: 22px;
  }

  .hero-visual {
    min-height: 380px;
    padding: 32px 18px 26px;
  }

  .fan-item {
    width: clamp(104px, 26vw, 150px);
  }

  .fan-item.center {
    width: clamp(132px, 33vw, 188px);
  }

  .pillar-grid,
  .book-grid,
  .catalog-grid,
  .reader-form,
  .footer-inner,
  .footer-links,
  .waitlist-band {
    grid-template-columns: 1fr;
  }

  .book-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 0;
    padding: 14px;
  }

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

  .book-cover,
  .cover-fallback,
  .featured-grid .book-cover,
  .related-grid .book-cover,
  .featured-grid .cover-fallback,
  .related-grid .cover-fallback {
    width: 112px;
  }

  .book-card h3 {
    font-size: 21px;
  }

  .book-description {
    display: none;
  }

  .author-section {
    grid-template-columns: 1fr;
  }

  .author-section img,
  .detail-cover,
  .detail-fallback {
    width: 220px;
  }

  .reader-form .wide,
  .reader-form button.wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  h1,
  .book-hero h1 {
    font-size: 36px;
  }

  .hero-section > *,
  .library-hero > *,
  .filters-section > *,
  .book-hero > *,
  .book-detail-section > *,
  .book-form-section > *,
  .form-hero > * {
    width: 100%;
    max-width: 320px;
  }

  .hero-actions,
  .book-actions {
    flex-direction: column;
  }

  .hero-visual {
    min-height: 330px;
    max-width: none;
  }

  .fan-item {
    width: 27vw;
  }

  .fan-item.left {
    transform: rotate(-8deg) translate(16px, 8px);
  }

  .fan-item.right {
    transform: rotate(8deg) translate(-16px, 8px);
  }

  .fan-item.center {
    width: 35vw;
  }

  .fan-caption {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .book-card,
  .featured-grid .book-card,
  .related-grid .book-card {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
  }

  .book-cover,
  .cover-fallback,
  .featured-grid .book-cover,
  .related-grid .book-cover,
  .featured-grid .cover-fallback,
  .related-grid .cover-fallback {
    width: 94px;
  }

  .book-meta span:nth-child(2) {
    display: none;
  }
}

.reader-form label.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.reader-form label.consent input {
  width: auto;
  margin-top: 3px;
}
