/* Self-hosted fonts (from @fontsource). Cinzel Decorative, Oswald, Permanent Marker: SIL OFL 1.1. Ubuntu: Ubuntu Font Licence 1.0. Canter Light: (c) 2013 Christopher J. Lee, supplied by the site owner. */
@font-face { font-family: "Cinzel Decorative"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/cinzel-decorative-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel Decorative"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/cinzel-decorative-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Canter"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/canter-light.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200; font-display: swap; src: url("fonts/oswald-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ubuntu-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ubuntu-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ubuntu-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ubuntu-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/permanent-marker-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #07060b;
  --bg-alt: #0e0c16;
  --ink: #f3f1ea;
  --muted: #b9b5c6;
  --green: #9cff2e;
  --red: #ff3b30;
  --yellow: #ffd21f;
  --orange: #ff8a1f;
  --blue: #3fa9ff;
  --purple: #b86bff;
  --cyan: #29e6e6;
  --radius: 18px;
  /* Still frame of the mural; shown until the video plays, and instead of it
     for visitors who have reduced motion turned on. */
  --mural: url("assets/mural-poster.webp");
  --maxw: 1160px;
  --display: "Cinzel Decorative", Georgia, serif;
  --condensed: "Oswald", "Arial Narrow", sans-serif;
  --canter: "Canter", "Oswald", "Arial Narrow", sans-serif;
  --body: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.075rem/1.7 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
/* Cinzel Decorative joins letters like "OO" and "TH" by default; keep words readable. */
.one-line { white-space: nowrap; font-size: min(var(--max), calc((100vw - 32px) / var(--w))); font-size: min(var(--max), 100cqi / var(--w)); }
h2, .t-main, .names, .fmt h3, .final-line, .dropcap::first-letter { font-variant-ligatures: none; font-feature-settings: "liga" 0, "dlig" 0, "calt" 0; font-kerning: none; }
h2, .fmt h3 { text-transform: uppercase; }
h2 { font: 700 clamp(1.8rem, 4.5vw, 2.8rem)/1.15 var(--display); color: var(--green); letter-spacing: .01em; }
h3 { font: 500 1.35rem/1.2 var(--condensed); letter-spacing: .04em; text-transform: uppercase; }
p { margin: 0 0 1.1em; }
p, h2, h3, li, blockquote { text-wrap: pretty; }
em { color: var(--green); font-style: italic; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.cta-row.center { justify-content: center; }
.gap-top { margin-top: 2.2em; }
.sub { color: var(--muted); font-size: 1.1rem; }
.eyebrow { font: 500 .9rem/1 var(--condensed); letter-spacing: .28em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--yellow); color: #000; padding: .5em 1em; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1rem/1 var(--body); letter-spacing: .02em;
  padding: 1em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  min-height: 48px; text-align: center;
}
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn-primary { background: var(--green); color: #051200; box-shadow: 0 0 0 0 rgba(156,255,46,.6), 0 10px 30px -8px rgba(156,255,46,.6); animation: pulse 2.8s ease-in-out infinite; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(156,255,46,.85); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--ink); }
.topbar .btn-small { white-space: nowrap; }
@media (max-width: 480px) { .topbar .btn-small { padding: .6em .85em; font-size: .85rem; } }
.cta-short { display: none; }
@media (max-width: 480px) { .cta-long { display: none; } .cta-short { display: inline; } }
.btn-small { padding: .7em 1.2em; min-height: 40px; font-size: .92rem; background: var(--green); color: #051200; }
.btn-big { font-size: 1.15rem; padding: 1.15em 2.2em; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(156,255,46,.45), 0 10px 30px -8px rgba(156,255,46,.6); } 50% { box-shadow: 0 0 0 10px rgba(156,255,46,0), 0 10px 30px -8px rgba(156,255,46,.6); } }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: var(--mural) center / cover no-repeat, #07060b;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { text-decoration: none; }
/* Title lockup: "Myko's Reward" over "The Original Power", always centered,
   each on one line, the subtitle about 90% of the title's width (as on the cover).
   --lk is the title's font size; the subtitle is derived from it. */
.lockup { display: block; text-align: center; margin: 0; font-weight: normal; }
.lockup .t-main { display: block; white-space: nowrap; font: 900 var(--lk)/1 var(--display); color: var(--green); letter-spacing: 0;
  text-shadow: -1px -1px 0 rgba(255,255,255,.45), 2px 3px 0 #000, 0 0 28px rgba(156,255,46,.3); }
.lockup .t-sub { display: block; white-space: nowrap; font: 300 calc(var(--lk) * 1.56)/1 var(--canter); color: var(--red); letter-spacing: .03em; margin-top: .12em;
  text-shadow: -1px -1px 0 rgba(255,255,255,.4), 2px 3px 0 #000, 0 0 24px rgba(255,59,48,.3); }
.fit { container-type: inline-size; }
.lockup-hero { --lk: min(4.8rem, calc((100vw - 32px) / 9.4)); --lk: min(4.8rem, 100cqi / 9.4); margin: .35em 0 .45em; }
.lockup-final { --lk: min(3.4rem, calc((100vw - 32px) / 9.4)); --lk: min(3.4rem, 100cqi / 9.4); margin-bottom: 1.2em; }
.lockup-footer { --lk: 1.5rem; margin-bottom: 1.4em; }
.lockup-bar { --lk: 1.05rem; display: inline-block; }
.lockup-bar .t-main, .lockup-bar .t-sub { text-shadow: none; }
.lockup-bar .t-sub { margin-top: .05em; }
@media (max-width: 380px) { .lockup-bar { --lk: .9rem; } }

.nw { white-space: nowrap; }

/* Hero */
.hero { position: relative; padding: 48px 0 72px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(7,6,11,.35), rgba(7,6,11,.92) 70%),
    linear-gradient(180deg, rgba(7,6,11,.55), var(--bg) 96%),
    url("assets/mural-poster.webp") center / cover no-repeat;
  filter: saturate(1.2);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
/* "Available now!" as a neon sign: 70% larger than before, glowing, with a
   sign-style flicker. The flicker never flashes more than twice a second, and
   visitors with reduced motion on see it steadily lit. */
.badge {
  display: inline-block; font: 400 1.7rem/1 var(--marker); color: #fff6c2;
  border: 3px solid #ffe45c; border-radius: 999px; padding: .45em 1em; transform: rotate(-3deg); margin-bottom: 1.1em;
  text-shadow: 0 0 4px #ffe45c, 0 0 12px var(--yellow), 0 0 24px var(--yellow), 0 0 44px #ff9d00;
  box-shadow: 0 0 6px #ffe45c, 0 0 18px var(--yellow), 0 0 38px rgba(255,157,0,.7), inset 0 0 12px rgba(255,210,31,.6);
  animation: neon 4s linear infinite;
}
@keyframes neon {
  0%, 100%   { opacity: 1; }
  /* lit ... then a sign-like stutter */
  62%        { opacity: 1; }
  64%        { opacity: .12; text-shadow: none; box-shadow: none; }
  70%        { opacity: 1; }
  73%        { opacity: .12; text-shadow: none; box-shadow: none; }
  /* dark for a beat, then back on */
  80%        { opacity: .12; text-shadow: none; box-shadow: none; }
  82%        { opacity: 1; }
}
.hero-copy { text-align: center; }
.hero-copy .cta-row { justify-content: center; }
.hook { font: 500 clamp(1.25rem, 3.2vw, 1.6rem)/1.35 var(--body); color: var(--ink); max-width: 30ch; margin-inline: auto; }
.hook strong { color: var(--red); }
.byline { font-size: 1.15rem; color: var(--muted); }
.byline strong { color: var(--ink); }
/* Four set lines, centered; they shrink to fit rather than re-wrap. */
.lede { white-space: nowrap; font-size: 1.12rem; font-size: min(1.12rem, 100cqi / 20); margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }
.formats-hint { color: var(--muted); font-size: .92rem; letter-spacing: .06em; white-space: nowrap; font-size: min(.92rem, 100cqi / 28); }
.br-narrow { display: none; }
@media (max-width: 480px) { .br-narrow { display: inline; } .sep-wide { display: none; } .formats-hint { font-size: min(.92rem, 100cqi / 17.5); } }

.hero-book { display: flex; justify-content: center; perspective: 1400px; order: -1; }
@media (max-width: 879px) { .hero-book .book { width: min(56vw, 260px); } }
.book {
  display: block; width: min(72vw, 380px);
  border-radius: 4px 10px 10px 4px; overflow: hidden;
  transform: rotateY(-14deg) rotateX(3deg);
  box-shadow: -18px 24px 60px rgba(0,0,0,.7), 0 0 80px rgba(63,169,255,.25), 0 0 140px rgba(255,59,48,.18);
  transition: transform .5s ease;
  position: relative;
}
.book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.18) 0, rgba(255,255,255,0) 6%, rgba(0,0,0,.25) 7%, rgba(0,0,0,0) 12%); pointer-events: none; }
.book:hover { transform: rotateY(-4deg) rotateX(0); }

@media (min-width: 880px) {
  .hero { padding: 80px 0 110px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-book { order: 0; }
}

/* Creed */
.creed { text-align: center; padding: 56px 16px; background: linear-gradient(90deg, rgba(255,59,48,.12), rgba(63,169,255,.12), rgba(156,255,46,.12)); border-block: 1px solid rgba(255,255,255,.08); }
.creed-intro { font: 500 .9rem/1.4 var(--condensed); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.creed-words { display: flex; flex-wrap: wrap; justify-content: center; gap: .2em .8em; margin: 0; font: 400 clamp(1.8rem, 5.5vw, 3.2rem)/1.2 var(--marker); }
.c-love { color: var(--red); }
.c-truth { color: var(--yellow); }
.c-justice { color: var(--green); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
#story p, #author p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.dropcap::first-letter { float: left; font: 900 4.6em/.8 var(--display); color: var(--green); padding: .08em .12em 0 0; }
.pull {
  margin: 1.8em 0; padding: 1em 0 1em 1.2em;
  border-left: 4px solid var(--red);
  font: 500 clamp(1.3rem, 3.4vw, 1.7rem)/1.4 var(--body); color: var(--ink);
}
.inline-cta { margin-top: 2em; }

.cards { display: grid; gap: 16px; margin-top: 1.6em; }
@media (min-width: 1000px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 26px 24px; border-radius: var(--radius); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-top: 4px solid var(--accent); }
.card h3 { color: var(--accent); }
.card p { margin: 0; color: var(--ink); }
/* Card text keeps its line breaks at every width: lines never re-wrap, the
   text shrinks to fit the card instead. Each divisor is the widest line of
   that kind, in ems, with a little room to spare. */
.card, .fmt { container-type: inline-size; }
.card h3, .card p, .fmt .fmt-store, .fmt .fmt-note, .fmt .btn-buy { white-space: nowrap; }
.card h3 { font-size: min(1.35rem, 100cqi / 11.9); }
.card p { font-size: min(1.075rem, 100cqi / 18.9); }
.fmt .fmt-store { font-size: min(.85rem, 100cqi / 9.3); }
.fmt .fmt-note { font-size: min(1.075rem, 100cqi / 19); }
.fmt .btn-buy { font-size: min(1rem, 100cqi / 17.6); }
.c-red { --accent: var(--red); }
.c-blue { --accent: var(--blue); }
.c-orange { --accent: var(--orange); }
.c-green { --accent: var(--green); }

.readers { padding: 64px 0; }
.names { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; justify-content: center; gap: .3em 1.4em; font: 700 clamp(1.3rem, 3.6vw, 1.9rem)/1.4 var(--display); color: var(--ink); }
.two-lines { text-wrap: balance; }
@media (max-width: 899px) { .br-wide { display: none; } }
.names li:not(:last-child)::after { content: "·"; color: var(--yellow); margin-left: 1.4rem; }

/* Formats */
.formats { background: radial-gradient(ellipse at 50% 0%, rgba(184,107,255,.14), transparent 60%), var(--bg); }
.format-grid { display: grid; gap: 18px; margin-top: 2em; }
@media (min-width: 700px) { .format-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .format-grid { grid-template-columns: repeat(3, 1fr); } }
.fmt {
  display: flex; flex-direction: column;
  padding: 26px 22px 22px; border-radius: var(--radius);
  background: rgba(10,9,16,.9); border: 2px solid var(--accent);
  box-shadow: 0 0 24px -6px var(--accent), inset 0 0 24px -12px var(--accent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fmt:hover { transform: translateY(-4px); box-shadow: 0 0 40px -4px var(--accent), inset 0 0 24px -12px var(--accent); }
.fmt-store { font: 500 .85rem/1 var(--condensed); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }
.fmt h3 { font: 700 min(1.6rem, 100cqi / 13.3)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.fmt-note { color: var(--muted); flex: 1; }
.btn-buy { background: var(--accent); color: #07060b; width: 100%; }
.btn-buy:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-buy.is-soon { background: transparent; color: var(--muted); border-color: rgba(255,255,255,.2); cursor: default; }
.f-orange { --accent: var(--orange); }
.f-blue { --accent: var(--blue); }
.f-green { --accent: var(--green); }
.f-purple { --accent: var(--purple); }
.f-cyan { --accent: var(--cyan); }
.f-yellow { --accent: var(--yellow); }

/* Final */
.final { padding: 96px 0; background: linear-gradient(180deg, var(--bg), #120a18); border-top: 1px solid rgba(255,255,255,.06); }
.final-line { font-weight: 700; font-family: var(--display); line-height: 1.3; color: var(--green); text-transform: uppercase; margin-bottom: .4em; }
.final-sub { font: 400 clamp(1.1rem, 2.8vw, 1.4rem)/1.5 var(--body); color: var(--ink); }
/* The two closing buttons are identical apart from their colors. */
.btn-pair { width: 17.5rem; max-width: 100%; height: 3.6rem; padding: 0 1.2em; font: 700 1.1rem/1 var(--body); border: 2px solid var(--green); white-space: nowrap; }
.btn-pair:hover { transform: translateY(-2px); }
.btn-pair-green { background: var(--green); color: #051200; }
.btn-pair-dark { background: #000; color: var(--green); }
.share-status { min-height: 1.5em; color: var(--yellow); font-size: .95rem; }
.tagline { margin-top: 2em; font: 500 .9rem/1 var(--condensed); letter-spacing: .4em; text-transform: uppercase; color: var(--muted); }

/* Footer */
.footer { padding: 48px 0; background: var(--mural) center / cover no-repeat, #040306; color: var(--ink); font-size: .95rem; text-align: center; }
/* Readable over the busy mural: text sits on dark frosted panels. */
/* Moving mural (assets/mural.mp4) filling the top bar and footer, under a light scrim. */
.topbar, .footer { overflow: hidden; isolation: isolate; }
.footer { position: relative; }
.mural-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
.topbar::before, .footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7,6,11,.35); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .mural-video { display: none; } }
.mural-panel { background: rgba(4,3,8,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 6px 24px rgba(0,0,0,.55); }
.topbar .brand.mural-panel { padding: 6px 12px; border-radius: 12px; }
.topbar .btn-small { box-shadow: 0 0 0 2px #000, 0 6px 18px rgba(0,0,0,.7); }
.footer .wrap.mural-panel { border-radius: var(--radius); padding: 28px 16px 22px; max-width: calc(var(--maxw) - 32px); }
.footer a { color: var(--green); }
.footer strong { color: var(--ink); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 2.2em; margin: 0; }
.fine { font-size: .85rem; }
