:root {
  color-scheme: light;
  --ink: #11122b;
  --muted: #4e5578;
  --panel: rgba(255, 255, 255, 0.91);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(17, 18, 43, 0.14);
  --pink: #ff2a9d;
  --cyan: #03bff5;
  --blue: #2535e8;
  --yellow: #ffd72e;
  --orange: #ff7a1a;
  --shadow: 0 24px 70px rgba(22, 27, 92, 0.22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: #f8fbff;
}

body.reader-mode {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.background-art {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.58) 42%, rgba(255, 255, 255, 0.12) 100%),
    url("assets/site-background.png");
  background-position: center;
  background-size: cover;
}

.background-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 42, 157, 0.12), transparent 28%),
    linear-gradient(315deg, rgba(3, 191, 245, 0.18), transparent 36%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(1.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 164px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(230px, 44vw);
  max-height: 72px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 18px rgba(13, 22, 89, 0.18));
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a,
.icon-button,
.jump-actions button,
.follow-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 2px solid rgba(17, 18, 43, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(37, 53, 232, 0.1);
  cursor: pointer;
}

.top-nav a:hover,
.icon-button:hover,
.jump-actions button:hover,
.follow-cta:hover,
.top-nav a.active {
  border-color: rgba(255, 42, 157, 0.55);
  background: #fff;
  transform: translateY(-1px);
}

.support-link,
.icon-button.support {
  border-color: rgba(255, 122, 26, 0.42);
  background: linear-gradient(135deg, var(--yellow), #ff9e1d);
}

.review-link,
.icon-button.review {
  border-color: rgba(3, 191, 245, 0.45);
  background: linear-gradient(135deg, #fff, rgba(3, 191, 245, 0.22));
}

.follow-link,
.follow-cta {
  border-color: rgba(255, 42, 157, 0.42);
  background: linear-gradient(135deg, #fff, rgba(255, 42, 157, 0.2));
}

main {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 34px);
}

.reader-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.control-panel,
.reader-panel,
.about-copy {
  border: 3px solid rgba(17, 18, 43, 0.13);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(1.1);
}

.control-panel {
  position: sticky;
  top: 104px;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 14px;
  max-height: calc(100dvh - 152px);
  overflow: hidden;
  padding: clamp(16px, 2vw, 22px);
}

.intro-copy h1,
.about-copy h1 {
  margin: 0 0 10px;
  max-width: 10ch;
  font-size: clamp(2.45rem, 6vw, 4.7rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--yellow), 8px 8px 0 rgba(255, 42, 157, 0.24);
}

.control-panel .intro-copy h1 {
  max-width: none;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.95;
  text-shadow: 3px 3px 0 var(--yellow), 6px 6px 0 rgba(255, 42, 157, 0.2);
}

.intro-copy p,
.comic-summary,
.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.control-panel .intro-copy p {
  font-size: 0.94rem;
  line-height: 1.45;
}

.follow-cta {
  width: 100%;
  min-height: 48px;
  text-transform: uppercase;
}

.search-wrap {
  display: grid;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid rgba(37, 53, 232, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(3, 191, 245, 0.18);
}

.jump-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.comic-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 6px 6px 0;
  scrollbar-gutter: stable;
}

.comic-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 9px;
  border: 2px solid rgba(17, 18, 43, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.comic-card.active {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 215, 46, 0.26));
}

.comic-card img {
  width: 72px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(17, 18, 43, 0.16);
}

.comic-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.15;
}

.comic-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.comic-card .comic-card-series {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.reader-panel {
  min-width: 0;
  padding: clamp(14px, 2.5vw, 28px);
}

.reader-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 3px solid rgba(17, 18, 43, 0.09);
}

.publish-date {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reader-toolbar h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.reader-mode-button[aria-pressed="true"] {
  border-color: rgba(17, 18, 43, 0.34);
  background: linear-gradient(135deg, var(--cyan), #fff);
}

.comic-summary {
  max-width: 78ch;
  margin: 16px 0 22px;
  font-weight: 650;
}

.page-strip {
  display: grid;
  gap: clamp(14px, 2.8vw, 28px);
  justify-items: center;
}

.comic-page {
  display: block;
  width: min(100%, 960px);
  height: auto;
  border-radius: 8px;
  border: 3px solid rgba(17, 18, 43, 0.22);
  background: var(--panel-strong);
  box-shadow: 0 20px 60px rgba(17, 18, 43, 0.18);
}

body.reader-mode .site-header,
body.reader-mode .background-art,
body.reader-mode .seo-content {
  display: none;
}

body.reader-mode main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.reader-mode .reader-layout {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
  width: 100%;
  min-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(10px, 1.8vw, 24px);
  background:
    linear-gradient(180deg, rgba(17, 18, 43, 0.96), rgba(7, 9, 24, 0.98)),
    #090b18;
}

body.reader-mode .control-panel {
  display: none;
}

body.reader-mode .reader-panel {
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - clamp(20px, 3.6vw, 48px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.reader-mode .reader-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: center;
  margin: 0 auto clamp(14px, 2vw, 26px);
  padding: clamp(10px, 1.6vw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px) saturate(1.2);
}

body.reader-mode .reader-toolbar h2 {
  max-width: 32ch;
  font-size: clamp(1.25rem, 2.4vw, 2.2rem);
  line-height: 1.05;
}

body.reader-mode .publish-date {
  margin-bottom: 4px;
  font-size: 0.78rem;
}

body.reader-mode .comic-summary {
  display: none;
}

body.reader-mode .page-strip {
  gap: clamp(18px, 2.4vw, 34px);
  padding-bottom: clamp(20px, 4vw, 56px);
}

body.reader-mode .comic-page {
  width: min(100%, 1480px);
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.empty-state {
  padding: 32px;
  border: 2px dashed rgba(17, 18, 43, 0.2);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.about-view,
.follow-view,
.other-comics-view {
  display: grid;
  place-items: start center;
}

.about-copy,
.follow-copy,
.other-comics-copy {
  width: min(900px, 100%);
  padding: clamp(22px, 5vw, 56px);
}

.about-copy h1,
.follow-copy h1,
.other-comics-copy h1 {
  max-width: 12ch;
}

.about-copy p + p {
  margin-top: 18px;
}

.follow-copy {
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(17, 18, 43, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 215, 46, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(3, 191, 245, 0.14), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(1.1);
}

.other-comics-copy {
  border: 3px solid rgba(17, 18, 43, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(3, 191, 245, 0.16), transparent 38%),
    linear-gradient(315deg, rgba(255, 42, 157, 0.14), transparent 44%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(1.1);
}

.follow-copy::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan), var(--blue));
}

.follow-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2.45rem, 6vw, 4.7rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--yellow), 8px 8px 0 rgba(255, 42, 157, 0.24);
}

.other-comics-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 6vw, 4.45rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--yellow), 8px 8px 0 rgba(3, 191, 245, 0.22);
}

.follow-copy p,
.other-comics-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.65;
}

.other-comics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.comic-site-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: clamp(18px, 3vw, 28px);
  border: 3px solid rgba(17, 18, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  text-decoration: none;
  box-shadow: 10px 10px 0 rgba(255, 42, 157, 0.18), 0 18px 46px rgba(17, 18, 43, 0.12);
}

.comic-site-card:hover {
  border-color: rgba(3, 191, 245, 0.55);
  transform: translateY(-2px);
}

.comic-site-card span {
  color: var(--blue);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 950;
  line-height: 0.98;
  text-transform: uppercase;
}

.comic-site-card small {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.45;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 30px !important;
  padding: clamp(20px, 5vw, 36px) !important;
  max-width: 680px !important;
  border: 3px solid rgba(17, 18, 43, 0.16) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 215, 46, 0.22)) !important;
  box-shadow: 10px 10px 0 rgba(255, 42, 157, 0.24), 0 18px 46px rgba(17, 18, 43, 0.14) !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview,
.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview * {
  box-sizing: border-box !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-heading {
  width: 100% !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-heading h5 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: none !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-input-field {
  margin-top: 20px !important;
  width: 100% !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-input-field input {
  width: 100% !important;
  height: 52px !important;
  border: 2px solid rgba(37, 53, 232, 0.22) !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-transform: none !important;
  outline: none !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-input-field input:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 4px rgba(3, 191, 245, 0.18) !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-input-field input::placeholder {
  color: var(--muted) !important;
  opacity: 0.82 !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-submit-button {
  margin-top: 0 !important;
  width: 100% !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-submit-button button {
  width: 100% !important;
  height: 52px !important;
  border: 2px solid rgba(17, 18, 43, 0.16) !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--yellow), #ff9e1d) !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 18px rgba(37, 53, 232, 0.1) !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-submit-button button:hover {
  cursor: pointer !important;
  transform: translateY(-1px) !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .powered-by-line {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 680px !important;
  margin-top: 14px !important;
  color: var(--muted) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 25px !important;
  text-align: center !important;
  text-decoration: none !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .powered-by-line img {
  height: 1.13em !important;
  max-height: 1.13em !important;
  margin-left: 10px !important;
}

.seo-content {
  width: min(1040px, 100%);
  margin: clamp(18px, 3vw, 36px) auto 0;
  padding: clamp(18px, 3vw, 30px);
  border: 2px solid rgba(17, 18, 43, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 42px rgba(17, 18, 43, 0.12);
}

.seo-content h2,
.seo-content h3 {
  margin: 0 0 12px;
  line-height: 1;
  letter-spacing: 0;
}

.seo-content h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

.seo-content h3 {
  margin-top: 18px;
  font-size: 1.1rem;
}

.seo-content p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.seo-content p + p {
  margin-top: 12px;
}

.seo-content ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.seo-content li {
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(17, 18, 43, 0.12);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.seo-content a {
  color: var(--blue);
  font-weight: 900;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.seo-content span {
  display: block;
  margin-top: 4px;
}

.seo-content figure {
  display: grid;
  gap: 8px;
  max-width: 260px;
  margin: 16px 0 0;
}

.seo-content img {
  display: block;
  width: 100%;
  border: 2px solid rgba(17, 18, 43, 0.18);
  border-radius: 8px;
}

.seo-content figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header,
  .reader-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav,
  .reader-actions {
    justify-content: flex-start;
  }

  .reader-layout {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
    grid-template-rows: none;
    max-height: none;
    overflow: visible;
  }

  .comic-list {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    min-height: auto;
    overflow: visible;
  }

  .other-comics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: auto;
  }

  .brand img {
    width: min(190px, 72vw);
  }

  .top-nav,
  .reader-actions,
  .jump-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .top-nav a,
  .icon-button,
  .jump-actions button,
  .follow-cta {
    width: 100%;
  }

  main {
    padding: 12px;
  }

  .intro-copy h1,
  .about-copy h1,
  .follow-copy h1,
  .other-comics-copy h1 {
    font-size: clamp(2.25rem, 16vw, 3.8rem);
  }
}
