.analytics-settings { align-self: center; margin: 20px; }
.analytics-banner { position: fixed; z-index: 100; bottom: 0; left: 0; right: 0; padding: 20px max(20px, calc((100vw - 1200px) / 2)); background: #fcf9f2; border-top: 2px solid #244f41; box-shadow: 0 -4px 24px #0002; max-height: 75vh; overflow: auto; }
.analytics-banner p { font-size: 14px; margin: 8px 0 15px; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 12px; }
:root {
  --background: #fcf9f2;
  --foreground: #283c34;
  --green: #244f41;
  --muted: #69736b;
  --coral: #dc754c;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
:focus-visible {
  outline: 3px solid #b65227;
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0 0 20px;
}
h1,
h2,
h3 {
  line-height: 1.12;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(42px, 5.6vw, 76px);
}
h2 {
  font-size: clamp(32px, 3.4vw, 46px);
}
h3 {
  font-size: 23px;
  font-weight: 600;
}
em {
  color: var(--coral);
  font-weight: 400;
}
.shell {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
.announcement {
  background: var(--green);
  color: #fff8e9;
  text-align: center;
  padding: 9px 24px;
  font-size: 12px;
  letter-spacing: 0.07em;
}
.announcement span {
  margin-left: 32px;
  opacity: 0.8;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
  border-bottom: 1px solid #dce1d5;
}
.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -1.4px;
  line-height: 0.95;
}
.brand > span {
  display: block;
  color: var(--coral);
  font-size: 20px;
  letter-spacing: 1.5px;
  padding-top: 5px;
}
.brand-dot {
  font-size: 11px;
  margin-left: 3px;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.header nav a {
  text-decoration: none;
}
.cart-link {
  background: #e8edde;
  padding: 10px 18px;
  border-radius: 30px;
}
.cart-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  background: var(--green);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 35px;
  padding-block: 65px 75px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7455;
  margin-bottom: 22px;
}
.hero-copy {
  max-width: 450px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin-block: 28px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  text-decoration: none;
  background: var(--green);
  border: 1px solid var(--green);
  color: #fffdf6;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 15px 24px;
  min-height: 48px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  background: #35624f;
  transform: translateY(-1px);
}
.hero-note {
  font-family: Georgia, serif;
  color: var(--muted);
  font-style: italic;
  margin-top: 18px;
  font-size: 14px;
}
.hero-art {
  height: 420px;
  position: relative;
  background: #f1e9d5;
  border-radius: 48% 48% 42% 42%;
}
.art-orbit {
  position: absolute;
  inset: 25px -10px;
  border: 1px dashed #c0c5ac;
  border-radius: 50%;
  transform: rotate(-18deg);
}
.art-book {
  width: 220px;
  height: 300px;
  border-radius: 4px 12px 12px 4px;
  position: absolute;
  box-shadow: 10px 16px 24px #3035222b;
}
.book-back {
  top: 52px;
  left: calc(50% - 54px);
  transform: rotate(16deg);
  background: #aabda2;
  border-right: 8px solid #eee5d2;
}
.book-front {
  top: 48px;
  left: calc(50% - 148px);
  transform: rotate(-11deg);
  background: #e9ad77;
  border-left: 9px solid #d39360;
  border-right: 5px solid #e7dbc4;
  padding: 24px;
}
.book-front > span {
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1.02;
  display: block;
}
.book-front small {
  font-size: 10px;
  font-weight: bold;
}
.art-flower {
  color: #f9edbc;
  font-size: 93px;
  line-height: 1.2;
  margin-left: 48px;
}
.art-star {
  position: absolute;
  font-size: 50px;
  z-index: 2;
  color: var(--coral);
}
.star-one {
  right: 15px;
  top: 3px;
  transform: rotate(15deg);
}
.star-two {
  left: 5px;
  bottom: 18px;
  color: #75875c;
}
.art-caption {
  position: absolute;
  bottom: 17px;
  right: 50px;
  font-size: 12px;
  font-family: Georgia, serif;
  font-style: italic;
  transform: rotate(-5deg);
}
.promise-strip {
  background: #eeefdf;
}
.promises {
  display: flex;
  justify-content: space-between;
  padding-block: 19px;
  font-size: 12px;
  letter-spacing: 0.025em;
}
.catalogue {
  padding-block: 75px;
}
.section-heading {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 35px;
}
.section-heading h2 {
  max-width: 650px;
  margin-bottom: 0;
}
.search {
  font-size: 12px;
  color: var(--muted);
  width: 250px;
  flex-shrink: 0;
}
input[type="search"],
input[type="number"] {
  display: block;
  padding: 12px;
  border: 1px solid #cbd0c2;
  border-radius: 5px;
  background: #fffdf8;
  color: var(--foreground);
  width: 100%;
}
.search input {
  margin-top: 7px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.book-cover {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  height: 350px;
  padding: 38px;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
}
.tone-0 {
  background: #e9ebdd;
}
.tone-1 {
  background: #f1e3d4;
}
.tone-2 {
  background: #e5eaf0;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(6px 12px 9px #25372422);
}
.cover-placeholder {
  min-height: 240px;
  max-width: 190px;
  width: 100%;
  background: #ebb77c;
  padding: 18px;
  box-shadow: 5px 10px 14px #24372422;
  transform: rotate(-5deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 6px solid #d99e5e;
}
.cover-placeholder span {
  font-size: 10px;
}
.cover-placeholder strong {
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.cover-placeholder i {
  font-style: normal;
  font-size: 60px;
  line-height: 1;
  color: #fef4d7;
}
.age-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  border-radius: 20px;
  background: #fffdf3;
  padding: 5px 12px;
  font-size: 11px;
}
.book-card-copy {
  padding-top: 22px;
}
.book-author {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.book-card h3 a {
  text-decoration: none;
}
.book-card h3 {
  margin-bottom: 12px;
}
.book-description {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 67px;
}
.book-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.small {
  font-size: 11px;
  padding: 10px 12px;
  min-height: 44px;
}
.price-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 30px;
}
.empty-state {
  padding: 50px;
  background: #f1efe3;
  border: 1px dashed #c5cbb7;
  border-radius: 10px;
  text-align: center;
}
.empty-state > span {
  font-size: 50px;
  color: var(--coral);
  display: block;
  margin-bottom: 15px;
}
.cart-section {
  background: #f0eddf;
  padding-block: 65px;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
}
.cart-layout > div > p:not(.eyebrow) {
  color: var(--muted);
}
.delivery-note {
  font-size: 14px;
  white-space: pre-line;
}
.cart-panel {
  background: #fffdf7;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 5px 25px #273b3210;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 17px;
  border-bottom: 1px solid #e6e5d8;
  gap: 20px;
}
.cart-item small {
  display: block;
  color: var(--muted);
}
.text-button {
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: 0;
  text-decoration: underline;
  padding: 5px 0;
  min-height: 30px;
}
.quantity {
  font-size: 11px;
  flex: 0 0 64px;
}
.quantity input {
  margin-top: 4px;
  padding: 8px;
}
.cart-totals {
  margin-top: 25px;
}
.cart-totals p {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
}
.cart-totals .grand-total {
  font-size: 20px;
  border-top: 1px solid #d8dccb;
  padding-top: 15px;
}
.shipping-hint {
  background: #edf1e4;
  padding: 10px;
  font-size: 12px;
  border-radius: 4px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block: 22px;
  font-size: 12px;
}
.consent input {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--green);
}
.checkout-button {
  width: 100%;
}
.secure-note {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.notice,
.status-message,
.error-message {
  font-size: 13px;
  margin-top: 16px;
}
.error-message {
  color: #a63728;
}
.notice {
  padding: 15px;
  background: #faf0cf;
  border-radius: 5px;
}
.status-message:empty {
  display: none;
}
.about {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 60px;
  align-items: center;
  padding-block: 95px;
}
.about-symbol {
  text-align: center;
  font-size: 230px;
  line-height: 1;
  color: #e9a977;
  transform: rotate(10deg);
}
.about p:last-child {
  color: var(--muted);
  max-width: 520px;
}
.footer {
  border-top: 1px solid #dce1d5;
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding-block: 35px 50px;
  font-size: 12px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}
.footer nav a {
  text-decoration: none;
}
.document-page,
.notice-page {
  padding-block: 65px;
  max-width: 1000px;
  min-height: 70vh;
}
.document-page > h1,
.notice-page > h1 {
  margin-top: 40px;
  font-size: clamp(34px, 5vw, 58px);
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  margin-block: 25px;
}
.book-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 55px;
  margin-top: 45px;
}
.book-detail .book-cover {
  height: 500px;
}
.book-detail h1 {
  font-size: 44px;
}
.receipt {
  background: white;
  padding: 30px;
  border: 1px solid #ddd;
  margin-block: 30px;
  border-radius: 10px;
}
.receipt > p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.receipt .order-number {
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 20px;
  }
  .hero-art {
    transform: scale(0.88);
  }
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cart-layout {
    gap: 30px;
  }
  .section-heading {
    align-items: start;
  }
}
@media (max-width: 650px) {
  .art-orbit {
    inset: 55px 35px;
    transform: rotate(-10deg);
  }
  .shell {
    width: calc(100% - 36px);
  }
  .announcement span {
    display: none;
  }
  .header {
    padding-block: 20px;
  }
  .header nav {
    gap: 14px;
    font-size: 12px;
  }
  .header nav > a:nth-child(2) {
    display: none;
  }
  .cart-link {
    padding: 8px 10px;
  }
  .brand {
    font-size: 24px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
    padding-bottom: 35px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero-art {
    height: 380px;
    margin-top: 8px;
    transform: scale(0.95);
  }
  .hero-copy {
    font-size: 16px;
  }
  .promises {
    gap: 20px;
    overflow: auto;
    white-space: nowrap;
    font-size: 11px;
  }
  .catalogue {
    padding-block: 45px;
  }
  .section-heading {
    display: block;
  }
  .search {
    display: block;
    width: 100%;
    margin-top: 25px;
  }
  .book-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .book-cover {
    height: 360px;
  }
  .book-description {
    min-height: 0;
  }
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .cart-panel {
    padding: 22px;
  }
  .cart-section {
    padding-block: 45px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 55px;
  }
  .about-symbol {
    font-size: 120px;
  }
  .footer {
    flex-wrap: wrap;
  }
  .footer nav {
    justify-content: flex-start;
  }
  .book-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .book-detail .book-cover {
    height: 380px;
  }
  .receipt {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  .confirmation > a,
  .confirmation button,
  .confirmation > p:last-child {
    display: none;
  }
  .shell {
    width: 100%;
  }
  .receipt {
    border: 0;
    padding: 0;
  }
}
