:root {
  --ink: #222225;
  --muted: #74747c;
  --paper: #fafaf8;
  --line: #e0e0dd;
  --night: #151517;
  --yellow: #f4d52c;
  --soft: #f0f0ec;
  --radius: 8px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.6 Arial,
    Helvetica,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  min-width: 0;
}
h1,
h2,
h3,
h4,
h5 {
  letter-spacing: -0.045em;
  font-weight: 500;
  line-height: 1.15;
}
h1 {
  font-size: clamp(34px, 4vw, 50px);
}
h2 {
  font-size: 30px;
}
p {
  line-height: 1.8;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #ad9400;
  outline-offset: 4px;
}
[ng-cloak],
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.alma-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.alma-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--yellow);
}
.skip-link:focus {
  top: 12px;
}
.alma-wrap {
  width: min(1460px, 100%);
  margin: auto;
  padding-inline: 4%;
}
.eyebrow {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.alma-button,
.btn {
  border-radius: 5px;
  min-height: 43px;
  padding: 11px 19px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid transparent;
  transition:
    background 0.18s,
    border-color 0.18s;
  box-shadow: none !important;
}
.alma-button svg {
  width: 18px;
  height: 18px;
}
.alma-button--yellow,
.btn-primary,
.btn-success {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #1b1b1c;
}
.alma-button--yellow:hover,
.btn-primary:hover,
.btn-success:hover {
  background: #ffe667;
  border-color: #ffe667;
  color: #111;
}
.alma-button--dark,
.btn-dark {
  background: #222225;
  border-color: #222225;
  color: white;
}
.alma-button--dark:hover,
.btn-dark:hover {
  background: #414145;
  border-color: #414145;
  color: white;
}
.alma-button--outline,
.btn-outline-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
  background: transparent;
  border-color: #d2d2d1;
  color: var(--ink);
}
.alma-button--outline:hover,
.btn-outline-dark:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  background: #eeeee9;
  border-color: #777;
  color: var(--ink);
}
.btn-outline-danger:hover {
  background: #fff0ee;
  color: #8b3029;
  border-color: #bd746a;
}
.alma-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  padding: 0;
}
.alma-round:hover {
  background: #00000009;
}
.text-link {
  border: 0;
  background: none;
  padding: 5px 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--muted);
}
.alma-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--night);
  color: white;
  border-bottom: 1px solid #ffffff1c;
}
.alma-header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.alma-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.alma-brand img {
  width: 173px;
  height: auto;
  display: block;
}
.alma-brand span {
  font-size: 9px;
  letter-spacing: 0.17em;
  padding-left: 22px;
  border-left: 1px solid #ffffff35;
  color: #c6c6ca;
}
.alma-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 30px;
  margin-left: auto;
}
.alma-nav a {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 12px;
  color: #bdbdc3;
}
.alma-nav a:hover,
.alma-nav a[aria-current="page"] {
  color: white;
}
.alma-nav a[aria-current="page"]:after {
  content: "";
  position: absolute;
  bottom: 17px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
}
.alma-header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.alma-header .alma-round {
  border-color: #ffffff38;
}
.alma-header .alma-round:hover {
  background: #ffffff12;
}
.alma-bag {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 12px;
}
.cart-badge {
  font-size: 10px;
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff40;
  border-radius: 50%;
}
.cart-badge.has-items {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #151517;
}
.alma-mobile-toggle {
  display: none;
}
.alma-mobile-nav {
  padding: 15px 4% 22px;
  border-top: 1px solid #ffffff15;
}
.alma-mobile-nav a {
  display: block;
  padding: 9px 0;
  color: #d6d6db;
}
.alma-footer {
  border-top: 1px solid var(--line);
  padding-block: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
}
.alma-footer-brand {
  font-size: 14px;
  letter-spacing: -0.04em;
  color: #3b3b3f;
}
.alma-footer-brand b {
  color: #baa019;
}
.alma-footer-links {
  display: flex;
  gap: 20px;
}
.alma-page {
  width: min(1360px, 100%);
  margin: auto;
  padding: 52px 4% 70px;
  min-height: calc(100dvh - 156px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 38px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}
.page-heading h1 {
  margin: 0;
}
.page-heading .eyebrow {
  margin-bottom: 16px;
}
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: none !important;
}
.panel {
  padding: 28px;
}
.card-body {
  padding: 25px;
}
.card-title {
  font-size: 20px;
  margin-bottom: 20px;
}
.form-control,
.form-select,
select.form-control {
  border: 1px solid #d9d9d7;
  border-radius: 5px;
  min-height: 45px;
  background: white;
  font-size: 13px;
  color: var(--ink);
  padding: 11px 13px;
}
.form-control:focus,
.form-select:focus {
  border-color: #8d803d;
  box-shadow: 0 0 0 3px #c4b65a15;
}
.form-label,
label {
  font-size: 12px;
}
.form-check-input:checked {
  background-color: #242427;
  border-color: #242427;
}
textarea.form-control {
  resize: vertical;
}
.alert {
  border-radius: 7px;
  font-size: 13px;
}
.alert-info {
  background: #f0f2f0;
  border-color: #d7ddd7;
  color: #31463e;
}
.alert-success {
  background: #f2f4e9;
  border-color: #dbe1c5;
  color: #465321;
}
.alert-danger {
  background: #fff1ef;
  border-color: #f0ccc7;
  color: #8a352b;
}
.text-muted {
  color: var(--muted) !important;
}
.badge {
  font-weight: 500;
  font-size: 10px;
  border-radius: 30px;
  padding: 7px 12px;
}
.bg-secondary {
  background: #f8f3df !important;
  color: #74611d;
}
.bg-success {
  background: #edf3e6 !important;
  color: #426124;
}
.bg-danger {
  background: #fff0ed !important;
  color: #963d31;
}
.empty-state {
  text-align: center;
  padding: 70px 20px;
}
.empty-state svg {
  width: 38px;
  height: 38px;
  color: #999;
  margin-bottom: 24px;
}
.empty-state h2,
.empty-state h3 {
  font-size: 25px;
}
.empty-state p {
  color: var(--muted);
  margin: 14px 0 27px;
}
.loading-state {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
.spinner-border {
  width: 24px;
  height: 24px;
  border-width: 2px;
}
.alma-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  border: 1px solid #454549;
  background: #232326;
  color: white;
  box-shadow: 0 8px 30px #0002;
  padding: 13px 22px;
  border-radius: 6px;
  width: max-content;
  max-width: calc(100% - 30px);
  font-size: 12px;
}
.alma-toast.is-error {
  background: #8b342c;
}
/* Each outer book is an independent, opaque 2D stacking context. Depth stays inside that book. */
.alma-hero {
  background: #19191c;
  color: white;
  overflow: clip;
}
.alma-hero-inner {
  display: grid;
  grid-template-columns: 44% 56%;
  position: relative;
}
.hero-copy {
  padding: 44px 0 35px;
  z-index: 2;
  position: relative;
}
.hero-copy .eyebrow {
  color: #c5c5c9;
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-copy .eyebrow:before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--yellow);
}
.hero-copy h1 {
  font-size: clamp(36px, 3.6vw, 54px);
  letter-spacing: -0.055em;
  line-height: 1.11;
  margin: 23px 0 20px;
}
.hero-copy em {
  font:
    italic 1.03em Georgia,
    serif;
  letter-spacing: -0.045em;
  color: var(--yellow);
}
.hero-description {
  font-size: 13px;
  color: #b9b9c0;
  line-height: 1.85;
  margin-bottom: 25px;
}
.hero-stage {
  position: relative;
  min-width: 0;
  min-height: 350px;
  isolation: isolate;
}
.stage-label {
  position: absolute;
  top: 24px;
  right: 0;
  color: #c2c2ca;
  font-size: 8px;
  letter-spacing: 0.17em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stage-label:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--yellow);
}
.stage-glow {
  position: absolute;
  inset: 0 -5%;
  background: radial-gradient(ellipse at 55% 60%, #a793372d, transparent 65%);
  pointer-events: none;
}
.page-lines {
  position: absolute;
  left: -10%;
  right: -7%;
  bottom: 14px;
  height: 100px;
  transform: rotate(-7deg);
  pointer-events: none;
  opacity: 0.16;
}
.page-lines i {
  position: absolute;
  inset: 0;
  border: 1px solid #efdb74;
  border-radius: 50%;
}
.page-lines i:nth-child(2) {
  inset: 10px -25px -10px;
}
.page-lines i:nth-child(3) {
  inset: 20px -50px -20px;
}
.hero-books {
  position: absolute;
  inset: 45px 8px 15px;
  transform-style: flat;
  isolation: isolate;
}
.hero-book {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(115px, 12.2vw, 180px);
  aspect-ratio: 2/3;
  padding: 0;
  background: #242426;
  border: 0;
  border-radius: 2px;
  opacity: 1 !important;
  transform-style: flat;
  transition: transform 0.65s cubic-bezier(0.22, 0.7, 0.15, 1);
  isolation: isolate;
}
.hero-slot-0 {
  z-index: 5;
  transform: translate(-50%, -50%) translateX(0) translateY(-8px) scale(1.04);
}
.hero-slot-minus-1 {
  z-index: 4;
  transform: translate(-50%, -50%) translateX(-73%) translateY(13px)
    rotate(-6deg) scale(0.88);
}
.hero-slot-1 {
  z-index: 3;
  transform: translate(-50%, -50%) translateX(73%) translateY(14px) rotate(5deg)
    scale(0.88);
}
.hero-slot-minus-2 {
  z-index: 2;
  transform: translate(-50%, -50%) translateX(-128%) translateY(27px)
    rotate(-11deg) scale(0.75);
}
.hero-slot-2 {
  z-index: 1;
  transform: translate(-50%, -50%) translateX(128%) translateY(28px)
    rotate(10deg) scale(0.75);
}
.hero-book-inner {
  display: block;
  height: 100%;
  width: 100%;
  position: relative;
  perspective: 1200px;
  isolation: isolate;
}
.hero-book-face {
  display: block;
  height: 100%;
  width: 100%;
  transform: rotateY(-10deg);
  transform-style: flat;
  box-shadow: -7px 16px 22px #0005;
  background: #262626;
  position: relative;
}
.hero-book-face img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  backface-visibility: hidden;
  opacity: 1;
  mix-blend-mode: normal;
  background: #292929;
  border-radius: 1px 3px 3px 1px;
}
.hero-book-face:after {
  content: "";
  position: absolute;
  right: -4px;
  top: 1px;
  bottom: 1px;
  width: 4px;
  background: repeating-linear-gradient(90deg, #dedbd0 0 1px, #fffaf0 1px 2px);
  z-index: -1;
}
.hero-book:hover .hero-book-face {
  filter: brightness(1.06);
}
.hero-bottom {
  grid-column: 1/-1;
  border-top: 1px solid #ffffff17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}
.hero-caption {
  display: flex;
  gap: 21px;
  align-items: center;
  min-width: 0;
  font-size: 12px;
}
.hero-caption > span {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #a0a0aa;
  white-space: nowrap;
}
.hero-caption a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.hero-caption b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 290px;
}
.hero-caption small {
  font-size: 10px;
  color: #aaaab3;
}
.hero-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-controls > span {
  font-size: 9px;
  color: #b6b6c0;
  margin-right: 15px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.hero-controls .alma-round {
  width: 30px;
  height: 30px;
  border-color: #ffffff38;
  font-size: 12px;
}
.hero-controls .alma-round:hover {
  background: #ffffff12;
}
.catalogue {
  padding-block: 38px 58px;
  min-height: 500px;
}
.catalogue-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.catalogue-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 9px;
}
.catalogue-heading h2 {
  margin: 0;
  font-size: 29px;
}
.catalogue-total {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.catalogue-tools {
  display: flex;
  gap: 14px;
  margin-bottom: 17px;
}
.catalogue-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 46px;
  background: white;
  border: 1px solid #dedee0;
  border-radius: 6px;
  padding: 0 15px;
}
.catalogue-search .alma-icon {
  width: 18px;
  color: #939397;
}
.catalogue-search input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  height: 44px;
  font-size: 12px;
  min-width: 0;
}
.catalogue-search:focus-within {
  border-color: #8d803d;
  outline: 2px solid #c4b65a20;
}
.catalogue-search input:focus-visible {
  outline: 0;
}
.catalogue-sort {
  width: 172px;
  min-height: 46px;
  border: 1px solid #dedee0;
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  font-size: 11px;
  color: #55555d;
}
.catalogue-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-pill {
  border: 1px solid #dcdcde;
  border-radius: 30px;
  font-size: 10px;
  padding: 7px 14px;
  color: #66666d;
  background: transparent;
}
.filter-pill[aria-pressed="true"] {
  background: #242427;
  border-color: #242427;
  color: white;
}
.alma-book-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 15px;
}
.alma-book-card {
  border: 1px solid #e2e2df;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    border 0.2s,
    box-shadow 0.2s;
}
.alma-book-card:hover {
  border-color: #bcbcb8;
  box-shadow: 0 5px 16px #00000006;
}
.alma-cover-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 230px;
  padding: 20px 16px 14px;
  isolation: isolate;
  background: #f1f1ed;
}
.alma-cover-link img {
  display: block;
  height: 196px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  box-shadow: 3px 5px 9px #0002;
  transition: transform 0.3s;
}
.alma-cover-link:hover img {
  transform: translateY(-4px) rotate(-2deg);
}
.new-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 6px;
  background: var(--yellow);
  border-radius: 3px;
  color: #2b2817;
}
.alma-book-copy {
  padding: 14px 12px 12px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}
.alma-book-copy .eyebrow {
  font-size: 7px;
  margin: 0;
  color: #73737b;
}
.alma-book-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0;
  min-height: 36px;
}
.alma-book-author {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 0 0 8px;
}
.request-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 35px;
  border: 1px solid #d5d5d6;
  border-radius: 5px;
  font-size: 10px;
  padding: 7px;
  background: white;
  margin-top: auto;
}
.request-book:hover {
  background: #252528;
  color: white;
  border-color: #252528;
}
.request-book.added {
  background: #f7f1cf;
  border-color: #dfd181;
  color: #66571a;
}
.request-book svg {
  width: 13px;
  height: 13px;
}
/* Book detail and opening reader. */
.book-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 36px;
}
.product-layout {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 0;
  align-items: start;
}
.product-art {
  position: relative;
  background: #efefeb;
  border: 1px solid #e6e6e0;
  border-radius: 10px;
  min-height: 570px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 35px;
  overflow: hidden;
}
.product-art:before {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  top: 40px;
  background: radial-gradient(circle, #f9f5d7aa, transparent 65%);
  pointer-events: none;
}
.product-book-button {
  position: relative;
  display: block;
  width: 230px;
  height: 345px;
  perspective: 1400px;
  border: 0;
  background: transparent;
  padding: 0;
  isolation: isolate;
  opacity: 1 !important;
}
.product-book-button:disabled {
  opacity: 1;
}
.product-book {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateY(-22deg) rotateZ(-3deg);
  transform-style: preserve-3d;
  transition: transform 0.5s;
  box-shadow: 14px 21px 28px #0003;
  background: #e8e3d8;
}
.product-book-button:not(:disabled):hover .product-book {
  transform: rotateY(-10deg) rotateZ(-1deg) translateY(-5px);
}
.product-book img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  backface-visibility: hidden;
  transform: translateZ(14px);
  border-radius: 1px 3px 3px 1px;
  background: #dedbd1;
}
.product-book:after {
  content: "";
  position: absolute;
  right: -13px;
  top: 2px;
  bottom: 2px;
  width: 14px;
  background: repeating-linear-gradient(90deg, #d8d4c8 0 1px, #f8f5ec 1px 3px);
  transform: rotateY(80deg);
  transform-origin: left;
}
.product-book:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 9px;
  transform: translateZ(15px);
  background: linear-gradient(90deg, #0005, transparent);
  z-index: 2;
  pointer-events: none;
}
.product-art-note {
  position: relative;
  font-size: 11px;
  color: #7b7b80;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-art-note .alma-icon {
  width: 16px;
  height: 16px;
}
.product-copy {
  padding: 16px 0 20px 10%;
}
.product-copy h1 {
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.07;
  margin: 17px 0;
}
.product-author {
  font-size: 15px;
  color: #696970;
  margin: 0 0 25px;
}
.product-meta {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.product-meta span {
  margin-right: 20px;
}
.product-synopsis {
  margin: 25px 0;
  color: #66666d;
  font-size: 13px;
  white-space: pre-line;
  line-height: 1.95;
}
.product-synopsis.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}
.product-actions .alma-button {
  min-width: 180px;
}
.product-read-note {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0 0;
}
.product-extra {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 35px;
  color: var(--muted);
  font-size: 12px;
}
.product-extra a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.alma-dialog {
  border: 1px solid #dededb;
  border-radius: 12px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  max-width: calc(100vw - 28px);
  max-height: 92dvh;
  box-shadow: 0 25px 100px #0003;
}
.alma-dialog::backdrop {
  background: #0a0a0c99;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 {
  font-size: 26px;
  margin: 0;
}
.dialog-copy {
  padding: 26px 28px;
}
.dialog-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
}
.address-dialog {
  width: 740px;
}
.alma-dialog[open] {
  animation: dialog-in 0.25s ease-out;
}
.reader-dialog {
  width: 1180px;
  background: #202023;
  color: white;
  border-color: #ffffff25;
  overflow: auto;
  max-height: 96dvh;
}
.reader-heading {
  border-color: #ffffff20;
  padding: 18px 24px;
}
.reader-heading h2 {
  font-size: 20px;
  color: white;
  letter-spacing: -0.02em;
}
.reader-heading .eyebrow {
  color: #babac1;
  margin: 0 0 6px;
  font-size: 8px;
}
.reader-heading .alma-round {
  border-color: #ffffff40;
}
.reader-stage {
  perspective: 1800px;
  padding: 28px 50px 20px;
  min-height: 330px;
  position: relative;
}
.reader-book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 930px);
  margin: auto;
  background: #fffdf6;
  border-radius: 3px;
  box-shadow:
    0 4px #d8d4c8,
    0 8px #c2bdae,
    0 22px 55px #0007;
  transform: rotateX(2deg);
  transform-style: preserve-3d;
  min-height: 460px;
  color: #28282b;
}
.reader-book:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 28px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #00000014, transparent);
  pointer-events: none;
  z-index: 2;
}
.reader-page {
  position: relative;
  min-width: 0;
  background: #fffdf6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  min-height: 350px;
}
.reader-page:first-child {
  border-radius: 5px 0 0 5px;
}
.reader-page:nth-child(2) {
  border-radius: 0 5px 5px 0;
}
.reader-page canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 67dvh;
  object-fit: contain;
  background: white;
}
.reader-opening-cover {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  transform-origin: right center;
  z-index: 6;
  backface-visibility: hidden;
  pointer-events: none;
  background: #27272a;
  overflow: hidden;
  animation: open-cover 1.05s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  box-shadow: 0 5px 14px #0003;
}
.reader-opening-cover img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.reader-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 17px;
  padding: 13px 24px 19px;
  color: #cccbd1;
  font-size: 11px;
}
.reader-controls .alma-round {
  border-color: #ffffff45;
  color: white;
}
.reader-controls .alma-round:disabled {
  opacity: 0.25;
}
.reader-controls output {
  min-width: 145px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.reader-original {
  display: block;
  text-align: center;
  color: #bfbfc7;
  font-size: 11px;
  padding: 0 20px 20px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.reader-original:hover {
  color: white;
}
.reader-status {
  padding: 24px;
  text-align: center;
  color: #c5c5ce;
  font-size: 12px;
  margin: 0;
}
.reader-fallback {
  width: 100%;
  height: 65dvh;
  background: #fff;
  border: 0;
  display: block;
}
.reader-book.is-fallback {
  display: block;
  min-height: 0;
  transform: none;
}
.reader-book.is-fallback:after {
  display: none;
}
.reader-book.is-turning {
  animation: turn-spread 0.33s ease-in-out;
}
.reader-mobile-text {
  display: none;
}
.reader-page-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 35px;
  align-items: start;
}
.cart-item {
  display: flex;
  gap: 25px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item:last-child {
  border-bottom: 0;
}
.cart-item img {
  width: 73px;
  height: 110px;
  object-fit: contain;
  box-shadow: 3px 5px 10px #0001;
}
.cart-item h2 {
  font-size: 19px;
  margin: 0 0 8px;
}
.cart-item .text-link {
  font-size: 11px;
}
.cart-summary {
  position: sticky;
  top: 110px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.cart-summary h2 {
  font-size: 23px;
  margin-bottom: 25px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.summary-note {
  font-size: 11px;
  color: var(--muted);
  margin: 16px 0;
}
.address-option {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.address-option.is-selected {
  background: #faf6df;
  border-color: #d9c96c;
}
.address-option > label {
  flex: 1;
  cursor: pointer;
}
.address-option input {
  margin-right: 8px;
}
.address-option .text-link {
  font-size: 10px;
}
.address-section-title {
  font-size: 18px;
  margin: 27px 0 16px;
}
.order-list {
  display: grid;
  gap: 15px;
}
.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: white;
}
.order-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
}
.order-card summary::-webkit-details-marker {
  display: none;
}
.order-card summary h2 {
  font-size: 18px;
  margin: 0 0 7px;
}
.order-card summary small {
  font-size: 11px;
  color: var(--muted);
}
.order-books {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding-top: 22px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.order-book {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.order-book img {
  width: 50px;
  height: 75px;
  object-fit: contain;
}
.order-book span {
  max-width: 180px;
}
.delivery-panel {
  max-width: 760px;
  margin: 35px auto;
  text-align: center;
  padding: 42px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.delivery-panel h1,
.delivery-panel h2 {
  font-size: 32px;
  margin: 15px 0;
}
.delivery-panel p {
  font-size: 13px;
  color: var(--muted);
}
.delivery-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f8f2d1;
  margin: 0 auto 25px;
  color: #75631d;
}
.delivery-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 35px;
  align-items: start;
}
.account-aside {
  padding: 25px;
}
.account-aside h2 {
  font-size: 23px;
}
.account-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.account-form-grid .card {
  height: 100%;
}
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh - 149px);
}
.auth-story {
  padding: 80px 12%;
  background: #19191c;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-story h1 {
  font-size: clamp(38px, 4.3vw, 64px);
  line-height: 1.08;
  margin: 24px 0;
}
.auth-story h1 em {
  font-family: Georgia, serif;
  color: var(--yellow);
}
.auth-story p {
  color: #b5b5bd;
  font-size: 13px;
  max-width: 340px;
}
.auth-story .eyebrow {
  color: #c5c5ce;
}
.auth-lines {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -100px;
  height: 290px;
  border: 1px solid #f4d52c2b;
  border-radius: 50%;
  transform: rotate(-13deg);
  box-shadow:
    0 -12px #19191c,
    0 -13px #f4d52c24,
    0 -25px #19191c,
    0 -26px #f4d52c20;
  pointer-events: none;
}
.auth-form-area {
  padding: 65px 12%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form {
  width: 100%;
  max-width: 370px;
}
.auth-form h2 {
  font-size: 34px;
  margin: 10px 0 16px;
}
.auth-form > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
}
.auth-form label {
  display: block;
  margin-bottom: 7px;
}
.auth-form .form-control {
  margin-bottom: 19px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 75px;
}
.password-field button {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 10px;
  padding: 5px;
  color: #666;
}
.auth-help {
  font-size: 11px;
  color: var(--muted);
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.support-layout {
  display: grid;
  grid-template-columns: 31% 1fr;
  gap: 65px;
}
.support-note {
  padding: 25px 0;
  color: var(--muted);
  font-size: 13px;
}
.support-note h2 {
  font-size: 25px;
  color: var(--ink);
  margin-bottom: 20px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card > img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.news-card h2 {
  font-size: 23px;
}
.news-card p {
  font-size: 12px;
}
.news-detail {
  width: 800px;
}
.news-detail img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  margin-bottom: 23px;
  border-radius: 6px;
}
.news-content {
  font-size: 14px;
  line-height: 1.9;
}
.news-content img {
  max-width: 100%;
  height: auto;
}
.validation-summary-errors {
  color: #983d32;
  font-size: 12px;
  background: #fff0ee;
  border: 1px solid #f0ccc7;
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 20px;
}
.validation-summary-errors ul {
  margin: 0;
  padding-left: 17px;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes open-cover {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(178deg);
    visibility: hidden;
  }
}
@keyframes turn-spread {
  0%,
  100% {
    filter: brightness(1);
    transform: rotateX(2deg);
  }
  50% {
    filter: brightness(0.96);
    transform: rotateX(2deg) rotateY(-3deg);
  }
}
@media (min-width: 1600px) {
  .product-art {
    min-height: 620px;
  }
  .product-book-button {
    width: 250px;
    height: 375px;
  }
}
@media (max-width: 1100px) {
  .alma-book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .alma-cover-link {
    height: 220px;
  }
  .alma-cover-link img {
    height: 186px;
  }
  .alma-header-inner {
    gap: 22px;
  }
  .alma-brand span {
    display: none;
  }
  .alma-nav {
    gap: 22px;
  }
  .hero-book {
    width: 145px;
  }
  .product-art {
    min-height: 510px;
  }
  .product-book-button {
    width: 205px;
    height: 308px;
  }
  .product-copy {
    padding-left: 8%;
  }
  .account-form-grid {
    grid-template-columns: 1fr;
  }
  .support-layout {
    gap: 35px;
  }
  .cart-layout {
    grid-template-columns: 1fr 300px;
  }
  .hero-copy h1 {
    font-size: 43px;
  }
}
@media (max-width: 850px) {
  .alma-book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .alma-bag > span {
    display: none;
  }
  .alma-nav {
    gap: 18px;
  }
  .alma-header-actions {
    gap: 13px;
  }
  .alma-brand img {
    width: 150px;
  }
  .alma-hero-inner {
    grid-template-columns: 45% 55%;
  }
  .hero-copy h1 {
    font-size: 37px;
  }
  .hero-book {
    width: 120px;
  }
  .hero-stage {
    min-height: 325px;
  }
  .hero-caption small {
    display: none;
  }
  .hero-caption b {
    max-width: 220px;
  }
  .hero-caption {
    gap: 12px;
  }
  .product-layout {
    grid-template-columns: 43% 57%;
  }
  .product-art {
    min-height: 435px;
  }
  .product-book-button {
    width: 170px;
    height: 255px;
  }
  .product-copy {
    padding-left: 9%;
  }
  .product-copy h1 {
    font-size: 36px;
  }
  .product-actions {
    flex-direction: column;
  }
  .product-actions .alma-button {
    width: 100%;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-aside {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
  }
  .account-aside h2 {
    font-size: 20px;
  }
  .account-aside p {
    font-size: 12px;
    margin: 0;
  }
  .account-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth-story {
    padding: 60px 10%;
  }
  .auth-form-area {
    padding: 50px 10%;
  }
  .support-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .support-note {
    max-width: 520px;
    padding-top: 0;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reader-stage {
    padding: 25px 25px 20px;
  }
  .alma-footer {
    font-size: 10px;
  }
  .alma-footer-links {
    gap: 14px;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 120px;
  }
  .alma-header-inner {
    height: 65px;
    gap: 13px;
  }
  .alma-brand img {
    width: 140px;
  }
  .alma-nav {
    display: none;
  }
  .alma-header-actions {
    margin-left: auto;
    gap: 12px;
  }
  .alma-mobile-toggle {
    display: flex;
    width: 32px;
    height: 32px;
    border-color: #ffffff30;
  }
  .alma-header-actions .alma-round {
    width: 33px;
    height: 33px;
  }
  .alma-bag {
    gap: 6px;
  }
  .alma-page {
    padding-top: 32px;
    padding-bottom: 45px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading .alma-button {
    align-self: flex-start;
  }
  .alma-hero-inner {
    display: block;
  }
  .hero-copy {
    padding: 27px 0 0;
  }
  .hero-copy h1 {
    font-size: 37px;
    max-width: 355px;
    margin: 18px 0 16px;
  }
  .hero-description {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .hero-stage {
    height: 235px;
    min-height: 0;
    margin-top: 12px;
  }
  .stage-label {
    top: 3px;
    font-size: 7px;
  }
  .hero-books {
    inset: 20px 0 10px;
  }
  .hero-book {
    width: 115px;
  }
  .page-lines {
    bottom: 15px;
    height: 60px;
  }
  .hero-caption > span {
    display: none;
  }
  .hero-caption b {
    max-width: 190px;
    font-size: 11px;
  }
  .hero-controls > span {
    font-size: 8px;
    margin-right: 4px;
  }
  .hero-controls {
    gap: 6px;
  }
  .hero-controls .alma-round {
    width: 29px;
    height: 29px;
  }
  .hero-bottom {
    min-height: 59px;
    gap: 8px;
  }
  .catalogue {
    padding-top: 29px;
  }
  .catalogue-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .catalogue-heading h2 {
    font-size: 25px;
    max-width: 250px;
  }
  .catalogue-total {
    font-size: 10px;
    max-width: 75px;
    white-space: normal;
    text-align: right;
    padding-top: 20px;
  }
  .catalogue-tools {
    gap: 9px;
  }
  .catalogue-search {
    padding: 0 10px;
  }
  .catalogue-search input {
    font-size: 11px;
  }
  .catalogue-sort {
    width: 125px;
    font-size: 10px;
    padding-left: 9px;
  }
  .alma-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 10px;
  }
  .alma-cover-link {
    height: 218px;
    padding: 18px 12px 14px;
  }
  .alma-cover-link img {
    height: 184px;
  }
  .alma-book-copy {
    padding: 12px 10px;
  }
  .alma-book-title {
    font-size: 12px;
    min-height: 34px;
  }
  .alma-book-author {
    font-size: 10px;
  }
  .request-book {
    min-height: 37px;
    font-size: 10px;
  }
  .alma-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    padding-block: 22px;
  }
  .alma-footer > p {
    display: none;
  }
  .alma-footer-links {
    font-size: 10px;
  }
  .product-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .book-breadcrumb {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 23px;
  }
  .product-art {
    width: 100%;
    min-height: 390px;
    gap: 30px;
  }
  .product-book-button {
    width: 180px;
    height: 270px;
  }
  .product-copy {
    padding: 0;
    width: 100%;
  }
  .product-copy h1 {
    font-size: 39px;
    margin: 14px 0;
  }
  .product-author {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .product-actions {
    flex-direction: row;
  }
  .product-actions .alma-button {
    width: 100%;
    min-height: 47px;
  }
  .product-meta {
    gap: 8px;
  }
  .product-art-note {
    font-size: 10px;
  }
  .reader-dialog {
    max-width: 100%;
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    margin: 0;
    border: 0;
  }
  .reader-heading {
    padding: 18px 16px;
  }
  .reader-heading h2 {
    font-size: 18px;
    max-width: 270px;
  }
  .reader-stage {
    padding: 23px 15px 16px;
    min-height: 0;
  }
  .reader-book {
    display: block;
    min-height: 0;
    max-width: 450px;
  }
  .reader-book:after {
    display: none;
  }
  .reader-page {
    min-height: 0;
    border-radius: 3px !important;
  }
  .reader-page:nth-child(2) {
    display: none;
  }
  .reader-page canvas {
    max-height: 67dvh;
  }
  .reader-opening-cover {
    width: 100%;
    transform-origin: left;
    animation-name: open-cover-mobile;
  }
  .reader-controls {
    padding-inline: 15px;
    gap: 22px;
  }
  .reader-controls .alma-round {
    width: 42px;
    height: 42px;
  }
  .reader-fallback {
    height: 64dvh;
  }
  .reader-mobile-text {
    display: inline;
  }
  .reader-status {
    padding: 13px 20px;
    font-size: 11px;
  }
  .reader-original {
    font-size: 11px;
  }
  .cart-item {
    padding: 20px 16px;
    gap: 18px;
  }
  .cart-item h2 {
    font-size: 17px;
  }
  .cart-summary {
    padding: 24px;
  }
  .dialog-heading {
    padding: 22px 20px;
  }
  .dialog-heading h2 {
    font-size: 23px;
  }
  .dialog-copy {
    padding: 22px 20px;
  }
  .dialog-footer {
    padding: 18px 20px;
    flex-wrap: wrap;
  }
  .dialog-footer .alma-button {
    flex: 1;
  }
  .alma-dialog {
    max-height: 94dvh;
  }
  .account-aside {
    display: block;
  }
  .account-aside .alma-button {
    margin-top: 20px;
  }
  .account-form-grid {
    grid-template-columns: 1fr;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 37px 7% 42px;
    min-height: 270px;
  }
  .auth-story h1 {
    font-size: 42px;
    max-width: 340px;
    margin: 16px 0;
  }
  .auth-story p {
    font-size: 12px;
    margin: 0;
    max-width: 295px;
  }
  .auth-story .eyebrow {
    font-size: 8px;
  }
  .auth-lines {
    height: 170px;
    bottom: -125px;
  }
  .auth-form-area {
    padding: 37px 7% 50px;
  }
  .auth-form {
    max-width: 430px;
  }
  .auth-form h2 {
    font-size: 31px;
  }
  .panel,
  .card-body {
    padding: 23px;
  }
  .support-note h2 {
    font-size: 23px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .order-card {
    padding: 20px;
  }
  .order-card summary h2 {
    font-size: 17px;
  }
  .order-card summary {
    gap: 12px;
  }
  .order-book {
    width: 100%;
  }
  .delivery-panel {
    padding: 30px 20px;
    margin-top: 10px;
  }
  .delivery-panel h1,
  .delivery-panel h2 {
    font-size: 27px;
  }
  .delivery-actions {
    flex-direction: column;
  }
  .delivery-actions .alma-button {
    width: 100%;
  }
}
@media (max-width: 360px) {
  .alma-cover-link {
    height: 190px;
  }
  .alma-cover-link img {
    height: 156px;
  }
  .hero-book {
    width: 102px;
  }
  .hero-stage {
    height: 215px;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
  .hero-controls > span {
    display: none;
  }
  .hero-caption b {
    max-width: 155px;
  }
  .catalogue-heading h2 {
    font-size: 23px;
  }
  .alma-brand img {
    width: 126px;
  }
  .alma-header-actions {
    gap: 8px;
  }
  .catalogue-sort {
    width: 115px;
  }
}
@keyframes open-cover-mobile {
  to {
    transform: rotateY(-175deg);
    visibility: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .reader-opening-cover {
    display: none;
  }
  .product-book,
  .reader-book {
    transform: none;
  }
}
.reader-book.is-fallback .reader-page {
  display: none;
}
.reader-dialog[open] {
  max-height: 96dvh;
}
@media (max-width: 600px) {
  .reader-dialog[open] {
    max-height: 100dvh;
  }
}
.local-preview-notice {
  padding: 6px 4%;
  font-size: 10px;
  text-align: center;
  background: #f4efd5;
  color: #706020;
  border-bottom: 1px solid #e8dfb2;
}
.reader-dialog[open] {
  display: flex;
  flex-direction: column;
  height: min(94dvh, 960px);
  max-height: 96dvh;
  overflow: hidden;
}
.reader-heading,
.reader-status,
.reader-controls,
.reader-original {
  flex-shrink: 0;
}
.reader-status {
  padding: 12px 20px;
}
.reader-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 30px 19px;
}
.reader-book {
  min-height: 0;
  width: min(100%, calc((100dvh - 280px) * 1.32));
}
.reader-page {
  min-height: 0;
}
.reader-page canvas {
  max-height: calc(100dvh - 280px);
}
.reader-original {
  padding-bottom: 16px;
}
.reader-book.is-fallback {
  width: 100%;
  height: 100%;
}
.reader-fallback {
  height: 100%;
  min-height: 200px;
}
@media (max-width: 600px) {
  .reader-dialog[open] {
    height: 100dvh;
    max-height: 100dvh;
  }
  .reader-stage {
    padding: 12px 12px 17px;
  }
  .reader-book {
    width: min(100%, calc((100dvh - 245px) * 0.66));
  }
  .reader-page canvas {
    max-height: calc(100dvh - 245px);
  }
  .reader-controls {
    padding-block: 12px;
  }
  .reader-original {
    padding-bottom: 15px;
  }
  .alma-header-inner > .eyebrow {
    display: none;
  }
}
.reader-book {
  width: min(100%, calc((100dvh - 320px) * 1.32));
}
.reader-page canvas {
  max-height: calc(100dvh - 320px);
}
@media (max-width: 600px) {
  .reader-book {
    width: min(100%, calc((100dvh - 290px) * 0.66));
  }
  .reader-page canvas {
    max-height: calc(100dvh - 290px);
  }
}
.reader-book.is-zoomed {
  width: min(100%, 930px);
}
.reader-book.is-zoomed .reader-page canvas {
  max-height: none;
}
.reader-controls output {
  min-width: 125px;
}
.hero-book {
  width: min(180px, 26%);
}
.address-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.address-dialog .dialog-heading,
.address-dialog .dialog-footer {
  flex-shrink: 0;
}
.address-dialog .dialog-copy {
  min-height: 0;
  overflow: auto;
}
.delivery-panel .eyebrow {
  font-size: 9px;
  line-height: 1.6;
}
.address-section-title {
  cursor: pointer;
}
.address-option + details {
  margin-top: 10px;
}
.auth-story{isolation:isolate}.auth-story .auth-lines{z-index:0}.auth-story>.eyebrow,.auth-story>h1,.auth-story>p{position:relative;z-index:1}

/* Subtle movement uses the inner wrapper; slide positions stay on stable outer nodes. */
@keyframes hero-book-float { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-5px) } }
@media (prefers-reduced-motion: no-preference) {
  .hero-book-inner { animation:hero-book-float 5s ease-in-out infinite; }
  .hero-book:nth-child(2n) .hero-book-inner { animation-delay:-1.6s; }
  .hero-book:nth-child(3n) .hero-book-inner { animation-delay:-3.2s; }
  .hero-books.is-paused .hero-book-inner { animation-play-state:paused; }
}
