/* =========================================================
   CatDaily.com — site.css
   Cozy manga newspaper + glamorous pet magazine
   Mobile-first, readable, playful, professional
   ========================================================= */

:root {
  --ink: #201915;
  --ink-soft: #463a33;
  --paper: #fff8ef;
  --paper-warm: #fff1df;
  --cream: #fffaf3;
  --card: #ffffff;
  --line: rgba(32, 25, 21, 0.14);

  --orange: #f08a24;
  --orange-dark: #b85f12;
  --salmon: #f56f61;
  --rose: #ffe2dc;
  --yellow: #ffd45a;
  --mint: #d9f4df;
  --sky: #d9ecff;
  --newsprint: #f7efe2;

  --shadow: 0 18px 45px rgba(49, 31, 18, 0.14);
  --shadow-soft: 0 10px 28px rgba(49, 31, 18, 0.10);

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --max: 1180px;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* -----------------------------
   Base
   ----------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 212, 90, 0.30), transparent 34rem),
    radial-gradient(circle at top right, rgba(245, 111, 97, 0.18), transparent 32rem),
    linear-gradient(180deg, var(--paper), #fffdf8 48%, var(--paper-warm));
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--orange-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

p {
  margin: 0 0 1rem;
}

strong,
b {
  color: var(--ink);
  font-weight: 800;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

/* -----------------------------
   Layout Helpers
   ----------------------------- */

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

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 42px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
}

.eyebrow {
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lede {
  max-width: 780px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  line-height: 1.65;
}

.center {
  text-align: center;
}

.center .lede {
  margin-inline: auto;
}

/* -----------------------------
   Header / Navigation
   ----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--ink);
  background: rgba(255, 248, 239, 0.94);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 24px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-body);
  font-size: 1.35rem;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 48px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  width: 24px;
  height: 3px;
  display: block;
  position: relative;
  border-radius: 999px;
  background: var(--ink);
  content: "";
}

.nav-toggle-label span::before {
  position: absolute;
  top: -8px;
}

.nav-toggle-label span::after {
  position: absolute;
  top: 8px;
}

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

.main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 850;
}

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

/* -----------------------------
   Hero
   ----------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 44px;
  border-bottom: 3px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 212, 90, 0.40), transparent 42%),
    linear-gradient(315deg, rgba(217, 236, 255, 0.70), transparent 46%);
}

.hero::before {
  content: "BREAKING MEWS • DAILY PURRS • CAT WISDOM •";
  position: absolute;
  left: -20px;
  right: -20px;
  top: 18px;
  padding: 8px 0;
  transform: rotate(-1.4deg);
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-align: center;
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 22px;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 7.7rem);
  line-height: 0.87;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
  color: var(--orange-dark);
}

.tagline {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(1.18rem, 2.4vw, 1.7rem);
  font-weight: 850;
  line-height: 1.3;
}

.hero-text {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-art {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: 12px 12px 0 var(--ink), var(--shadow);
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

.hero-caption {
  padding: 14px 18px;
  border-top: 3px solid var(--ink);
  background: var(--newsprint);
  font-size: 0.92rem;
  font-weight: 850;
}

/* -----------------------------
   Buttons
   ----------------------------- */

.actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn,
.button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 950;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover,
.button:hover,
.cta-button:hover {
  transform: translate(2px, 2px);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn.secondary,
.button.secondary {
  background: var(--card);
}

.btn.dark,
.button.dark {
  background: var(--ink);
  color: #fff;
}

/* -----------------------------
   Cards / Grids
   ----------------------------- */

.grid {
  display: grid;
  gap: 22px;
}

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

.grid.three,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.card,
.news-card,
.feature-card {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.card.padded,
.news-card,
.feature-card {
  padding: 24px;
}

.card h2,
.card h3,
.news-card h3,
.feature-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.card p,
.news-card p,
.feature-card p {
  color: var(--ink-soft);
}

.card img,
.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border-bottom: 3px solid var(--ink);
}

.card-body {
  padding: 22px;
}

.card-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -----------------------------
   Newspaper Strip
   ----------------------------- */

.news-strip {
  padding: 16px 0;
  border-block: 3px solid var(--ink);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.news-strip-inner {
  width: max-content;
  min-width: 100%;
  display: flex;
  gap: 28px;
  animation: ticker 28s linear infinite;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-strip span {
  color: var(--yellow);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* -----------------------------
   Feature Sections
   ----------------------------- */

.panel {
  padding: clamp(24px, 5vw, 44px);
  border: 4px solid var(--ink);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 10px 10px 0 var(--ink), var(--shadow);
}

.panel.warm {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 212, 90, 0.42), transparent 28rem),
    var(--paper-warm);
}

.panel.blue {
  background:
    radial-gradient(circle at 85% 0%, rgba(217, 236, 255, 0.8), transparent 24rem),
    var(--card);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.media-frame {
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: 9px 9px 0 var(--ink);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

.content h1,
.content h2,
.section-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.content h3 {
  margin: 1.6rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
}

/* -----------------------------
   Article Pages
   ----------------------------- */

.article {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--ink);
}

.article h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.article h2 {
  margin: 2.2rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.article h3 {
  margin: 1.8rem 0 0.65rem;
  font-size: 1.35rem;
}

.article figure {
  margin: 30px 0;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: 8px 8px 0 var(--ink);
}

.article figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
}

.article figcaption {
  padding: 12px 16px;
  border-top: 3px solid var(--ink);
  background: var(--newsprint);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.article li {
  margin-bottom: 0.55rem;
}

.pullquote {
  margin: 34px 0;
  padding: 28px;
  border: 4px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  font-weight: 900;
  line-height: 1.12;
}

/* -----------------------------
   Manga Episode Cards
   ----------------------------- */

.episode-list {
  display: grid;
  gap: 16px;
}

.episode {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
}

.episode:hover {
  background: var(--paper-warm);
  color: var(--ink);
}

.episode-number {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--salmon);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.4rem;
  font-weight: 950;
}

.episode h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.05;
}

.episode p {
  margin: 0;
  color: var(--ink-soft);
}

/* -----------------------------
   Alerts / Disclaimer
   ----------------------------- */

.notice,
.disclaimer,
.vet-note {
  margin: 28px 0;
  padding: 22px;
  border: 4px solid var(--ink);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 7px 7px 0 var(--ink);
}

.notice strong,
.disclaimer strong,
.vet-note strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.05rem;
}

.vet-note {
  background: var(--rose);
}

.disclaimer {
  background: var(--mint);
}

.warning {
  background: var(--yellow);
}

/* -----------------------------
   Tables
   ----------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--card);
}

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

th,
td {
  padding: 14px 16px;
  border-bottom: 2px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--ink);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* -----------------------------
   Forms
   ----------------------------- */

form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

input:focus,
textarea:focus,
select:focus {
  outline: 4px solid rgba(255, 212, 90, 0.75);
  outline-offset: 2px;
}

/* -----------------------------
   Footer
   ----------------------------- */

.site-footer {
  margin-top: 42px;
  border-top: 4px solid var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 212, 90, 0.28), transparent 28rem),
    var(--ink);
  color: #fff;
}

.footer-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1.05;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: var(--yellow);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  text-align: center;
}

/* -----------------------------
   Utility Badges
   ----------------------------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

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

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

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

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

/* -----------------------------
   Sitemap
   ----------------------------- */

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.sitemap-list a {
  display: block;
  padding: 14px 16px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
}

.sitemap-list a:hover {
  background: var(--yellow);
}

/* -----------------------------
   Responsive
   ----------------------------- */

@media (max-width: 960px) {
  .nav-toggle-label {
    display: flex;
  }

  .main-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: none;
    padding: 14px;
    border: 3px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: 8px 8px 0 var(--ink), var(--shadow);
  }

  .main-nav a {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }

  .nav-toggle:checked ~ .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 46px;
  }

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

  .footer-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .container,
  .article,
  .footer-wrap {
    width: min(100% - 22px, var(--max));
  }

  .site-header {
    position: sticky;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .nav-toggle:checked ~ .main-nav {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .hero::before {
    top: 10px;
    font-size: 0.68rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .hero-art {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .section {
    padding: 48px 0;
  }

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

  .panel {
    padding: 22px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .episode {
    grid-template-columns: 1fr;
  }

  .episode-number {
    width: 60px;
    height: 60px;
  }

  .sitemap-list {
    grid-template-columns: 1fr;
  }

  .actions,
  .button-row {
    display: grid;
  }

  .btn,
  .button,
  .cta-button {
    width: 100%;
  }
}

/* -----------------------------
   Reduced Motion
   ----------------------------- */

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