/* about.css - the About page. Same fonts and colours as the site; the
   castle and the audience are drawn by js/ui/aboutart.js (SVG). */

@font-face { font-family: 'Fredoka'; src: url('../fonts/Fredoka-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-latin.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #141925; --plate: #1b2231; --line: rgba(255, 255, 255, 0.09); --well: #2a3346;
  --text: #f1ede4; --muted: #a9b4c7; --yellow: #f7b733; --teal: #3ecfb2; --coral: #ff6b5e; --pink: #ff4fd8;
  --head: 'Fredoka', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --body: 'Nunito', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: #0b0e17; }
body {
  position: relative; margin: 0; min-height: 100vh;
  color: var(--text); font: 400 17px/1.6 var(--body);
  /* an even dark night that gets darker towards the edges (no stripes) */
  background: radial-gradient(ellipse 120% 90% at 50% 35%, #182031 0%, var(--bg) 45%, #0b0e17 100%) fixed, var(--bg);
}
/* THE SKELETON HAND (tools/make-cursors.js draws the pictures): a bony hand
   pointing with its index finger; over links and buttons the fingertip
   glows. The hot spot is the fingertip. Three lines each: browsers keep the
   last one they understand (plain picture, then sharp pictures for dense
   screens), and the word after the comma is the system cursor if no
   picture loads. */
body {
  cursor: url('../img/cursor-hand.png') 9 1, auto;
  cursor: -webkit-image-set(url('../img/cursor-hand.png') 1x, url('../img/cursor-hand@2x.png') 2x) 9 1, auto;
  cursor: image-set(url('../img/cursor-hand.png') 1x, url('../img/cursor-hand@2x.png') 2x) 9 1, auto;
}
a, button {
  cursor: url('../img/cursor-point.png') 9 1, pointer;
  cursor: -webkit-image-set(url('../img/cursor-point.png') 1x, url('../img/cursor-point@2x.png') 2x) 9 1, pointer;
  cursor: image-set(url('../img/cursor-point.png') 1x, url('../img/cursor-point@2x.png') 2x) 9 1, pointer;
}
/* touch screens show no cursor at all: nothing to load there */
@media (hover: none) { body, a, button { cursor: auto; } }

/* the castle sits behind the top of the page; the page itself is above it */
.castle {
  position: absolute; left: 0; right: 0; top: 0; z-index: 0; pointer-events: none;
  /* the picture is 1600 x 300: its height follows the width, so nothing is cut off */
  height: clamp(200px, 18.75vw, 420px);
  /* the hill melts into the night instead of ending in a hard line */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.castle svg, .crowd svg { display: block; width: 100%; height: 100%; }
.page { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 24px 16px 24px; }
/* the audience: its own strip under everything, so it never covers text */
.crowd { position: relative; height: clamp(110px, 14.4vw, 320px); margin-top: 8px; pointer-events: none; }   /* (1600 x 230) */

a { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.back { display: inline-block; font: 700 15px/1 var(--body); text-decoration: none; padding: 10px 14px; border-radius: 10px; background: var(--well); color: var(--text); }
.back:hover { background: #36415a; }

.hero { position: relative; text-align: center; padding: clamp(96px, 11vw, 240px) 0 36px; }
.hero .back { position: absolute; left: 0; top: 0; }
.kicker {
  display: inline-block; margin: 0; padding: 4px 16px; border-radius: 10px;
  font: 600 22px/1.3 var(--head); letter-spacing: 0.12em; color: #ffe6fa; background: rgba(11, 14, 23, 0.85);
  border: 3px solid var(--pink); box-shadow: 0 0 18px rgba(255, 79, 216, 0.55), inset 0 0 10px rgba(255, 79, 216, 0.4);
}
h1 { margin: 10px 0 6px; font: 600 clamp(44px, 9vw, 84px)/1 var(--head); letter-spacing: 0.03em; color: var(--yellow); text-shadow: 0 6px 0 #7a4b10; }

main { display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--plate); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
h2 { margin: 0 0 10px; font: 600 28px/1.15 var(--head); color: var(--teal); }
h3 { margin: 18px 0 6px; font: 600 19px/1.2 var(--head); color: var(--yellow); }
.card p { margin: 0 0 10px; }
ul { margin: 0; padding-left: 20px; }
li { margin: 4px 0; }
li::marker { color: var(--coral); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.cols h3:first-child { margin-top: 4px; }
kbd { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 6px; background: var(--well); border-bottom: 3px solid #1a2030; font: 700 14px/1.5 var(--body); text-align: center; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; align-items: center; }
.keys dd { margin: 0; }
.licence { font-size: 19px; font-weight: 700; }
.small { font-size: 13px; color: var(--muted); }

/* ---- the donation box (js/ui/donate.js) ---- */
.donate-soon { display: inline-block; margin: 0; padding: 8px 14px; border-radius: 10px; background: var(--well); font-weight: 800; color: var(--yellow); }
.donate-box { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.donate-main { flex: 1; min-width: 260px; }
.donate-plate { display: flex; align-items: stretch; gap: 8px; padding: 6px; border-radius: 12px; background: var(--well); }
.donate-address span { white-space: nowrap; }          /* each half of the address stays whole */
.donate-address { flex: 1; min-width: 0; align-self: center; padding: 6px 8px; font: 15px/1.45 Consolas, 'SF Mono', Menlo, monospace; letter-spacing: 0.01em; overflow-wrap: normal; color: var(--text); }
.donate-copy { flex: none; min-height: 48px; min-width: 100px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--yellow); color: #1a1d28; font: 800 15px/1 var(--body); }
.donate-copy:hover { background: #ffc94d; }
.donate-net { margin: 10px 0 0; color: var(--muted); font-weight: 700; }
.donate-net b { color: var(--text); }
.donate-warn { margin: 6px 0 0 4px; color: var(--coral); font-weight: 800; font-size: 13px; }
.donate-qr { margin: 0; padding: 10px; background: #fff; border-radius: 12px; line-height: 0; }
.donate-qr[hidden] { display: none; }
.donate-qr img { width: 150px; height: 150px; display: block; }

.foot { margin-top: 26px; text-align: center; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .cols { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; }
  .hero .back { position: absolute; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
