:root {
  --green-950: #082c26;
  --green-900: #0c3a30;
  --green-800: #245a48;
  --ivory: #f4efe5;
  --ivory-soft: #fbf8f1;
  --paper: #fffdf8;
  --ink: #18211e;
  --muted: #616964;
  --gold: #b99a5d;
  --gold-light: #d9c69a;
  --line: rgba(24, 33, 30, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Aptos, "Segoe UI", Arial, sans-serif;
  --shell: min(1216px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ivory-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--green-950);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(18, 61, 53, 0.12);
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand {
  display: inline-flex;
  width: 82px;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: var(--green-950);
  text-decoration: none;
}
.brand img { width: 58px; height: 48px; object-fit: contain; }
.brand span {
  margin-left: 0.3em;
  color: var(--green-950);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: clamp(26px, 3vw, 50px); }
.site-nav a {
  position: relative;
  color: var(--green-950);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }
.site-nav { margin-left: auto; }
.language-switch { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; font-size: .75rem; letter-spacing: .06em; color: var(--green-950); }
.language-switch a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.language-switch a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.language-switch a:hover { text-decoration: underline; text-underline-offset: 5px; }

.universe-section { padding: clamp(20px, 2.5vw, 36px) 0; background: var(--ivory-soft); border-top: 1px solid var(--line); }
.universe-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(42px, 7vw, 100px); }
.universe-section h2 { margin-bottom: 12px; color: var(--green-950); font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.12; }
.universe-lead { margin-bottom: 0; font: italic 1.2rem/1.6 var(--serif); color: var(--green-800); }
.universe-copy { max-width: 680px; color: var(--muted); }
.universe-copy p { margin-bottom: 12px; }
.universe-copy .text-link { margin-top: 0; font-size: .82rem; letter-spacing: .04em; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 7vw, 108px) 0 clamp(76px, 8vw, 122px);
  background:
    radial-gradient(circle at 79% 32%, rgba(185, 154, 93, 0.13), transparent 27rem),
    linear-gradient(180deg, var(--ivory-soft), var(--ivory));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(46px, 6vw, 88px);
}
.hero-copy { max-width: 520px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--green-800);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
h1 {
  margin-bottom: 24px;
  color: var(--green-950);
  font-size: clamp(2.9rem, 4.6vw, 4.8rem);
}
.hero-intro { max-width: 520px; margin-bottom: 30px; color: var(--muted); font-size: 1.05rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--gold);
  color: var(--green-950);
  font-weight: 700;
  text-decoration: none;
}
.hero-media {
  min-width: 0;
  margin: 0;
  box-shadow: 0 24px 52px rgba(8, 44, 38, 0.16);
}
.hero-media img { width: 100%; height: auto; }

.book-object {
  position: relative;
  margin-inline: auto;
  background: transparent;
  box-shadow: 0 14px 28px rgba(5, 42, 38, 0.13);
}
.book-object img { width: 100%; height: auto; }
.book-object-portrait { width: min(100%, 420px); aspect-ratio: 145 / 210; }
.book-object-portrait img { object-fit: cover; }
.book-object-square { width: min(100%, 500px); aspect-ratio: 1; }
.books-section { padding: clamp(84px, 9vw, 142px) 0 0; background: var(--paper); }
.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: end;
  padding-bottom: 38px;
}
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; color: var(--green-950); font-size: clamp(3rem, 5vw, 4.9rem); }
.book {
  display: grid;
  grid-template-columns: minmax(390px, 0.98fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(64px, 8vw, 124px);
  min-height: 760px;
  padding: clamp(82px, 9vw, 136px) 0;
}
.book-america { grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr); }
.book-america .book-visual { order: 2; }
.book-visual { position: relative; min-width: 0; padding: 44px; }
.book-visual::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid rgba(185,154,93,0.23);
  background: linear-gradient(145deg, var(--ivory-soft), var(--ivory));
  content: "";
}
.book-visual .book-object { position: relative; z-index: 1; }
.book-visual-portrait .book-object { width: min(78%, 380px); }
.book-visual-square .book-object { width: min(96%, 500px); }
.book-genre {
  margin-bottom: 14px;
  color: var(--green-800);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.book h3 {
  max-width: 720px;
  margin-bottom: 14px;
  color: var(--green-950);
  font-size: clamp(2.7rem, 4.7vw, 4.7rem);
}
.book-author {
  margin-bottom: 30px;
  color: var(--green-800);
  font-family: var(--serif);
  font-size: 1.22rem;
}
.book-copy > p:not(.book-genre):not(.book-author):not(.publication-status) {
  max-width: 630px;
  color: var(--muted);
  font-size: 1.04rem;
}
.book-meta { max-width: 630px; margin: 32px 0; border-top: 1px solid var(--line); }
.book-meta div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.book-meta dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.book-meta dd { margin: 0; }
.book-purchase { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.book-purchase a,
.book-purchase button {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: var(--green-950);
  color: var(--ivory-soft);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.book-purchase a:hover { background: var(--green-900); }
.book-purchase button { font: inherit; font-weight: 700; }
.book-purchase button:disabled {
  background: var(--muted);
  border-color: var(--muted);
  cursor: not-allowed;
}

.publication-status {
  margin: 0;
  color: var(--green-950);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-section {
  padding: clamp(88px, 10vw, 152px) 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(185, 154, 93, 0.07), transparent 38rem),
    linear-gradient(145deg, var(--green-900), var(--green-950));
  color: var(--ivory-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: clamp(64px, 9vw, 142px);
}
.eyebrow-light { color: var(--gold-light); }
.about-section h2 { max-width: 690px; margin-bottom: 0; font-size: clamp(3rem, 5vw, 4.9rem); }
.about-copy { padding-top: 44px; border-top: 1px solid rgba(246,241,231,0.28); }
.about-copy p { color: rgba(246,241,231,0.84); font-size: 1.04rem; }
.contact-section { padding: clamp(64px, 7vw, 96px) 0; background: var(--ivory); }
.contact-inner {
  max-width: 620px;
  text-align: center;
}
.contact-section h2 {
  margin-bottom: 28px;
  color: var(--green-950);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
}
.contact-card { margin: 0; padding: 0; }
.contact-card p { color: var(--muted); }
.contact-card .contact-name {
  margin-bottom: 5px;
  color: var(--green-950);
  font-family: var(--serif);
  font-size: 1.5rem;
}
.mail-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--green-950);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  text-underline-offset: 7px;
  text-decoration-color: var(--gold);
}
.site-footer { padding: 28px 0; background: var(--green-950); color: rgba(246,241,231,0.72); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ivory-soft); }
.footer-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }

.legal-hero {
  padding: clamp(70px, 9vw, 126px) 0 clamp(62px, 8vw, 104px);
  background:
    radial-gradient(circle at 82% 18%, rgba(185, 154, 93, 0.12), transparent 34%),
    var(--green-950);
  color: var(--ivory-soft);
}
.legal-hero .eyebrow { color: var(--gold-light); }
.legal-hero h1 {
  max-width: 850px;
  margin: 16px 0 20px;
  color: var(--ivory-soft);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.legal-hero p:last-child { max-width: 690px; margin: 0; color: rgba(251, 248, 241, 0.78); }
.legal-content { padding: clamp(72px, 9vw, 126px) 0; background: var(--paper); }
.legal-shell { max-width: 820px; }
.legal-section + .legal-section { margin-top: clamp(70px, 8vw, 104px); }
.legal-section h2 {
  margin: 0 0 28px;
  color: var(--green-950);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.legal-section h3 {
  margin: 42px 0 12px;
  color: var(--green-950);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
}
.legal-section p { margin: 0 0 18px; }
.legal-section a { text-underline-offset: 4px; text-decoration-color: var(--gold); }
.legal-facts { margin: 34px 0; border-top: 1px solid var(--line); }
.legal-facts div {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.legal-facts dt { color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-facts dd { margin: 0; }
.legal-rights { margin: 0 0 18px; padding-left: 1.2em; }
.legal-rights li + li { margin-top: 7px; }
.legal-note {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 3px solid var(--gold);
  background: var(--ivory-soft);
}
.legal-note strong { color: var(--green-950); }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); gap: 46px; }
  .book,
  .book-america { grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr); gap: 58px; }
  .book-america .book-visual { order: 2; }
}

@media (max-width: 860px) {
  :root { --shell: min(100% - 44px, 720px); }
  .hero-grid,
  .book,
  .book-america,
  .about-grid { grid-template-columns: 1fr; }
  .universe-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-copy { max-width: 600px; }
  .hero-media { width: min(100%, 760px); margin-inline: auto; }
  .book { min-height: auto; }
  .book-america .book-visual { order: 0; }
  .book-visual { width: min(100%, 650px); margin-inline: auto; }
  .about-copy { max-width: 620px; padding-top: 32px; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 36px); }
  .header-inner { min-height: 76px; gap: 12px; }
  .brand { width: 66px; }
  .brand img { width: 46px; height: 38px; }
  .menu-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: var(--green-950);
    font: 700 0.88rem/1 var(--sans);
  }
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    content: "";
  }
  .menu-icon { position: relative; }
  .menu-icon::before,
  .menu-icon::after { position: absolute; left: 0; }
  .menu-icon::before { top: -7px; }
  .menu-icon::after { top: 7px; }
  .site-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 18px 26px;
    border-bottom: 1px solid rgba(21,59,52,0.12);
    background: var(--ivory-soft);
  }
  .site-nav.is-open { display: flex; }
  .menu-toggle { margin-left: auto; }
  .site-nav a { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 54px 0 72px; }
  .hero-grid { gap: 36px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .section-heading { grid-template-columns: 1fr; gap: 6px; padding-bottom: 26px; }
  .book { gap: 48px; padding: 68px 0; }
  .book-visual { padding: 28px 22px 30px; }
  .book-visual-portrait .book-object { width: min(78%, 310px); }
  .book-visual-square .book-object { width: min(94%, 380px); }
  .book h3 { font-size: clamp(2.55rem, 12vw, 3.8rem); }
  .book-meta div { grid-template-columns: 90px 1fr; gap: 14px; }
  .about-section,
  .contact-section { padding: 68px 0; }
  .about-grid { gap: 42px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 10px; }
  .legal-facts div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
