@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600;800&display=swap');

/* ==========================================
   Flat manga/anime editorial theme
   - Ink + paper, minimal gradients
   - Bold panels, loose spacing
   - Primary accent: #a70000
   ========================================== */

:root{
  --bg:#0b0b0e;
  --paper:#111114;
  --paper-2:#0f0f12;
  --ink:#f4f1ec;
  --muted:#c7c0b7;

  --accent:#a70000;
  --accent-2:#7f0000;

  --border: rgba(244,241,236,.14);
  --shadow: 0 18px 40px rgba(0,0,0,.45);

  --radius: 18px;
  --max: 980px;
}

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

body{
  margin:0;
  color:var(--ink);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.75;
  background-color: var(--bg);
  background: url(./images/bg.jpg);
}

/* Subtle monochrome texture (not colorful / not neon) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.55;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(244,241,236,.035) 1px, transparent 1px);
  background-size: 18px 18px;
  mix-blend-mode: overlay;
}

body::after{
  content:"";
  position:fixed;
  inset:-40px;
  pointer-events:none;
  opacity:.08;
  background-image:
    repeating-linear-gradient(0deg, rgba(244,241,236,.12) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(244,241,236,.08) 0 1px, transparent 1px 9px);
  transform: rotate(-1deg);
}

/* Links */
a{
  color: var(--ink);
  text-decoration-color: rgba(167,0,0,.65);
  text-underline-offset: 4px;
}
a:hover{ text-decoration-color: var(--accent); }

/* Header */
header{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  justify-content:center;
  padding:14px 16px;
  background: rgba(11,11,14,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244,241,236,.08);
}

header img{
}

/* Main article panel */
article{
  width:min(var(--max), calc(100% - 32px));
  margin: 26px auto 56px;
  padding: 38px 30px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}

/* Red corner mark (flat) */
article::before{
  content:"";
  position:absolute;
  top:-70px;
  right:-70px;
  width: 180px;
  height: 180px;
  background: var(--accent);
  transform: rotate(18deg);
  opacity:.92;
}

article::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}

/* Typography */
h1, h2, h3{
  font-family: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: .6px;
  margin: 0 0 14px;
}

h1{
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  text-transform: uppercase;
  padding-right: 70px; /* keeps text away from red corner */
}

h2{
  font-size: clamp(30px, 3.1vw, 40px);
  margin-top: 34px;
  padding-top: 6px;
  position:relative;
}

/* Flat brush underline */
h2::after{
  content:"";
  display:block;
  height: 6px;
  width: min(340px, 72%);
  margin-top: 10px;
  background: var(--accent);
  opacity:.9;
  border-radius: 999px;
}

h3{
  font-size: clamp(24px, 2.4vw, 32px);
  margin-top: 26px;
}

p{ margin: 14px 0; color: rgba(244,241,236,.92); }
strong{ color: var(--ink); }
em{ color: rgba(244,241,236,.86); }

/* Lists */
ul{
  padding-left: 18px;
  margin: 14px 0 18px;
}

li{
  margin: 8px 0;
}

li::marker{
  color: var(--accent);
}

/* Blockquotes: editorial panel */
blockquote{
  margin: 22px 0;
  padding: 18px 18px 18px 16px;
  border-left: 6px solid var(--accent);
  background: rgba(0,0,0,.18);
  border-radius: 14px;
  border: 1px solid rgba(244,241,236,.10);
}

blockquote p{ margin:0; color: rgba(244,241,236,.9); }

/* Images */
img{
  max-width:100%;
  height:auto;
}


/* CTA Button (used as a div in your HTML) */
.btn-hover{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  user-select:none;
  cursor:pointer;

  margin: 18px 0 10px;
  padding: 14px 18px;
  min-width: 210px;

  background: var(--accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;

  border-radius: 16px;
  border: 2px solid rgba(0,0,0,.35);
  box-shadow: 0 12px 0 rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-hover:hover{
  transform: translateY(2px);
  box-shadow: 0 10px 0 rgba(0,0,0,.35);
  filter: brightness(1.04);
}

.btn-hover:active{
  transform: translateY(6px);
  box-shadow: 0 6px 0 rgba(0,0,0,.35);
}

/* If your HTML uses 'color-9', keep it but make it flat */
.btn-hover.color-9{
  background: var(--accent);
}

/* Small comic jitter on hover (triggered by JS toggling is-hover) */
@keyframes comicJitter{
  0%{ transform: translateY(2px) rotate(0deg); }
  35%{ transform: translateY(2px) rotate(-.6deg); }
  70%{ transform: translateY(2px) rotate(.6deg); }
  100%{ transform: translateY(2px) rotate(0deg); }
}
.btn-hover.is-hover{
  animation: comicJitter .22s linear infinite;
}

/* Horizontal rule if present */
hr{
  border:none;
  height:1px;
  background: rgba(244,241,236,.12);
  margin: 26px 0;
}

/* Responsive tweaks */
@media (max-width: 640px){
  article{ padding: 28px 18px; }
  h1{ padding-right: 48px; }

}
