/* PumpDaily.com — site.css
   Pressure. Flow. Drama.
   Mobile-first, high-contrast, manga/editorial layout system.
*/

:root {
  --ink: #07111f;
  --ink-2: #0d1b2f;
  --panel: #ffffff;
  --panel-soft: #f4f8ff;
  --panel-blue: #eaf4ff;
  --blue: #0868d9;
  --blue-2: #0b8fff;
  --blue-dark: #083d7a;
  --orange: #ff8a00;
  --gold: #ffd13b;
  --red: #d72828;
  --green: #168a45;
  --muted: #5f6f86;
  --line: rgba(7, 17, 31, 0.16);
  --shadow: 0 18px 45px rgba(7, 17, 31, 0.16);
  --shadow-soft: 0 10px 25px rgba(7, 17, 31, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(11, 143, 255, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(255, 138, 0, 0.12), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 42%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 8vw, 6.5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.1rem);
}

h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
}

strong {
  color: var(--ink);
}

.site-wrap {
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  top: 0;
}

/* Header / Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 251, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 35% 35%, var(--blue-2), var(--blue-dark));
  box-shadow: 0 9px 22px rgba(8, 104, 217, 0.26);
}

.logo span span,
.logo .daily {
  color: var(--blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: #fff;
  background: var(--blue-dark);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 0.85rem;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(2.5rem, 7vw, 6rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(8, 104, 217, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 138, 0, 0.16);
}

.hero-title {
  max-width: 11ch;
  text-transform: uppercase;
}

.hero-title .accent {
  color: var(--blue);
}

.hero-copy {
  max-width: 62ch;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #26384f;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.12rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(8, 104, 217, 0.22);
}

.btn:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.btn.secondary:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.hero-media,
.feature-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.hero-media img,
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media::after {
  content: "Pressure. Flow. Drama.";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.82);
  color: #fff;
  font-weight: 950;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* Sections */

.section {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
}

.section.tight {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.section-header {
  max-width: 800px;
  margin-bottom: clamp(1.4rem, 4vw, 2.4rem);
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.lede {
  color: #344761;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

.kicker {
  color: var(--orange);
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Cards / Grids */

.grid {
  display: grid;
  gap: 1.1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.card.pad {
  padding: clamp(1rem, 2vw, 1.4rem);
}

.card-media {
  overflow: hidden;
  background: var(--panel-blue);
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.card:hover .card-media img {
  transform: scale(1.035);
}

.card-body {
  padding: 1rem;
}

.card-title {
  margin: 0 0 0.35rem;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.card p {
  color: #3e5068;
}

.card-link {
  color: var(--ink);
  text-decoration: none;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.orange {
  background: var(--orange);
  color: var(--ink);
}

.badge.red {
  background: var(--red);
}

.badge.green {
  background: var(--green);
}

/* Feature bands */

.feature-band {
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2rem);
  background:
    linear-gradient(135deg, rgba(8, 104, 217, 0.95), rgba(7, 17, 31, 0.97)),
    var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-band h2,
.feature-band h3,
.feature-band p,
.feature-band strong {
  color: #fff;
}

.feature-band .lede {
  color: rgba(255, 255, 255, 0.86);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.feature-band .btn.secondary {
  color: var(--ink);
}

/* Episode / character treatment */

.episode-card .card-title,
.character-card .card-title {
  text-transform: uppercase;
}

.episode-card .card-media img {
  aspect-ratio: 3 / 4;
}

.character-card .card-media img {
  aspect-ratio: 4 / 5;
}

.number-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 1000;
  box-shadow: var(--shadow-soft);
}

/* Article pages */

.article-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 1.5rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.article-content {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.15rem, 3vw, 2rem);
}

.article-content > * + * {
  margin-top: 1rem;
}

.article-content h2 {
  margin-top: 2rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
}

.article-content li + li {
  margin-top: 0.4rem;
}

.sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.sidebar-box + .sidebar-box {
  margin-top: 1rem;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

tr:last-child td {
  border-bottom: 0;
}

/* Forms */

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(7, 17, 31, 0.25);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(11, 143, 255, 0.28);
  border-color: var(--blue);
}

/* Footer */

.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
  background:
    radial-gradient(circle at top left, rgba(11, 143, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, #07111f, #0d1b2f);
  color: #fff;
}

.site-footer a {
  color: #dbeeff;
}

.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer strong {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.abc-block {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
}

/* Utilities */

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.flow-line {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--orange));
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.no-margin {
  margin: 0;
}

.rounded {
  border-radius: var(--radius-lg);
}

.shadow {
  box-shadow: var(--shadow);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

/* Contrast safeguards */

.dark-panel {
  background: var(--ink);
  color: #fff;
}

.dark-panel h1,
.dark-panel h2,
.dark-panel h3,
.dark-panel p,
.dark-panel strong {
  color: #fff;
}

.light-panel {
  background: #fff;
  color: var(--ink);
}

.light-panel h1,
.light-panel h2,
.light-panel h3,
.light-panel p,
.light-panel strong {
  color: var(--ink);
}

/* Responsive */

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .navbar {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open,
  .nav-menu:target {
    display: flex;
  }

  .nav-menu a {
    border-radius: var(--radius-sm);
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-media::after {
    position: static;
    border-radius: 0;
  }

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 0.9rem;
  }
}

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

/* --- PumpDaily mobile episode/card polish patch ---
   Fixes manga episode cards so they work cleanly in portrait mobile,
   not only horizontal phone orientation.
*/

.card {
  min-width: 0;
}

.card-body {
  min-width: 0;
}

.card-title {
  overflow-wrap: anywhere;
}

/* Episode cards: less poster-like on phones, easier to scan. */
.episode-card .card-media img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.character-card .card-media img {
  object-position: center top;
}

/* Keep feature/hero images from creating awkward mobile overflow. */
.hero-media,
.feature-media,
.card-media {
  max-width: 100%;
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 1.1rem, var(--max));
  }

  .section {
    padding: 2.1rem 0;
  }

  .article-hero {
    padding: 1.6rem 0 1rem;
  }

  .hero-grid,
  .feature-grid,
  .article-layout,
  .footer-grid {
    gap: 1rem;
  }

  h1 {
    font-size: clamp(2.15rem, 13vw, 3.35rem);
    letter-spacing: -0.055em;
  }

  h2 {
    font-size: clamp(1.65rem, 9vw, 2.4rem);
  }

  .hero-title {
    max-width: 12ch;
  }

  .hero-copy,
  .lede {
    font-size: 1rem;
  }

  .hero-actions,
  .button-row {
    gap: 0.6rem;
  }

  .btn {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.95rem;
    text-align: center;
  }

  .grid,
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .card {
    border-radius: 18px;
  }

  .card-media img {
    aspect-ratio: 16 / 10;
  }

  .episode-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
  }

  .episode-card .card-media {
    height: 100%;
  }

  .episode-card .card-media img {
    width: 100%;
    height: 100%;
    min-height: 168px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center top;
  }

  .episode-card .card-body {
    padding: 0.85rem;
  }

  .episode-card .card-title {
    font-size: 1.02rem;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 0.35rem;
  }

  .episode-card p {
    font-size: 0.92rem;
    line-height: 1.38;
    margin-bottom: 0;
  }

  .episode-card .badge {
    font-size: 0.66rem;
    min-height: 23px;
    margin-bottom: 0.45rem;
  }

  .number-pill {
    top: 0.45rem;
    left: 0.45rem;
    width: 34px;
    height: 34px;
    border-width: 2px;
    font-size: 0.9rem;
  }

  .character-card .card-media img {
    aspect-ratio: 16 / 12;
  }

  .feature-band {
    border-radius: 20px;
    padding: 1rem;
  }

  .article-content {
    border-radius: 20px;
    padding: 1rem;
  }

  .sidebar-box {
    border-radius: 16px;
  }

  table {
    min-width: 540px;
  }
}

@media (max-width: 430px) {
  .episode-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .episode-card .card-media img {
    min-height: 154px;
  }

  .episode-card .card-body {
    padding: 0.75rem;
  }

  .episode-card .card-title {
    font-size: 0.96rem;
  }

  .episode-card p {
    font-size: 0.86rem;
  }

  .number-pill {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }
}

/* Ultra-narrow phones: return to stacked cards rather than cramping text. */
@media (max-width: 340px) {
  .episode-card {
    display: block;
  }

  .episode-card .card-media img {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }
}

