/* Banquet — direction 19. Highlighter yellow, Helvetica set large, Times for the name and the asides.
   Layout: one wide text column; every line of copy sits on its own black highlight bar. */
:root {
  --yellow: #f2e640;
  --ink: #231a12;
  --ink-soft: rgba(35, 26, 18, .42);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Times New Roman", Times, serif;
  --big: clamp(25px, 3.35vw, 50px);
  --mid: clamp(20px, 2.2vw, 32px);
  --small: 15px;
  --ease: cubic-bezier(.7, 0, .25, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--yellow); }
body { margin: 0; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--ink); color: var(--yellow); }
a { color: inherit; text-decoration: none; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }

/* Paper grain */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .18  0 0 0 0 0  0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Intro: yellow with the black Anotherland logo, shown once per visit (see loader.js) */
.loader { display: none; }
html.is-loading { overflow: hidden; }
html.is-loading .loader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 55; background: var(--yellow); will-change: transform; }
.loader img { width: clamp(128px, 15vw, 210px); height: auto; animation: logo-in 1s cubic-bezier(.2, .8, .2, 1) .1s both; }
html.loader-out .loader { transform: translateY(-100%); transition: transform .8s var(--ease); }
/* Rise only, never fade: if a browser holds animations back, the logo is still there. */
@keyframes logo-in { from { transform: translateY(14px) scale(.97); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .loader img { animation: none; }
  html.loader-out .loader { transform: none; opacity: 0; transition: opacity .3s linear; }
}

/* Highlighted lines — built by hl.js, readable without it */
.ln { display: inline; position: relative; padding: 0 .14em .05em .08em; margin-left: -.08em; color: var(--yellow);
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-js .ln { color: var(--ink); background-size: 0% 100%; transition: background-size .55s var(--ease), color .01s linear .28s; }
.hl-js .ln.on { color: var(--yellow); background-size: 100% 100%; }

/* Page frame */
.top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.chip { pointer-events: auto; display: inline-block; font-size: var(--small); line-height: 1; padding: .32em .5em .38em; background: var(--ink); color: var(--yellow); transition: background .3s, color .3s, transform .3s var(--ease); }
.chip.serif { font-size: 18px; padding: .22em .45em .3em; }
a.chip:hover { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
a.chip:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.big { font-size: var(--big); line-height: 1.1; letter-spacing: -.01em; margin: 0; }
.mid { font-size: var(--mid); line-height: 1.15; letter-spacing: -.005em; margin: 0; }
.indent { text-indent: 1.5em; }
.pad { padding-left: 1.5em; }
.label { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.2; margin: 0; }
footer.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px calc(env(safe-area-inset-bottom, 0px) + 24px); font-size: 13px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .hl-js .ln { transition: none; } }
