:root {
  --red: #e63229;
  --red-dark: #ab1f18;
  --yellow: #ffc629;
  --ink: #17130f;
  --paper: #fff6e9;

  --font-display: 'Bangers', cursive;
  --font-hand: 'Permanent Marker', cursive;
  --font-body: 'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--red);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  background-image: radial-gradient(rgba(23,19,15,0.10) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
}

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

a { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-burst {
  font-size: 44px;
  animation: spin 2.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-word {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.loader-bar {
  width: 220px;
  height: 16px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  transition: width 0.2s ease;
}
.loader-status {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.7;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: var(--ink);
  border-bottom: 4px solid var(--yellow);
}

.brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-decoration: none;
}
.brand-star { color: var(--red); }

.topbar-nav { display: flex; gap: 26px; }
.topbar-nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.topbar-nav a:hover { color: var(--yellow); }

/* Hero */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 90px;
}

.issue-tag {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  transform: rotate(2deg);
  float: right;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  margin-top: 70px;
  clear: both;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 84px);
  line-height: 0.92;
  margin: 0;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
  letter-spacing: 0.01em;
}

.hero-role {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--yellow);
  margin: 8px 0 24px;
  text-shadow: 2px 2px 0 var(--ink);
}

.speech-bubble {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  border-radius: 16px;
  padding: 20px 22px;
  max-width: 480px;
  margin-bottom: 18px 0 26px;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  left: 34px;
  bottom: -18px;
  width: 0; height: 0;
  border: 12px solid transparent;
  border-top-color: var(--paper);
  filter: drop-shadow(0 3px 0 var(--ink));
}

.bubble-tag {
  font-family: var(--font-hand);
  font-size: 15px;
  margin: 0 0 8px;
}
.speech-bubble p:last-child { margin: 0; font-size: 14.5px; }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 18px;
}

.btn {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 13px 22px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }

.quote-tag {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 16px;
  font-family: var(--font-hand);
  font-size: 14px;
  transform: rotate(-1.5deg);
  margin: 4px 0 22px;
}

.tag-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.tag-row li {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--paper);
  background: rgba(23,19,15,0.25);
  border: 2px solid var(--ink);
  padding: 6px 10px;
  border-radius: 4px;
}

/* Hero card */
.hero-card { position: relative; }

.card-page {
  position: absolute;
  top: -28px;
  right: 4px;
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--paper);
}

.card-panel {
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: 8px 8px 0 var(--red-dark);
}
.card-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  border-style: solid;
  border-width: 34px 34px 0 0;
  border-color: var(--yellow) transparent transparent transparent;
}

.card-doodle {
  position: absolute;
  top: 54px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Poppins', monospace;
  font-size: 11px;
  color: rgba(255,246,233,0.35);
}

.card-mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 110px;
  color: var(--red);
  -webkit-text-stroke: 3px var(--paper);
}

.card-plate {
  background: var(--red);
  border: 3px solid var(--ink);
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 0 0 10px 10px;
  margin-top: -3px;
}
.card-plate span:first-child {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 15px;
  letter-spacing: 0.03em;
}
.card-plate-role {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

.scroll-tag {
  display: block;
  width: fit-content;
  margin: 60px 0 0 auto;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  transform: rotate(-2deg);
}

/* Panels */
.panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  transform: rotate(-1deg);
}

.panel h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: 0.02em;
  color: var(--paper);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 3px 3px 0 var(--ink);
  margin: 0 0 24px;
}

.panel-note {
  font-size: 14px;
  color: rgba(23,19,15,0.75);
  margin-bottom: 24px;
  max-width: 60ch;
}

.paper-block {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  border-radius: 12px;
  padding: 26px 28px;
  max-width: 640px;
}
.paper-block p { margin: 0; font-size: 15px; }

/* Skills grid */
.power-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.power-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  border-radius: 10px;
  padding: 18px 18px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.power-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

.power-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--red);
  -webkit-text-stroke: 1px var(--ink);
}
.power-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin: 6px 0 6px;
}
.power-card p { margin: 0; font-size: 13.5px; color: rgba(23,19,15,0.75); }

/* Build strip */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.strip-panel {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  border-radius: 10px;
  padding: 18px;
}

.panel-num {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.strip-panel h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.strip-panel p { font-size: 13.5px; color: rgba(23,19,15,0.75); margin: 0 0 12px; }

.strip-panel a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}
.strip-panel a:hover { color: var(--red-dark); }

/* Contact */
.contact-bubble { max-width: 420px; }
.contact-bubble a {
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
}
.contact-bubble a:hover { color: var(--red-dark); }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  color: rgba(255,246,233,0.85);
  letter-spacing: 0.04em;
}

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-panel { aspect-ratio: 16 / 10; }
  .card-mono { font-size: 70px; }
}

@media (max-width: 640px) {
  .topbar { padding: 14px 18px; }
  .topbar-nav { gap: 14px; }
  .topbar-nav a { font-size: 13px; }
  .hero { padding: 34px 18px 70px; }
  .panel { padding: 54px 18px; }
  .footer { flex-direction: column; gap: 6px; padding: 20px 18px 40px; }
}
