/* ==========================================================================
   Northorn and the palace. The Light Nation tells you things on slips of paper
   with a red seal; Northorn does it on plates of black iron with a seal of wax
   and a rune. Otherwise the pieces are the same ones (see scenes.css).
   ========================================================================== */

/* ---------- The plate ---------- */
.slip.is-dark{color:var(--parch);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='2' seed='6'/%3E%3CfeColorMatrix values='0 0 0 0 .86  0 0 0 0 .78  0 0 0 0 .82  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    linear-gradient(180deg,#1b1d29,#0d0e15);
  box-shadow:0 26px 80px rgba(0,0,0,.66),inset 0 0 0 1px rgba(197,151,165,.3),inset 0 1px 0 rgba(255,255,255,.06)}
.slip.is-dark::before,.slip.is-dark::after{background:linear-gradient(90deg,transparent,var(--crimson-hi) 12%,var(--crimson-hi) 88%,transparent);opacity:.55}
.slip.is-dark .eyebrow{color:var(--rose)}
.slip.is-dark .slip-title{font:500 clamp(1.75rem,2.8vw,2.3rem)/1.04 var(--f-gothic);letter-spacing:.02em;color:var(--bone)}
.slip.is-dark p{color:var(--parch)}
.slip.is-dark em,.slip.is-dark q{color:#f3e2e6}
/* the seal: crimson wax pressed with a single rune */
.seal.is-rune{rotate:-7deg;border-radius:50%;font:400 1.22rem/1 var(--f-rune);color:#ffe9ee;
  background:radial-gradient(circle at 34% 28%,#cf3350,#8a142a 62%,#5e0c1c);
  box-shadow:0 5px 16px rgba(0,0,0,.6),inset 0 0 0 2px rgba(255,220,226,.16),inset 0 -4px 7px rgba(40,0,10,.55)}

/* ---------- Chapter titles in the north: blackletter, with runes beneath ---------- */
.headline.is-north{color:var(--bone)}
.headline.is-north .eyebrow{color:var(--rose)}
.headline.is-north h2{font:500 clamp(2.9rem,7.4vw,6.6rem)/.96 var(--f-gothic);letter-spacing:.03em;text-transform:none;text-shadow:0 0 60px rgba(158,27,50,.5),0 3px 26px rgba(4,4,8,.85)}
.headline.is-north h2 i{font-style:normal;letter-spacing:.03em;color:#e3a3b2}
.headline.is-north .rune{display:block;margin:1.2rem -.7em 0 0;font:400 clamp(.72rem,1.05vw,.95rem)/1 var(--f-rune);letter-spacing:.7em;color:var(--rose)}
.headline.is-north::before{background:radial-gradient(closest-side,rgba(5,5,9,.7),rgba(5,5,9,.4) 50%,rgba(5,5,9,0))}

/* ---------- People in the north: tags of dark stone, a colder light on them ---------- */
html[data-realm="dark"] .fig-tag{color:var(--bone);background:linear-gradient(180deg,#1c1e2a,#0e0f17);font:500 .9rem/1 var(--f-gothic);letter-spacing:.1em;text-transform:none;
  box-shadow:0 6px 22px rgba(0,0,0,.62),inset 0 0 0 1px rgba(197,151,165,.42)}
html[data-realm="dark"] .fig-tag::after{background:#0e0f17;box-shadow:1px 1px 0 rgba(197,151,165,.42)}
.fig-tag .is-rune{font:400 .64rem/1 var(--f-rune);letter-spacing:.2em;color:var(--rose)}
html[data-realm="dark"] .fig-art img{filter:var(--grade,none) drop-shadow(0 0 calc(var(--glow) * 7px) rgba(255,176,194,calc(var(--glow) * .9))) drop-shadow(0 0 calc(var(--glow) * 22px) rgba(210,54,79,calc(var(--glow) * .55)))}
html[data-realm="dark"] .fig-hint{background:#ffdbe3}
html[data-realm="dark"] .spot::before{background:radial-gradient(closest-side,rgba(255,170,190,.26),rgba(210,54,79,.1) 55%,rgba(210,54,79,0))}
html[data-realm="dark"] .fig-shadow{background:radial-gradient(closest-side,rgba(0,0,0,.7),rgba(0,0,0,.32) 55%,rgba(0,0,0,0))}
/* a card speaks in whichever script its speaker's name is written in */
.card.is-rune .card-kanji{font-family:var(--f-rune);font-size:.74rem;letter-spacing:.3em}

/* ---------- The Gilded Cask: what stands in front of the landlady ---------- */
.fore-counter{clip-path:polygon(0% 57.4%,45% 56.6%,45% 100%,0% 100%)}
/* the round table in the middle of the Cask, traced from the painting: its far edge (the lit rim behind the small jug included), the tall jug, the lantern (and the ring
   on its top), the small jug with its handle, and the chair standing behind the table; Luciene stands further back */
.fore-round{clip-path:polygon(25.5% 100%,25.5% 88%,27% 84.5%,29% 82.5%,31% 81%,34% 80%,37% 79.5%,39.8% 79.4%,
  39.8% 74.3%,40.3% 73.4%,41% 73.2%,41.1% 72.2%,42% 71.9%,44.3% 72%,44.5% 72.4%,
  45.2% 72.4%,46.3% 72.2%,46.4% 69.8%,46.7% 69.8%,46.8% 72.2%,47.9% 72.4%,48.4% 72.6%,48.4% 74%,48.4% 77.6%,
  49.2% 77.6%,49.2% 77.5%,49.4% 76.4%,50.2% 76.1%,51.6% 76.1%,52.3% 76.3%,52.5% 76.9%,52.9% 77.2%,53% 77.9%,
  54% 77.7%,55% 77.6%,56% 77.6%,57% 77.8%,57.8% 78.1%,58.3% 78.2%,
  58.3% 72%,58.5% 70.7%,59.5% 70.2%,60.8% 69.4%,62.2% 68.8%,63.4% 69.3%,64.6% 70.4%,65.4% 71.6%,66% 72.5%,66% 100%)}

@media (max-width:760px){
  .headline.is-north h2{font-size:clamp(2.5rem,12.5vw,4rem)}
  .slip.is-dark .slip-title{font-size:1.55rem}
}

/* phones: the academy title stands higher, over the hall, clear of the general standing on its floor */
@media (max-width:760px){#academy .cap.headline[data-side]{top:29%}}

/* ---------- The Gilded Cask's hanging sign: its name in gold leaf on the painted board (the board's face, in % of the painting) ---------- */
.cask-sign{position:absolute;left:86.5%;top:46.9%;width:4.2%;height:5.8%;z-index:1;overflow:visible;pointer-events:none;
  transform:perspective(260px) rotateY(6deg) rotate(-4deg);transform-origin:50% 50%;opacity:.95}
.cask-sign .cs-the{font:italic 700 17px var(--f-display);letter-spacing:.02em}
.cask-sign .cs-word{font:700 29px var(--f-gothic);letter-spacing:.01em}
.cask-sign .cs-word.is-cask{font-size:31px}
