:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --ink: #1b2b26;
  --muted: #525c50;
  --green: #2b493e;
  --deep-green: #1f382f;
  --soft-line: #d7d1c1;
  --field-line: #8d9586;
  --white: #fffdf7;
  --silt: #f0eadc;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
input, textarea, button { font: inherit; }

:focus-visible {
  outline: 3px solid #9a4f30;
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 96px, 1184px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6em 1em;
  transform: translateY(-180%);
  background: var(--white);
}
.skip-link:focus { transform: none; }

.top { border-bottom: 1px solid var(--soft-line); }
.top-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 73px;
  gap: 20px;
}

.author-link, .site-nav a, .back-to-top { text-decoration: none; }
.author-link { font: 1.24rem/1.2 var(--serif); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3.5vw, 44px); }
.site-nav a, .back-to-top { font-size: 0.91rem; }
.site-nav .nav-order { font-weight: 650; }
.author-link:hover, .site-nav a:hover, .back-to-top:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(30px, 6vw, 95px);
  min-height: 625px;
  padding-block: clamp(36px, 6vw, 76px);
}

.genre {
  margin-bottom: 1.25rem;
  color: #854b32;
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.055em;
}

.hero h1 {
  font: 400 clamp(4.05rem, 8.3vw, 7.8rem)/0.88 var(--serif);
  letter-spacing: -0.07em;
}

.book-intro {
  max-width: 29rem;
  margin-top: 1.65rem;
  color: var(--muted);
  font-size: clamp(1.075rem, 1.45vw, 1.28rem);
  line-height: 1.5;
}

.hero-actions, .order-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 25px;
  margin-top: 1.85rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 0.75rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  background: var(--green);
  color: #fffdf6;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
}

.button:hover { background: var(--deep-green); }
.button:disabled { opacity: 0.66; cursor: default; }
.button span { font-size: 1.15em; line-height: 1; }

.hero-price { line-height: 1.25; }
.hero-price strong { display: block; font-size: 1.2rem; }
.hero-price span, .order-price span { color: var(--muted); font-size: 0.87rem; }

.cover-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 515px;
  place-items: center;
  padding: clamp(35px, 5vw, 65px);
  background:
    radial-gradient(ellipse at 68% 0%, #b1aa8e 0%, transparent 62%),
    linear-gradient(152deg, #7a8a77 9%, #556c63 63%, #3a544d 100%);
  overflow: hidden;
}

.cover-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 62% -35% -37% -26%;
  border-top: 1px solid #eaeee638;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at 63% 152%, #e1e8d53a 0 1px, transparent 2px 20px);
  transform: rotate(-17deg);
  opacity: 0.42;
}

.book-cover {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 763 / 1033;
  box-shadow: 11px 20px 34px #14272073, 2px 4px 8px #13221d80;
  background-color: #203d37;
}

.cover-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  background: #203d37;
}
.cover-image[hidden] { display: none; }

.cover-fallback {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 11% 9% 17%;
  border-left: 5px solid #172e29;
  color: #f6efdb;
  background: radial-gradient(ellipse at 80% 6%, #8a9a82, transparent 57%), linear-gradient(151deg, #547b6d, #183831 72%);
}
.cover-fallback span:first-child { font-size: clamp(0.65rem, 1.25vw, 1rem); }
.cover-fallback span:last-child { font: 400 clamp(1.95rem, 4vw, 3.6rem)/0.94 var(--serif); letter-spacing: -0.07em; }

.delivery {
  border-block: 1px solid var(--soft-line);
  background: var(--silt);
}
.delivery-inner { padding-block: clamp(43px, 6vw, 74px); }
.delivery h2, .order h2 {
  font: 400 clamp(2.35rem, 5.2vw, 4.65rem)/0.99 var(--serif);
  letter-spacing: -0.058em;
}

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(23px, 4vw, 52px);
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
}
.delivery-steps li { border-top: 1px solid #aeb2a0; padding-top: 1rem; }
.delivery-steps h3 { margin-bottom: 0.25rem; font-size: 1.02rem; font-weight: 680; }
.delivery-steps p, .order-intro p { color: var(--muted); }

.order {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(36px, 8vw, 108px);
  padding-block: clamp(52px, 8vw, 104px);
}

.order-intro p { max-width: 22rem; margin-top: 1em; }
.order-price { align-items: baseline; gap: 9px; }
.order-price strong { font: 400 clamp(1.9rem, 3.3vw, 2.85rem)/1 var(--serif); letter-spacing: -0.06em; }
.order-panel {
  padding: clamp(20px, 3.4vw, 42px);
  border: 1px solid var(--soft-line);
  background: var(--white);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: grid; align-content: start; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field > span:first-child { font-size: 0.95rem; font-weight: 650; }
.field small { color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.field > span:first-child small { margin-inline-start: 4px; }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.61rem 0.68rem;
  border: 1px solid var(--field-line);
  border-radius: 0.15rem;
  color: var(--ink);
  background: #fffefa;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #73796e; }
.amount-input { position: relative; }
.amount-input input { padding-right: 2.85rem; }
.amount-input > span { position: absolute; top: 0.58rem; right: 0.65rem; color: var(--muted); }

.form-actions { margin-top: 1.45rem; }
.form-status { line-height: 1.45; }
.form-status:empty { display: none; }
.form-status:not(:empty) { margin-top: 1rem; }
.form-status.error { color: #802c22; }
.form-status.success { color: var(--deep-green); }
.form-status.success h3 { margin-bottom: 0.5rem; font: 400 2rem/1.1 var(--serif); }
.form-status.success p { margin-bottom: 0.4rem; }

.footer { border-top: 1px solid var(--soft-line); }
.footer-inner { min-height: 86px; }
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #0c0e0d;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.055em;
  text-decoration: none;
}
.brand-tile { display: grid; width: 32px; height: 32px; padding: 5px; place-items: center; border-radius: 8px; background: #0c0e0d; }
.brand-domain { margin-left: 1px; color: #5b6157; font-weight: 540; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 56px, 1184px); }
  .hero { min-height: 0; }
  .cover-stage { min-height: 0; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .top-inner { min-height: 60px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 39px; }
  .hero h1 { font-size: clamp(3.65rem, 13vw, 6.1rem); }
  .hero-actions { margin-top: 1.45rem; }
  .cover-stage { padding: clamp(37px, 9.5vw, 60px); }
  .book-cover { width: min(100%, 242px); }
  .cover-fallback span:last-child { font-size: clamp(2.5rem, 8vw, 3rem); }
  .delivery-steps, .order { grid-template-columns: 1fr; }
  .delivery-steps { gap: 18px; }
  .order { gap: 26px; }
}

@media (max-width: 470px) {
  .site-nav a:first-child { display: none; }
  .author-link { font-size: 1.04rem; }
  .site-nav a { font-size: 0.86rem; }
  .form-grid { grid-template-columns: 1fr; }
}

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