/* QuillGear Studio — site-specific layer, loaded after styles.css.
 *
 * styles.css is the shared engine, copied verbatim from the front door: the
 * journey mechanics, the scene, the card / button / tag components. Everything
 * here is Studio's own — the accent, the brand lockup, and the per-palette
 * contrast fixes this site's own palette arc needs.
 *
 * Anything added here that would also suit Industrial belongs in styles.css.
 */

:root {
  /* the one token that distinguishes this site */
  --accent: var(--studio);
  --accent-tint: var(--studio-tint);

  /* scene props the fantasy artwork draws with. These stay constant rather
   * than blending with the palette: lit windows and a banner should read the
   * same at dawn and at midnight — that is what makes them look inhabited. */
  --glow-win: #ffc977;
  --pennant: #b5532a;
}

/* ---------- real horizontal scrolling ----------
 *
 * The front door fakes sideways travel: the page scrolls vertically, the stage
 * is pinned with position: sticky, and that vertical distance is translated
 * into a transform on the track. Studio scrolls horizontally for real — the
 * stage is the scroll container, there is a horizontal scrollbar, and
 * left/right gestures and keys do what they say. journey.js reads
 * stage.scrollLeft rather than window.scrollY to match.
 *
 * These overrides live here rather than in styles.css because styles.css is the
 * shared copy and this change suits Studio only.
 */

html, body { height: 100%; }
body { overflow: hidden; }

.journey { height: auto; }

.js .stage {
  position: relative;
  top: auto;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.35) transparent;
}

/* The scenery must not scroll with the track — it is moved by JS instead, at a
   fraction of the scroll distance, which is what produces the parallax. */
.world {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Pinned to the viewport, not to the scrolling track. */
.progress {
  position: fixed;
  z-index: 15;
}

.js .track { transform: none; }

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

/* ---------- scene props ---------- */

/* Lit windows and banners are drawn inside groups that set their own fill, so
   these need CSS to win — which it does, over SVG presentation attributes. */
.world .win { fill: var(--glow-win); stroke: none; }
.world .flag { fill: var(--pennant); stroke: none; }

/* ---------- brand ---------- */

.brand .mark { color: var(--accent); }
.brand .sub { font-style: italic; opacity: 0.72; }

.nav .up { opacity: 0.7; font-weight: 400; }

@media (max-width: 560px) {
  .brand .sub { display: none; }
}

/* ---------- accent ---------- */

/* Studio's arc runs dawn -> golden -> alpen -> night, so the headline accent
 * crosses from a light ground to two dark ones. --studio is tuned for light;
 * the dark palettes need the lighter variant or the italic clause goes muddy.
 * Checked against each palette rather than assumed. */
.lead em { color: var(--accent); }
.panel[data-palette="golden"] .lead em { color: #a2421d; }
.panel[data-palette="alpen"] .lead em,
.panel[data-palette="night"] .lead em { color: #e8916a; }

.card .num { color: var(--accent); }

/* .tag sits on a card surface, which stays light regardless of scene palette,
 * so the light-mode accent pair is correct here in every scene. */
.tag { background: var(--accent-tint); color: var(--accent); }

/* ---------- unannounced titles ---------- */

/* --card-line is near-white and disappears against the card, so the dashed
 * edge needs its own colour to read as a deliberate "not finished yet". */
.card.pending {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
}

.card.pending .status {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* The work panel holds two cards today and will hold more as titles ship;
 * give them a little more room than the front door's six-across capability row. */
#work .card { width: 300px; }

@media (max-width: 760px) {
  #work .card { width: 240px; }
}
