/* CRONE — "The hall of glass": plum night, amethyst, rose gold, pearl and sage. */
:root {
  --night: #1b0e22;
  --plum: #2a1631;
  --plum-2: #3a1f44;
  --amethyst: #7d5a8c;
  --rose: #d9a38b;
  --rose-deep: #b77a63;
  --gold: #e2b45a;
  --pearl: #f8f2ee;
  --pearl-2: #efe4dc;
  --sage: #8da48a;
  --sage-soft: #e6ece3;
  --ink: #2b1d2e;
  --muted: #6e5c70;
  --line: #e4d3c9;
  --display: "Bellefair", "Didot", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --round: 22px;
  --lift: 0 24px 50px -30px rgba(42, 22, 49, 0.55);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 18px/1.75 var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -5%, rgba(217, 163, 139, 0.22), transparent 65%),
    radial-gradient(800px 380px at 100% 20%, rgba(125, 90, 140, 0.12), transparent 70%),
    var(--pearl);
}
a { color: var(--amethyst); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 8px; }

.sheba-skip { position: absolute; left: -999px; top: 6px; z-index: 70; background: var(--plum); color: var(--pearl); padding: 10px 16px; border-radius: 10px; }
.sheba-skip:focus { left: 12px; }

/* A silk thread of reading progress */
.sheba-thread { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.sheba-thread span { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--sage), var(--rose), var(--gold)); }

/* Spain 2026 — the turning medallion */
.sheba-medal { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--night); color: var(--pearl-2); font-size: 15px; overflow: hidden; }
.sheba-medal p { margin: 0; }
.sheba-medal strong { color: var(--gold); font-weight: 700; }
.sheba-medal em { font-style: normal; color: #fff; background: #c60b1e; border-radius: 6px; padding: 0 7px; }
.sheba-medal__aside { color: #c8b2c9; }
.sheba-medal__coin { display: inline-flex; animation: coin-turn 6s ease-in-out infinite; }
@keyframes coin-turn { 0%, 60%, 100% { transform: rotateY(0); } 75% { transform: rotateY(180deg); } 90% { transform: rotateY(360deg); } }
.sheba-medal__ribbon { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, #c60b1e 20%, #ffc400 50%, #c60b1e 80%, transparent); background-size: 200% 100%; animation: ribbon-flow 5s linear infinite; }
@keyframes ribbon-flow { to { background-position: -200% 0; } }

/* Header */
.sheba-head { position: sticky; top: 0; z-index: 50; background: rgba(248, 242, 238, 0.9); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.sheba-head__in { max-width: 1220px; margin: 0 auto; padding: 14px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.sheba-mark { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; text-decoration: none; color: var(--plum); margin-right: auto; }
.sheba-mark__ring { grid-row: span 2; color: var(--rose-deep); display: inline-flex; transition: transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.sheba-mark:hover .sheba-mark__ring { transform: rotate(-25deg); }
.sheba-mark__word { font: 400 32px/1 var(--display); letter-spacing: 0.32em; }
.sheba-mark__long { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sheba-toggle { display: none; align-items: center; gap: 8px; font: 700 14px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum); background: transparent; border: 1px solid var(--rose); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.sheba-toggle__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); transition: transform 0.3s, background 0.3s; }
.sheba-toggle[aria-expanded="true"] .sheba-toggle__dot { transform: scale(1.6); background: var(--amethyst); }
.sheba-nav { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.sheba-nav__item { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--plum); font-size: 15px; font-weight: 600; position: relative; transition: color 0.25s, background 0.25s; }
.sheba-nav__item::before { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); transform: translateX(-50%) scale(0); transition: transform 0.3s; }
.sheba-nav__item:hover { background: var(--pearl-2); color: var(--amethyst); }
.sheba-nav__item:hover::before { transform: translateX(-50%) scale(1); }
.sheba-nav__item--soft { color: var(--muted); font-weight: 400; }

/* Hero: the hall of glass beside the words */
.sheba-hero { max-width: 1220px; margin: 0 auto; padding: 40px 22px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.sheba-hero__art { margin: 0; border-radius: 240px 240px 26px 26px; overflow: hidden; border: 2px solid var(--rose); box-shadow: 0 40px 70px -40px rgba(27, 14, 34, 0.9), 0 0 0 10px rgba(217, 163, 139, 0.18); }
.glass-scene { display: block; width: 100%; height: auto; }
.sheba-hero__kicker, .sheba-heading__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); margin: 0 0 12px; }
.sheba-hero__title { font: 400 clamp(42px, 5.8vw, 76px)/1.02 var(--display); color: var(--plum); margin: 0 0 18px; }
.sheba-hero__title em { font-style: normal; color: var(--rose-deep); display: block; background: linear-gradient(90deg, var(--rose-deep), var(--amethyst), var(--rose-deep)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sheen 8s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.sheba-hero__lead { font: 400 25px/1.4 var(--display); color: var(--plum-2); margin: 0 0 12px; }
.sheba-hero__intro { color: var(--muted); margin: 0 0 24px; }
.sheba-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.sheba-button { display: inline-flex; padding: 13px 26px; border-radius: 999px; background: var(--plum); color: var(--pearl); text-decoration: none; font-weight: 700; letter-spacing: 0.04em; position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; box-shadow: var(--lift); }
.sheba-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s; }
.sheba-button:hover { transform: translateY(-2px); color: #fff; }
.sheba-button:hover::after { transform: translateX(120%); }
.sheba-button--ghost { background: transparent; color: var(--plum); border: 1.5px solid var(--plum); box-shadow: none; }
.sheba-button--ghost:hover { background: var(--plum); color: var(--pearl); }

/* Scene motion */
.glass-lantern { animation: lantern-swing 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes lantern-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.glass-floor path { animation: ripple 7s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ripple { 0%, 100% { transform: translateX(0); opacity: 0.4; } 50% { transform: translateX(-30px); opacity: 0.9; } }
.glass-reflect ellipse { animation: shimmer 4s ease-in-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
@keyframes shimmer { 0%, 100% { transform: scaleX(1); opacity: 0.4; } 50% { transform: scaleX(1.8); opacity: 0.9; } }
.glass-stars circle { animation: twinkle 3s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 50% { opacity: 0.2; } }
.glass-moon { animation: moon-drift 30s ease-in-out infinite alternate; }
@keyframes moon-drift { to { transform: translate(-24px, 12px); } }

/* Featured */
.sheba-picks { max-width: 1220px; margin: 40px auto 0; padding: 0 22px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; }
.sheba-soon { text-align: center; color: var(--muted); font-style: italic; margin: 40px 22px 0; }

/* Folio cards */
.folio__link { display: flex; flex-direction: column; height: 100%; padding: 26px 24px 22px; border-radius: var(--round); background: #fffdfb; border: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), box-shadow 0.4s, border-color 0.4s; box-shadow: var(--lift); }
.folio__link::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--sage), var(--rose), var(--amethyst)); transform: scaleX(0.15); transform-origin: left; transition: transform 0.5s; }
.folio__link:hover { transform: translateY(-6px); border-color: var(--rose); color: var(--ink); box-shadow: 0 34px 60px -32px rgba(42, 22, 49, 0.7); }
.folio__link:hover::before { transform: scaleX(1); }
.folio__ribbon { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-bottom: 12px; }
.folio__icon { width: 20px; height: 20px; color: var(--rose-deep); }
.folio__title { font: 400 25px/1.2 var(--display); color: var(--plum); margin: 0 0 10px; }
.folio__sum { flex: 1; margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.folio__foot { font-size: 14px; font-weight: 700; color: var(--amethyst); }
.folio__arrow { display: inline-block; transition: transform 0.35s; }
.folio__link:hover .folio__arrow { transform: translateX(6px); }
.folio--wide .folio__link { background: linear-gradient(160deg, var(--plum), var(--night)); border-color: var(--plum-2); color: var(--pearl); padding: 36px 34px; }
.folio--wide .folio__title { color: #fff6ee; font-size: clamp(30px, 3.2vw, 40px); }
.folio--wide .folio__sum { color: #d9c7da; font-size: 18px; }
.folio--wide .folio__ribbon { color: var(--gold); }
.folio--wide .folio__icon { color: var(--rose); }
.folio--wide .folio__foot { color: var(--rose); }

/* Headings */
.sheba-heading { text-align: center; max-width: 820px; margin: 0 auto 26px; }
.sheba-heading h2 { font: 400 clamp(32px, 4vw, 46px)/1.1 var(--display); color: var(--plum); margin: 0; }
.sheba-heading::after { content: "✦  ✦  ✦"; display: block; margin-top: 12px; color: var(--rose); letter-spacing: 0.4em; font-size: 12px; }
.sheba-heading--night h2 { color: var(--pearl); }
.sheba-heading--night .sheba-heading__kicker { color: var(--gold); }

/* Chapters */
.sheba-chapters { padding: 70px 22px 30px; }
.sheba-chapters__grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1220px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sheba-chapter { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 30px 26px 24px; border-radius: var(--round); background: linear-gradient(180deg, #fffdfb, var(--pearl-2)); border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform 0.4s, box-shadow 0.4s; box-shadow: var(--lift); }
.sheba-chapter:hover { transform: translateY(-6px); color: var(--ink); box-shadow: 0 34px 60px -32px rgba(42, 22, 49, 0.7); }
.sheba-chapter__num { position: absolute; right: 18px; top: 6px; font: 400 64px/1 var(--display); color: rgba(125, 90, 140, 0.13); transition: color 0.4s, transform 0.4s; }
.sheba-chapter:hover .sheba-chapter__num { color: rgba(217, 163, 139, 0.45); transform: translateY(4px); }
.sheba-chapter__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: var(--rose); }
.sheba-chapter__icon svg { width: 30px; height: 30px; }
.sheba-chapter__name { font: 400 26px/1.15 var(--display); color: var(--plum); }
.sheba-chapter__desc { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.sheba-chapter__count { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--sage); }

.sheba-latest { padding: 56px 22px; }
.sheba-latest__grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Library: the night hall */
.sheba-library { padding: 70px 22px; background: radial-gradient(800px 300px at 50% 0, rgba(217, 163, 139, 0.2), transparent 70%), linear-gradient(180deg, var(--plum), var(--night)); color: #dccbdd; }
.sheba-library__cols { max-width: 1220px; margin: 0 auto; columns: 3 300px; column-gap: 40px; }
.sheba-library section { break-inside: avoid; margin-bottom: 30px; }
.sheba-library h3 { font: 400 24px var(--display); margin: 0 0 10px; }
.sheba-library h3 a { color: var(--gold); text-decoration: none; }
.sheba-library ol { margin: 0; padding-left: 20px; font-size: 15.5px; }
.sheba-library li { margin: 5px 0; }
.sheba-library li a { color: #f2e6ef; text-decoration: none; }
.sheba-library li a:hover { color: #fff; text-decoration: underline; }

/* Chapter head */
.sheba-chapter-head { max-width: 820px; margin: 0 auto; padding: 50px 22px 6px; text-align: center; }
.sheba-chapter-head__icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--plum); color: var(--rose); margin: 18px 0 10px; box-shadow: 0 0 0 10px rgba(217, 163, 139, 0.2); animation: halo 4s ease-in-out infinite; }
@keyframes halo { 50% { box-shadow: 0 0 0 16px rgba(217, 163, 139, 0.08); } }
.sheba-chapter-head__icon svg { width: 44px; height: 44px; }
.sheba-chapter-head h1 { font: 400 clamp(38px, 5vw, 58px)/1.08 var(--display); color: var(--plum); margin: 0 0 12px; }
.sheba-chapter-head p { color: var(--muted); margin: 0 0 8px; }
.sheba-chapter-head__count { font-weight: 700; color: var(--sage) !important; }
.sheba-crumbs { font-size: 14px; color: var(--muted); }
.sheba-crumbs a { color: var(--amethyst); text-decoration: none; }

/* Story */
.sheba-story { padding: 46px 22px 10px; }
.sheba-story__head { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.sheba-story__title { font: 400 clamp(36px, 5vw, 60px)/1.08 var(--display); color: var(--plum); margin: 16px 0; }
.sheba-story__lead { font: 400 23px/1.45 var(--display); color: var(--plum-2); margin: 0 0 14px; }
.sheba-story__meta { font-size: 14px; color: var(--muted); letter-spacing: 0.04em; margin: 0; }
.sheba-story__body { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 50px; align-items: start; }
.sheba-story__body--single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.sheba-contents { position: sticky; top: 110px; padding: 22px; border-radius: var(--round); background: var(--plum); color: #e8dbe9; font-size: 15px; box-shadow: var(--lift); }
.sheba-contents__title { font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.sheba-contents ol { margin: 0; padding-left: 18px; line-height: 1.5; }
.sheba-contents li { margin: 7px 0; }
.sheba-contents a { color: #f2e6ef; text-decoration: none; }
.sheba-contents a:hover, .sheba-contents a.is-here { color: var(--rose); }
.sheba-story__body:not(:has(.sheba-contents)) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.sheba-prose { max-width: 740px; }
.sheba-prose > p:first-child::first-letter { float: left; font: 400 76px/0.8 var(--display); color: var(--rose-deep); margin: 8px 12px 0 0; }
.sheba-prose h2 { font: 400 34px/1.2 var(--display); color: var(--plum); margin: 48px 0 14px; scroll-margin-top: 110px; }
.sheba-prose h2::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 10px; background: linear-gradient(90deg, var(--rose), transparent); }
.sheba-prose h3 { font: 700 20px/1.35 var(--sans); color: var(--plum-2); margin: 30px 0 8px; scroll-margin-top: 110px; }
.sheba-prose p { margin: 0 0 18px; }
.sheba-prose ul, .sheba-prose ol { padding-left: 24px; margin: 0 0 20px; }
.sheba-prose li { margin: 7px 0; }
.sheba-prose li::marker { color: var(--rose-deep); }
.sheba-prose blockquote { margin: 26px 0; padding: 18px 24px; border-left: 3px solid var(--rose); background: var(--sage-soft); border-radius: 0 var(--round) var(--round) 0; font: 400 22px/1.45 var(--display); color: var(--plum-2); }
.sheba-prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 16px; display: block; overflow-x: auto; border-radius: 14px; box-shadow: var(--lift); background: #fffdfb; }
.sheba-prose th { background: var(--plum); color: var(--pearl); text-align: left; padding: 10px 14px; }
.sheba-prose td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.sheba-prose strong { color: var(--plum-2); }
.sheba-note { margin-top: 36px; padding: 18px 22px; border-radius: var(--round); background: var(--sage-soft); border: 1px solid #cfdccb; font-size: 16px; }
.sheba-note p { margin: 0; }

/* 404 */
.sheba-lost { max-width: 1100px; margin: 0 auto; padding: 70px 22px; text-align: center; }
.sheba-lost__code { font: 400 140px/1 var(--display); margin: 0; background: linear-gradient(180deg, var(--rose), var(--amethyst)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sheba-lost h1 { font: 400 40px var(--display); color: var(--plum); }

/* Footer */
.sheba-foot { background: var(--night); color: #cdbccf; border-top: 3px solid var(--rose); }
.sheba-foot__in { max-width: 1220px; margin: 0 auto; padding: 50px 22px 18px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.sheba-foot__word { font: 400 38px var(--display); letter-spacing: 0.32em; color: var(--rose); margin: 0; }
.sheba-foot__long { margin: 2px 0 12px; font-style: italic; color: #eadbe8; }
.sheba-foot__title { font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.sheba-foot ul { list-style: none; margin: 0; padding: 0; }
.sheba-foot li { margin: 7px 0; }
.sheba-foot a { color: #efe2ee; text-decoration: none; }
.sheba-foot a:hover { color: #fff; text-decoration: underline; }
.sheba-foot__note { max-width: 1220px; margin: 0 auto; padding: 16px 22px 30px; font-size: 14px; color: #a693a8; border-top: 1px solid rgba(217, 163, 139, 0.2); }

/* Reveal on scroll */
.js .folio, .js .sheba-chapter { opacity: 0; transform: translateY(20px) scale(0.985); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.js .folio.is-seen, .js .sheba-chapter.is-seen { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .sheba-hero { grid-template-columns: 1fr; }
  .sheba-hero__art { max-width: 620px; margin: 0 auto; }
  .sheba-picks { grid-template-columns: 1fr 1fr; }
  .sheba-picks .folio--wide { grid-column: 1 / -1; }
  .sheba-chapters__grid, .sheba-latest__grid { grid-template-columns: repeat(2, 1fr); }
  .sheba-story__body { grid-template-columns: 1fr; }
  .sheba-contents { position: static; }
  .sheba-foot__in { grid-template-columns: 1fr 1fr; }
  .sheba-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .sheba-toggle { display: inline-flex; }
  .sheba-nav { display: none; width: 100%; flex-direction: column; }
  .sheba-nav.is-open { display: flex; animation: unfold 0.4s ease both; }
  @keyframes unfold { from { opacity: 0; transform: translateY(-10px); } }
  .sheba-mark__long, .sheba-medal__aside { display: none; }
  .sheba-picks, .sheba-chapters__grid, .sheba-latest__grid { grid-template-columns: 1fr; }
  .sheba-foot__in { grid-template-columns: 1fr; }
  .folio--wide .folio__link { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .folio, .js .sheba-chapter { opacity: 1; transform: none; }
}
