:root {
  color-scheme: light;
  --paper: #f7f6ed;
  --white: #fffefa;
  --ink: #143632;
  --muted: #45605a;
  --strong: #175c4f;
  --soft: #dcebe1;
  --rule: #cbd9ce;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(1200px, calc(100% - 3.5rem)); margin-inline: auto; }
a { color: var(--strong); text-underline-offset: .21em; }
:focus-visible { outline: 3px solid #19705e; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: normal; letter-spacing: -.042em; }
h1 { font-size: clamp(2.85rem, 6vw, 5.7rem); line-height: .99; }
h2 { font-size: clamp(2.05rem, 4vw, 3.6rem); line-height: 1.04; }
p { line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner, .languages, .site-footer, .site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.35rem;
}
.header-inner { justify-content: space-between; min-height: 4.65rem; padding-block: .9rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  font-weight: 750;
  letter-spacing: -.03em;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img { border-radius: .55rem; }
.languages { gap: .45rem .95rem; }
.languages a { color: var(--muted); font-size: .86rem; text-decoration: none; padding-block: .22rem; }
.languages [aria-current] { color: var(--ink); text-decoration: underline; font-weight: 650; }
.languages a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 6rem);
}
.hero h1 { max-width: 12ch; }
.hero p {
  max-width: 44ch;
  margin-block: 1.35rem 1.55rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.27rem);
}
.hero-compact { grid-template-columns: 1fr; }
.hero-compact h1 { max-width: 18ch; }
.spreadshop-frame { display: block; width: 100%; height: 85vh; min-height: 34rem; border: 0; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: .8rem 1.22rem;
  border: 0;
  border-radius: .5rem;
  color: #fffefa;
  background: var(--strong);
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.button:hover { background: var(--ink); }
.button:disabled { opacity: .68; cursor: wait; }
.custom-orders {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.5rem;
  margin-block-start: 1.25rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: var(--soft);
}
.custom-orders > div { flex: 1 1 24rem; }
.custom-orders-title { margin-bottom: .2rem; font-weight: 750; }
.spotlight {
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 1.15rem;
  background: #d4e4d8;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}
.spotlight img { width: auto; max-height: 330px; border-radius: .52rem; box-shadow: 0 14px 28px #173e4221; }
.spotlight > span { width: 100%; display: flex; justify-content: space-between; gap: .75rem; font-weight: 650; }
.spotlight:hover > span { text-decoration: underline; }

.catalog-section { border-top: 1px solid var(--rule); padding: 2rem 0 4rem; scroll-margin-top: 1rem; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.catalog-controls { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.catalog-controls label { display: grid; gap: .26rem; font-size: .82rem; font-weight: 650; }
.catalog-controls input, .catalog-controls select {
  min-height: 2.65rem;
  max-width: 100%;
  padding: .5rem .65rem;
  border: 1px solid #aebfb2;
  border-radius: .4rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 450;
}
.catalog-controls input { width: min(14rem, 100%); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1.1rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.product-grid li { min-width: 0; }
.product-editions { display: grid; gap: .85rem; }
@media (min-width: 620px) {
  .product-editions { grid-column: span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--rule);
  border-radius: .8rem;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.product-card:hover { border-color: #569380; }
.card-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.65;
  padding: .75rem;
  overflow: hidden;
  background: #e4ede3;
}
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.card-copy { display: flex; flex: 1; flex-direction: column; gap: .42rem; padding: 1rem 1.08rem; }
.format { color: var(--strong); font-size: .8rem; font-weight: 700; }
.card-copy h3 { font-size: 1.16rem; line-height: 1.2; letter-spacing: -.02em; }
.card-copy .summary { color: var(--muted); font-size: .95rem; }
.card-link { margin-top: auto; padding-top: .55rem; color: var(--strong); font-weight: 650; font-size: .87rem; }
.product-card:hover .card-link { text-decoration: underline; }
.empty-state { color: var(--muted); margin: 1.25rem 0 .45rem; }

.product-page { padding-block: 1.4rem 4rem; }
.text-link { font-weight: 650; }
.back { display: inline-block; margin-bottom: 1.45rem; font-size: .92rem; }
.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.65rem, 4.5vw, 4rem);
  margin-bottom: 2.4rem;
}
.primary-preview {
  display: grid;
  place-items: center;
  padding: clamp(.85rem, 2.5vw, 1.75rem);
  background: #dcebe0;
  border: 1px solid var(--rule);
  border-radius: 1rem;
}
.primary-preview img { width: auto; max-height: 570px; border-radius: .42rem; }
.product-description h1 { font-size: clamp(2.65rem, 5vw, 4.8rem); margin-block: .45rem .95rem; }
.product-summary { color: var(--muted); font-size: 1.12rem; }
.edition-links { margin-top: .8rem; color: var(--muted); }
.edition-links a { margin-inline-start: .4rem; }
.purchase { display: grid; gap: .75rem; justify-items: start; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.purchase [role=status] { color: var(--muted); font-size: .92rem; }
.price { font-size: 1.5rem; font-weight: 700; }
.purchase-details { color: var(--muted); font-size: .92rem; }
.product-section { border-top: 1px solid var(--rule); padding-top: 1.45rem; margin-top: 2rem; }
.product-video video {
  display: block;
  width: min(100%, 56rem);
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  border-radius: .65rem;
  background: var(--ink);
}
.narrator { display: flex; align-items: center; gap: .65rem; margin-top: .75rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .8rem; margin-top: 1.2rem; }
.gallery a { display: grid; place-items: center; padding: .45rem; background: var(--white); border: 1px solid var(--rule); border-radius: .6rem; }
.gallery img { max-height: 310px; width: auto; border-radius: .25rem; }
.prose :is(p, h3) { max-width: 76ch; }
.prose p { margin-top: .8rem; color: var(--muted); }
.prose h3 { margin-top: 1.35rem; }
.site-footer {
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-block: 1.25rem 1.45rem;
  color: var(--muted);
  font-size: .88rem;
}
.order { max-width: 42rem; padding-block: 4rem; }
.order p, .order form { margin-top: 1.2rem; }
.order h1 { font-size: clamp(2.7rem, 6vw, 4.5rem); }

@media (max-width: 760px) {
  .shell { width: calc(100% - 2rem); }
  .hero, .product-intro { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .hero h1 { max-width: 16ch; }
  .spotlight img { max-height: 275px; }
  .product-description { grid-row: 1; }
}
