@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul, menu {
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }

p { line-height: 1.75; }

/* ============================================================
   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;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid #000;
}

.brand-row {
  border-bottom: 1px solid #000;
}

.brand-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.brand-link {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000;
  text-decoration: none;
  display: inline-block;
}

.menu-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Pill Nav */
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #000;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 220ms ease, color 220ms ease;
  min-height: 40px;
  text-decoration: none;
}

.pill-link:hover,
.pill-link.active {
  background: #000;
  color: #fff;
  text-decoration: none;
}

/* Details / mobile nav */
.nav-details {
  display: none;
}

.nav-details[open] .nav-menu {
  display: block;
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1.5px solid #000;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  list-style: none;
  min-height: 40px;
  user-select: none;
}

.nav-toggle::-webkit-details-marker { display: none; }

.toggle-icon {
  width: 18px;
  height: 2px;
  background: #000;
  position: relative;
  display: inline-block;
}

.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
}

.toggle-icon::before { top: -6px; }
.toggle-icon::after  { top: 6px; }

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #000;
  border-bottom: 2px solid #000;
  padding: 1rem 2rem;
  z-index: 200;
}

.nav-menu li {
  border-bottom: 1px solid #eee;
}

.nav-menu li a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-details {
  position: relative;
}

/* ============================================================
   Section Figure & Aside Layout Base
   ============================================================ */
.section-fig {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.fig-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
}

/* Generic article grid: aside left, content right */
.home-intro,
.cat-hero-section,
.cat-content-section,
.children-section,
.about-hero-section,
.about-content-section,
.privacy-hero-section,
.privacy-content-section,
.article-meta-section,
.article-body-section,
.default-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto;
  gap: 2rem 3rem;
  align-items: start;
}

/* figure spans full width as top row */
.home-intro > .section-fig,
.cat-hero-section > .section-fig,
.cat-content-section > .section-fig,
.children-section > .section-fig,
.about-hero-section > .section-fig,
.about-content-section > .section-fig,
.privacy-hero-section > .section-fig,
.privacy-content-section > .section-fig,
.article-meta-section > .section-fig,
.article-body-section > .section-fig,
.default-section > .section-fig {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

/* aside goes to col 1, body to col 2 */
.home-aside,
.cat-aside,
.cat-content-aside,
.children-aside,
.about-aside,
.about-content-aside,
.privacy-aside,
.privacy-content-aside,
.article-aside,
.article-body-aside,
.default-aside {
  grid-column: 1;
}

.home-body,
.cat-hero-text,
.cat-body,
.children-grid,
.about-intro,
.about-body,
.privacy-intro,
.privacy-body,
.article-intro,
.article-content,
.default-body {
  grid-column: 2;
}

/* ============================================================
   Aside Styles
   ============================================================ */
.home-aside,
.cat-aside,
.cat-content-aside,
.children-aside,
.about-aside,
.about-content-aside,
.privacy-aside,
.privacy-content-aside,
.article-aside,
.article-body-aside,
.default-aside {
  background: #000;
  color: #fff;
  border-radius: 28px;
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.home-aside h2,
.cat-aside h2,
.cat-content-aside h2,
.children-aside h2,
.about-aside h2,
.about-content-aside h2,
.privacy-aside h2,
.privacy-content-aside h2,
.article-aside h2,
.article-body-aside h2,
.default-aside h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.home-aside .subtitle,
.cat-aside .subtitle,
.cat-content-aside .subtitle,
.children-aside .subtitle,
.about-aside .subtitle,
.about-content-aside .subtitle,
.privacy-aside .subtitle,
.privacy-content-aside .subtitle,
.article-aside .subtitle,
.article-body-aside .subtitle,
.default-aside .subtitle {
  color: #aaa;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.aside-nav-list li {
  border-bottom: 1px solid #333;
}

.aside-nav-list li:last-child {
  border-bottom: none;
}

.aside-nav-list li a {
  display: block;
  padding: 0.5rem 0;
  color: #fff;
  font-size: 0.85rem;
  transition: color 200ms;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-nav-list li a:hover {
  color: #ccc;
  text-decoration: none;
}

.aside-home-link,
.aside-parent a {
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  font-size: 0.85rem;
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
}

.aside-cats-head {
  margin-top: 1.5rem;
}

.aside-parent {
  margin-bottom: 0.5rem;
}

/* ============================================================
   Subtitle (h2 + p.subtitle pattern)
   ============================================================ */
.subtitle {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ============================================================
   Hero Section (Home)
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent 55%,
    #fff 55%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 2rem 4rem 2rem 2rem;
  max-width: 600px;
  color: #fff;
}

/* When no hero image, fallback */
.page-home .hero-section:not(:has(.hero-img)) {
  background: #000;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ccc;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-lead {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 220ms, color 220ms;
  text-decoration: none;
  min-height: 48px;
}

.hero-cta:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   Home: Cats Section
   ============================================================ */
.cats-section {
  background: #f7f7f7;
  padding: 3rem 2rem;
}

.cats-section > .section-fig,
.cats-section > .cats-header,
.cats-section > .cats-meta-aside,
.cats-section > .cats-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.cats-header {
  margin-bottom: 0.5rem;
}

.cats-header h2 { margin-bottom: 0.25rem; }

.cats-meta-aside {
  margin-bottom: 2rem;
  color: #555;
  font-size: 0.9rem;
}

.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  background: #000;
  color: #fff;
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 240ms ease;
}

.cat-card:hover {
  transform: translateY(-4px);
}

.cat-card-head {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 200ms;
}

.cat-card-head strong {
  font-weight: 700;
  line-height: 1.3;
}

.cat-card-head:hover { color: #ccc; text-decoration: none; }

.cat-desc {
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.cat-children {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.child-link {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  border-top: 1px solid #333;
  padding-top: 0.5rem;
  text-decoration: none;
  transition: color 200ms;
}

.child-link strong {
  font-weight: 500;
}

.child-link:hover { color: #bbb; text-decoration: none; }

/* ============================================================
   Category Page
   ============================================================ */
.cat-hero-section {
  border-bottom: 1px solid #eee;
}

.cat-eyebrow,
.about-eyebrow,
.privacy-eyebrow,
.article-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.5rem;
  display: block;
}

.cat-lead { max-width: 600px; }

/* Children Grid */
.children-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.child-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  border-radius: 28px;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: background 220ms ease;
}

.child-block strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.child-block .card-desc {
  font-size: 0.875rem;
  color: #aaa;
  line-height: 1.5;
}

.child-block .card-date {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

.child-block:hover {
  background: #222;
  text-decoration: none;
}

.no-children {
  color: #888;
  font-size: 0.9rem;
}

/* ============================================================
   Article Page
   ============================================================ */
.article-hero-fig {
  grid-column: 1 / -1;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 0;
}

.article-hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

.article-meta-section {
  border-bottom: 1px solid #eee;
}

.article-desc {
  max-width: 600px;
  font-size: 1.05rem;
  color: #333;
}

.article-dateline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.5rem;
}

.article-dateline time {
  display: inline-block;
}

/* Breadcrumb */
.breadcrumb {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding-bottom: 1rem;
}

.breadcrumb a {
  color: #555;
  text-decoration: underline;
}

/* Article body content */
.article-content,
.about-body,
.privacy-body,
.default-body {
  font-size: 1rem;
  line-height: 1.8;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.4rem;
}

.page-content p {
  margin-bottom: 1.25rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-content blockquote {
  border-left: 4px solid #000;
  padding-left: 1rem;
  color: #444;
  font-style: italic;
  margin: 1.5rem 0;
}

.page-content img {
  border-radius: 16px;
  margin: 1.5rem 0;
}

.page-content a {
  text-decoration: underline;
  color: #000;
}

.page-content time {
  font-size: 0.85rem;
  color: #888;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* ============================================================
   About / Privacy
   ============================================================ */
.about-intro,
.privacy-intro {
  display: flex;
  flex-direction: column;
}

.about-lead,
.privacy-lead {
  font-size: 1.05rem;
  color: #333;
  max-width: 580px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #000;
  color: #fff;
  border-top: 2px solid #000;
  padding: 3rem 2rem 0;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #333;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-nav a {
  color: #ccc;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.3rem 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 200ms;
}

.footer-nav a:hover { color: #fff; text-decoration: none; }

.footer-contact-note {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-input {
  flex: 1;
  min-width: 160px;
  padding: 0.6rem 1rem;
  border: 1.5px solid #555;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 200ms;
}

.footer-input::placeholder { color: #666; }
.footer-input:focus { border-color: #fff; }

.footer-btn {
  padding: 0.6rem 1.25rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 40px;
  transition: background 220ms, color 220ms;
}

.footer-btn:hover {
  background: #ddd;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: #666;
}

.footer-copy a {
  color: #999;
  text-decoration: underline;
}

.footer-copy a:hover { color: #fff; }

/* ============================================================
   Stagger animation
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .cat-card,
  .child-block {
    animation: fadeUp 400ms ease both;
  }

  .cats-grid .cat-card:nth-child(1) { animation-delay: 0ms; }
  .cats-grid .cat-card:nth-child(2) { animation-delay: 80ms; }
  .cats-grid .cat-card:nth-child(3) { animation-delay: 160ms; }
  .cats-grid .cat-card:nth-child(4) { animation-delay: 240ms; }

  .children-grid .child-block:nth-child(1) { animation-delay: 0ms; }
  .children-grid .child-block:nth-child(2) { animation-delay: 60ms; }
  .children-grid .child-block:nth-child(3) { animation-delay: 120ms; }
  .children-grid .child-block:nth-child(4) { animation-delay: 180ms; }
  .children-grid .child-block:nth-child(5) { animation-delay: 240ms; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 900px) {
  .home-intro,
  .cat-hero-section,
  .cat-content-section,
  .children-section,
  .about-hero-section,
  .about-content-section,
  .privacy-hero-section,
  .privacy-content-section,
  .article-meta-section,
  .article-body-section,
  .default-section {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .home-aside,
  .cat-aside,
  .cat-content-aside,
  .children-aside,
  .about-aside,
  .about-content-aside,
  .privacy-aside,
  .privacy-content-aside,
  .article-aside,
  .article-body-aside,
  .default-aside {
    grid-column: 1;
    position: static;
  }

  .home-body,
  .cat-hero-text,
  .cat-body,
  .children-grid,
  .about-intro,
  .about-body,
  .privacy-intro,
  .privacy-body,
  .article-intro,
  .article-content,
  .default-body {
    grid-column: 1;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-contact-col {
    grid-column: 1 / -1;
  }

  .hero-content {
    padding: 2rem 2rem 6rem;
    max-width: 100%;
  }

  .hero-slash {
    background: linear-gradient(
      to bottom right,
      transparent 60%,
      #fff 60%
    );
  }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 600px) {
  .menu-row {
    padding: 0.5rem 1rem;
  }

  .brand-inner {
    padding: 0.75rem 1rem;
  }

  .pill-nav {
    display: none;
  }

  .nav-details {
    display: block;
    width: 100%;
  }

  .hero-section {
    height: 70vh;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .hero-content {
    text-align: left;
    padding: 1.5rem 1rem 4rem;
    max-width: 100%;
  }

  .hero-slash {
    background: linear-gradient(
      to bottom right,
      transparent 65%,
      #fff 65%
    );
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .cats-section {
    padding: 2rem 1rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-hero-img {
    height: 220px;
  }

  .breadcrumb {
    font-size: 0.78rem;
  }

  h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.1rem, 4.5vw, 1.5rem); }
}
