:root {
  --midnight: #0d1535;
  --navy: #090f27;
  --navy-soft: #151e43;
  --parchment: #f6eddb;
  --parchment-light: #fff8ea;
  --ink: #f8f2e6;
  --body: #281d32;
  --muted: #786d82;
  --line: rgba(72, 53, 84, 0.18);
  --purple: #6628e8;
  --purple-soft: #8c5cff;
  --gold: #d7a94a;
  --shadow: 0 18px 42px rgba(4, 8, 28, 0.22);
  --soft-shadow: 0 10px 28px rgba(37, 26, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--body);
  font-family: Assistant, "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 14% 4%, rgba(102, 40, 232, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--midnight) 0, var(--midnight) 36rem, #f3ead8 36rem, #f7efdf 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  content: "";
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
.site-footer,
.page-shell,
.stack {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-block: 12px;
  border: 1px solid rgba(255, 248, 234, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(9, 15, 39, 0.28);
  box-shadow: none;
  backdrop-filter: blur(18px);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 248, 234, 0.16);
  background: rgba(9, 15, 39, 0.88);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-weight: 900;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: rgba(248, 242, 230, 0.82);
  font-size: 0.95rem;
}

nav a {
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: #fff;
  background: rgba(140, 92, 255, 0.2);
}

.hero {
  position: relative;
  width: 100%;
  min-height: clamp(500px, 66svh, 680px);
  margin: -86px auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: clamp(20px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0 0 34px 34px;
  padding:
    clamp(124px, 15svh, 168px)
    max(24px, calc((100vw - 1180px) / 2 + 32px))
    clamp(34px, 6vw, 76px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 8, 28, 0.14), rgba(8, 13, 36, 0.38) 48%, rgba(8, 13, 36, 0.74));
  box-shadow: 0 20px 56px rgba(4, 8, 28, 0.28);
  opacity: 0;
  transform: translateY(12px);
  animation: hero-in 620ms ease forwards;
}

.hero::before {
  position: absolute;
  inset: -40px 0 -80px;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 8, 28, 0.42), rgba(8, 13, 36, 0.44) 48%, rgba(8, 13, 36, 0.82)),
    linear-gradient(180deg, rgba(4, 8, 28, 0.78), rgba(4, 8, 28, 0.08) 42%, rgba(4, 8, 28, 0.62)),
    url("/static/hero-writing-desk.png") center / cover no-repeat;
  transform: translate3d(0, calc(var(--hero-scroll, 0px) * 0.16), 0) scale(1.08);
  transform-origin: center;
  will-change: transform;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 46%, rgba(215, 169, 74, 0.22), transparent 22rem),
    radial-gradient(circle at 72% 34%, rgba(102, 40, 232, 0.18), transparent 22rem),
    linear-gradient(180deg, rgba(13, 21, 53, 0.18), rgba(13, 21, 53, 0.42));
  content: "";
}

.hero-stage {
  position: relative;
  z-index: 1;
  min-height: clamp(380px, 52svh, 560px);
  order: 2;
  align-self: center;
}

.hero-layer,
.hero-particles {
  position: absolute;
  inset: 0;
  transform: translate3d(0, calc(var(--hero-scroll, 0px) * var(--speed, 0)), 0);
  will-change: transform;
  pointer-events: none;
}

.hero-room {
  --speed: 0.08;
  inset: -14% -12% -8%;
  background:
    radial-gradient(circle at 22% 28%, rgba(84, 104, 204, 0.26), transparent 22rem),
    radial-gradient(circle at 70% 46%, rgba(215, 169, 74, 0.12), transparent 18rem);
}

.hero-desk {
  --speed: 0.13;
  inset: auto -8% -20% -8%;
  height: 44%;
  background:
    linear-gradient(180deg, transparent, rgba(28, 13, 9, 0.42)),
    radial-gradient(ellipse at 48% 55%, rgba(215, 169, 74, 0.16), transparent 56%);
}

.hero-glow {
  --speed: 0.04;
  inset: 0;
  background:
    radial-gradient(circle at 28% 60%, rgba(215, 169, 74, 0.28), transparent 9rem),
    radial-gradient(circle at 56% 32%, rgba(140, 92, 255, 0.22), transparent 14rem);
  animation: candle-flicker 2.8s ease-in-out infinite alternate;
}

.hero-dragon {
  position: absolute;
  left: clamp(-44px, -4vw, -14px);
  bottom: clamp(-40px, -4vw, -18px);
  z-index: 2;
  width: clamp(420px, 42vw, 600px);
  max-width: 86%;
  border-radius: 0;
  filter:
    drop-shadow(0 28px 42px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 34px rgba(215, 169, 74, 0.18));
  transform: translate3d(0, calc(var(--hero-scroll, 0px) * 0.1), 0);
  will-change: transform;
}

.hero-particles {
  opacity: 0.8;
  background-repeat: repeat;
  animation: particles-float 9s ease-in-out infinite alternate;
}

.hero-particles-a {
  --speed: 0.24;
  background-image:
    radial-gradient(circle, rgba(215, 169, 74, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px);
  background-position: 20px 40px, 110px 90px;
  background-size: 160px 180px, 220px 210px;
}

.hero-particles-b {
  --speed: 0.14;
  opacity: 0.5;
  background-image: radial-gradient(circle, rgba(140, 92, 255, 0.72) 0 1px, transparent 2px);
  background-position: 80px 20px;
  background-size: 190px 160px;
}

.hero-panel {
  position: relative;
  z-index: 1;
  order: 1;
  max-width: 540px;
  justify-self: end;
  border: 1px solid rgba(255, 248, 234, 0.12);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 34px);
  text-align: right;
  background:
    linear-gradient(135deg, rgba(4, 8, 28, 0.72), rgba(9, 15, 39, 0.44));
  box-shadow: 0 20px 52px rgba(4, 8, 28, 0.24);
  backdrop-filter: blur(8px);
}

.hero h1,
.page-title h1,
.fair-mode h1 {
  max-width: 780px;
  margin: 0 0 20px;
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 540px;
  margin: 0 0 12px;
  color: rgba(255, 248, 234, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.hero-note {
  margin-top: 18px;
  color: rgba(255, 248, 234, 0.96);
  font-weight: 800;
}

.page-title {
  margin-bottom: 28px;
  color: var(--ink);
}

.page-title p,
.fair-mode p {
  max-width: 760px;
  color: rgba(248, 242, 230, 0.78);
  font-size: 1.1rem;
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
}

.actions,
.card-actions,
.fair-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(102, 40, 232, 0.42);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--purple);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  background: rgba(102, 40, 232, 0.06);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(102, 40, 232, 0.18);
}

.button.primary,
button {
  border-color: var(--purple);
  color: #fff;
  background: var(--purple);
}

.button.gold {
  border-color: var(--gold);
  color: #1d1630;
  background: var(--gold);
}

.button.small {
  min-height: 38px;
  padding-inline: 13px;
  font-size: 0.9rem;
}

.button.ghost {
  border-color: rgba(120, 109, 130, 0.28);
  color: var(--muted);
  background: transparent;
}

.text-link {
  color: var(--purple);
  font-weight: 900;
}

.stack {
  display: grid;
  gap: 64px;
  padding-block-end: 80px;
}

.page-shell {
  padding-block: 54px 80px;
}

.books-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-block: -8px 30px;
  isolation: isolate;
}

.books-page-hero::before {
  position: absolute;
  inset: -36px -4vw -24px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 48%, rgba(140, 92, 255, 0.18), transparent 19rem),
    radial-gradient(circle at 78% 36%, rgba(215, 169, 74, 0.1), transparent 15rem),
    linear-gradient(90deg, rgba(13, 21, 53, 0.18), transparent 44%, rgba(13, 21, 53, 0.16));
  content: "";
}

.books-page-hero .page-title {
  grid-column: 1;
  margin-bottom: 0;
  justify-self: end;
  text-align: right;
}

.books-page-hero .page-title p {
  max-width: 620px;
}

.books-hero-art {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  opacity: 0.96;
  filter: drop-shadow(0 24px 42px rgba(4, 8, 28, 0.3));
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 13%, #000 84%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 13%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.books-hero-art::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 42%, transparent 24%, rgba(13, 21, 53, 0.12) 58%, rgba(13, 21, 53, 0.46) 100%),
    linear-gradient(90deg, rgba(13, 21, 53, 0.38), transparent 24%, transparent 68%, rgba(13, 21, 53, 0.28));
  content: "";
}

.books-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}

.authors-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  min-height: clamp(440px, 42vw, 610px);
  margin-block: -54px 10px;
  margin-inline: calc(50% - 50vw);
  padding:
    clamp(110px, 12vw, 150px)
    max(32px, calc((100vw - 1180px) / 2 + 32px))
    clamp(54px, 7vw, 86px);
  overflow: hidden;
  color: #fff8ea;
  background:
    radial-gradient(circle at 30% 48%, rgba(140, 92, 255, 0.2), transparent 25rem),
    linear-gradient(90deg, rgba(4, 8, 28, 0.42), rgba(10, 15, 43, 0.72) 52%, rgba(8, 12, 42, 0.96)),
    #0d1535;
  isolation: isolate;
}

.authors-page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.64;
  mask-image: linear-gradient(180deg, #000, transparent 76%);
  content: "";
}

.authors-page-hero .page-title {
  position: relative;
  z-index: 2;
  grid-column: 1;
  margin-bottom: 0;
  justify-self: center;
  text-align: right;
  transform: none;
}

.authors-page-hero .page-title h1 {
  color: #fff8ea;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.authors-page-hero .page-title p:not(.kicker) {
  color: rgba(255, 248, 234, 0.82);
}

.authors-hero-art {
  position: absolute;
  inset: 64px auto 0 0;
  z-index: 0;
  width: min(58vw, 920px);
  margin: 0;
  overflow: hidden;
  min-height: auto;
  height: calc(100% - 64px);
  opacity: 0.98;
  background:
    url("/static/authors-dragon-writer.png?v=20260710-authors-wide-hero") left center / contain no-repeat;
  filter: drop-shadow(0 24px 46px rgba(4, 8, 28, 0.34));
  mask-image:
    linear-gradient(90deg, #000 0%, #000 60%, rgba(0, 0, 0, 0.72) 76%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, #000 0%, #000 60%, rgba(0, 0, 0, 0.72) 76%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.authors-hero-art::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 48%, rgba(215, 169, 74, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(13, 21, 53, 0.22), transparent 18%, transparent 76%, rgba(13, 21, 53, 0.28)),
    linear-gradient(90deg, transparent 0%, transparent 52%, rgba(13, 21, 53, 0.64) 100%);
  content: "";
}

.section {
  position: relative;
  display: grid;
  gap: 22px;
  border-radius: 30px;
  padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(circle at 92% 8%, rgba(102, 40, 232, 0.08), transparent 18rem),
    radial-gradient(circle at 12% 78%, rgba(33, 82, 67, 0.08), transparent 17rem),
    linear-gradient(135deg, rgba(255, 248, 234, 0.54), rgba(244, 232, 209, 0.34));
  overflow: hidden;
}

.section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 64, 54, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 64, 54, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 20%, rgba(102, 40, 232, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 75% 64%, rgba(215, 169, 74, 0.16) 0 1px, transparent 2px);
  background-size: 72px 72px, 72px 72px, 190px 170px, 230px 210px;
  opacity: 0.52;
  content: "";
}

.section > * {
  position: relative;
  z-index: 1;
}

.section h2 {
  margin: 0;
  color: var(--midnight);
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  line-height: 1.1;
}

.section-intro,
.meta,
.empty {
  color: var(--muted);
}

.portal-strip,
.contact-panel,
.panel,
.auth-card,
.filters {
  border: 1px solid rgba(255, 248, 234, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.98), rgba(246, 237, 219, 0.92));
  box-shadow: var(--soft-shadow);
}

.portal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.portal-strip div {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.36);
}

.portal-strip strong {
  color: var(--purple);
  font-size: 1.25rem;
}

.portal-strip span {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.books {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.catalogue-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  overflow: visible;
  border: 1px solid rgba(49, 78, 62, 0.36);
  border-radius: 22px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.96), rgba(232, 212, 174, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    inset 0 0 0 5px rgba(102, 40, 232, 0.04),
    var(--soft-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.catalogue-card.no-cover {
  grid-template-columns: 1fr;
}

.catalogue-card::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(102, 40, 232, 0.2);
  border-radius: 15px;
  pointer-events: none;
  content: "";
}

.catalogue-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 40, 232, 0.42);
  box-shadow: 0 18px 38px rgba(37, 26, 48, 0.16);
}

.catalogue-cover {
  position: relative;
  z-index: 1;
  width: 150px;
  align-self: start;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 14px 24px rgba(46, 31, 22, 0.24);
}

.catalogue-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 180ms ease;
}

.catalogue-card:hover .catalogue-cover img {
  transform: scale(1.025);
}

.catalogue-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.card-hit-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.catalogue-card h3 {
  margin: 0;
  color: var(--midnight);
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.catalogue-card h3 a,
.catalogue-card .meta a {
  position: relative;
  z-index: 3;
  text-decoration: none;
}

.catalogue-series {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.metadata-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 100%;
  padding: 6px 13px;
  border: 1px solid rgba(151, 103, 220, 0.42);
  border-radius: 999px;
  color: #17203f;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(
    180deg,
    rgba(255, 250, 238, 0.96),
    rgba(244, 232, 210, 0.92)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(120, 85, 160, 0.08),
    0 3px 8px rgba(30, 25, 60, 0.12);
  cursor: default;
  transition: filter 160ms ease;
}

.metadata-badge:hover {
  filter: brightness(1.02);
}

a.metadata-badge,
button.metadata-badge,
[role="button"].metadata-badge {
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a.metadata-badge:hover,
button.metadata-badge:hover,
[role="button"].metadata-badge:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(120, 85, 160, 0.1),
    0 5px 12px rgba(30, 25, 60, 0.16);
}

a.metadata-badge:focus-visible,
button.metadata-badge:focus-visible,
[role="button"].metadata-badge:focus-visible {
  outline: 2px solid rgba(151, 103, 220, 0.82);
  outline-offset: 3px;
}

.metadata-badge-dark,
.metadata-badge--dark {
  border-color: rgba(210, 175, 255, 0.38);
  color: #fff8e8;
  background: rgba(255, 248, 230, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(210, 175, 255, 0.1),
    0 3px 8px rgba(5, 8, 28, 0.22);
}

.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 4px;
}

.compact-meta > span:not(.genre-icon-row) {
  font-size: 0.84rem;
}

.icon-tooltip {
  position: relative;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(102, 40, 232, 0.22);
  border-radius: 50%;
  color: var(--purple);
  text-decoration: none;
  background: rgba(255, 248, 234, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.icon-tooltip:hover,
.icon-tooltip:focus-visible {
  z-index: 20;
  color: #fff8ea;
  border-color: rgba(140, 92, 255, 0.62);
  background: rgba(102, 40, 232, 0.92);
  box-shadow: 0 0 0 3px rgba(140, 92, 255, 0.16), 0 10px 24px rgba(4, 8, 28, 0.18);
  transform: translateY(-1px) scale(1.04);
  outline: none;
}

.icon-tooltip.accent-gold {
  color: #8f6519;
  border-color: rgba(215, 169, 74, 0.32);
}

.icon-tooltip.accent-gold:hover,
.icon-tooltip.accent-gold:focus-visible {
  color: #0d1535;
  border-color: rgba(215, 169, 74, 0.72);
  background: rgba(215, 169, 74, 0.92);
  box-shadow: 0 0 0 3px rgba(215, 169, 74, 0.18), 0 10px 24px rgba(4, 8, 28, 0.18);
}

.icon-tooltip.accent-green {
  color: #314e3e;
  border-color: rgba(49, 78, 62, 0.24);
}

.icon-tooltip.accent-green:hover,
.icon-tooltip.accent-green:focus-visible {
  color: #fff8ea;
  border-color: rgba(49, 78, 62, 0.58);
  background: rgba(49, 78, 62, 0.92);
}

.ui-icon {
  display: block;
  pointer-events: none;
}

.icon-tooltip-label {
  position: absolute;
  inset-block-end: calc(100% + 8px);
  inset-inline-start: 50%;
  z-index: 30;
  width: max-content;
  max-width: min(220px, 70vw);
  padding: 5px 9px;
  border: 1px solid rgba(215, 169, 74, 0.34);
  border-radius: 8px;
  color: #fff8ea;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  background: rgba(13, 21, 53, 0.96);
  box-shadow: 0 10px 26px rgba(4, 8, 28, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(3px);
  transition: opacity 130ms ease, transform 130ms ease;
}

.text-site-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--purple);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-site-link:hover,
.text-site-link:focus-visible {
  color: var(--gold);
}

.icon-tooltip:hover .icon-tooltip-label,
.icon-tooltip:focus-visible .icon-tooltip-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.genre-icon-row {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
  overflow: visible;
  vertical-align: middle;
}

.genre-icon {
  width: 34px;
  height: 34px;
}

.genre-icon.primary {
  width: 38px;
  height: 38px;
}

.catalogue-hook {
  margin: 0;
  color: #423448;
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalogue-more {
  position: relative;
  z-index: 3;
  width: fit-content;
  margin-top: 4px;
}

.catalogue-empty {
  border: 1px solid rgba(49, 78, 62, 0.28);
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.96), rgba(232, 212, 174, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    var(--soft-shadow);
}

.catalogue-empty-frame {
  border: 1px solid rgba(102, 40, 232, 0.22);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.catalogue-empty h3 {
  margin: 0 0 8px;
  color: var(--midnight);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.catalogue-empty p:last-child {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
}

.empty-state {
  border: 1px solid rgba(49, 78, 62, 0.24);
  border-radius: 22px;
  padding: 34px;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.96), rgba(232, 212, 174, 0.72));
  box-shadow: var(--soft-shadow);
}

.card {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(49, 78, 62, 0.38);
  border-radius: 24px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(102, 40, 232, 0.12), transparent 16%),
    linear-gradient(145deg, #fff6e2, #ead9b8);
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 235, 0.72),
    inset 0 0 0 5px rgba(49, 78, 62, 0.05),
    var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card::before {
  position: absolute;
  inset: 9px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(102, 40, 232, 0.28);
  border-radius: 18px;
  content: "";
}

.card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.34), transparent 9rem),
    linear-gradient(90deg, rgba(49, 78, 62, 0.08), transparent 30%, rgba(102, 40, 232, 0.08));
  opacity: 0.85;
  content: "";
}

.card > img,
.card > div {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 40, 232, 0.48);
  box-shadow:
    0 0 0 1px rgba(102, 40, 232, 0.18),
    0 22px 48px rgba(37, 26, 48, 0.18);
}

.book-card {
  display: grid;
  grid-template-columns: minmax(170px, 36%) minmax(0, 1fr);
  gap: 16px;
  min-height: 330px;
}

.book-card.no-cover {
  grid-template-columns: 1fr;
}

.event-card,
.person-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
}

.card-media,
.card-body {
  position: relative;
  z-index: 1;
}

.card-media {
  display: grid;
}

.book-card .card-media {
  border-radius: 18px;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(13, 21, 53, 0.18), rgba(49, 78, 62, 0.12)),
    rgba(255, 248, 234, 0.36);
  box-shadow: inset 0 0 0 1px rgba(49, 78, 62, 0.2);
}

.book-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border: 1px solid rgba(78, 55, 24, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 24px rgba(46, 31, 22, 0.22);
  transition: transform 180ms ease;
}

.book-card:hover img {
  transform: scale(1.018);
}

.author-book-stack {
  min-width: 0;
  height: 100%;
}

.author-book-stack__cards {
  display: grid;
  min-width: 0;
  height: 100%;
  isolation: isolate;
}

.author-book-stack-card {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px);
  transition:
    opacity 300ms ease,
    transform 300ms cubic-bezier(0.22, 0.7, 0.24, 1),
    visibility 0s linear 300ms;
}

.author-book-stack-card.is-active {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

.author-book-stack .book-card .card-media {
  order: 0;
}

.author-book-stack-card .card-media,
.author-book-stack-card .catalogue-cover {
  overflow: visible;
}

.author-book-stack__active-cover {
  position: relative;
  z-index: 4;
}

.author-book-stack__cover-trigger {
  position: absolute;
  inset: 0;
  z-index: var(--stack-layer);
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 169, 74, 0.48);
  border-radius: 12px;
  padding: 0;
  background: #0d1535;
  box-shadow: 0 12px 22px rgba(13, 21, 53, 0.28);
  cursor: pointer;
  filter: brightness(0.82) saturate(0.88);
  transform: translateX(calc(var(--stack-depth) * -10px));
  transition:
    transform 300ms cubic-bezier(0.22, 0.7, 0.24, 1),
    filter 300ms ease,
    box-shadow 300ms ease;
}

.author-book-stack--full .author-book-stack__cover-trigger {
  inset: 10px;
  width: auto;
  height: auto;
}

.author-book-stack__cover-trigger:hover,
.author-book-stack__cover-trigger:focus-visible {
  filter: brightness(1.05) saturate(1);
  transform: translateX(calc((var(--stack-depth) * -10px) - 12px));
  box-shadow: 0 15px 28px rgba(13, 21, 53, 0.34);
}

.author-book-stack__cover-trigger:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.author-book-stack__cover-trigger img,
.author-book-stack-card:hover .author-book-stack__cover-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: none;
  transform: none;
}

.author-book-stack--full .author-book-stack__cover-trigger img {
  object-fit: contain;
  background: rgba(9, 15, 39, 0.96);
}

.grid.books .book-card:nth-child(even) .card-media {
  order: 2;
}

.person-card .card-media {
  align-content: start;
}

.person-card img,
.event-card img {
  width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(49, 78, 62, 0.32);
  border-radius: 18px;
  background: #fff8ea;
  box-shadow:
    0 10px 20px rgba(46, 31, 22, 0.16),
    inset 0 0 0 4px rgba(255, 248, 234, 0.7);
}

.event-card img {
  aspect-ratio: 4 / 3;
}

.events-subtitle {
  margin-bottom: 16px;
}

.events-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(680px, 78%);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 4px 18px;
  direction: rtl;
  scroll-padding-inline: 4px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(102, 40, 232, 0.42) rgba(255, 248, 234, 0.42);
}

.event-scroll-card {
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(102, 40, 232, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.98), rgba(232, 212, 174, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    var(--soft-shadow);
  scroll-snap-align: start;
}

.event-image-link {
  min-height: 260px;
  background: rgba(13, 21, 53, 0.12);
}

.event-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-scroll-body {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
}

.event-scroll-body h3 {
  margin: 0;
  color: var(--midnight);
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.event-scroll-body h3 a {
  text-decoration: none;
}

.event-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.event-meta div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.event-meta dt {
  color: var(--purple);
  font-size: 0.86rem;
  font-weight: 900;
}

.event-meta dd {
  margin: 0;
  color: #3e3246;
  font-weight: 800;
}

.home-events-strip {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  max-width: min(100%, 440px);
  height: 104px;
  margin: 16px 0 0;
  border: 1px solid rgba(140, 92, 255, 0.26);
  border-inline-start-color: rgba(215, 169, 74, 0.46);
  border-radius: 14px;
  padding: 8px 10px;
  color: rgba(255, 248, 234, 0.86);
  background: rgba(4, 8, 28, 0.16);
  overflow: hidden;
}

.home-events-copy {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-inline-start: 2px solid rgba(215, 169, 74, 0.82);
  padding-inline-start: 8px;
  color: rgba(215, 169, 74, 0.96);
  font-size: 0.78rem;
  font-weight: 900;
}

.home-event-ticker {
  height: 104px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 82%, transparent);
}

.home-event-ticker::-webkit-scrollbar {
  display: none;
}

.home-event-ticker-track {
  display: grid;
  gap: 0;
  animation: home-event-ticker 12s linear infinite;
}

.home-events-strip:hover .home-event-ticker-track,
.home-events-strip:focus-within .home-event-ticker-track {
  animation-play-state: paused;
}

.home-event-ticker-item {
  display: grid;
  align-content: center;
  min-height: 58px;
  color: rgba(255, 248, 234, 0.9);
  text-decoration: none;
}

.home-event-ticker-item strong {
  font-size: 0.96rem;
  line-height: 1.35;
  font-weight: 800;
}

.home-event-ticker-item span {
  max-width: 34ch;
  overflow: hidden;
  color: rgba(255, 248, 234, 0.62);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes home-event-ticker {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -50%, 0);
  }
}

.events-page {
  display: grid;
  gap: 24px;
}

.events-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(0, 0.46fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  min-height: clamp(360px, 34vw, 520px);
  margin-block: -8px 20px;
  padding: clamp(30px, 5vw, 64px);
  overflow: hidden;
  border-radius: 30px;
  color: #fff8ea;
  background:
    radial-gradient(circle at 25% 50%, rgba(215, 169, 74, 0.14), transparent 18rem),
    radial-gradient(circle at 42% 48%, rgba(140, 92, 255, 0.18), transparent 23rem),
    linear-gradient(90deg, rgba(4, 8, 28, 0.42), rgba(10, 15, 43, 0.72) 52%, rgba(8, 12, 42, 0.96)),
    #0d1535;
  isolation: isolate;
}

.events-page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.54;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
  content: "";
}

.events-page-title {
  position: relative;
  display: grid;
  gap: 10px;
  z-index: 2;
  grid-column: 1;
  max-width: 720px;
  justify-self: center;
  color: #fff8ea;
  text-align: right;
}

.events-page-title .kicker {
  margin: 0;
  color: var(--gold);
}

.events-page-title span {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), rgba(215, 169, 74, 0.86));
}

.events-page-title h1 {
  margin: 0;
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: #fff8ea;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.events-page-title p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 248, 234, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.7;
}

.events-hero-art {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 560px);
  justify-self: start;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  opacity: 0.98;
  background:
    url("/static/events-dragon.png?v=20260710-events-hero") center / cover no-repeat;
  filter: drop-shadow(0 24px 46px rgba(4, 8, 28, 0.34));
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 72%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 72%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.events-hero-art::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 54% 46%, rgba(215, 169, 74, 0.15), transparent 12rem),
    linear-gradient(90deg, rgba(13, 21, 53, 0.3), transparent 20%, transparent 62%, rgba(13, 21, 53, 0.52) 100%),
    linear-gradient(180deg, rgba(13, 21, 53, 0.18), transparent 20%, transparent 78%, rgba(13, 21, 53, 0.24));
  content: "";
}

.events-page .section {
  gap: 14px;
  border-radius: 24px;
  padding: clamp(18px, 2.4vw, 26px);
}

.events-page .section h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.events-page .events-subtitle {
  margin: -6px 0 4px;
  font-weight: 700;
}

.events-upcoming-section {
  gap: 18px;
}

.events-section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  align-items: center;
  max-width: 720px;
}

.events-heading-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  border: 1px solid rgba(102, 40, 232, 0.28);
  border-radius: 50%;
  color: var(--purple);
  background: rgba(255, 248, 234, 0.74);
}

.events-section-heading p,
.events-section-heading h2,
.events-section-heading small {
  margin: 0;
}

.events-section-heading p {
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 900;
}

.events-section-heading h2 {
  grid-column: 2;
  color: var(--midnight);
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.events-heading-line {
  grid-column: 2;
  width: min(220px, 60%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), rgba(215, 169, 74, 0.8));
}

.events-section-heading small {
  grid-column: 2;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.events-notice-panel {
  display: grid;
  gap: 10px;
  max-height: 286px;
  overflow-y: auto;
  padding: 4px 4px 10px;
  scrollbar-color: rgba(102, 40, 232, 0.42) rgba(255, 248, 234, 0.42);
}

.event-notice-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 128px;
  border: 1px solid rgba(102, 40, 232, 0.2);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.98), rgba(245, 232, 204, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 12px 24px rgba(46, 31, 22, 0.1);
}

.event-notice-thumb {
  display: block;
  overflow: hidden;
  width: 104px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(49, 78, 62, 0.24);
  border-radius: 14px;
  background: rgba(13, 21, 53, 0.08);
}

.event-notice-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-notice-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.event-notice-content h3 {
  margin: 0;
  color: var(--midnight);
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.event-notice-content h3 a {
  color: inherit;
  text-decoration: none;
}

.event-notice-content h3 a:hover {
  color: var(--purple);
}

.event-notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 0;
  color: #3e3246;
}

.event-notice-meta div {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.event-notice-meta dt {
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
}

.event-notice-meta dd {
  margin: 0;
  font-weight: 800;
}

.event-notice-action {
  white-space: nowrap;
}

.past-events-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.past-event-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(102, 40, 232, 0.18);
  border-radius: 20px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 248, 234, 0.98), rgba(244, 232, 209, 0.9));
  box-shadow: 0 14px 26px rgba(46, 31, 22, 0.1);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.past-event-card:hover,
.past-event-card:focus-within {
  border-color: rgba(102, 40, 232, 0.32);
  box-shadow: 0 18px 32px rgba(46, 31, 22, 0.14);
  transform: translateY(-2px);
}

.past-event-brand-badge {
  position: absolute;
  inset-block-start: 18px;
  left: 18px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 248, 234, 0.8);
  border-radius: 8px;
  padding: 3px;
  object-fit: contain;
  background: rgba(255, 248, 234, 0.9);
  box-shadow: 0 8px 16px rgba(13, 21, 53, 0.18);
}

.past-event-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  justify-content: space-between;
  padding-inline: 2px;
}

.past-event-heading h3,
.past-event-heading p {
  margin: 0;
}

.past-event-heading h3 {
  color: var(--midnight);
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-size: 1.12rem;
  line-height: 1.25;
}

.past-event-heading p,
.past-gallery-empty,
.subtle-empty {
  color: var(--muted);
}

.past-gallery-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 16px;
  background: rgba(13, 21, 53, 0.08);
}

.past-gallery-image {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.past-gallery-image.is-active {
  opacity: 1;
  pointer-events: auto;
}

.past-gallery-image:hover {
  transform: none;
  box-shadow: none;
}

.past-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.past-gallery-empty-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed rgba(102, 40, 232, 0.24);
  border-radius: 16px;
  color: var(--muted);
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.64), rgba(232, 212, 174, 0.32));
}

.past-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  background: rgba(13, 21, 53, 0.82);
}

.past-lightbox[hidden] {
  display: none;
}

.past-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.past-lightbox-close {
  position: fixed;
  inset-block-start: 18px;
  inset-inline-end: 18px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  color: #fff8ea;
  background: rgba(102, 40, 232, 0.88);
}

.past-lightbox-nav {
  position: fixed;
  top: 50%;
  width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 50%;
  color: #fff8ea;
  background: rgba(13, 21, 53, 0.58);
  transform: translateY(-50%);
}

.past-lightbox-nav.prev {
  right: 18px;
}

.past-lightbox-nav.next {
  left: 18px;
}

.card h3 {
  margin: 0 0 6px;
  color: var(--midnight);
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.2;
}

.card h3 a {
  text-decoration: none;
}

.card p {
  margin: 0;
}

.card-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.card-heading {
  border-block-end: 1px solid rgba(49, 78, 62, 0.2);
  padding-block-end: 10px;
}

.card-label {
  margin: 0 0 6px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-description {
  border: 1px solid rgba(49, 78, 62, 0.16);
  border-radius: 14px;
  padding: 12px;
  color: #3e3246;
  line-height: 1.7;
  background: rgba(255, 248, 234, 0.52);
}

.authors-page .grid.three {
  align-items: stretch;
}

.authors-page .person-card {
  height: 100%;
  min-height: 460px;
}

.authors-page .person-card .card-media {
  justify-items: center;
}

.authors-page .person-card .card-body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.authors-page .person-card .card-heading {
  min-height: 92px;
}

.authors-page .person-card .author-card-bio {
  position: relative;
  width: 100%;
  height: 176px;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: start;
  line-height: 1.68;
  scrollbar-color: rgba(102, 40, 232, 0.42) rgba(255, 248, 234, 0.34);
  scrollbar-width: thin;
}

.authors-page .person-card .author-card-bio-multiline {
  white-space: pre-line;
}

.authors-page .person-card .author-card-bio::-webkit-scrollbar {
  width: 7px;
}

.authors-page .person-card .author-card-bio::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.36);
}

.authors-page .person-card .author-card-bio::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(102, 40, 232, 0.42);
}

.authors-page .person-card .author-card-bio:focus-visible {
  outline: 2px solid rgba(102, 40, 232, 0.5);
  outline-offset: 3px;
}

.authors-page .person-card .card-actions {
  align-items: center;
  min-height: 42px;
  margin-top: auto;
}

.pill-row,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-row > span,
.card-tags > span:not(.genre-icon-row) {
  font-size: 0.86rem;
}

.card-tags > span:nth-child(2n):not(.genre-icon-row) {
  border-color: rgba(95, 59, 180, 0.32);
}

.authors-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-author-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 320px;
  overflow: visible;
  border: 1px solid rgba(102, 40, 232, 0.24);
  border-radius: 20px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 248, 234, 0.97), rgba(232, 212, 174, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    var(--soft-shadow);
}

.home-author-card::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(49, 78, 62, 0.16);
  border-radius: 14px;
  pointer-events: none;
  content: "";
}

.home-author-photo,
.home-author-body {
  position: relative;
  z-index: 1;
}

.home-author-photo {
  display: grid;
  place-items: center;
}

.home-author-photo img,
.author-initials {
  width: 112px;
  aspect-ratio: 1;
  border: 1px solid rgba(49, 78, 62, 0.24);
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 248, 234, 0.72);
  box-shadow: 0 10px 20px rgba(46, 31, 22, 0.14);
}

.author-initials {
  display: grid;
  place-items: center;
  color: var(--purple);
  font-size: 2.2rem;
  font-weight: 900;
}

.profile-initials {
  width: 220px;
  max-width: 100%;
  font-size: 4rem;
}

.home-author-body {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.home-author-body h3 {
  margin: 0;
  color: var(--midnight);
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-size: 1.28rem;
  line-height: 1.2;
}

.home-author-body h3 a {
  text-decoration: none;
}

.home-author-body p {
  min-height: 2.7em;
  margin: 0;
  color: #4c4058;
  line-height: 1.35;
}

.home-author-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
}

.home-author-tags > span:not(.genre-icon-row) {
  font-size: 0.82rem;
}

.home-author-tags > span:nth-child(2n):not(.genre-icon-row) {
  border-color: rgba(95, 59, 180, 0.32);
}

.framed-actions {
  border-block-start: 1px solid rgba(102, 40, 232, 0.2);
  padding-block-start: 12px;
}

.framed-actions .button {
  min-height: 38px;
  padding-inline: 13px;
  font-size: 0.9rem;
}

.actions .social-icon-link,
.card-actions .social-icon-link,
.framed-actions .social-icon-link {
  width: 38px;
  height: 38px;
  min-height: 38px;
}

@media (min-width: 1024px) {
  .books-page {
    width: min(1180px, calc(100% - 40px));
  }

  .books-page .grid.books {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
  }

  .books-page .book-card {
    grid-template-columns: minmax(190px, 40%) minmax(0, 1fr);
    gap: 18px;
    min-height: 540px;
    height: 100%;
    padding: 16px;
  }

  .books-page .grid.books .book-card:nth-child(even) .card-media {
    order: 0;
  }

  .books-page .book-card .card-media {
    align-self: start;
    width: 100%;
    aspect-ratio: 2 / 3;
    min-height: 0;
    border-radius: 18px;
    padding: 12px;
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 248, 234, 0.16), transparent 42%),
      linear-gradient(145deg, rgba(13, 21, 53, 0.94), rgba(49, 78, 62, 0.5));
  }

  .books-page .author-book-stack--full .author-book-stack__cover-trigger {
    inset: 12px;
  }

  .books-page .book-card img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    object-position: center;
    background: rgba(9, 15, 39, 0.6);
  }

  .books-page .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
  }

  .books-page .card-heading {
    display: grid;
    gap: 6px;
  }

  .books-page .card-heading h3 {
    min-height: 2.35em;
    margin: 0;
    overflow: hidden;
    line-height: 1.16;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .books-page .card-heading .meta {
    min-height: 1.45em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .books-page .card-tags {
    align-items: center;
    min-height: 76px;
    gap: 8px;
  }

  .books-page .card-tags > span:not(.genre-icon-row) {
    max-width: 100%;
    min-height: 34px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .books-page .card-tags > span:first-child {
    max-width: 100%;
  }

  .books-page .card-description {
    min-height: 10.4em;
    max-height: 10.4em;
    overflow: hidden;
    line-height: 1.72;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
  }

  .books-page .framed-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-block-start: 14px;
  }

  .books-page .framed-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 12px;
    border-radius: 22px;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (min-width: 1500px) {
  .books-page {
    width: min(1640px, calc(100% - 64px));
  }

  .books-page .grid.books {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  padding: 18px;
  border-color: rgba(49, 78, 62, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.96), rgba(236, 219, 186, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    var(--soft-shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

label.is-active {
  color: var(--purple);
}

label.is-active input,
label.is-active select {
  border-color: rgba(102, 40, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(102, 40, 232, 0.12);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(49, 78, 62, 0.24);
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--body);
  font: inherit;
  background:
    linear-gradient(145deg, rgba(255, 248, 234, 0.98), rgba(246, 237, 219, 0.9));
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(102, 40, 232, 0.58);
  box-shadow: 0 0 0 3px rgba(102, 40, 232, 0.14);
}

textarea {
  resize: vertical;
}

.profile,
.book-detail,
.event-detail {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: start;
  margin-bottom: 42px;
  border: 1px solid rgba(255, 248, 234, 0.6);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.96), rgba(246, 237, 219, 0.9));
  box-shadow: var(--soft-shadow);
}

.profile > img,
.book-detail > img,
.event-detail > img {
  width: 100%;
  border: 1px solid rgba(78, 55, 24, 0.18);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(46, 31, 22, 0.18);
}

.book-detail > img {
  max-height: 560px;
  object-fit: cover;
}

.book-showcase {
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
}

.book-showcase.no-cover {
  grid-template-columns: 1fr;
}

.book-showcase-cover {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.combined-book-entry {
  scroll-margin-top: 112px;
}

.combined-book-entry + .combined-book-entry {
  margin-block-start: clamp(56px, 8vw, 88px);
  border-block-start: 1px solid rgba(102, 40, 232, 0.24);
  padding-block-start: clamp(48px, 7vw, 72px);
}

.book-synopsis {
  max-width: 72ch;
  margin-block: 18px;
  color: #3b3046;
  font-size: 1.08rem;
}

.book-synopsis p,
.book-panel p,
.reading-sample p,
.author-mini p {
  margin: 0 0 1em;
}

.book-panel {
  color: #3b3046;
}

.reading-sample {
  max-width: 86ch;
  line-height: 1.85;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-inline-start: 22px;
}

.format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  overflow: visible;
}

.format-icon {
  width: 38px;
  height: 38px;
}

.book-meta-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  color: rgba(255, 248, 234, 0.84);
  overflow: visible;
}

.book-meta-icons > span:not(.genre-icon-row) {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fffaf0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.18);
}

.book-detail-genre-icons {
  margin-inline-end: 2px;
}

/* Yotam Shapira book skin: one illuminated manuscript, scoped to these pages. */
.yotam-book-page {
  --yotam-gold: #bd8a32;
  --yotam-deep-gold: #806025;
  --yotam-turquoise: #4aa8a4;
}

.yotam-manuscript {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(167, 117, 39, 0.42);
  border-radius: 34px;
  padding: clamp(22px, 4vw, 48px);
  background: linear-gradient(135deg, #fff9ea 0%, #f5e6c7 52%, #fff6e4 100%);
  box-shadow:
    inset 0 0 0 6px rgba(255, 249, 232, 0.62),
    inset 0 0 0 7px rgba(189, 138, 50, 0.2),
    0 20px 46px rgba(32, 23, 38, 0.17);
}

.yotam-manuscript::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(30deg, transparent 48%, rgba(74, 168, 164, 0.45) 49%, rgba(74, 168, 164, 0.45) 50%, transparent 51%),
    linear-gradient(150deg, transparent 48%, rgba(189, 138, 50, 0.4) 49%, rgba(189, 138, 50, 0.4) 50%, transparent 51%),
    radial-gradient(circle at 76% 20%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px);
  background-size: 148px 148px, 148px 148px, 96px 96px;
  opacity: 0.022;
  content: "";
}

.yotam-manuscript::after {
  position: absolute;
  inset: 13px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(189, 138, 50, 0.18);
  border-radius: 25px;
  content: "";
}

.yotam-manuscript__content {
  position: relative;
  z-index: 2;
}

.yotam-page-ornaments {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.yotam-vine-edge {
  position: absolute;
  inset-block: -90px;
  width: 190px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 190px 100%;
  mix-blend-mode: multiply;
  filter: saturate(0.76) contrast(1.02);
  mask-image: radial-gradient(ellipse 76% 58% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.94) 34%, rgba(0, 0, 0, 0.52) 64%, transparent 94%);
  -webkit-mask-image: radial-gradient(ellipse 76% 58% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.94) 34%, rgba(0, 0, 0, 0.52) 64%, transparent 94%);
  opacity: 0.16;
}

.yotam-vine-edge-start {
  inset-inline-start: -88px;
  background-image: url("/static/yotam/vine-left.jpeg");
}

.yotam-vine-edge-end {
  inset-inline-end: -88px;
  background-image: url("/static/yotam/vine-right.jpeg");
}

.yotam-gold-corner {
  position: absolute;
  inset-block-end: 25px;
  width: 30px;
  height: 30px;
  background: url("/static/yotam/magic-star.jpeg") center / contain no-repeat;
  filter: sepia(1) saturate(1.35) hue-rotate(348deg) brightness(0.9);
  mix-blend-mode: multiply;
  mask-image: radial-gradient(circle, #000 28%, rgba(0, 0, 0, 0.58) 60%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle, #000 28%, rgba(0, 0, 0, 0.58) 60%, transparent 88%);
  opacity: 0.44;
}

.yotam-gold-corner-start {
  inset-inline-start: 38px;
}

.yotam-gold-corner-end {
  inset-inline-end: 38px;
}

.yotam-manuscript .book-detail {
  border: 0;
  border-radius: 0;
  padding: clamp(4px, 1.2vw, 12px);
  background: transparent;
  box-shadow: none;
}

.yotam-manuscript .book-showcase > div:last-child {
  position: relative;
  isolation: isolate;
}

.yotam-manuscript .book-showcase > div:last-child::before {
  position: absolute;
  inset: -128px -164px auto auto;
  z-index: 0;
  width: min(580px, 92vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/static/yotam/magic-star.jpeg") center / contain no-repeat;
  filter: sepia(1) saturate(0.88) hue-rotate(348deg);
  mix-blend-mode: multiply;
  mask-image: radial-gradient(circle, #000 22%, rgba(0, 0, 0, 0.84) 49%, rgba(0, 0, 0, 0.28) 69%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle, #000 22%, rgba(0, 0, 0, 0.84) 49%, rgba(0, 0, 0, 0.28) 69%, transparent 88%);
  opacity: 0.065;
  content: "";
}

.yotam-manuscript .book-showcase > div:last-child > * {
  position: relative;
  z-index: 1;
}

.yotam-manuscript .book-showcase h1,
.yotam-manuscript .book-showcase h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block-end: 18px;
  color: #17203f;
  letter-spacing: 0.01em;
}

.yotam-manuscript .book-showcase h1::before,
.yotam-manuscript .book-showcase h2::before {
  display: inline-block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background: url("/static/yotam/magic-star.jpeg") center / contain no-repeat;
  filter: sepia(1) saturate(1.35) hue-rotate(348deg) brightness(0.88);
  mix-blend-mode: multiply;
  mask-image: radial-gradient(circle, #000 30%, rgba(0, 0, 0, 0.62) 62%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, rgba(0, 0, 0, 0.62) 62%, transparent 90%);
  opacity: 0.86;
  content: "";
}

.yotam-manuscript .book-showcase h1::after,
.yotam-manuscript .book-showcase h2::after {
  position: absolute;
  inset-block-end: 2px;
  inset-inline-start: 0;
  width: min(116px, 24vw);
  height: 7px;
  background:
    radial-gradient(circle at 50% 50%, rgba(189, 138, 50, 0.9) 0 1px, transparent 2px),
    linear-gradient(90deg, transparent, rgba(189, 138, 50, 0.68) 18%, rgba(189, 138, 50, 0.68) 82%, transparent);
  background-size: 12px 7px, 100% 1px;
  background-position: center, center;
  background-repeat: repeat-x, no-repeat;
  content: "";
}

.series-bookshelf {
  position: relative;
}

.series-bookshelf__hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.series-bookshelf__entry[hidden] {
  display: none;
}

.series-bookshelf__entry.is-active .combined-book-entry {
  animation: yotam-bookshelf-entry-in 300ms cubic-bezier(0.22, 0.7, 0.24, 1);
}

@keyframes yotam-bookshelf-entry-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.series-bookshelf__cover-stage {
  position: relative;
  display: grid;
  gap: 14px;
  width: 100%;
  align-self: start;
  isolation: isolate;
}

.series-bookshelf__cover-stage::before {
  position: absolute;
  inset: -56px -52px auto;
  z-index: 0;
  height: min(76%, 480px);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(227, 186, 98, 0.3), transparent 64%),
    radial-gradient(circle at 14% 74%, rgba(74, 168, 164, 0.12), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(255, 249, 224, 0.82), transparent 20%);
  filter: blur(10px);
  opacity: 0.66;
  content: "";
}

.yotam-manuscript .series-bookshelf__cover-stage > .book-showcase-cover {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 560px;
  border: 1px solid rgba(189, 138, 50, 0.62);
  border-radius: 20px;
  object-fit: cover;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(255, 247, 221, 0.72),
    0 0 34px rgba(205, 158, 69, 0.28),
    0 26px 46px rgba(46, 31, 22, 0.28);
  filter: saturate(1.04) contrast(1.01);
}

.series-bookshelf__dust {
  position: absolute;
  inset: -12px -12px auto;
  z-index: 1;
  height: min(72%, 400px);
  pointer-events: none;
  background:
    radial-gradient(circle at 7% 22%, rgba(255, 248, 221, 0.96) 0 1px, transparent 2px),
    radial-gradient(circle at 96% 30%, rgba(215, 169, 74, 0.76) 0 1px, transparent 2px),
    radial-gradient(circle at 4% 72%, rgba(74, 168, 164, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 91% 83%, rgba(255, 255, 255, 0.92) 0 1px, transparent 2px);
  background-size: 58px 64px, 74px 82px, 86px 74px, 66px 78px;
  opacity: 0.36;
}

.series-bookshelf__shelf {
  position: relative;
  z-index: 2;
  min-height: 136px;
  padding: 34px 20px 25px;
  border-radius: 14px 14px 6px 6px;
  background:
    linear-gradient(180deg, rgba(255, 249, 232, 0.34), rgba(226, 198, 150, 0.08)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 28%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.series-bookshelf__shelf::before {
  position: absolute;
  inset: 18px 10px 8px;
  z-index: 0;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, rgba(133, 79, 37, 0.08), transparent 64%);
  box-shadow: inset 0 1px 0 rgba(122, 76, 37, 0.08);
  content: "";
}

.series-bookshelf__shelf-title {
  position: absolute;
  inset-block-start: 9px;
  inset-inline: 14px;
  margin: 0;
  color: #59411d;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 252, 238, 0.84);
}

.series-bookshelf__shelf-books {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 80px;
  align-items: end;
  justify-content: center;
  padding-inline: 10px;
}

.series-bookshelf__shelf-book {
  position: relative;
  z-index: 1;
  display: block;
  width: 58px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid rgba(96, 62, 27, 0.7);
  border-radius: 5px 5px 3px 3px;
  padding: 0;
  background: #fff8ea;
  box-shadow: 0 10px 14px rgba(53, 34, 17, 0.32);
  cursor: pointer;
  transform: rotate(-2.4deg);
  transition: transform 280ms ease, box-shadow 280ms ease, filter 280ms ease;
}

.series-bookshelf__shelf-book + .series-bookshelf__shelf-book {
  z-index: 2;
  margin-inline-start: -15px;
  transform: translateY(7px) rotate(2deg);
}

.series-bookshelf__shelf-book.is-current {
  z-index: 4;
  border-color: var(--yotam-gold);
  box-shadow:
    0 0 0 2px rgba(255, 246, 212, 0.9),
    0 0 0 4px rgba(189, 138, 50, 0.62),
    0 9px 15px rgba(53, 34, 17, 0.34);
  cursor: default;
  filter: saturate(1.06);
  transform: translateY(-5px) rotate(-0.8deg);
}

.series-bookshelf__shelf-book:hover:not(:disabled),
.series-bookshelf__shelf-book:focus-visible:not(:disabled) {
  z-index: 5;
  filter: brightness(1.05) saturate(1.08);
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 12px 18px rgba(53, 34, 17, 0.36);
}

.series-bookshelf__shelf-book:focus-visible {
  outline: 3px solid #17203f;
  outline-offset: 4px;
}

.series-bookshelf__shelf-book img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-bookshelf__wood {
  position: absolute;
  inset-inline: -4px;
  inset-block-end: 5px;
  z-index: 1;
  height: 21px;
  border: 1px solid rgba(84, 45, 17, 0.72);
  border-radius: 3px 3px 8px 8px;
  background:
    linear-gradient(180deg, rgba(255, 230, 168, 0.34), transparent 34%),
    repeating-linear-gradient(4deg, #895026 0 4px, #6b3b1d 5px 8px, #9c6533 9px 13px);
  box-shadow:
    inset 0 2px 0 rgba(255, 238, 190, 0.28),
    0 10px 15px rgba(55, 31, 15, 0.26);
}

.yotam-manuscript .section {
  gap: 17px;
  border-radius: 18px;
  padding-inline: clamp(12px, 2vw, 22px);
  background: transparent;
  overflow: visible;
}

.yotam-manuscript .section::before {
  display: none;
}

.yotam-manuscript .section + .section {
  margin-block-start: 14px;
  border-block-start: 0;
}

.yotam-manuscript .section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yotam-manuscript .section h2::before,
.yotam-divider-star {
  display: inline-block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  background: url("/static/yotam/magic-star.jpeg") center / contain no-repeat;
  filter: sepia(1) saturate(1.35) hue-rotate(348deg) brightness(0.88);
  mix-blend-mode: multiply;
  mask-image: radial-gradient(circle, #000 30%, rgba(0, 0, 0, 0.62) 62%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, rgba(0, 0, 0, 0.62) 62%, transparent 90%);
  opacity: 0.72;
  content: "";
}

.yotam-manuscript .panel {
  border-color: rgba(189, 138, 50, 0.24);
  background: rgba(255, 250, 236, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.yotam-illuminated-divider {
  display: grid;
  grid-template-columns: minmax(72px, 180px) 24px minmax(72px, 180px);
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: min(470px, 82%);
  height: 34px;
  margin: clamp(16px, 3vw, 28px) auto;
  overflow: hidden;
}

.yotam-divider-star {
  width: 23px;
  height: 23px;
  opacity: 0.56;
}

.yotam-divider-vine {
  position: relative;
  display: block;
  height: 26px;
  overflow: hidden;
}

.yotam-divider-vine::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 170px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: saturate(0.72) contrast(1.02);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent, #000 26%, #000 74%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%, #000 74%, transparent);
  opacity: 0.28;
  transform: translate(-50%, -50%) rotate(90deg);
  content: "";
}

.yotam-divider-vine-start::before {
  background-image: url("/static/yotam/vine-left.jpeg");
}

.yotam-divider-vine-end::before {
  background-image: url("/static/yotam/vine-right.jpeg");
  transform: translate(-50%, -50%) rotate(-90deg);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-grid blockquote {
  max-width: none;
}

cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 800;
}

.author-mini {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.author-mini img {
  width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.author-mini h3 {
  margin: 0 0 8px;
}

.social-icons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow: visible;
}

.icon-link {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(102, 40, 232, 0.28);
  border-radius: 50%;
  color: var(--purple);
  font-weight: 900;
  text-decoration: none;
  background: rgba(102, 40, 232, 0.08);
}

.event-hero > img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

blockquote {
  max-width: 820px;
  margin: 0;
  border-inline-start: 4px solid var(--gold);
  border-radius: 18px;
  padding: 22px 26px;
  color: #3b3046;
  font-size: 1.12rem;
  background: rgba(255, 248, 234, 0.82);
  box-shadow: var(--soft-shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.hp {
  display: none;
}

.contact-panel,
.panel {
  padding: 24px;
}

.masonry {
  columns: 3 220px;
  column-gap: 16px;
}

.masonry img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  border: 0;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  cursor: zoom-in;
}

.gallery-item img {
  margin-bottom: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37, 26, 48, 0.18);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  border: 0;
  background: rgba(8, 12, 30, 0.84);
  cursor: zoom-out;
}

.lightbox img {
  max-width: min(1120px, 100%);
  max-height: 88svh;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.lightbox[hidden] {
  display: none;
}

.fair-mode {
  width: min(960px, calc(100% - 32px));
  min-height: 72svh;
  margin-inline: auto;
  display: grid;
  align-content: center;
  gap: 18px;
  padding-block: 64px;
  color: var(--ink);
}

.fair-actions .button {
  min-height: 78px;
  min-width: 190px;
  font-size: 1.2rem;
}

.auth-shell {
  min-height: 72svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stats div {
  display: grid;
  border: 1px solid rgba(255, 248, 234, 0.66);
  border-radius: 20px;
  padding: 18px;
  color: var(--body);
  background: var(--parchment-light);
  box-shadow: var(--soft-shadow);
}

.stats strong {
  color: var(--purple);
  font-size: 2.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: start;
}

.error {
  color: #a11d35;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 248, 234, 0.18);
  padding-block: 26px 34px;
  color: rgba(248, 242, 230, 0.75);
  font-size: 0.94rem;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes particles-float {
  from {
    opacity: 0.48;
    filter: brightness(0.9);
  }

  to {
    opacity: 0.86;
    filter: brightness(1.18);
  }
}

@keyframes candle-flicker {
  from {
    opacity: 0.72;
    filter: brightness(0.95);
  }

  45% {
    opacity: 0.9;
    filter: brightness(1.08);
  }

  to {
    opacity: 0.78;
    filter: brightness(1);
  }
}

@media (max-width: 980px) {
  .books-page-hero {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    gap: 24px;
  }

  .books-hero-art {
    aspect-ratio: 4 / 3;
  }

  .authors-page-hero {
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
    gap: 24px;
    min-height: clamp(380px, 48vw, 520px);
    padding-block: clamp(96px, 13vw, 130px) clamp(44px, 7vw, 70px);
  }

  .authors-page-hero .page-title {
    transform: none;
  }

  .authors-hero-art {
    width: min(62vw, 720px);
    height: calc(100% - 54px);
    inset-block-start: 54px;
  }

  .events-page-hero {
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
    min-height: clamp(320px, 42vw, 460px);
    padding: clamp(24px, 4vw, 42px);
  }

  .events-hero-art {
    width: min(100%, 500px);
  }

  .grid.two,
  .grid.three,
  .grid.books,
  .catalogue-grid,
  .review-grid,
  .filters,
  .stats,
  .portal-strip {
    grid-template-columns: 1fr 1fr;
  }

  .book-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .grid.books .book-card:nth-child(even) .card-media {
    order: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    min-height: clamp(500px, 64svh, 640px);
    gap: 20px;
  }

  .hero-dragon {
    width: clamp(330px, 36vw, 450px);
    max-width: 76%;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 5.8vw, 3.8rem);
  }
}

@media (max-width: 720px) {
  .metadata-badge {
    font-size: 0.82rem;
  }

  .site-header {
    position: static;
    display: grid;
    border-radius: 24px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 12px;
    margin-top: -18px;
    border-radius: 0 0 24px 24px;
    padding: 32px 24px 40px;
  }

  .hero-stage {
    order: 1;
    min-height: min(520px, 96vw);
    width: 100%;
  }

  .hero-panel {
    order: 2;
    justify-self: center;
    max-width: 540px;
    text-align: center;
  }

  .hero p {
    max-width: none;
  }

  .hero-dragon {
    left: 50%;
    bottom: 8px;
    width: min(360px, 84vw);
    max-width: none;
    transform: translate3d(-50%, calc(var(--hero-scroll, 0px) * 0.06), 0);
  }

  .books-page-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-block: 0 24px;
  }

  .books-page-hero .page-title {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
  }

  .books-hero-art {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 520px);
    justify-self: center;
    aspect-ratio: 3 / 2;
  }

  .books-hero-art img {
    object-fit: contain;
    object-position: center;
  }

  .authors-page-hero {
    display: block;
    min-height: clamp(280px, 72vw, 340px);
    margin-block: 0 24px;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background:
      linear-gradient(
        to left,
        rgba(8, 12, 42, 0.96) 0%,
        rgba(8, 12, 42, 0.78) 45%,
        rgba(8, 12, 42, 0.28) 100%
      ),
      url("/static/authors-dragon-writer.png?v=20260710-authors-wide-hero") 35% center / 124% auto no-repeat,
      #0d1535;
    box-shadow: 0 18px 46px rgba(4, 8, 28, 0.28);
  }

  .authors-page-hero::before {
    display: none;
  }

  .authors-page-hero::after {
    position: absolute;
    inset: auto 0 0;
    z-index: 0;
    height: 72px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(245, 237, 221, 0.22));
    content: "";
  }

  .authors-page-hero .page-title {
    position: relative;
    z-index: 1;
    min-height: clamp(280px, 72vw, 340px);
    margin: 0;
    padding: 34px 22px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff8ea;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
    transform: none;
  }

  .authors-page-hero .page-title p {
    color: rgba(255, 248, 234, 0.84);
  }

  .authors-hero-art {
    display: none;
  }

  .events-page-hero {
    display: block;
    min-height: clamp(280px, 72vw, 340px);
    margin-block: 0 24px;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background:
      linear-gradient(
        to left,
        rgba(8, 12, 42, 0.96) 0%,
        rgba(8, 12, 42, 0.78) 45%,
        rgba(8, 12, 42, 0.3) 100%
      ),
      url("/static/events-dragon.png?v=20260710-events-hero") 34% center / 132% auto no-repeat,
      #0d1535;
    box-shadow: 0 18px 46px rgba(4, 8, 28, 0.28);
  }

  .events-page-hero::before {
    display: none;
  }

  .events-page-hero::after {
    position: absolute;
    inset: auto 0 0;
    z-index: 0;
    height: 72px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(245, 237, 221, 0.22));
    content: "";
  }

  .events-page-title {
    position: relative;
    z-index: 1;
    min-height: clamp(280px, 72vw, 340px);
    margin: 0;
    padding: 34px 22px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff8ea;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
  }

  .events-page-title p {
    color: rgba(255, 248, 234, 0.84);
  }

  .events-hero-art {
    display: none;
  }

  .grid.two,
  .grid.three,
  .grid.books,
  .catalogue-grid,
  .review-grid,
  .filters,
  .stats,
  .portal-strip,
  .profile,
  .book-detail,
  .event-detail,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    grid-template-columns: 1fr;
  }

  .catalogue-card,
  .author-mini {
    grid-template-columns: 1fr;
  }

  .catalogue-cover {
    width: 100%;
    max-width: 220px;
  }

  .catalogue-cover img {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .person-card {
    grid-template-columns: 1fr;
  }

  .authors-page .person-card {
    min-height: 0;
  }

  .authors-page .person-card .card-heading {
    min-height: 0;
  }

  .authors-page .person-card .author-card-bio {
    max-height: 240px;
    height: auto;
  }

  .book-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .author-book-stack-card .card-media,
  .author-book-stack-card .catalogue-cover {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }

  .author-book-stack__active-cover {
    flex: 0 0 100%;
  }

  .author-book-stack--full .author-book-stack__cover-trigger,
  .author-book-stack--compact .author-book-stack__cover-trigger {
    position: relative;
    inset: auto;
    z-index: 5;
    flex: 0 0 48px;
    width: 48px;
    height: 68px;
    margin-block-start: 2px;
    border-radius: 8px;
    filter: brightness(0.94) saturate(0.96);
    transform: none;
  }

  .author-book-stack__cover-trigger:hover,
  .author-book-stack__cover-trigger:focus-visible {
    filter: brightness(1.05) saturate(1);
    transform: none;
  }

  .author-book-stack__cover-trigger img,
  .author-book-stack-card:hover .author-book-stack__cover-trigger img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 7px;
  }

  .event-card,
  .person-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .person-card {
    grid-template-columns: 1fr;
  }

  .person-card img,
  .event-card img {
    width: 96px;
  }

  .person-card img {
    width: min(180px, 100%);
  }

  .site-footer {
    display: grid;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .authors-teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .past-events-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .authors-teaser-grid {
    grid-template-columns: 1fr;
  }

  .home-author-card {
    min-height: 0;
  }

  .events-scroller {
    grid-auto-columns: minmax(280px, 92%);
  }

  .event-scroll-card {
    grid-template-columns: 1fr;
  }

  .event-image-link {
    min-height: 190px;
  }

  .event-meta div {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .home-events-strip {
    grid-template-columns: auto minmax(0, 1fr);
    max-width: 100%;
  }

  .home-event-ticker {
    mask-image: none;
  }

  .home-event-ticker-track {
    animation-duration: 14s;
  }

  .events-page-title {
    border-radius: 0;
    padding: 34px 22px 42px;
  }

  .events-notice-panel {
    max-height: 430px;
  }

  .event-notice-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
  }

  .event-notice-thumb {
    width: 92px;
  }

  .event-notice-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .event-notice-meta {
    display: grid;
    gap: 5px;
  }

  .events-section-heading {
    grid-template-columns: 1fr;
  }

  .events-section-heading h2,
  .events-heading-line,
  .events-section-heading small {
    grid-column: 1;
  }

  .past-events-list {
    grid-template-columns: 1fr;
  }

  .past-lightbox-nav.prev {
    right: 8px;
  }

  .past-lightbox-nav.next {
    left: 8px;
  }
}

@media (max-width: 720px) {
  .yotam-manuscript {
    border-radius: 25px;
    padding: 20px 16px 28px;
  }

  .yotam-manuscript::after {
    inset: 8px;
    border-radius: 18px;
  }

  .yotam-vine-edge {
    inset-block: -40px;
    width: 112px;
    background-size: 112px 100%;
    opacity: 0.1;
  }

  .yotam-vine-edge-start {
    inset-inline-start: -56px;
  }

  .yotam-vine-edge-end {
    inset-inline-end: -56px;
  }

  .yotam-gold-corner {
    inset-block-end: 16px;
    width: 22px;
    height: 22px;
  }

  .yotam-gold-corner-start {
    inset-inline-start: 23px;
  }

  .yotam-gold-corner-end {
    inset-inline-end: 23px;
  }

  .yotam-manuscript .book-showcase > div:last-child::before {
    display: block;
    inset: -80px -120px auto auto;
    width: min(390px, 108vw);
    opacity: 0.045;
  }

  .yotam-manuscript .book-showcase h1::before,
  .yotam-manuscript .book-showcase h2::before {
    width: 24px;
    height: 24px;
  }

  .yotam-manuscript .book-showcase h1::after,
  .yotam-manuscript .book-showcase h2::after {
    width: 42px;
  }

  .series-bookshelf__cover-stage {
    gap: 12px;
  }

  .series-bookshelf__cover-stage::before {
    inset: -40px -34px auto;
    height: min(74%, 380px);
    opacity: 0.48;
  }

  .series-bookshelf__shelf {
    min-height: 128px;
    padding: 33px 16px 24px;
  }

  .series-bookshelf__shelf-book {
    width: 54px;
  }

  .yotam-manuscript .section {
    padding-inline: 8px;
  }

  .yotam-illuminated-divider {
    grid-template-columns: minmax(52px, 110px) 22px minmax(52px, 110px);
    gap: 8px;
    width: min(320px, 88%);
  }

  .yotam-divider-vine::before {
    height: 126px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .hero-layer,
  .hero-particles,
  .hero-dragon,
  .hero::before {
    transform: none !important;
  }

  .past-gallery-image {
    transition: none !important;
  }

  .home-event-ticker-track {
    animation: none !important;
  }
}

/* Preserve the complete supplied cover art for יום יוליאני in every existing book frame. */
img[src="/static/books/julian-day/cover.jpg"],
img[src="/static/books/the-day-you-were-born/cover.jpeg"] {
  object-fit: contain;
}

.book-showcase-cover[src="/static/books/julian-day/cover.jpg"],
.book-showcase-cover[src="/static/books/the-day-you-were-born/cover.jpeg"] {
  aspect-ratio: 2 / 3;
}

.articles-page,
.article-page {
  min-height: 68svh;
}

.articles-page__header,
.article-page__header {
  max-width: 900px;
  margin-block-end: clamp(28px, 5vw, 52px);
  color: var(--ink);
}

.articles-page__header h1,
.article-page__header h1 {
  margin: 0;
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12;
}

.article-list {
  display: grid;
  gap: 22px;
}

.article-list--home {
  max-width: 1080px;
}

.section-action {
  margin: 22px 0 0;
}

.article-search {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-block-end: 24px;
  color: var(--ink);
  font-weight: 850;
}

.article-search input {
  min-height: 48px;
  border: 1px solid rgba(102, 40, 232, 0.32);
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--midnight);
  font: inherit;
  background: rgba(255, 250, 238, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.article-search input:focus-visible {
  outline: 3px solid rgba(102, 40, 232, 0.62);
  outline-offset: 3px;
}

.article-ribbon {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(102, 40, 232, 0.28);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(90deg, rgba(102, 40, 232, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(255, 248, 234, 0.98), rgba(234, 217, 184, 0.94));
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-ribbon::after {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--purple), var(--gold));
  content: "";
}

.article-ribbon:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 40, 232, 0.48);
  box-shadow: 0 18px 38px rgba(37, 26, 48, 0.17);
}

.article-ribbon__author {
  display: flex;
  gap: 14px;
  align-items: center;
}

.article-ribbon__author-photo {
  flex: 0 0 auto;
  border-radius: 50%;
}

.article-ribbon__author-photo img {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(215, 169, 74, 0.72);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(37, 26, 48, 0.18);
}

.article-ribbon__category,
.article-ribbon__date,
.article-ribbon__author-name {
  display: block;
}

.article-ribbon__category {
  margin-block-end: 2px;
  color: var(--purple);
  font-size: 0.86rem;
  font-weight: 900;
}

.article-ribbon__date {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-ribbon__author-name,
.article-author__name {
  color: var(--midnight);
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-ribbon__content h2 {
  margin: 0 0 8px;
  color: var(--midnight);
  font-family: Heebo, Rubik, Assistant, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.article-ribbon__content h2 a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.article-ribbon__content p {
  margin: 0 0 16px;
  color: var(--body);
}

.article-ribbon a:focus-visible,
.article-page a:focus-visible {
  outline: 3px solid rgba(102, 40, 232, 0.7);
  outline-offset: 4px;
  border-radius: 5px;
}

.article-empty-state {
  max-width: 760px;
  margin-inline: auto;
}

.article-empty-state h2 {
  margin-block-start: 0;
  color: var(--midnight);
}

.article-back-link {
  display: inline-flex;
  margin-block-end: 24px;
  color: var(--ink);
  font-weight: 900;
  text-underline-offset: 4px;
}

.article-page__header time {
  display: block;
  margin-block-start: 14px;
  color: rgba(248, 242, 230, 0.78);
  font-weight: 700;
}

.article-feature-image {
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid rgba(255, 248, 234, 0.38);
  border-radius: 24px;
  background: var(--parchment-light);
  box-shadow: var(--shadow);
}

.article-feature-image img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.article-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  border: 1px solid rgba(49, 78, 62, 0.28);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 46px);
  background: linear-gradient(145deg, rgba(255, 248, 234, 0.98), rgba(238, 223, 194, 0.96));
  box-shadow: var(--soft-shadow);
}

.article-copy {
  max-width: 76ch;
  font-size: clamp(1.04rem, 1.35vw, 1.16rem);
  line-height: 1.85;
}

.article-copy h2,
.article-copy h3 {
  color: var(--midnight);
  font-family: Heebo, Rubik, Assistant, sans-serif;
  line-height: 1.25;
}

.article-copy a,
.article-related-books a {
  color: var(--purple);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-author {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 8px;
  justify-items: center;
  border: 1px solid rgba(102, 40, 232, 0.2);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  background: rgba(255, 250, 238, 0.72);
}

.article-author__photo {
  display: block;
  width: min(150px, 100%);
  border-radius: 18px;
}

.article-author__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(37, 26, 48, 0.18);
}

.article-author span {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-related-books {
  display: block;
  margin-block-start: 36px;
  border-block-start: 1px solid rgba(102, 40, 232, 0.18);
  padding-block-start: 22px;
  color: var(--body);
}

.article-related-books h2 {
  font-size: 1.25rem;
}

@media (max-width: 720px) {
  .articles-page__header,
  .article-page__header {
    margin-block-end: 28px;
  }

  .article-ribbon {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .article-ribbon__author {
    order: 2;
    border-block-start: 1px solid rgba(102, 40, 232, 0.16);
    padding-block-start: 16px;
  }

  .article-page__layout {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .article-author {
    position: static;
    order: -1;
    grid-template-columns: 72px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: start;
  }

  .article-author__photo {
    grid-row: 1 / span 2;
    width: 72px;
  }

  .article-author__photo img {
    aspect-ratio: 1;
    border-radius: 50%;
  }
}
