:root {
  --bone: #f3ecdd;
  --bone-deep: #e8dec8;
  --paper: #fffaf0;
  --wine: #4b1224;
  --wine-deep: #34081a;
  --gold: #b8923f;
  --gold-pale: #d9b989;
  --ink: #241813;
  --sage: #5b6650;
  --line: rgba(75, 18, 36, 0.2);
  --line-dark: rgba(217, 185, 137, 0.3);
  --shadow: 0 24px 72px rgba(31, 13, 16, 0.16);
  --display: "Cinzel", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --shell: min(1280px, calc(100% - 48px));
  --wide: min(1480px, calc(100% - 48px));
  --narrow: min(760px, calc(100% - 40px));
  --section: clamp(78px, 9vw, 136px);
  --radius: 10px;
  --ease: cubic-bezier(.2, .68, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 8% 8%, rgba(184,146,63,.08), transparent 34rem), var(--bone);
  color: var(--ink);
  font-family: var(--gh-font-body, var(--body));
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 4px; }
::selection { background: var(--wine); color: var(--bone); }

.shell { width: var(--shell); margin-inline: auto; }
.shell-wide { width: var(--wide); margin-inline: auto; }
.shell-narrow { width: var(--narrow); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; top: 12px; left: 12px; transform: translateY(-160%); padding: 9px 13px; background: var(--bone); color: var(--wine-deep); font-family: var(--display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, h4 { margin: 0; font-family: var(--gh-font-heading, var(--display)); font-weight: 500; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(3.1rem, 7vw, 7.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2.35rem, 4.8vw, 5.2rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.55rem, 2.3vw, 2.6rem); }
p { margin-block: 0 1em; }
.kicker, .utility, .world-number, .post-card-meta, .back-link, .author-count {
  font-family: var(--display);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .19em;
  line-height: 1.4;
  text-transform: uppercase;
}
.kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; color: var(--wine); }
.kicker::before { width: 34px; height: 1px; background: currentColor; content: ""; flex: 0 0 auto; }
.kicker.on-dark { color: var(--gold-pale); }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--display);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--bone); color: var(--wine-deep); }
.button-dark { border-color: rgba(243,236,221,.45); background: rgba(36,24,19,.54); color: var(--bone); }
.button-wine { background: var(--wine); color: var(--bone); }
.button-ghost { border-color: var(--line-dark); color: var(--bone); }
.button-outline { border-color: rgba(75,18,36,.45); background: transparent; color: var(--wine-deep); }
.button-small { min-height: 40px; padding: 9px 16px; font-size: .59rem; }

/* Header */
.site-header { position: relative; z-index: 60; height: 82px; border-bottom: 1px solid rgba(217,185,137,.2); background: var(--wine-deep); color: var(--bone); }
.header-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: auto; max-width: 250px; height: 42px; object-fit: contain; object-position: left center; }
.brand-seal { width: 39px; height: 39px; filter: brightness(0) saturate(100%) invert(80%) sepia(27%) saturate(651%) hue-rotate(357deg) brightness(91%); }
.brand-type { display: grid; font-family: var(--display); line-height: 1; text-transform: uppercase; }
.brand-type strong { font-size: .86rem; font-weight: 500; letter-spacing: .14em; }
.brand-type span { margin-top: 6px; color: var(--gold-pale); font-size: .52rem; letter-spacing: .27em; }
.site-navigation { display: flex; align-items: center; gap: clamp(15px, 2vw, 30px); }
.site-navigation > a:not(.button), .nav-search { border: 0; background: none; color: inherit; cursor: pointer; font-family: var(--display); font-size: .59rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.site-navigation > a:hover, .nav-search:hover { color: var(--gold-pale); }
.menu-toggle { display: none; border: 0; background: none; color: var(--bone); font-family: var(--display); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }

/* Home hero */
.library-hero { position: relative; min-height: min(820px, calc(100svh - 82px)); overflow: hidden; display: grid; align-items: end; color: var(--bone); background: var(--ink); }
.library-hero-media { position: absolute; inset: 0; }
.library-hero-media::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,9,8,.92) 0%, rgba(20,9,8,.64) 48%, rgba(20,9,8,.22) 100%), linear-gradient(0deg, rgba(20,9,8,.76), transparent 48%); content: ""; }
.library-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.library-hero-content { position: relative; z-index: 2; padding-block: clamp(100px, 14vw, 188px) clamp(80px, 9vw, 120px); }
.library-hero h1 { max-width: 900px; }
.hero-intro { max-width: 710px; margin: 30px 0 38px; color: rgba(243,236,221,.84); font-size: clamp(1.22rem, 2vw, 1.55rem); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.intro-strip { padding: clamp(54px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.intro-strip-grid { display: grid; grid-template-columns: minmax(190px, .55fr) 1.45fr; gap: clamp(28px, 8vw, 128px); align-items: start; }
.intro-strip-grid > p:last-child { max-width: 820px; margin: 0; color: var(--wine-deep); font-size: clamp(1.45rem, 2.8vw, 2.5rem); line-height: 1.28; }

/* Worlds */
.worlds-section { padding-top: var(--section); background: radial-gradient(circle at 78% 8%, rgba(75,18,36,.3), transparent 35rem), var(--ink); color: var(--bone); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: clamp(30px, 8vw, 120px); align-items: end; margin-bottom: clamp(48px, 7vw, 82px); }
.section-heading > p { max-width: 440px; margin: 0; color: rgba(243,236,221,.68); font-size: 1.15rem; }
.section-heading-light { color: var(--ink); }
.section-heading-light > p { color: rgba(36,24,19,.68); }
.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.world-card { position: relative; min-height: clamp(560px, 58vw, 760px); overflow: hidden; border: 1px solid var(--line-dark); border-bottom: 0; color: var(--bone); text-decoration: none; isolation: isolate; }
.world-card > img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.world-card-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, rgba(22,9,10,.94) 0%, rgba(22,9,10,.45) 60%, rgba(22,9,10,.18) 100%); }
.world-card:hover > img { transform: scale(1.035); }
.world-number { position: absolute; top: 32px; left: 34px; color: var(--gold-pale); }
.world-copy { position: absolute; right: 34px; bottom: 38px; left: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.world-copy small { margin-bottom: 20px; color: var(--gold-pale); font-family: var(--display); font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; }
.world-copy strong { max-width: 520px; font-family: var(--display); font-size: clamp(2.3rem, 3.7vw, 4.7rem); font-weight: 500; line-height: 1.04; text-wrap: balance; }
.world-copy > span { max-width: 440px; margin-top: 24px; color: rgba(243,236,221,.8); font-size: 1.08rem; line-height: 1.4; }
.world-copy em { margin-top: 30px; padding: 11px 18px; border: 1px solid rgba(217,185,137,.6); border-radius: var(--radius); color: var(--bone); font-family: var(--display); font-size: .62rem; font-style: normal; letter-spacing: .14em; text-transform: uppercase; }

/* Feeds */
.feed-section { padding: var(--section) 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(24px, 3vw, 42px); }
.post-card { min-width: 0; border-bottom: 1px solid var(--line); background: rgba(255,250,240,.42); }
.post-card-image { display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bone-deep); }
.post-card-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.post-card:hover .post-card-image > img { transform: scale(1.025); }
.post-card-placeholder { display: grid; width: 100%; height: 100%; place-items: center; }
.post-card-placeholder img { width: 94px; opacity: .44; }
.post-card-content { padding: 28px 24px 32px; }
.post-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: var(--wine); }
.post-card-meta a { text-decoration: none; }
.post-card h3 { margin-bottom: 16px; color: var(--wine-deep); }
.post-card h3 a { text-decoration: none; }
.post-card p { color: rgba(36,24,19,.72); }
.post-card .button { margin-top: 10px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 64px; font-family: var(--display); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.empty-state { grid-column: 1/-1; padding: 60px; border: 1px solid var(--line); text-align: center; }

/* Tag worlds */
.world-hero { position: relative; min-height: 760px; display: grid; align-items: end; overflow: hidden; background: var(--ink); color: var(--bone); }
.world-hero-media { position: absolute; inset: 0; }
.world-hero-media::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,9,9,.91), rgba(20,9,9,.55) 55%, rgba(20,9,9,.2)), linear-gradient(0deg, rgba(20,9,9,.75), transparent 58%); content: ""; }
.world-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.world-hero-content { position: relative; z-index: 2; padding-block: 110px 90px; }
.world-hero h1 { max-width: 920px; }
.world-description { max-width: 760px; margin: 28px 0 36px; color: rgba(243,236,221,.84); font-size: clamp(1.18rem, 1.8vw, 1.45rem); line-height: 1.48; }
.back-link { display: inline-block; margin-bottom: 90px; color: var(--gold-pale); }
.world-work-and-power { --room-accent: var(--wine); }
.world-midlife-and-reinvention { --room-accent: var(--sage); }
.world-the-coloring-room { --room-accent: var(--gold); }
.world-intro { padding: clamp(70px, 9vw, 128px) 0; border-bottom: 1px solid var(--line); background: var(--bone); }
.world-intro-grid { display: grid; grid-template-columns: minmax(160px, .45fr) 1.55fr; gap: clamp(40px, 9vw, 150px); align-items: center; }
.world-intro-grid > img { width: min(260px, 100%); color: var(--room-accent); opacity: .68; }
.world-intro h2 { max-width: 920px; color: var(--wine-deep); }
.world-intro h2 + p { max-width: 740px; margin-top: 28px; font-size: 1.28rem; }

/* Article */
.article-header { padding-top: clamp(78px, 9vw, 128px); }
.article-heading { max-width: 1050px; text-align: center; }
.article-heading .kicker { justify-content: center; text-decoration: none; }
.article-heading h1 { color: var(--wine-deep); font-size: clamp(3rem, 6.8vw, 7rem); }
.article-deck { max-width: 780px; margin: 30px auto 0; color: rgba(36,24,19,.72); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.45; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 34px; color: rgba(36,24,19,.66); font-family: var(--display); font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; }
.article-byline img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.article-feature { width: min(1200px, calc(100% - 48px)); margin-top: clamp(48px, 7vw, 88px); }
.article-feature img { width: 100%; height: auto; max-height: none; object-fit: contain; box-shadow: var(--shadow); }
.article-feature figcaption { margin-top: 10px; color: rgba(36,24,19,.6); font-size: .88rem; font-style: italic; text-align: center; }
.article-layout { display: block; width: min(1180px, calc(100% - 48px)); padding-block: clamp(70px, 9vw, 126px); }
.gh-content { min-width: 0; font-size: 1.18rem; line-height: 1.75; }
.gh-content > * { margin-top: 0; margin-bottom: 1.5em; }
.gh-content h2, .gh-content h3, .gh-content h4 { margin-top: 1.6em; margin-bottom: .62em; color: var(--wine-deep); }
.gh-content h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.gh-content h3 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
.gh-content a { color: var(--wine); }
.gh-content blockquote { margin-inline: 0; padding: 26px 0 26px 32px; border-left: 2px solid var(--gold); color: var(--wine-deep); font-size: 1.45em; font-style: italic; line-height: 1.35; }
.gh-content img { height: auto; margin-inline: auto; }
.gh-content figure { margin-inline: 0; }
.gh-content figcaption { margin-top: 9px; color: rgba(36,24,19,.62); font-size: .88rem; text-align: center; }
.gh-content hr { width: 100%; height: 1px; margin-block: 3.2em; border: 0; background: var(--line); }
.gh-content ul, .gh-content ol { padding-left: 1.25em; }
.gh-content .kg-width-wide { width: min(100vw - 48px, 1080px); margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-callout-card { border-radius: var(--radius); }

/* Ghost galleries: retain the compact editorial mosaic on larger screens. */
.gh-content .kg-gallery-card {
  --gap: 16px;
  margin-block: clamp(1.75rem, 3.5vw, 2.75rem);
}
.gh-content .kg-gallery-card.kg-width-wide { width: min(100vw - 48px, 1200px); }
.article-layout > .gh-content { width: 100%; }
.article-layout > .gh-content > * {
  width: min(100%, 820px);
  margin-right: auto;
  margin-left: auto;
}
.article-layout > .gh-content > .kg-card { width: min(100%, 960px); }
.article-layout > .gh-content > .kg-width-wide,
.article-layout > .gh-content > .kg-width-full {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  transform: none;
}
.article-layout > .gh-content > .kg-image-card img,
.article-layout > .gh-content > .kg-gallery-card img {
  display: block;
  max-width: 100%;
}
.article-layout > .gh-content > .kg-image-card {
  width: min(100%, 640px, 64vh);
  max-width: 640px;
}
.gh-content .kg-image-card > img,
.gh-content .kg-image-card > picture,
.gh-content .kg-image-card > a {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(217,185,137,.42);
  border-radius: var(--radius);
  background: #1d1212;
  box-shadow: var(--shadow);
}
.gh-content .kg-image-card > img,
.gh-content .kg-image-card > picture img,
.gh-content .kg-image-card > a img {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  object-fit: contain;
}
.gh-content .kg-gallery-card.is-op-carousel {
  width: min(100%, 640px, 64vh);
  max-width: 640px;
}
.op-carousel-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217,185,137,.42);
  border-radius: var(--radius);
  background: #1d1212;
  box-shadow: var(--shadow);
}
.op-carousel-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
}
.op-carousel-track::-webkit-scrollbar { display: none; }
.gh-content .kg-gallery-card .op-carousel-slide {
  display: grid;
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  place-items: center;
  margin: 0;
  overflow: hidden;
  background: #1d1212;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gh-content .kg-gallery-card .op-carousel-slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain;
}
.op-carousel-button {
  position: absolute;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,250,240,.7);
  border-radius: 999px;
  background: rgba(35,15,18,.82);
  color: var(--bone);
  box-shadow: 0 8px 24px rgba(25,12,13,.2);
  cursor: pointer;
  transform: translateY(-50%);
}
.op-carousel-button span { font: 2rem/1 var(--body); transform: translateY(-2px); }
.op-carousel-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.op-carousel-button:disabled { opacity: .28; cursor: default; }
.op-carousel-previous { left: 14px; }
.op-carousel-next { right: 14px; }
.op-carousel-status {
  margin: 12px 0 0;
  color: rgba(36,24,19,.66);
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .14em;
  text-align: center;
}
.article-return-nav {
  display: flex;
  width: min(100%, 820px);
  justify-content: flex-start;
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.article-footer { padding-bottom: var(--section); }
.author-box { display: grid; grid-template-columns: 170px 1fr; gap: 42px; align-items: center; padding: clamp(30px, 5vw, 64px); border: 1px solid var(--line); background: rgba(255,250,240,.58); }
.author-box > img { width: 170px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.author-box h2 { color: var(--wine-deep); font-size: clamp(2rem, 3vw, 3.1rem); }
.author-box h2 a { text-decoration: none; }
.author-box p:last-child { max-width: 690px; margin: 18px 0 0; }
.related-section { padding: var(--section) 0; border-top: 1px solid var(--line); background: var(--bone-deep); }

/* Pages and authors */
.page-header { padding: clamp(90px, 10vw, 150px) 0 64px; text-align: center; }
.page-header .kicker { justify-content: center; }
.page-header h1 { color: var(--wine-deep); }
.page-article > .gh-content { padding-block: clamp(60px, 8vw, 110px); }
.author-hero { padding: clamp(84px, 10vw, 145px) 0; background: var(--wine-deep); color: var(--bone); }
.author-hero-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.author-hero p:not(.kicker) { max-width: 680px; margin-top: 26px; color: rgba(243,236,221,.76); font-size: 1.3rem; }
.author-hero-grid > img { width: min(360px,100%); aspect-ratio: 1; justify-self: end; border-radius: 50%; object-fit: cover; }
.author-hero-grid > img.author-seal { border-radius: 0; opacity: .55; filter: brightness(0) invert(1); }
.author-count { color: var(--gold-pale) !important; font-size: .65rem !important; }
.error-page { min-height: 70vh; display: grid; place-items: center; align-content: center; padding-block: 100px; text-align: center; }
.error-page > img { width: 160px; opacity: .5; }
.error-page .kicker { justify-content: center; margin-top: 34px; }
.error-page h1 { color: var(--wine-deep); font-size: clamp(2.8rem, 6vw, 6rem); }
.error-page p:not(.kicker) { margin: 24px 0 30px; font-size: 1.25rem; }

/* Book library */
.catalog-hero { padding: clamp(88px, 11vw, 150px) 0; background: radial-gradient(circle at 78% 12%, rgba(217,185,137,.12), transparent 30rem), var(--wine-deep); color: var(--bone); }
.catalog-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(40px, 8vw, 120px); align-items: center; }
.catalog-hero h1 { max-width: 920px; }
.catalog-hero p:not(.kicker) { max-width: 760px; margin-top: 28px; color: rgba(243,236,221,.76); font-size: clamp(1.18rem, 2vw, 1.5rem); }
.catalog-hero-grid > img { width: 100%; opacity: .38; filter: brightness(0) invert(1); }
.catalog-introduction { padding-top: clamp(62px, 8vw, 104px); }
.catalog-section { padding: var(--section) 0; background: radial-gradient(circle at 9% 12%, rgba(184,146,63,.09), transparent 32rem), var(--bone); }
.catalog-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: clamp(30px, 8vw, 110px); align-items: end; margin-bottom: clamp(48px, 7vw, 84px); }
.catalog-heading > p { max-width: 420px; margin: 0; color: rgba(36,24,19,.68); font-size: 1.1rem; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 54px); }
.book-card { display: flex; min-width: 0; flex-direction: column; }
.book-cover { display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); text-decoration: none; }
.book-cover > img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: center; transition: transform 600ms var(--ease); }
.book-cover:hover > img { transform: scale(1.025); }
.book-cover-placeholder { display: grid; width: 100%; height: 100%; place-items: center; }
.book-cover-placeholder img { width: 94px; opacity: .28; }
.book-card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 28px 8px 0; }
.book-card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; color: var(--wine); font-family: var(--display); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.book-card-meta a { color: inherit; }
.book-card h3 { color: var(--wine-deep); }
.book-card h3 a { text-decoration: none; }
.book-card-content > p { margin: 16px 0 24px; color: rgba(36,24,19,.7); }
.book-card-content > .button { margin-top: auto; }
.catalog-empty { display: grid; justify-items: center; padding: clamp(60px, 9vw, 120px) 24px; border: 1px solid var(--line); text-align: center; }
.catalog-empty > img { width: 110px; margin-bottom: 30px; opacity: .3; }
.catalog-empty h3 { color: var(--wine-deep); }
.catalog-empty p { margin-top: 14px; color: rgba(36,24,19,.65); }

/* Newsletter and footer */
.newsletter-section { padding: clamp(70px, 8vw, 110px) 0; background: radial-gradient(circle at 18% 12%, rgba(217,185,137,.08), transparent 28rem), var(--wine); color: var(--bone); scroll-margin-top: 90px; }
.newsletter-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); gap: clamp(48px, 8vw, 110px); align-items: start; }
.newsletter-grid h2 { max-width: 720px; }
.newsletter-copy > p:last-child { max-width: 680px; margin: 24px 0 0; color: rgba(243,236,221,.75); font-size: 1.18rem; }
.newsletter-form { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(36,24,19,.25); }
.newsletter-email-label, .newsletter-choices legend { display: block; margin-bottom: 10px; color: var(--gold-pale); font-family: var(--display); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.newsletter-email { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid rgba(243,236,221,.35); border-radius: var(--radius); background: rgba(243,236,221,.08); color: var(--bone); }
.newsletter-email::placeholder { color: rgba(243,236,221,.48); }
.newsletter-choices { display: grid; gap: 10px; margin: 24px 0 20px; padding: 0; border: 0; }
.newsletter-choice { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid rgba(243,236,221,.2); border-radius: var(--radius); cursor: pointer; background: rgba(243,236,221,.035); transition: border-color 180ms ease, background 180ms ease; }
.newsletter-choice:hover, .newsletter-choice:has(input:checked) { border-color: var(--gold-pale); background: rgba(217,185,137,.1); }
.newsletter-choice input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--gold-pale); }
.newsletter-choice span { display: grid; gap: 4px; }
.newsletter-choice strong { font-family: var(--display); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.newsletter-choice small { color: rgba(243,236,221,.68); font-size: .9rem; line-height: 1.35; }
.newsletter-submit { width: 100%; }
.newsletter-submit-loading { display: none; }
.newsletter-form.loading .newsletter-submit-label { display: none; }
.newsletter-form.loading .newsletter-submit-loading { display: inline; }
.newsletter-choice-error, .newsletter-form-error { margin: -8px 0 16px; color: #f4c8bd; font-size: .9rem; }
.newsletter-form-error:empty { display: none; }
.newsletter-success { display: none; }
.newsletter-form.success .newsletter-form-content { display: none; }
.newsletter-form.success .newsletter-success { display: block; }
.newsletter-success h3 { font-size: clamp(2rem, 4vw, 3.2rem); }
.newsletter-success > p:last-child { margin-top: 18px; color: rgba(243,236,221,.75); }
.site-footer { padding: clamp(70px, 8vw, 110px) 0 28px; background: var(--ink); color: var(--bone); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(48px, 9vw, 130px); }
.footer-brand > img { width: 78px; margin-bottom: 30px; opacity: .52; filter: brightness(0) invert(1); }
.footer-brand h2 { max-width: 650px; font-size: clamp(2rem, 3.5vw, 3.8rem); }
.footer-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.footer-links > div { display: flex; flex-direction: column; gap: 11px; }
.footer-links .utility { color: var(--gold-pale); }
.footer-links a { color: rgba(243,236,221,.72); text-decoration: none; }
.footer-links a:hover { color: var(--bone); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 80px; padding-top: 24px; border-top: 1px solid rgba(243,236,221,.15); color: rgba(243,236,221,.48); font-family: var(--display); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 12px; border: 1px solid rgba(243,236,221,.2); border-radius: 999px; color: rgba(243,236,221,.72); text-decoration: none; transition: border-color 180ms ease, color 180ms ease, background 180ms ease; }
.footer-social a:hover, .footer-social a:focus-visible { border-color: var(--gold-pale); background: rgba(217,185,137,.1); color: var(--bone); }

@media (max-width: 1060px) {
  .site-navigation { position: fixed; inset: 82px 0 0; z-index: 50; display: none; flex-direction: column; align-items: stretch; padding: 36px 24px; background: var(--wine-deep); }
  .site-navigation.is-open { display: flex; }
  .site-navigation > a:not(.button), .nav-search { padding: 14px 0; border-bottom: 1px solid rgba(243,236,221,.12); text-align: left; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
  .menu-toggle i { width: 18px; height: 1px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }
  .world-grid { grid-template-columns: 1fr; }
  .world-card { min-height: 580px; }
  .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-heading { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 36px, 1280px); --wide: 100%; }
  body { font-size: 17px; }
  .site-header { height: 70px; }
  .site-navigation { top: 70px; }
  .brand-logo { max-width: 190px; height: 36px; }
  .brand-seal { width: 34px; height: 34px; }
  .library-hero { min-height: calc(100svh - 70px); }
  .library-hero-media img { object-position: 58% center; }
  .library-hero-content { padding-block: 108px 64px; }
  .library-hero h1 { font-size: clamp(2.65rem, 13vw, 4.7rem); }
  .hero-actions .button { width: 100%; }
  .intro-strip-grid, .world-intro-grid, .newsletter-grid, .footer-grid, .author-hero-grid { grid-template-columns: 1fr; }
  .intro-strip-grid { gap: 18px; }
  .worlds-section { padding-top: 72px; }
  .world-card { min-height: 520px; }
  .world-copy { right: 24px; bottom: 28px; left: 24px; }
  .world-copy strong { font-size: clamp(2.1rem, 10vw, 3.4rem); }
  .world-copy > span { font-size: 1rem; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card-content { padding-inline: 18px; }
  .world-hero { min-height: 690px; }
  .world-hero-content { padding-block: 90px 60px; }
  .back-link { margin-bottom: 72px; }
  .world-description { font-size: 1.1rem; }
  .world-intro-grid > img { width: 140px; }
  .article-header { padding-top: 68px; }
  .article-heading h1 { font-size: clamp(2.55rem, 12vw, 4.5rem); }
  .article-feature { margin-top: 48px; }
  .article-feature { width: calc(100% - 24px); }
  .article-layout { width: calc(100% - 32px); max-width: 1180px; padding-block: 56px 72px; }
  .gh-content { font-size: 1.08rem; }
  .gh-content .kg-width-wide, .gh-content .kg-width-full { width: 100vw; }
  .gh-content .kg-gallery-card.kg-width-wide,
  .gh-content .kg-gallery-card.kg-width-full {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
  .gh-content .kg-gallery-card .kg-gallery-container { display: block; }
  .gh-content .kg-gallery-card .kg-gallery-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }
  .gh-content .kg-gallery-card .kg-gallery-row:first-child { margin-top: 0; }
  .gh-content .kg-gallery-card .kg-gallery-image {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .gh-content .kg-gallery-card .kg-gallery-image img {
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    object-fit: contain;
  }
  .gh-content .kg-gallery-card.is-op-carousel .op-carousel-slide {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .gh-content .kg-gallery-card.is-op-carousel .op-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .op-carousel-button { width: 42px; height: 42px; }
  .op-carousel-previous { left: 10px; }
  .op-carousel-next { right: 10px; }
  .article-layout > .gh-content > .kg-image-card,
  .gh-content .kg-gallery-card.is-op-carousel {
    width: min(100%, 640px, 64svh);
  }
  .article-return-nav .button { width: 100%; }
  .author-box { grid-template-columns: 1fr; }
  .author-box > img { width: 110px; }
  .author-hero-grid > img { justify-self: start; width: 210px; }
  .catalog-hero-grid, .catalog-heading { grid-template-columns: 1fr; }
  .catalog-hero-grid > img { width: 120px; }
  .book-grid { grid-template-columns: 1fr; }
  .book-cover { min-height: 0; }
  .newsletter-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-social { justify-content: flex-start; width: 100%; }
  .footer-social a { min-height: 44px; }
  .pagination { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
