/* ==========================================================================
   Krakoan Comics: coming-soon page
   Concept: "Issue #0", a debut comic cover printed in CMYK on newsprint.
   ========================================================================== */

:root {
  /* Process-print palette: the four inks comics are printed with */
  --paper:       #fff4dc;
  --paper-deep:  #f6e4bd;
  --ink:         #141210;
  --muted:       #4a4337;
  --cyan:        #00aeef;
  --magenta:     #ec008c;
  --yellow:      #ffe500;

  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body:    "Schibsted Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --rule: 3px solid var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Newsprint grain laid over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .2;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .07 0 0 0 0 .06 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--yellow); color: var(--ink); }

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 28px) clamp(16px, 4vw, 40px) clamp(20px, 4vw, 36px);
}

/* --------------------------------------------------------------------------
   Masthead: issue-number corner box + cover line
   -------------------------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--ink);
}

.corner-box {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 62px;
  padding-top: 5px;
  background: var(--paper);
  border: var(--rule);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--mono);
  line-height: 1;
}
.cb-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.cb-num   { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.cb-price {
  align-self: stretch;
  margin-top: 4px;
  padding: 4px 0;
  background: var(--ink);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.masthead-meta,
.masthead-est {
  margin: 0;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.masthead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2em .6em; }
.masthead-meta .dot { color: var(--magenta); }
.masthead-est { margin-left: auto; }

@media (max-width: 600px) {
  .masthead-est { display: none; }
}

/* --------------------------------------------------------------------------
   Hero: wordmark, burst, lede, eBay call-to-action
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(30px, 6vw, 72px) 0 clamp(40px, 7vw, 76px);
}

/* Magenta halftone fading out from the top-right corner */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: calc(-1 * clamp(16px, 4vw, 40px));
  width: min(64%, 660px);
  height: 100%;
  background-image: radial-gradient(circle, var(--magenta) 30%, transparent 33%);
  background-size: 14px 14px;
  opacity: .28;
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 5%, transparent 68%);
          mask-image: radial-gradient(ellipse at top right, #000 5%, transparent 68%);
}

.logo-wrap { position: relative; }

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 13.6vw, 10.25rem);
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.wm-top {
  display: block;
  /* Stacked print plates: cyan, then magenta, under the black */
  text-shadow: .04em .04em 0 var(--cyan), .08em .08em 0 var(--magenta);
  transform-origin: 20% 60%;
  animation: slam .7s cubic-bezier(.2, .9, .3, 1.25) both;
}

.wm-banner {
  display: inline-block;
  margin-top: .26em;
  margin-left: .12em;
  padding: .1em .38em .04em;
  font-size: .5em;
  letter-spacing: .04em;
  background: var(--yellow);
  border: max(3px, .06em) solid var(--ink);
  box-shadow: .1em .1em 0 var(--ink);
  transform: rotate(-3deg) skewX(-8deg);
  animation: banner .55s .3s cubic-bezier(.2, .9, .3, 1.2) backwards;
}

/* Starburst: black star behind a slightly smaller cyan star = outline */
.burst {
  --star: polygon(50.0% 0.0%, 56.8% 11.6%, 67.1% 3.0%, 69.5% 16.2%, 82.1% 11.7%, 79.9% 24.9%, 93.3% 25.0%, 86.6% 36.7%, 99.2% 41.3%, 89.0% 50.0%, 99.2% 58.7%, 86.6% 63.3%, 93.3% 75.0%, 79.9% 75.1%, 82.1% 88.3%, 69.5% 83.8%, 67.1% 97.0%, 56.8% 88.4%, 50.0% 100.0%, 43.2% 88.4%, 32.9% 97.0%, 30.5% 83.8%, 17.9% 88.3%, 20.1% 75.1%, 6.7% 75.0%, 13.4% 63.3%, 0.8% 58.7%, 11.0% 50.0%, 0.8% 41.3%, 13.4% 36.7%, 6.7% 25.0%, 20.1% 24.9%, 17.9% 11.7%, 30.5% 16.2%, 32.9% 3.0%, 43.2% 11.6%);
  position: absolute;
  right: 0;
  bottom: clamp(-2.4rem, -3vw, -1rem);
  width: clamp(88px, 14vw, 164px);
  aspect-ratio: 1;
  background: var(--ink);
  clip-path: var(--star);
  rotate: 8deg;
  animation:
    pop .6s .6s cubic-bezier(.2, 1.4, .4, 1) backwards,
    wobble 4.5s 1.4s ease-in-out infinite;
}
@media (max-width: 600px) {
  .burst { width: 74px; right: 2px; bottom: -1.6rem; }
  .burst-fill span { font-size: .56rem; }
}
.burst-fill {
  position: absolute;
  inset: 6%;
  display: grid;
  place-items: center;
  background: var(--cyan);
  clip-path: var(--star);
}
.burst-fill span {
  font-family: var(--display);
  font-size: clamp(.68rem, 1.45vw, 1.05rem);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  rotate: -12deg;
}

.hero-body {
  display: grid;
  gap: 32px;
  margin-top: clamp(34px, 6vw, 64px);
}
@media (min-width: 860px) {
  .hero-body { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
}

.lede {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  animation: rise .6s .55s ease-out backwards;
}
.lede em {
  font-style: normal;
  font-weight: 800;
  padding: 0 .12em;
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
}

/* Narration caption, like the yellow boxes in comic panels */
.caption-box {
  padding: 18px 22px 24px;
  background: var(--yellow);
  border: var(--rule);
  box-shadow: var(--shadow-lg);
  animation: rise .6s .7s ease-out backwards;
}
.caption-tag {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
}
.caption-text { margin: 0 0 20px; font-weight: 500; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .85em 1.3em .75em;
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.15rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: var(--rule);
  box-shadow: 5px 5px 0 var(--magenta);
  transition: translate .15s ease, box-shadow .15s ease;
}
.cta-arrow { display: inline-block; transition: translate .15s ease; }
.cta:hover { translate: -2px -2px; box-shadow: 8px 8px 0 var(--magenta); }
.cta:hover .cta-arrow { translate: 5px 0; }
.cta:active { translate: 5px 5px; box-shadow: 0 0 0 var(--magenta); }
.cta:focus-visible { outline: 3px dashed var(--ink); outline-offset: 6px; }

/* --------------------------------------------------------------------------
   Shelves: three comic panels, one per product line
   -------------------------------------------------------------------------- */
.shelves {
  position: relative;
  isolation: isolate;
  padding: 8px 0 clamp(48px, 8vw, 88px);
}
.shelves::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(-1 * clamp(16px, 4vw, 40px));
  bottom: 0;
  width: min(55%, 520px);
  height: 70%;
  background-image: radial-gradient(circle, var(--cyan) 30%, transparent 33%);
  background-size: 14px 14px;
  opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse at bottom left, #000 5%, transparent 68%);
          mask-image: radial-gradient(ellipse at bottom left, #000 5%, transparent 68%);
}

.section-tag {
  display: inline-block;
  margin: 0 0 30px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  rotate: -1.5deg;
}

.panel-grid {
  display: grid;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 820px) {
  .panel-grid { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .panel--comics  { rotate: -1.2deg; }
  .panel--cards   { rotate: .8deg; translate: 0 12px; }
  .panel--figures { rotate: -.5deg; }
}

.panel--comics  { --accent: var(--magenta); }
.panel--cards   { --accent: var(--cyan); }
.panel--figures { --accent: var(--yellow); }

.panel {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--rule);
  box-shadow: var(--shadow-lg);
  transition: rotate .25s ease, translate .25s ease, box-shadow .25s ease;
  animation: rise .6s calc(.85s + var(--i, 0) * .12s) ease-out backwards;
}
.panel:hover {
  rotate: 0deg;
  translate: -3px -3px;
  box-shadow: 11px 11px 0 var(--ink);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--accent);
  border-bottom: var(--rule);
}

.panel-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 230px;
  overflow: hidden;
  background: var(--paper-deep);
  border-bottom: var(--rule);
}
.panel-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--accent) 32%, transparent 35%);
  background-size: 12px 12px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(135deg, #000 10%, transparent 80%);
          mask-image: linear-gradient(135deg, #000 10%, transparent 80%);
}

.panel h3 {
  margin: 18px 20px 6px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}
.panel-copy { margin: 0 20px 24px; color: var(--muted); }

/* Shared look for the three little product illustrations */
.slab, .tcg-card, .figure-box {
  position: relative;
  border: var(--rule);
  box-shadow: 5px 5px 0 var(--ink);
  transition: rotate .3s ease, scale .3s ease;
}

/* Graded slab */
.slab {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 130px;
  height: 180px;
  padding: 6px;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .45));
  rotate: -6deg;
}
.slab-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  background: var(--cyan);
  border: 2px solid var(--ink);
}
.slab-grade { font-family: var(--display); font-size: 1.35rem; line-height: 1; }
.slab-lines {
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: .55rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.slab-cover {
  flex: 1;
  padding: 3px 7px;
  background: linear-gradient(155deg, var(--magenta) 0 38%, var(--yellow) 38% 62%, var(--cyan) 62%);
  border: 2px solid var(--ink);
}
.slab-cover-title {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--paper);
  text-shadow: 2px 2px 0 var(--ink);
}
.panel--comics:hover .slab { rotate: 0deg; scale: 1.05; }

/* Trading card with a holo foil */
@property --holo {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.tcg-card {
  display: flex;
  flex-direction: column;
  width: 126px;
  height: 176px;
  padding: 8px;
  border-radius: 9px;
  background: var(--yellow);
  rotate: 5deg;
}
.tcg-holo {
  position: relative;
  flex: 1;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: conic-gradient(from var(--holo), #00aeef, #ec008c, #ffe500, #19d3a2, #00aeef);
}
.tcg-holo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 150% 0;
}
.tcg-star {
  position: absolute;
  inset: 8px 8px 36px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  line-height: 1;
  color: var(--paper);
  text-shadow: 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink);
}
.tcg-name {
  margin-top: 6px;
  padding: 3px 0;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.panel--cards:hover .tcg-card { rotate: 0deg; scale: 1.05; }
.panel--cards:hover .tcg-holo { animation: holo-spin 2.4s linear infinite; }
.panel--cards:hover .tcg-holo::after { animation: sheen 1.1s ease-out; }

/* Boxed action figure with a peg-hook tab */
.figure-box {
  width: 134px;
  height: 172px;
  margin-top: 16px;
  padding: 24px 12px 12px;
  border-radius: 6px;
  background: var(--magenta);
  rotate: -4deg;
}
.figure-box::before {
  content: "";
  position: absolute;
  top: -21px;
  left: 50%;
  translate: -50% 0;
  width: 52px;
  height: 21px;
  background: var(--magenta);
  border: var(--rule);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}
.figure-box::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  translate: -50% 0;
  width: 20px;
  height: 7px;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.figure-window {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #bfe9fb, #effaff);
  border: var(--rule);
  border-radius: 4px;
}
.figure-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 28%, rgba(255, 255, 255, .75) 38%, transparent 48%);
}
.figure-svg {
  width: 80%;
  height: auto;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fig-cape { fill: var(--magenta); stroke-width: 4; }
.fig-limb { fill: none; stroke-width: 14; }
.fig-arm  { stroke-width: 12; }
.fig-body,
.fig-head { fill: var(--ink); stroke-width: 4; }
.fig-belt { fill: var(--yellow); stroke-width: 3; }
.figure-badge {
  position: absolute;
  right: -16px;
  bottom: -10px;
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--cyan);
  border: 2px solid var(--ink);
  rotate: 8deg;
}
.panel--figures:hover .figure-box { rotate: 0deg; scale: 1.05; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding-top: 18px;
  border-top: 4px solid var(--ink);
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-fine {
  max-width: 72ch;
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
/* Drops in from above. It never scales past 100%, because a wider-than-screen
   first frame makes phones zoom the whole page out. */
@keyframes slam {
  from { opacity: 0; transform: translateY(-36px) scale(.82) rotate(-3deg); }
  65%  { opacity: 1; transform: translateY(5px) scale(1) rotate(.5deg); }
  to   { transform: none; }
}
@keyframes banner {
  from { opacity: 0; translate: -48px 0; }
}
@keyframes pop {
  from { scale: 0; rotate: -120deg; }
  70%  { scale: 1.15; }
  to   { scale: 1; rotate: 8deg; }
}
@keyframes wobble {
  0%, 100% { rotate: 8deg; scale: 1; }
  50%      { rotate: 3deg; scale: 1.05; }
}
@keyframes rise {
  from { opacity: 0; translate: 0 24px; }
}
@keyframes holo-spin {
  to { --holo: 360deg; }
}
@keyframes sheen {
  from { background-position: 150% 0; }
  to   { background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
