/* bartzweers.com/addons: a title, two buttons, a slow night sky.
   One look ties it together: arcane night (indigo-black with violet and cyan light), a hard black
   shadow under everything that stands up (the title, both buttons), and a faint halftone in the
   backdrop. Each button keeps its own addon's character inside that frame.
   Fonts are SIL Open Font License (fonts/*-OFL.txt): Pirata One for the title, Redaction for
   Chronicle, Bangers (Kapow's own lettering) for Kapow, Thrum Runes (Thrum's own) for Thrum. */
@font-face { font-family: 'Pirata One'; src: url(fonts/pirataone-regular.ttf); font-display: swap; }
@font-face { font-family: 'Redaction'; src: url(fonts/redaction-regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Bangers'; src: url(fonts/bangers-regular.ttf); font-display: swap; }
@font-face { font-family: 'Thrum Runes'; src: url(fonts/thrumrunes.ttf); font-display: swap; }

:root {
  --bg: #07071a;
  --ink: #04030c;              /* the hard shadow and outlines */
  --white: #f5f3ff;
  --violet: #a68bff;
  --cyan: #6fe3ff;
  --text: #e9e7ff;
  --soft: rgba(233, 231, 255, 0.66);
  --lift: 8px;                  /* how far the ink shadow sits */
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow-x: hidden;
  color: var(--text); font: 16px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
/* Kapow's halftone, faint and only towards the edges, so the backdrop belongs to both buttons */
.dots { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background: radial-gradient(rgba(166, 139, 255, 0.18) 1px, transparent 1.6px) 0 0 / 11px 11px;
  -webkit-mask: radial-gradient(ellipse at 50% 45%, transparent 35%, #000 95%); mask: radial-gradient(ellipse at 50% 45%, transparent 35%, #000 95%); }

main { width: 100%; padding: 48px 16px 72px; text-align: center; }

/* ---------- the title: blackletter with an arcane sheen and an ink shadow, under a banner line ---------- */
.mast { display: inline-block; animation: arrive 0.9s cubic-bezier(.2, .8, .2, 1) both; }
.kicker { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--cyan); }
.kicker::before, .kicker::after { content: ""; flex: 1; height: 2px; min-width: 28px;
  background: linear-gradient(90deg, transparent, var(--violet)); }
.kicker::after { background: linear-gradient(270deg, transparent, var(--violet)); }
.kicker span { padding-left: 0.42em; }  /* balances the letter-spacing after the last letter */
.title { position: relative; }
.title h1, .title .ink { display: block; margin: 0; padding: 0 0.06em; font: 400 clamp(110px, 20vw, 280px)/0.92 'Pirata One', 'UnifrakturMaguntia', serif;
  letter-spacing: 0.01em; }
/* the ink: the same word, solid, set down and right like the buttons' shadows */
.title .ink { position: absolute; inset: 0; color: var(--ink); -webkit-text-stroke: 4px var(--ink);
  transform: translate(var(--lift), var(--lift)); }
.title h1 { position: relative; background: linear-gradient(172deg, #ffffff 22%, #d9ccff 48%, var(--violet) 70%, var(--cyan) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 34px rgba(140, 110, 255, 0.35)); }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } }

/* ---------- the buttons: one frame, two characters ---------- */
.addons { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px; margin-top: clamp(36px, 7vh, 72px); }
.addon { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: min(330px, 100%); min-height: 196px;
  padding: 26px 28px 20px; border: 2.5px solid var(--ink); border-radius: 14px; text-align: left; text-decoration: none; color: inherit;
  isolation: isolate; overflow: hidden; box-shadow: var(--lift) var(--lift) 0 var(--ink);
  transition: transform 0.25s cubic-bezier(.3, 1.5, .5, 1), box-shadow 0.25s cubic-bezier(.3, 1.5, .5, 1);
  animation: arrive 0.8s cubic-bezier(.2, .8, .2, 1) both; }
.addon:nth-child(1) { animation-delay: 0.2s; }
.addon:nth-child(2) { animation-delay: 0.3s; }
.addon:nth-child(3) { animation-delay: 0.4s; }
.addon .name { line-height: 1; }
.addon .what { margin-top: 8px; font-size: 14px; }
.addon .go { display: flex; justify-content: space-between; align-items: center; align-self: stretch; margin-top: auto; padding-top: 14px;
  border-top: 1.5px solid currentColor; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.addon .go i { font-style: normal; font-size: 16px; transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1); }
/* shared: lift on hover, press on click */
.addon:hover { transform: translate(-3px, -3px); box-shadow: calc(var(--lift) + 3px) calc(var(--lift) + 3px) 0 var(--ink); }
.addon:active { transform: translate(5px, 5px); box-shadow: 3px 3px 0 var(--ink); transition-duration: 0.06s; }
.addon:focus-visible { outline: 2px solid var(--white); outline-offset: 6px; }

/* Chronicle: midnight blue, silver-cyan lettering, a light that follows the pointer, a sheen on hover */
.chronicle { color: var(--cyan);
  background: radial-gradient(240px circle at var(--mx, 30%) var(--my, 0%), rgba(120, 190, 255, 0.2), transparent 65%),
    linear-gradient(160deg, #1d2160, #0b0c26 75%); }
.chronicle::before { content: ""; position: absolute; inset: 5px; z-index: -1; border: 1px solid rgba(111, 227, 255, 0.25); border-radius: 9px;
  pointer-events: none; transition: border-color 0.3s; }
.chronicle::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(115deg, transparent 35%, rgba(210, 235, 255, 0.16) 50%, transparent 65%); }
.chronicle .name { font: 52px 'Redaction', Georgia, serif;
  background: linear-gradient(180deg, #ffffff, #c4ecff 60%, #8ea2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chronicle .what { color: rgba(214, 226, 255, 0.72); }
.chronicle .go { border-top-color: rgba(111, 227, 255, 0.28); }
.chronicle:hover::before { border-color: rgba(111, 227, 255, 0.6); }
.chronicle:hover::after { transform: translateX(130%); transition: transform 1s ease; }
.chronicle:hover .go i { transform: translateX(5px); }

/* Kapow: comic yellow with halftone dots and a starburst that opens on hover */
.kapow { color: var(--ink);
  background: radial-gradient(rgba(160, 30, 0, 0.24) 1.3px, transparent 1.8px) 0 0 / 9px 9px, linear-gradient(150deg, #ffe14a, #ffc23d 50%, #ff8a1f); }
.kapow .burst { position: absolute; z-index: -1; right: -46px; top: -64px; width: 210px; height: 210px; pointer-events: none;
  background: #fff6c8; transform: scale(0) rotate(-20deg); transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1);
  clip-path: polygon(50% 0, 58% 30%, 85% 8%, 70% 38%, 100% 35%, 74% 52%, 98% 72%, 66% 66%, 72% 100%, 52% 74%, 32% 98%, 34% 66%, 2% 78%, 26% 52%, 0 30%, 30% 36%, 14% 6%, 42% 28%); }
.kapow .name { font: 66px 'Bangers', Impact, sans-serif; letter-spacing: 0.02em; color: #fff; -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg); transform-origin: left center; }
.kapow .what, .kapow .go { font-weight: 700; }
.kapow .go { border-top-color: rgba(4, 3, 12, 0.45); }
.kapow:hover .burst { transform: scale(1) rotate(12deg); }
.kapow:hover .go i { transform: translateX(5px); }

/* Thrum: a carved wooden plaque on forest green, cream runes, the four elements as stones */
.thrum { color: var(--white);
  background: repeating-linear-gradient(176deg, rgba(0, 0, 0, 0.1) 0 2px, transparent 2px 10px),
    radial-gradient(260px circle at 80% 0%, rgba(127, 200, 255, 0.18), transparent 65%),
    linear-gradient(160deg, #24493f, #0f201c 75%); }
.thrum::before { content: ""; position: absolute; right: 20px; top: 24px; width: 64px; height: 14px; pointer-events: none;
  background: linear-gradient(90deg, #8a5a2b 0 22%, transparent 22% 26%, #e8641e 26% 48%, transparent 48% 52%, #2f86d6 52% 74%, transparent 74% 78%, #cfe6f0 78%);
  border-radius: 2px; box-shadow: 2px 2px 0 var(--ink); opacity: 0.9; transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1); }
.thrum .name { font: 54px 'Thrum Runes', Impact, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: #f3e6c4;
  -webkit-text-stroke: 2.5px #231409; paint-order: stroke fill; text-shadow: 4px 4px 0 #231409; }
.thrum .what { color: rgba(220, 240, 230, 0.75); }
.thrum .go { color: #7fc8ff; border-top-color: rgba(127, 200, 255, 0.28); }
.thrum:hover::before { transform: translateY(-3px) rotate(-3deg); }
.thrum:hover .go i { transform: translateX(5px); }

@media (max-width: 520px) {
  :root { --lift: 6px; }
  main { padding-top: 40px; }
  .kicker { font-size: 10px; letter-spacing: 0.32em; gap: 10px; }
  .addons { gap: 28px; }
  .addon { min-height: 176px; padding: 22px 22px 18px; }
  .chronicle .name { font-size: 46px; }
  .kapow .name { font-size: 58px; }
  .thrum .name { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
