:root {
  --night: #100e0c;
  --ink: #1c140f;
  --cream: #f6f0e4;
  --cream-2: #fffaf2;
  --gold: #e4c27a;
  --gold-2: #f3e2bc;
  --ember: #9a3f2c;
  --line: rgba(228, 194, 122, .28);
  --paper-line: #e4d5bf;
  --muted: #6f6256;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background: var(--night);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(196, 122, 58, .38), transparent 58%),
    radial-gradient(760px 560px at 110% 8%, rgba(92, 36, 28, .48), transparent 52%),
    radial-gradient(640px 480px at 50% 120%, rgba(62, 46, 28, .45), transparent 50%),
    var(--night);
  background-size: 140% 140%, 140% 140%, 120% 120%, auto;
  animation: glowShift 26s ease-in-out infinite alternate;
}
@keyframes glowShift {
  from { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  to { background-position: 18% 12%, 72% 18%, 40% 80%, 0 0; }
}
#snow {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.site-header, .main, .site-footer { position: relative; z-index: 2; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 14, 12, .72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1.1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--gold-2);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 640;
  letter-spacing: -.03em;
}
.logo-mark { width: 28px; height: 28px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.lang-switch a {
  margin-left: .2rem;
  text-decoration: none;
  color: rgba(246, 240, 228, .62);
  font-size: .75rem;
  letter-spacing: .08em;
}
.lang-switch a.active { color: var(--gold); font-weight: 640; }
.icon-btn, .menu-btn, .menu-close {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .04);
  color: var(--cream);
  border-radius: 999px;
  text-decoration: none;
}
.icon-btn { display: inline-flex; padding: .45rem; }
.count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 99px;
  background: var(--gold);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 640;
  display: grid;
  place-items: center;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .85rem .48rem .7rem;
  cursor: pointer;
  font-weight: 640;
}
.menu-bars, .menu-bars:before, .menu-bars:after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  content: "";
}
.menu-bars { position: relative; }
.menu-bars:before { position: absolute; top: -4px; }
.menu-bars:after { position: absolute; top: 4px; }
.main { max-width: 1180px; margin: 0 auto; padding: 1.4rem 1.1rem 3.4rem; }
.hero {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1.1rem;
}
.hero-copy h1 {
  margin: .15rem 0 .6rem;
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -.02em;
  line-height: 1.12;
  max-width: none;
}
.hero-copy h1 span { display: block; white-space: nowrap; }
.eyebrow, .promo-kicker, .menu-kicker, .menu-label {
  margin: 0;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold);
}
.lead { max-width: 38rem; color: rgba(246, 240, 228, .82); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .75rem 1.15rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 640;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.hero .btn-ghost { color: var(--cream); }
.hero-shelf {
  position: relative;
  height: 340px;
}
.shelf-book {
  position: absolute;
  width: 168px;
  height: 252px;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, .45);
  background: #1a140f;
}
.shelf-0 { left: 8%; top: 40px; transform: rotate(-8deg); }
.shelf-1 { left: 32%; top: 8px; transform: rotate(2deg); z-index: 2; width: 184px; height: 276px; }
.shelf-2 { left: 58%; top: 48px; transform: rotate(7deg); }
.promo-row { display: grid; gap: .7rem; margin: 1.3rem 0 1.6rem; }
.promo-card {
  display: block;
  text-decoration: none;
  background: rgba(246, 240, 228, .08);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem 1.05rem 1.1rem;
  color: var(--cream);
  backdrop-filter: blur(8px);
}
.promo-card:hover { border-color: var(--gold); }
.promo-code {
  margin: .25rem 0 .2rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -.03em;
}
.promo-card p:last-child { margin: 0; color: rgba(246, 240, 228, .78); }
.section { margin-top: 2rem; }
.section-head, .section h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.section h2, .section-head h1, .section-head h2, .paper-page h1, .pdp h1 {
  font-family: var(--serif);
  font-weight: 520;
  letter-spacing: -.03em;
}
.section h2, .section-head h1 { margin: 0 0 .8rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head a { color: var(--gold); text-decoration: none; }
.cat-grid, .product-grid { display: grid; gap: .75rem; }
.cat-grid { grid-template-columns: 1fr 1fr; }
.cat-tile, .product-card, .paper-page, .filters, .pdp, .tabs {
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
  color: var(--ink);
  border: 1px solid rgba(255, 248, 236, .18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}
.cat-tile {
  border-radius: 18px;
  padding: 1rem 1rem .9rem;
  text-decoration: none;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cat-tile span { font-family: var(--serif); font-size: 1.25rem; }
.cat-tile small, .by, .fine { color: var(--muted); }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card { border-radius: 18px; overflow: hidden; }
.product-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.cover {
  background:
    linear-gradient(#efe4d2, #efe4d2) 0 0 / 100% calc(100% - 14px) no-repeat,
    linear-gradient(#c6a36a, #8d6a3e);
  aspect-ratio: 3/4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: .8rem .7rem 1rem;
}
.cover img {
  width: auto;
  max-width: 78%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(40, 22, 8, .35));
}
.product-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin: .75rem .8rem .15rem;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.by { margin: 0 .8rem; font-size: .82rem; }
.price { margin: .35rem .8rem .9rem; font-weight: 640; color: var(--ember); }
.catalog-layout { display: grid; gap: 1rem; }
.filters { display: flex; gap: .4rem; overflow: auto; padding: .7rem; border-radius: 18px; }
.filters a {
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  padding: .42rem .75rem;
  color: var(--ink);
  border: 1px solid transparent;
}
.filters a.active, .pager a.on { background: var(--ink); color: var(--cream); }
.pager { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: 1rem; }
.pager a { text-decoration: none; background: var(--cream); color: var(--ink); border-radius: 10px; padding: .4rem .65rem; }
.paper-page { border-radius: 24px; padding: 1.3rem 1.15rem 1.5rem; }
.paper-page h1, .pdp h1 { color: var(--ink); margin-top: 0; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { border-bottom: 1px solid var(--paper-line); padding: .7rem .2rem; vertical-align: middle; }
.cart-book { display: flex; gap: .7rem; align-items: center; }
.cart-book img { width: 42px; height: 62px; object-fit: cover; border-radius: 3px; }
.promo-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin: 1rem 0 .4rem; }
.promo-form label, .checkout-form label { display: grid; gap: .3rem; font-size: .9rem; }
.promo-form input, .checkout-form input, .checkout-form textarea, .pdp input[type="number"] {
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 12px;
  padding: .65rem .7rem;
  color: var(--ink);
}
.paper-page .btn-ghost { color: var(--ink); border-color: #d9c7aa; }
.promo-error { color: var(--ember); }
.promo-ok { color: #2d5a3d; }
.totals { margin: .8rem 0; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.totals .due { font-family: var(--serif); font-size: 1.45rem; margin-top: .3rem; }
.text-btn { background: none; border: 0; color: var(--ember); cursor: pointer; padding: 0; text-decoration: underline; }
.checkout-lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.checkout-lines li, .checkout-total { display: flex; justify-content: space-between; gap: 1rem; }
.checkout-form { display: grid; gap: .75rem; max-width: 560px; }
.legal-note a, .legal-body a, .paper-page a:not(.btn) { color: var(--ember); }
.pdp { display: grid; gap: 1.1rem; border-radius: 24px; padding: 1rem; }
.pdp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.pdp-gallery img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  background: #efe4d2;
  border-radius: 10px;
}
.pdp-gallery img:first-child { grid-column: 1 / -1; height: 440px; }
.pdp-info form { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.price-lg { font-family: var(--serif); font-size: 2.2rem; margin: .2rem 0 .8rem; color: var(--ember); }
.stock { color: #2d5a3d; margin: 0; }
.tabs { margin-top: 1rem; border-radius: 18px; overflow: hidden; }
.tab-list { display: flex; flex-wrap: wrap; gap: .25rem; padding: .55rem; background: #efe4d2; }
.tab-list button { border: 0; background: transparent; border-radius: 999px; padding: .4rem .7rem; cursor: pointer; color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.tab-panel { padding: 1rem; }
.tab-panel.hidden { display: none; }
.specs-dl { display: grid; grid-template-columns: 1fr 1.3fr; gap: .35rem .7rem; }
.site-footer {
  background: #090807;
  color: #f4ecdf;
  margin-top: 1rem;
  padding: 2.2rem 1.1rem 2.6rem;
  border-top: 1px solid var(--line);
}
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.2rem; }
.footer-links { list-style: none; margin: .4rem 0 0; padding: 0; }
.footer-links a { color: var(--gold-2); }
.pay-icons { display: flex; gap: .35rem; margin-top: .45rem; }
.pay-icons img { background: #fff; border-radius: 6px; }
.site-menu {
  width: min(980px, calc(100vw - 1.4rem));
  max-height: min(88vh, 860px);
  overflow: auto;
  border: 0;
  border-radius: 28px;
  padding: 1.15rem 1.15rem 1.3rem;
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(228, 194, 122, .28), transparent 60%),
    var(--cream);
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
.site-menu::backdrop { background: rgba(8, 6, 4, .68); backdrop-filter: blur(7px); }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-close {
  color: var(--ink);
  background: transparent;
  border-color: #d9c7aa;
  padding: .4rem .8rem;
  cursor: pointer;
}
.menu-title {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.02em;
  margin: .2rem 0 1rem;
}
.menu-grid { display: grid; gap: 1.2rem; }
.menu-all {
  display: inline-flex;
  margin: .35rem 0 .7rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.45rem;
  border-bottom: 1px solid var(--ink);
}
.menu-cats { display: grid; grid-template-columns: 1fr; gap: .15rem; }
.menu-cats a, .menu-row, .menu-legal a { text-decoration: none; }
.menu-cats a {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: .55rem;
  padding: .45rem 0;
  border-bottom: 1px solid #eadcc8;
}
.menu-cats small { color: var(--muted); }
.menu-row {
  display: grid;
  padding: .55rem 0;
  border-bottom: 1px solid #eadcc8;
}
.menu-row span, .fine { color: var(--muted); font-size: .88rem; }
.legal-label { margin-top: 1rem; }
.menu-legal { display: flex; flex-wrap: wrap; gap: .45rem .8rem; }
.menu-langs { display: flex; gap: .85rem; margin-top: 1.1rem; }
.menu-langs a { text-decoration: none; letter-spacing: .08em; font-size: .8rem; color: var(--muted); }
.menu-langs a.active { color: var(--ink); font-weight: 640; }
.site-menu[open] .menu-title, .site-menu[open] .menu-grid {
  animation: rise .45s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .lang-switch { display: none; }
  .hero { overflow: hidden; }
  .hero-shelf { height: 220px; }
  .shelf-book { width: 92px; height: 138px; }
  .shelf-0 { left: 0; top: 34px; }
  .shelf-1 { left: 22%; top: 0; width: 104px; height: 156px; }
  .shelf-2 { left: 44%; top: 38px; }
  .logo { font-size: 1.4rem; }
  .header-inner { padding-inline: .8rem; }
}
@media (min-width: 800px) {
  .hero { grid-template-columns: 1.15fr .85fr; }
  .promo-row { grid-template-columns: 1.2fr 1.2fr .8fr; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 230px 1fr; align-items: start; }
  .filters { display: grid; position: sticky; top: 84px; overflow: visible; }
  .pdp { grid-template-columns: .9fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.6fr .8fr .8fr; }
  .menu-grid { grid-template-columns: 1.2fr .8fr; }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .atmosphere { animation: none; }
  .site-menu[open] .menu-title, .site-menu[open] .menu-grid { animation: none; }
}

.prose { white-space: pre-line; }
h1, h2, h3, .cat-tile span, .menu-all { overflow-wrap: break-word; }
.pay-link { display: inline-block; margin: .8rem 0; text-decoration: none; }
.field-row { display: grid; gap: .7rem; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.checkout-layout { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .checkout-layout { grid-template-columns: 1.3fr .8fr; align-items: start; } }
.summary { background: #efe4d2; border-radius: 16px; padding: 1rem; }
.summary h2 { margin-top: 0; font-size: 1.4rem; }
.form-errors { margin: 0 0 1rem; padding: .7rem 1rem .7rem 1.4rem; background: #f8e6df; border-radius: 12px; color: var(--ember); }
.pay-choices { border: 1px solid var(--paper-line); border-radius: 16px; padding: .7rem .8rem .3rem; margin: 0; }
.pay-choices legend { padding: 0 .3rem; font-weight: 600; }
.pay-choice { display: grid; grid-template-columns: auto auto 1fr; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--paper-line); cursor: pointer; }
.pay-choice:last-child { border-bottom: 0; }
.pay-choice small, .address-block { color: var(--muted); white-space: pre-line; }
.pay-choice img { background: #fff; border-radius: 6px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; }
.qty { display: inline-flex; align-items: center; gap: .25rem; }
.qty button { width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid var(--paper-line); background: #fff; cursor: pointer; }
.qty button:disabled { opacity: .4; cursor: default; }
.cart-book { display: flex; gap: .75rem; align-items: center; }
.cart-book a { text-decoration: none; }
.cart-book small { display: block; color: var(--muted); }
.checkout-form input[readonly] { background: #f3ecdf; }
@media (max-width: 720px) {
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table td { border: 0; padding: .25rem 0; }
  .cart-table tr { border-bottom: 1px solid var(--paper-line); padding: .55rem 0; }
}

.home-search { display: flex; gap: .5rem; align-items: center; margin: 1rem 0 0; max-width: 36rem; }
.home-search label { flex: 1; }
.home-search input[type="search"] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .08);
  color: var(--cream);
  padding: .8rem 1rem;
}
.home-search input::placeholder { color: rgba(246, 240, 228, .55); }
.shop-search { margin: 0 0 1rem; }
.shop-search input[type="search"] { background: #fff; color: var(--ink); border-color: var(--paper-line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.card-fields { display: grid; gap: .7rem; margin: .2rem 0 .4rem; }
.card-fields[hidden] { display: none; }
