/* DogDaily.com site.css
   Dog Daily Newspaper / funny dog newsroom design
   Rules: high contrast, no white-on-white, mobile friendly, newspaper energy.
*/

:root {
  --ink: #17120d;
  --ink-soft: #33261b;
  --paper: #f7ecd2;
  --paper-deep: #ead5a6;
  --card: #fff8e8;
  --card-strong: #f2dfb8;
  --line: #2a1d13;
  --red: #a32118;
  --red-dark: #74140f;
  --gold: #d9a441;
  --gold-soft: #f4d37b;
  --green: #39543a;
  --blue-black: #111827;
  --shadow: 0 18px 45px rgba(23, 18, 13, .22);
  --shadow-soft: 0 10px 22px rgba(23, 18, 13, .14);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 164, 65, .28), transparent 34rem),
    linear-gradient(180deg, #f9edcf 0%, #efddb4 50%, #e7ce9f 100%);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(23, 18, 13, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 18, 13, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: -1;
}

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

a {
  color: var(--red-dark);
  text-decoration-thickness: .09em;
  text-underline-offset: .17em;
}

a:hover,
a:focus {
  color: var(--red);
}

:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 12px;
}

/* Masthead */

.site-header {
  background: #21170f;
  color: var(--paper);
  border-bottom: 6px solid var(--red);
  box-shadow: var(--shadow-soft);
}

.dateline {
  color: #f8d98a;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-family: var(--sans);
  font-weight: 800;
  font-size: .76rem;
  padding: 12px 0 0;
  text-align: center;
}

.masthead {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  padding: 12px 0 20px;
  text-align: center;
}

.site-title,
.logo-text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 11vw, 8.8rem);
  line-height: .82;
  letter-spacing: -.055em;
  text-transform: uppercase;
  color: #fff0c8;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .35);
}

.tagline {
  margin: 10px auto 0;
  max-width: 760px;
  color: #f7d981;
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.edition-strip {
  border-top: 2px solid rgba(247, 236, 210, .35);
  border-bottom: 2px solid rgba(247, 236, 210, .35);
  color: #fff8e8;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 0;
  margin-top: 14px;
}

/* Navigation */

.nav-shell {
  background: var(--red-dark);
  border-top: 1px solid rgba(255, 255, 255, .22);
  border-bottom: 5px solid var(--ink);
}

.nav-inner {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  color: #fff8e8;
  font-family: var(--sans);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 2px solid rgba(255, 248, 232, .65);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  margin: 10px 0;
}

.nav-links,
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-links a,
.main-nav a {
  display: block;
  color: #fff8e8;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 900;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .055em;
  padding: 15px 13px;
}

.nav-links a:hover,
.nav-links a:focus,
.main-nav a:hover,
.main-nav a:focus {
  background: #fff8e8;
  color: var(--red-dark);
}

.nav-links .catdaily-link,
.main-nav .catdaily-link {
  background: #24160f;
  color: #f9d66f;
}

/* Hero / front page */

.hero,
.front-page-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 30px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.hero-card {
  background: var(--card);
  border: 4px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 46px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-copy::before,
.hero-card::before {
  content: "DOG DAILY";
  position: absolute;
  right: -20px;
  top: 18px;
  transform: rotate(8deg);
  color: rgba(163, 33, 24, .08);
  font-family: var(--sans);
  font-weight: 1000;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: .8;
}

.kicker,
.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 12px;
  background: var(--red);
  color: #fff8e8;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero h1,
.hero-title,
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 6.4vw, 5.9rem);
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.hero .dek,
.dek,
.subtitle {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 850;
  font-size: clamp(1.05rem, 2vw, 1.36rem);
  line-height: 1.35;
}

.hero-image,
.feature-image {
  border: 4px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-image img,
.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

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

.button,
.btn,
.hero-cta,
.story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--red);
  color: #fff8e8;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 5px 5px 0 var(--ink);
}

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

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

/* Newspaper grids */

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

.section-header {
  border-top: 6px double var(--line);
  border-bottom: 3px solid var(--line);
  padding: 14px 0 12px;
  margin-bottom: 20px;
}

.section-header h2,
.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.035em;
}

.section-header p {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-weight: 750;
  color: var(--ink-soft);
}

.news-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card,
.card,
.story-card {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.news-card img,
.card img,
.story-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 3px solid var(--line);
}

.news-card-content,
.card-content,
.story-card-content {
  padding: 18px;
}

.news-card h3,
.card h3,
.story-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.025em;
}

.news-card p,
.card p,
.story-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 650;
}

.category-label {
  display: inline-block;
  margin-bottom: 9px;
  color: #fff8e8;
  background: var(--ink);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Article pages */

.article-layout {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}

.article-main {
  background: var(--card);
  border: 4px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 46px);
  box-shadow: var(--shadow);
}

.article-main h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.04em;
}

.article-main h2 {
  margin: 34px 0 10px;
  border-top: 3px solid var(--line);
  padding-top: 14px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
}

.article-main p,
.article-main li {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.article-main strong {
  color: var(--ink);
}

.sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 18px;
}

.sidebar-box {
  background: #21170f;
  color: #fff8e8;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.sidebar-box h3 {
  margin: 0 0 10px;
  color: #f8d98a;
  font-family: var(--sans);
  text-transform: uppercase;
}

.sidebar-box a {
  color: #f8d98a;
}

.pullquote,
.editor-note {
  margin: 28px 0;
  padding: 22px;
  border-left: 8px solid var(--red);
  background: var(--card-strong);
  color: var(--ink);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
}

/* Miranda feature */

.miranda-feature {
  background:
    linear-gradient(135deg, rgba(163, 33, 24, .10), transparent 34%),
    var(--card);
  border: 4px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: center;
}

.miranda-feature h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .9;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.miranda-feature img {
  border: 4px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.book-credit {
  font-family: var(--sans);
  font-weight: 900;
  color: var(--red-dark);
}

/* CatDaily chase page */

.chase-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 30px 0;
}

.catdaily-panel {
  width: min(920px, calc(100% - 32px));
  margin: auto;
  background: var(--card);
  border: 5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
  text-align: center;
}

.catdaily-panel h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.04em;
}

.chase-stage {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 5px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, #fff1c7 0%, #e8c988 100%);
  margin: 24px 0;
  box-shadow: inset 0 -16px 0 rgba(23, 18, 13, .11);
}

.chase-stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  height: 12px;
  background: repeating-linear-gradient(90deg, rgba(23, 18, 13, .22) 0 12px, transparent 12px 25px);
}

.cat-runner,
.dog-runner {
  position: absolute;
  bottom: 46px;
  font-size: clamp(3.3rem, 8vw, 6rem);
  line-height: 1;
  filter: drop-shadow(0 8px 0 rgba(23, 18, 13, .12));
}

.cat-runner {
  animation: catEscape 5.2s ease-in-out forwards;
}

.dog-runner {
  animation: dogChase 5.2s ease-in-out forwards;
  animation-delay: .35s;
}

@keyframes catEscape {
  0% { left: -90px; bottom: 48px; transform: rotate(0deg) scaleX(1); }
  18% { left: 18%; bottom: 84px; transform: rotate(-8deg) scaleX(1); }
  40% { left: 46%; bottom: 48px; transform: rotate(4deg) scaleX(1); }
  66% { left: 76%; bottom: 90px; transform: rotate(-12deg) scaleX(1); }
  100% { left: 112%; bottom: 54px; transform: rotate(0deg) scaleX(1); }
}

@keyframes dogChase {
  0% { left: -140px; bottom: 38px; transform: rotate(-5deg); }
  22% { left: 10%; bottom: 42px; transform: rotate(4deg); }
  47% { left: 40%; bottom: 72px; transform: rotate(-6deg); }
  75% { left: 72%; bottom: 42px; transform: rotate(5deg); }
  100% { left: 108%; bottom: 48px; transform: rotate(0deg); }
}

.redirect-note,
.fine-print {
  font-family: var(--sans);
  font-weight: 800;
}

/* Footer */

.site-footer {
  margin-top: 52px;
  background: #1d140e;
  color: #fff8e8;
  border-top: 8px solid var(--red);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.footer-logo {
  width: 180px;
  height: auto;
  background: #fff8e8;
  border-radius: 10px;
  padding: 8px;
}

.site-footer p {
  margin: 0 0 8px;
  color: #fff3d3;
  font-family: var(--sans);
  font-weight: 700;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.footer-links a {
  font-family: var(--sans);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .82rem;
}

/* Utilities */

.notice,
.callout {
  background: #21170f;
  color: #fff8e8;
  border: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.notice strong,
.callout strong {
  color: #f8d98a;
}

.two-column {
  columns: 2 320px;
  column-gap: 34px;
}

.table-wrap {
  overflow-x: auto;
  border: 3px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
}

th,
td {
  padding: 12px;
  border-bottom: 2px solid rgba(23, 18, 13, .18);
  text-align: left;
}

th {
  background: var(--ink);
  color: #fff8e8;
  text-transform: uppercase;
  letter-spacing: .06em;
}

code {
  background: #21170f;
  color: #fff8e8;
  padding: .12em .34em;
  border-radius: 5px;
}

/* Mobile */

@media (max-width: 920px) {
  .hero,
  .front-page-hero,
  .article-layout,
  .miranda-feature {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .site-title,
  .logo-text {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .nav-inner {
    display: block;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .nav-links,
  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 10px;
  }

  .menu-toggle:checked ~ .nav-links,
  .menu-toggle:checked ~ .main-nav ul,
  .nav-inner:has(.menu-toggle:checked) .nav-links,
  .nav-inner:has(.menu-toggle:checked) .main-nav ul {
    display: flex;
  }

  .nav-links a,
  .main-nav a {
    border-top: 1px solid rgba(255, 248, 232, .24);
    padding: 14px 10px;
  }

  .news-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-image img,
  .feature-image img {
    min-height: 250px;
  }

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

  .cat-runner,
  .dog-runner {
    font-size: 3.6rem;
  }
}

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

  .cat-runner {
    left: 60%;
  }

  .dog-runner {
    left: 30%;
  }
}
