/* caissa.applink.ca (CAISSA-126, the 2026-11-29 redesign).
   Layout: an enfilade. One room of the app's Deck opens into the next; a painting hangs
   unscrimmed with its label under it; the one gold object is kept for a real action.
   The tokens are the app's own (src/styling/Themes.js, src/styling/pieces/Effects.js): one dark
   theme, as the app has one. */
@font-face{font-family:"Vollkorn";font-weight:400;font-style:normal;font-display:swap;src:url("fonts/Vollkorn-Regular.woff2") format("woff2")}
@font-face{font-family:"Vollkorn";font-weight:600;font-style:normal;font-display:swap;src:url("fonts/Vollkorn-SemiBold.woff2") format("woff2")}
@font-face{font-family:"Vollkorn";font-weight:700;font-style:normal;font-display:swap;src:url("fonts/Vollkorn-Bold.woff2") format("woff2")}
@font-face{font-family:"Vollkorn";font-weight:400;font-style:italic;font-display:swap;src:url("fonts/Vollkorn-Italic.woff2") format("woff2")}

:root{
  color-scheme:dark;
  /* ground and surfaces: surface1, gCard, gHeadQuiet, gWell */
  --b1:#121212;
  --card-a:#232119; --card-b:#1a1916;
  --head-a:#2e2a22; --head-b:#1f1c16;
  --well-a:#201d17; --well-b:#141210;
  /* gold: brand chrome and the commit bar, nothing else (p1, gPlate, gPlateLip, struckInk) */
  --p1:#dfc79f;
  --plate-a:#f8e7b4; --plate-b:#e2c079; --plate-c:#bf9238; --plate-lip:#7d5c20; --struck-ink:#1a1305;
  /* the accent: the chosen tick of a rail, nothing else (the default theme's action2) */
  --a2:#f055b9;
  /* text: textLight1..4 */
  --tl1:#fdfdfd; --tl2:#dad1d4; --tl3:#c3c3c3; --tl4:#919191;
  --warn:#d7ac61;
  /* hairlines: hlGoldSoft, hlGold, hlGoldBright */
  --hl-soft:rgba(223,199,159,.08); --hl:rgba(223,199,159,.16); --hl-bright:rgba(242,227,189,.28);
  --serif:"Vollkorn",Georgia,"Times New Roman",serif;
  --gutter:24px;
  --measure:1072px;
}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--b1);color:var(--tl2);font:400 17px/1.55 var(--serif);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto}
a{color:var(--tl1);text-decoration:underline;text-decoration-color:var(--hl-bright);text-underline-offset:3px}
a:hover{text-decoration-color:var(--p1)}
:focus-visible{outline:2px solid var(--tl1);outline-offset:3px;border-radius:4px}
h1,h2,h3,p,ul,figure{margin:0}
h1,h2,h3{color:var(--tl1);font-weight:700;text-wrap:balance}
i,.voice{font-style:italic}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.wrap{max-width:calc(var(--measure) + 2 * var(--gutter));margin-inline:auto;padding-left:max(var(--gutter),env(safe-area-inset-left,0px));padding-right:max(var(--gutter),env(safe-area-inset-right,0px))}

/* The eyebrow: the app's tracked capitals. Light, never gold: gold is chrome and commit. */
.eyebrow{display:block;font-weight:400;font-size:12px;line-height:1.3;letter-spacing:.18em;text-transform:uppercase;color:var(--tl3)}
/* The voice line: the only italic. */
.voice{color:var(--tl3)}

/* ---- header ---- */
.top{padding-block:18px}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px}
.mark{display:inline-flex;align-items:center;gap:12px;text-decoration:none}
.mark img{width:36px;height:36px;border-radius:9px;border:1px solid var(--hl)}
.mark b{display:block;font-size:15px;line-height:1.1;letter-spacing:.3em;text-transform:uppercase;color:var(--p1)}
.mark i{display:block;font-size:13px;line-height:1.2;color:var(--tl3)}
.nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 22px}
.nav a{font-size:12px;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;color:var(--tl3)}
.nav a:hover{color:var(--tl1)}

/* ---- the hero ---- */
.hero{overflow-x:clip;padding-block:clamp(28px,5vw,72px) clamp(40px,6vw,88px)}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(28px,5vw,80px);align-items:center}
.hero h1{margin-top:14px;font-size:clamp(38px,5.7vw,74px);line-height:1.03;letter-spacing:-.012em}
.lede{margin-top:22px;max-width:34em;font-size:clamp(17px,1.5vw,20px);line-height:1.5}
.hero .voice{display:block;margin-top:14px;font-size:17px}
.stage{position:relative;display:grid;place-items:center}
/* The page's one light (P11): a candle's worth, behind the phone. */
.stage::before{content:"";position:absolute;inset:-10% -14%;background:radial-gradient(closest-side,rgba(223,199,159,.13),rgba(223,199,159,0) 72%);pointer-events:none}

/* "Coming soon": a well, not a button. Nothing here commits, so nothing here is gold. */
.soon{display:inline-flex;flex-direction:column;gap:2px;margin-top:30px;padding:14px 24px 15px;border-radius:12px;border:1px solid var(--hl);background:linear-gradient(180deg,var(--well-b),var(--well-a));box-shadow:inset 0 2px 8px rgba(0,0,0,.55)}
.soon b{font-weight:600;font-size:19px;line-height:1.3;color:var(--tl1)}

/* A real screen, whole, in a plain frame. */
.phone{position:relative;width:min(300px,76vw);padding:9px;border-radius:46px;background:#0b0b0b;border:1px solid var(--hl-bright);box-shadow:0 34px 80px rgba(0,0,0,.6)}
.phone img{display:block;width:100%;aspect-ratio:600/1304;object-fit:cover;border-radius:37px}
.phone.small{width:min(264px,70vw)}

/* ---- the Deck's index: five heads, each a quiet field told apart by its seal ---- */
.deck{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:14px;padding:0;list-style:none}
.deck a{display:flex;align-items:center;gap:12px;height:100%;padding:14px 16px;border-radius:14px;border:1px solid var(--hl);background:linear-gradient(160deg,var(--head-a),var(--head-b));text-decoration:none}
.deck a:hover{border-color:var(--hl-bright)}
.deck strong{display:block;margin-top:2px;font-size:16px;line-height:1.25;color:var(--tl1)}
.deck .eyebrow{font-size:11px}

/* The enamel seal (ui/EnamelSeal.js): the card's jewel on a disc, its glyph in gold, a bright hairline. */
.seal{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--hl-bright);background:linear-gradient(160deg,var(--sa,#44433e),var(--sb,#2b2b28))}
.seal svg{width:20px;height:20px;fill:var(--p1)}
.seal.rooms{--sa:#354261;--sb:#252c3d}
.seal.knockout{--sa:#69361e;--sb:#422619}
.seal.journey{--sa:#5f343e;--sb:#3d242a}
.seal.challenge{--sa:#5e3b84;--sb:#3c2951}
.seal.engine{--sa:#405065;--sb:#2b3440}
.seal.season{--sa:#274e5e;--sb:#1c3038}
.seal.rewards{--sa:#604829;--sb:#3d301f}
.seal.friends{--sa:#4a3a52;--sb:#2e2533}

/* ---- a section: a head (seal, eyebrow, title), then its room ---- */
.sec{padding-block:clamp(52px,7.5vw,104px);border-top:1px solid var(--hl-soft)}
.sec.index{padding-block:0 clamp(44px,6vw,80px);border-top:0}
.head{display:flex;align-items:flex-start;gap:16px}
.head .seal{width:48px;height:48px;margin-top:2px}
.head .seal svg{width:24px;height:24px}
.head h2{margin-top:6px;font-size:clamp(28px,3.5vw,44px);line-height:1.1;letter-spacing:-.008em;max-width:20em}
.body{display:grid;gap:14px;max-width:38em;margin-top:22px}
.body h3{margin-top:10px;font-size:20px;line-height:1.25}
.duo{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(28px,5vw,80px);align-items:center}
.duo .phone{justify-self:center}
.duo.flip{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.duo.flip>:last-child{order:-1}
.duo.after{margin-top:56px;align-items:start}
.duo.after .body{margin-top:0}
.duo.after .body h3{margin-top:0}

/* ---- a painting and its label ---- */
.piece img{display:block;width:100%;aspect-ratio:792/312;object-fit:cover;border-radius:12px;border:1px solid var(--hl);background:var(--card-b)}
.piece.era img{aspect-ratio:840/458}
.piece figcaption,.player figcaption{display:grid;gap:3px;padding:12px 2px 0}
.piece strong{font-size:20px;line-height:1.2;color:var(--tl1)}
.piece .eyebrow{font-size:11px;margin-bottom:2px}
.hook{font-size:15px;line-height:1.4;color:var(--tl2)}
.piece .voice{font-size:15px;line-height:1.4}
.hung{max-width:792px}

/* The strip: a row of paintings that runs past the page's edge, as the app's carousels do. */
.strip{display:flex;gap:18px;margin-top:34px;padding-block:2px 6px;padding-left:max(var(--gutter),env(safe-area-inset-left,0px),calc((100% - var(--measure)) / 2));padding-right:max(var(--gutter),env(safe-area-inset-right,0px),calc((100% - var(--measure)) / 2));overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-inline:max(var(--gutter),calc((100% - var(--measure)) / 2));scrollbar-width:none;-webkit-overflow-scrolling:touch}
.strip::-webkit-scrollbar{display:none}
.strip .piece{flex:0 0 min(396px,82vw);scroll-snap-align:start;min-width:0}
.strip .piece.era{flex-basis:min(340px,78vw)}

/* The rail under a strip (built by site.js): a tick a room, the chosen one in the accent. */
.rail{display:flex;align-items:center;gap:14px;margin-top:18px}
.ticks{display:flex;flex:1 1 auto;min-width:0;max-width:520px}
.ticks button{flex:1 1 0;min-width:0;max-width:20px;height:30px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.ticks button::before{content:"";width:2px;height:10px;border-radius:1px;background:var(--hl-bright)}
.ticks button[aria-current="true"]::before{height:18px;background:var(--a2)}
.rail.road .ticks button::before{width:7px;height:7px;border-radius:50%}
.rail.road .ticks button[aria-current="true"]::before{width:9px;height:9px}
.puck{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;border:1px solid var(--hl);background:linear-gradient(160deg,var(--card-a),var(--card-b));color:var(--tl2);cursor:pointer}
.puck:hover{border-color:var(--hl-bright);color:var(--tl1)}
.puck svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rail .spacer{flex:1 1 0}

/* The Knockout runs: a grid where there is room, a strip where there is not. */
.runs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px;margin-top:40px}
.runs .piece strong{font-size:18px}

/* The computer's players. */
.cast{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:26px 16px;margin-top:40px}
.player img{display:block;width:100%;aspect-ratio:1;border-radius:14px;border:1px solid var(--hl);background:var(--card-b)}
.player figcaption{padding-top:10px;gap:1px}
.player strong{font-size:17px;line-height:1.2;color:var(--tl1)}
.player .hook{font-size:14px;color:var(--tl3)}
.player .eyebrow{font-size:10.5px;letter-spacing:.14em;margin-top:3px;color:var(--tl4)}

/* Crops of real screens. */
.plates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 22px;margin-top:40px;align-items:start}
.plate img{display:block;width:100%;border-radius:14px;border:1px solid var(--hl)}
.plate figcaption{display:grid;gap:6px;padding:14px 2px 0}
.plate h3{font-size:20px;line-height:1.25}
.plate p{font-size:16px}

/* The plaque (P12) and the well. */
.plaque{padding:24px 24px 26px;border-radius:16px;border:1px solid var(--hl);background:linear-gradient(160deg,var(--card-a),var(--card-b))}
.plaque h3{font-size:21px;line-height:1.25}
.plaque p{margin-top:10px;font-size:16px}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:36px}
.well{padding:8px 22px;border-radius:14px;border:1px solid var(--hl);background:linear-gradient(180deg,var(--well-b),var(--well-a));box-shadow:inset 0 2px 8px rgba(0,0,0,.5)}
.sounds{columns:2;column-gap:28px;margin:0;padding:0;list-style:none}
.sounds li{break-inside:avoid;padding:11px 0;border-bottom:1px solid var(--hl-soft);font-size:16px;line-height:1.3;color:var(--tl1)}

/* ---- the close and the foot ---- */
.close h2{font-size:clamp(30px,4.2vw,52px);line-height:1.08;max-width:16em}
.close .voice{display:block;margin-top:16px;font-size:18px}
footer{padding-block:34px 44px;border-top:1px solid var(--hl-soft);font-size:14px;color:var(--tl4)}
footer .wrap{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:22px 40px}
footer .pub{margin-top:12px;max-width:36em;line-height:1.5}
footer .links{display:flex;flex-wrap:wrap;gap:8px 22px}
footer .links a{font-size:12px;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;color:var(--tl3)}
footer .links a:hover{color:var(--tl1)}

/* ---- the Struck Bar (ui/GoldButton.js): the one commit object. Only "Open in Caissa" wears it. ---- */
.bar{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:min(280px,100%);height:48px;margin-bottom:4px;padding:0 26px;overflow:hidden;border-radius:10px;background:linear-gradient(180deg,var(--plate-a),var(--plate-b) 52%,var(--plate-c));box-shadow:inset 0 1px 0 rgba(255,250,232,.9),inset 0 -1px 0 rgba(122,88,24,.55),0 4px 0 var(--plate-lip),0 14px 28px rgba(224,189,114,.16);color:var(--struck-ink);font-weight:700;font-size:14px;letter-spacing:2.2px;text-transform:uppercase;text-decoration:none;text-shadow:0 1px 0 rgba(255,247,220,.65)}
.bar::before{content:"";position:absolute;inset:4px;border-radius:6px;border:1px solid rgba(92,64,14,.3);box-shadow:0 1px 0 rgba(255,248,224,.45);pointer-events:none}
/* The gleam: one band of light that crosses the face and rests. */
.bar::after{content:"";position:absolute;top:0;bottom:0;left:0;width:34%;background:linear-gradient(100deg,rgba(255,252,240,0),rgba(255,252,240,.55) 45%,rgba(255,252,240,.12) 70%,rgba(255,252,240,0));transform:translateX(-110%);animation:gleam 4.6s linear infinite;pointer-events:none}
.bar:active{transform:translateY(3px);box-shadow:inset 0 1px 0 rgba(255,250,232,.9),inset 0 -1px 0 rgba(122,88,24,.55),0 1px 0 var(--plate-lip)}
@keyframes gleam{0%{transform:translateX(-110%)}30%,100%{transform:translateX(310%)}}
/* The quiet action: an outline, for a way back. */
.quiet{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 24px;border-radius:10px;border:1px solid var(--hl-bright);color:var(--tl1);font-weight:700;font-size:13px;letter-spacing:2px;text-transform:uppercase;text-decoration:none}
.quiet:hover{border-color:var(--p1)}

/* ---- the small pages: invite, join, 404 ---- */
.card-page{padding-block:clamp(28px,6vw,80px) clamp(48px,8vw,104px)}
.card-page .wrap{max-width:calc(680px + 2 * var(--gutter))}
.card-page h1{margin-top:12px;font-size:clamp(32px,5vw,50px);line-height:1.08}
.card-page .lede{margin-top:16px}
.card-page .plaque{margin-top:32px;padding:0;overflow:hidden}
.card-page .plaque>img{display:block;width:100%;aspect-ratio:792/312;object-fit:cover;border-bottom:1px solid var(--hl)}
.card-page .inner{display:grid;justify-items:start;gap:14px;padding:24px 24px 26px}
.card-page .inner h2{font-size:22px;line-height:1.25}
.card-page .inner .soon{margin-top:4px}
.card-page .inner .bar{margin-top:4px}
.soon-row{margin-top:30px}
.fine{margin-top:26px;font-size:14px;color:var(--tl4)}

/* ---- the reading pages: privacy and support (their wording is not this file's to change) ---- */
.doc{padding-block:clamp(28px,6vw,72px) clamp(48px,8vw,104px)}
.doc .wrap{max-width:calc(720px + 2 * var(--gutter))}
.doc .eyebrow.big{font-size:13px}
.doc h1{margin-top:12px;font-size:clamp(32px,4.6vw,50px);line-height:1.08}
.doc h2{margin-top:52px;padding-top:26px;border-top:1px solid var(--hl-soft);font-size:26px;line-height:1.2}
.doc h3{margin-top:30px;font-size:19px;line-height:1.3}
.doc p{margin-top:14px}
.doc h1+p{margin-top:18px}
.doc ul{margin-top:14px;padding-left:1.15em;display:grid;gap:9px}
.doc li::marker{color:var(--tl4)}
.doc b{font-weight:600;color:var(--tl1)}
.doc .updated{font-size:15px;color:var(--tl4)}
.doc .draft{margin-top:20px;padding:16px 20px;border-radius:14px;border:1px solid var(--hl);background:linear-gradient(180deg,var(--well-b),var(--well-a));box-shadow:inset 0 2px 8px rgba(0,0,0,.5);font-size:15px;color:var(--tl3)}
.doc .draft b{display:block;margin-bottom:4px;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--warn)}
.doc .counsel{font-size:.78em;letter-spacing:.04em;white-space:nowrap;color:var(--warn)}
.faq{display:grid;gap:10px;margin-top:18px}
.faq details{border-radius:14px;border:1px solid var(--hl);background:linear-gradient(160deg,var(--card-a),var(--card-b))}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 20px;cursor:pointer;list-style:none;font-weight:600;color:var(--tl1)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:8px;height:8px;margin-top:-4px;border-right:2px solid var(--tl3);border-bottom:2px solid var(--tl3);transform:rotate(45deg)}
.faq details[open] summary::after{margin-top:4px;transform:rotate(225deg)}
.faq details p{margin:0;padding:0 20px 18px;font-size:16px}

/* ---- narrower ---- */
@media (max-width:1000px){
  .deck{grid-template-columns:repeat(2,minmax(0,1fr))}
  .deck li:last-child{grid-column:1/-1}
  .runs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .cast{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 14px}
}
@media (max-width:760px){
  :root{--gutter:20px}
  .nav .far{display:none}
  .hero .wrap,.duo{grid-template-columns:minmax(0,1fr)}
  .duo.flip>:last-child{order:0}
  .stage{margin-top:8px}
  .three{grid-template-columns:minmax(0,1fr)}
  /* the plates become a strip */
  .plates{display:flex;gap:16px;margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-inline:var(--gutter);scrollbar-width:none}
  .plates::-webkit-scrollbar{display:none}
  .plate{flex:0 0 min(320px,82vw);scroll-snap-align:start}
  .cast{gap:22px 12px}
  .head{gap:12px}
  .head .seal{width:40px;height:40px}
  .head .seal svg{width:20px;height:20px}
}
@media (max-width:560px){
  .deck{grid-template-columns:minmax(0,1fr)}
  .deck li:last-child{grid-column:auto}
  /* the runs become a strip */
  .runs{display:flex;gap:16px;margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-inline:var(--gutter);scrollbar-width:none}
  .runs::-webkit-scrollbar{display:none}
  .runs .piece{flex:0 0 min(300px,80vw);scroll-snap-align:start}
  .sounds{columns:1}
  .rail .puck{display:none}
  .soon{display:flex}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  /* The bar keeps its mark: the band parked on its face, still. */
  .bar::after{animation:none;transform:translateX(120%)}
}
