/* Palette Girlies: the hub /seasons as the front of a color story (oct 2026, final direction, docs/web/SECCIONES.md "Color"; src/pages/seasons.html, tools/season_pages.py, site/js/seasons-hub.js). Load it after
   magazine.css and games.css. White paper, color edge to edge, captions and no labels:
     .hub-cover   the pain, and the twelve seasons as blocks of their exact signature color (four rows, white paper between them), each a link to its page
     .hub-stage   the ring (three.js, site/js/fx/wheel3d.js, or the paint pans of site/js/play.js) with a COLOR panel for the season in front; pinned on a wide screen, it turns season by season (T16)
     .hub-read    the three readings as scales with the 12 seasons on them     .hub-space  the color space game     .hub-pairs  the four pairs that share a border     .hub-close  COLOR band
   Swatches and dots are flat and exact on plain paper. Without JavaScript every band is plain and complete; with reduced motion nothing moves. */

.seasons-hub main { overflow-x: clip; background: #FFFFFF; }
.hub-line { margin: 14px 0 0; max-width: 30em; font: 400 clamp(18px, .6vw + 16px, 21px)/1.4 var(--sans); }
.seasons-hub .mz-h2 { margin: 0; max-width: 14em; }

/* ---------- 1. the cover: the ring as paint, twelve blocks of exact color edge to edge ---------- */
.hub-cap { margin: 0 0 14px; font: 700 12.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.hub-cover { padding-top: 26px; }
.hub-giant { font: 400 clamp(52px, 4vw + 36px, 112px)/.95 var(--serif); letter-spacing: -.02em; text-wrap: balance; margin: 0; max-width: 9em; color: var(--ink); }
.hub-giant em { font-style: italic; font-family: var(--slant); color: var(--berry); }
.hub-lede { margin: 14px 0 0; max-width: 24em; font: 400 clamp(19px, .6vw + 17px, 22px)/1.4 var(--sans); color: var(--ink); }
.hub-blocks { margin-top: 30px; display: grid; gap: 22px; }
.hub-fam-b .hub-cap { margin-bottom: 8px; }
.hub-row-b { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-block { display: grid; align-content: start; gap: 2px; padding-bottom: 6px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hub-block:hover { color: var(--ink); }
.hub-block:focus-visible { outline: 3px solid var(--berry); outline-offset: -3px; }
.hub-sw { display: block; height: clamp(92px, 24vw, 160px); background: var(--c); margin-bottom: 6px; transition: transform .55s var(--mz-spring); transform-origin: 50% 100%; }
.hub-block:hover .hub-sw, .hub-block:focus-visible .hub-sw { transform: scaleY(1.06); }
.hub-block b { padding: 0 8px; font: 700 14.5px/1.2 var(--sans); }
.hub-block code { padding: 0 8px; font: 400 12.5px/1.2 var(--sans); letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .hub-sw { transition: none; } .hub-block:hover .hub-sw { transform: none; } }
@media (min-width: 900px) { .hub-blocks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } .hub-fam-b .hub-cap { padding-inline: 0; } .hub-row-b { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hub-fam-b { padding-inline: 0; } .hub-block b { font-size: 15.5px; } }

/* ---------- 2. the ring and the panel ---------- */
.hub-stage { padding-block: var(--mz-pad) 0; border-top: 1px solid var(--mz-line); }
.hub-stage h2 { margin-bottom: 4px; }
.hw-stage { position: relative; margin-top: 18px; }
.hw-stage .wheel { max-width: 540px; margin: 0 auto; }
.hw3 { position: relative; width: 100%; max-width: 900px; height: clamp(270px, 76vw, 470px); margin: 0 auto; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hw3.is-drag { cursor: grabbing; }
.hw3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hw3-ring { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; }
.hw3-btn { position: absolute; left: 0; top: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hw3-btn:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.hw-stage.is-3d .wheel { display: none; }
.hub-panel { margin: 22px calc(-1 * var(--gutter)) 0; padding: 30px var(--gutter) 34px; background: var(--deep); transition: background-color .7s ease; }
.hub-panel p { margin: 0; }
.hub-p-line { font: 700 12.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.hub-p-name { margin-top: 4px !important; font: 400 clamp(48px, 7vw + 18px, 96px)/.95 var(--serif); letter-spacing: -.015em; color: var(--paper); }
.hub-p-read { margin-top: 6px !important; font: 400 18px/1.35 var(--sans); }
.hub-p-chips { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hub-p-chips li { position: relative; }
.hub-p-chips li > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hub-p-chips li:not(:has(button))::before { content: ""; display: block; aspect-ratio: 1; background: var(--c); box-shadow: 0 0 0 1px rgba(247, 241, 232, .55); }
.hub-chip { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: var(--c); box-shadow: 0 0 0 1px rgba(247, 241, 232, .55); cursor: pointer; transition: transform .5s var(--mz-spring); -webkit-tap-highlight-color: transparent; }
.hub-chip:active { transform: scale(.94); }
.hub-chip:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.hub-chip.is-picked { box-shadow: 0 0 0 2px var(--deep), 0 0 0 4px var(--paper); }
.hub-p-say { margin-top: 12px !important; min-height: 1.4em; font: 600 18px/1.35 var(--sans); }
.hub-p-say code { font: 600 16px/1 var(--sans); letter-spacing: .04em; }
.hub-p-nb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px !important; font: 400 17px/1.3 var(--sans); }
.hub-p-nb[hidden] { display: none; }
.hub-p-nb span { flex-basis: 100%; font: 700 12.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.hub-p-nb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font: 700 17px/1.3 var(--sans); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.hub-p-nb a:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.hub-p-go { margin-top: 14px !important; }
.hub-panel .mz-btn--paper { color: var(--ink); }
.hub-prog { display: none; }
@media (min-width: 900px) {
  .hub-stage { padding-block: 0; }
  .hub-pin { display: grid; align-items: center; min-height: min(100vh, 860px); padding-block: 40px; }
  .hub-stage-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0 48px; align-items: center; }
  .hub-panel { margin: 0; padding: 40px 40px 42px; border-radius: 2px; }
  .hub-stage.is-pinned .hub-prog { display: flex; }
  .hub-prog { list-style: none; margin: 14px 0 0; padding: 0; gap: 4px; justify-content: center; max-width: 540px; margin-inline: auto; }
  .hub-prog li { flex: 1; height: 8px; background: var(--c); position: relative; }
  .hub-prog li.is-here::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--ink); }
}

/* ---------- 3. the three readings ---------- */
.hub-read { padding-block: var(--mz-pad) var(--mz-pad-b); }
.hub-axes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 26px; max-width: 880px; }
.hub-ax { display: grid; gap: 6px; }
.hub-ax-n { margin: 0; font: 700 12.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.hub-ax-bar { position: relative; height: calc(var(--lanes) * 22px + 10px); border-bottom: 1px solid var(--ink); background: linear-gradient(90deg, transparent calc(25% - .5px), rgba(43, 34, 48, .16) calc(25% - .5px), rgba(43, 34, 48, .16) calc(25% + .5px), transparent calc(25% + .5px), transparent calc(50% - .5px), rgba(43, 34, 48, .16) calc(50% - .5px), rgba(43, 34, 48, .16) calc(50% + .5px), transparent calc(50% + .5px), transparent calc(75% - .5px), rgba(43, 34, 48, .16) calc(75% - .5px), rgba(43, 34, 48, .16) calc(75% + .5px), transparent calc(75% + .5px)); }
.hub-ax-dot { position: absolute; left: var(--x); top: calc(var(--l) * 22px + 4px); width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(43, 34, 48, .3); transition: transform .5s var(--mz-spring), box-shadow .3s; }
.hub-ax-dot.is-nb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.hub-ax-dot.is-on { z-index: 2; transform: scale(1.4); box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 5px var(--ink); }
.hub-ax-e { margin: 0; display: flex; justify-content: space-between; font: 600 13.5px/1.3 var(--sans); color: var(--ink); }

/* ---------- 4. the color space ---------- */
.hub-space { padding-block: var(--mz-pad) var(--mz-pad-b); }
.hub-space.gm-embed { margin-top: 0; }
.hub-space .gm-stage { margin-top: 20px; }
/* the three scales above already say what the game's side cards say: here the plot and the season picker are enough */
.hub-space .cs-side > .cs-card:nth-child(n+2) { display: none; }
.hub-space .ed-fold { margin-top: 10px; }
.hub-space .ed-fold p { max-width: 30em; }

/* ---------- 5. the pairs ---------- */
.hub-pairs { padding-block: var(--mz-pad) var(--mz-pad-b); }
.hub-pairs .pairs { margin-top: 26px; max-width: 880px; }

/* ---------- 6. the close ---------- */
.hub-close { padding-block: var(--mz-pad) var(--mz-pad-b); }
.hub-close-cta { margin: 26px 0 0; }
.hub-close-note { margin: 14px 0 0; max-width: 30em; font: 400 16.5px/1.45 var(--sans); }
.hub-close-note a { display: inline-block; min-height: 24px; }
.hub-links { list-style: none; margin: 20px 0 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 22px; border-top: 1px solid var(--mz-line-paper); }
.hub-links a { display: inline-flex; align-items: center; min-height: 44px; font: 600 16px/1.3 var(--sans); }

/* the headlines of the bands: plain Gloock, the italic in berry (the painted word belongs to the Cover and to the Reportajes) */
.hub-stage h2, .hub-read h2, .hub-space h2, .hub-pairs h2 { font-size: max(40px, var(--mz-h2)); }
.hub-stage h2 em, .hub-read h2 em, .hub-space h2 em, .hub-pairs h2 em { font-family: var(--slant); font-style: italic; color: var(--berry); }
