/* ====== Base / Tokens ====== */
:root {
  --darktext: #12141a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --searchbox: #rgba(255, 255, 255, 0.04);
  --searchboxtext: #aaa;
  --brand: #ffa500;
  --brand-hover: #e69500;
  --brand-soft: #ffd27a;
  --bg: #111111;
  --panel: #1c1c1c;
  --panel-2: #242424;
  --text: #f8f0d6;
  --muted: #f1da8e;
  --line: #2a2a2a;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

a {
  color: var(--brand-soft);
}

a,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background-color: #aaa;
  line-height: 1.35;
}

.page {
  max-width: 1000px;
  margin: 0 auto;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(125, 211, 252, 0.18), transparent 55%), radial-gradient(900px 500px at 90% 10%, rgba(167, 139, 250, 0.14), transparent 55%), var(--bg);
  min-height: 70vh;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.split__text {
  font-size: 1.1rem;
  line-height: 1.6;
}
.split__text h1 {
  margin-top: 0;
  font-size: 2rem;
}
.split__text p {
  margin-bottom: 1rem;
}

.split__image {
  display: flex;
  justify-content: center;
}
.split__image img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.container {
  width: min(1000px, 100% - 2rem);
  margin-inline: auto;
}

/* ====== Header / Nav ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand);
  border: 1px solid var(--line);
  font-size: 26px;
}

.nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 650;
  color: var(--muted);
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.nav__link.is-active {
  color: #071018;
  background: linear-gradient(135deg, var(--brand), #9c791f);
}

/* Screen-reader only utility */
.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;
}

.nav-search {
  margin-left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.nav-search__input {
  width: 210px;
  max-width: 30vw;
  padding: 0.55rem 0.75rem;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background-color: var(--searchbox);
  color: var(--muted);
  font-weight: 650;
}
.nav-search__input::placeholder {
  color: rgba(248, 208, 148, 0.55);
}

.nav-search__btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.nav-search__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}
.nav-search__btn:active {
  transform: translateY(0);
}

/* Mobile: hide search in header (or you can move it into a dropdown later) */
@media (max-width: 720px) {
  .nav-search {
    display: none;
  }
}
/* Simple hamburger placeholder (optional) */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 5px auto;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
}

/* ====== Comic Section ====== */
.comic {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  padding: 2rem 0 2.5rem;
}

.comic__meta {
  text-align: center;
}
.comic__meta .comic__date {
  color: var(--muted);
  font-weight: 550;
}

.comic-panel {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 370px;
  margin: 0 auto;
  aspect-ratio: 0.9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.comic-panel__img {
  width: 100%;
  max-width: 300px;
  height: 330px;
  object-fit: cover;
  display: block;
  padding: 20px;
  background-color: #fff;
}

.comic-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 2rem auto;
}

.comic-template {
  position: relative;
  flex: 0 0 auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
}

.comic-template__caption,
.comic-template__subtitle {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

.comic-template__caption {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}

.comic-template__subtitle {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: #333;
}

/* ====== Prev/Next Buttons ====== */
.comic-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 50px;
  color: var(--darktext);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.25), rgba(167, 139, 250, 0.18));
  color: var(--muted);
  font-weight: 750;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.32), rgba(167, 139, 250, 0.26));
}
.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-nav {
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}
.btn-nav:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

/* Disabled button */
.btn-nav:disabled,
.btn--disabled {
  color: #777;
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

/* Prevent hover effects */
.btn-nav:disabled:hover,
.btn--disabled:hover {
  background: #2a2a2a;
  transform: none;
  pointer-events: none;
}

/* ====== Footer ====== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-link {
  color: var(--muted);
}
.footer-link:hover {
  color: var(--text);
}

/* login screen */
* {
  box-sizing: border-box;
}

.login-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.login-card__title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-row label {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--muted);
}
.form-row input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.form-row input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.16);
}

.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  margin-top: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #111;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.form-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}
.form-btn:active {
  transform: translateY(0);
}

.login-form__footer {
  text-align: center;
  margin-top: 0.25rem;
}

.login-form__reset {
  color: var(--brand-soft);
  text-decoration: none;
  font-weight: 600;
}
.login-form__reset:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ====== Responsive ====== */
@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-block;
  }
  .comic__meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .comic-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/*# sourceMappingURL=newstyle.css.map */
