@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Unbounded:wght@600;700;800&display=swap');

:root{
  --bg:#09090b;
  --panel:#101114;
  --panel2:#13141a;
  --text:#f4f1eb;
  --muted:#aaa6a0;
  --line:#2a292f;
  --accent:#d3182f;
  --accent2:#ff3a4d;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 12% 2%, rgba(211,24,47,.16), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(65,25,35,.12), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,.015), transparent 20%);
  z-index:-2;
}
.noise{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.04;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.site-header{
  width:min(calc(100% - 28px), var(--max));
  margin:0 auto;
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:50;
}
.brand,.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:Unbounded,Inter,sans-serif;
  font-size:14px;
  font-weight:800;
  letter-spacing:.12em;
}
.brand img,.footer-brand img{border-radius:8px}
.nav{display:flex;gap:26px;align-items:center}
.nav a{
  color:#d3cfc8;
  font-size:14px;
  font-weight:600;
  transition:.2s ease;
}
.nav a:hover{color:#fff}
.menu-btn{
  display:none;
  width:46px;height:46px;background:transparent;border:1px solid var(--line);
  border-radius:12px;align-items:center;justify-content:center;flex-direction:column;gap:7px;
}
.menu-btn span:not(.sr-only){width:19px;height:1px;background:#fff}

.hero,.section,.cta,footer,.chapter-main{
  width:min(calc(100% - 28px), var(--max));
  margin:0 auto;
}
.hero{padding:70px 0 88px}
.hero-grid{
  display:grid;
  grid-template-columns:1.03fr .97fr;
  gap:56px;
  align-items:center;
}
.eyebrow{
  margin:0 0 16px;
  color:#b0aba5;
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
}
.hero h1,.section h2,.cta h2,.chapter-hero h1,.reader-panel h2{
  font-family:Unbounded,Inter,sans-serif;
  margin:0;
  letter-spacing:-.045em;
}
.hero h1{
  font-size:clamp(42px,6.7vw,84px);
  line-height:.96;
}
.hero h1 span{color:#9a948e;font-size:.74em}
.lead{
  margin:28px 0 0;
  color:#b8b3ad;
  font-size:18px;
  line-height:1.75;
  max-width:650px;
}
.hero-actions,.card-actions{
  display:flex;
  gap:12px;
  margin-top:30px;
  flex-wrap:wrap;
}
.btn{
  min-height:50px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:12px;padding:0 20px;font-weight:800;font-size:14px;
  border:1px solid transparent;transition:transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent2)}
.btn-ghost{border-color:var(--line);background:#111217}

.hero-art{
  position:relative;
  max-width:520px;
  justify-self:end;
  transform:rotate(1.1deg);
}
.hero-art::before{
  content:"";
  position:absolute;
  inset:14px -14px -14px 14px;
  border:1px solid #34323a;
  z-index:-1;
}
.hero-art img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  border:1px solid var(--line);
}
.stamp{
  position:absolute;
  right:-18px;bottom:24px;
  background:var(--accent);color:#fff;
  font-weight:900;letter-spacing:.13em;font-size:12px;
  padding:13px 16px;transform:rotate(-4deg);
}

.section{
  padding:90px 0;
  border-top:1px solid var(--line);
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:38px;
}
.section-head-center{
  justify-content:center;
  text-align:center;
  flex-direction:column;
  align-items:center;
}
.section h2,.cta h2,.reader-panel h2{
  font-size:clamp(28px,5vw,54px);
  line-height:1.1;
}

.manga-card{
  display:grid;
  grid-template-columns:minmax(300px,420px) 1fr;
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)), var(--panel);
  border:1px solid var(--line);
  overflow:hidden;
}
.manga-cover{border-right:1px solid var(--line);background:#0d0e12}
.manga-cover img{
  width:100%;height:100%;object-fit:cover;min-height:560px;
}
.manga-info{
  padding:42px;
  display:flex;flex-direction:column;justify-content:center;
}
.status-row{
  display:flex;gap:16px;align-items:center;flex-wrap:wrap;
  color:#918d87;font-size:13px;
}
.status{
  display:inline-flex;align-items:center;gap:8px;color:#e9e5df;font-weight:700;
}
.status i{
  width:9px;height:9px;border-radius:50%;background:var(--accent);
  box-shadow:0 0 0 5px rgba(211,24,47,.14);
}
.manga-info h3{
  margin:24px 0 18px;
  font-family:Unbounded,Inter,sans-serif;
  font-size:clamp(34px,5vw,58px);
  letter-spacing:-.045em;
}
.manga-info > p{
  max-width:650px;color:#b4afa8;font-size:17px;line-height:1.75;
}
.chapter-row{
  margin-top:34px;padding-top:26px;border-top:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.chapter-row div{display:flex;flex-direction:column;gap:7px}
.chapter-kicker{font-size:11px;letter-spacing:.15em;color:#817d77;font-weight:800}
.chapter-row strong{font-size:18px}
.chapter-badge{
  width:54px;height:54px;display:grid;place-items:center;border:1px solid #3a383f;border-radius:50%;
  color:#99948d;font-family:Unbounded,Inter,sans-serif;font-weight:700;
}

.studio-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:78px;
  align-items:start;
}
.studio-text{
  color:#bbb6af;font-size:17px;line-height:1.85;
}
.studio-text p:first-child{margin-top:0}
.signature{
  margin-top:32px;color:#fff;font-family:Unbounded,Inter,sans-serif;font-weight:700;
}

.cta{
  margin-bottom:72px;
  padding:42px;
  background:linear-gradient(115deg, rgba(211,24,47,.16), transparent 50%), var(--panel2);
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;gap:30px;
}

footer{
  min-height:100px;border-top:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  color:#74706b;font-size:12px;
}
footer p{margin:0}

/* Chapter page */
.chapter-main{padding:48px 0 72px}
.chapter-hero{
  padding:20px 0 44px;
}
.breadcrumbs{
  color:#99938d;
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  margin-bottom:20px;
}
.chapter-hero h1{
  font-size:clamp(40px,7vw,76px);
  line-height:1;
}
.reader-intro{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:42px 0;
}
.reader-grid{
  display:grid;
  grid-template-columns:minmax(260px,360px) 1fr;
  gap:34px;
  align-items:center;
}
.reader-cover img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  border:1px solid var(--line);
}
.reader-panel p{
  color:#b6b1ab;
  font-size:17px;
  line-height:1.8;
}
.tip-box{
  margin-top:22px;
  padding:18px 18px;
  border:1px solid var(--line);
  background:#101116;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.reader-placeholder{
  padding:40px 0 0;
  display:flex;
  flex-direction:column;
  gap:22px;
}
.page-placeholder{
  min-height:260px;
  border:1px dashed #35343b;
  background:linear-gradient(180deg, rgba(255,255,255,.02), transparent), #0f1014;
  display:grid;
  place-items:center;
  color:#8d8882;
  font-family:Unbounded,Inter,sans-serif;
  font-size:28px;
  letter-spacing:.08em;
}
.page-placeholder.big{min-height:420px}
.page-placeholder.small-note{
  min-height:120px;
  font-size:18px;
  padding:20px;
  text-align:center;
}

@media (max-width:900px){
  .site-header{min-height:74px}
  .menu-btn{display:flex}
  .nav{
    position:absolute;top:74px;left:0;right:0;display:none;
    flex-direction:column;align-items:stretch;gap:0;
    padding:10px;background:#0e0f13;border:1px solid var(--line);
    box-shadow:0 18px 50px rgba(0,0,0,.45);
  }
  .nav.open{display:flex}
  .nav a{padding:15px;border-bottom:1px solid #232228}
  .nav a:last-child{border-bottom:0}

  .hero{padding:42px 0 66px}
  .hero-grid{grid-template-columns:1fr;gap:34px}
  .hero-art{
    width:min(86vw,500px);
    justify-self:center;
  }
  .lead{font-size:16px}
  .section{padding:72px 0}
  .manga-card{grid-template-columns:1fr}
  .manga-cover{border-right:0;border-bottom:1px solid var(--line)}
  .manga-cover img{max-height:640px;min-height:320px}
  .manga-info{padding:28px 20px}
  .manga-info > p{font-size:16px}
  .studio-grid,.reader-grid{grid-template-columns:1fr;gap:30px}
  .cta{padding:30px 22px;flex-direction:column;align-items:flex-start}
  footer{padding:26px 0;flex-direction:column;align-items:flex-start;justify-content:center}
}

@media (max-width:520px){
  .brand span{font-size:12px}
  .brand img{width:36px;height:36px}
  .hero h1{font-size:clamp(30px,13vw,52px)}
  .chapter-hero h1{font-size:clamp(32px,12vw,48px)}
  .lead{font-size:15px;line-height:1.72}
  .section h2,.cta h2,.reader-panel h2{font-size:clamp(24px,9vw,40px)}
  .hero-actions,.card-actions{display:grid;grid-template-columns:1fr}
  .btn{width:100%}
  .hero-art::before{inset:10px -10px -10px 10px}
  .stamp{right:-8px;bottom:16px}
  .chapter-row{align-items:flex-end}
  .page-placeholder{font-size:22px}
}