@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* ===== LAYOUT SHELL ===== */
.site-shell {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDENAV ===== */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 2rem;
  overflow-y: auto;
  z-index: 100;
  border-right: 2px solid #000;
}

.sidenav-brand {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.sidenav-search {
  width: 100%;
}

.search-input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  min-height: 44px;
}

.search-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.search-input:focus {
  border-color: rgba(255,255,255,0.6);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.nav-pill {
  display: block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-pill:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.nav-pill--active {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 700;
}

/* ===== PAGE BODY ===== */
.page-body {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===== MAIN / WRAP ===== */
main {
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000;
}

/* ===== PAGE EYEBROW ===== */
.page-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid #000;
  border-radius: 999px;
  padding: 0.25rem 0.875rem;
  margin-bottom: 1.5rem;
}

/* ===== HOME HERO ===== */
.hero-section {
  padding: 6rem 0 4rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-article {
  width: 100%;
}

.hero-h1 {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #000;
  margin-bottom: 2rem;
  text-align: right;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: #444;
  max-width: 520px;
  margin-left: auto;
  margin-bottom: 3rem;
  text-align: right;
  line-height: 1.7;
}

/* dual offset hero images */
.hero-media {
  width: 100%;
  text-align: right;
}

.hero-img-wrap {
  display: inline-flex;
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 340px;
}

.hero-img {
  width: 52%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

.hero-img--a {
  left: 0;
  top: 0;
  z-index: 1;
  filter: grayscale(1);
}

.hero-img--b {
  right: 0;
  bottom: -2rem;
  z-index: 2;
  filter: grayscale(1) invert(1);
  border: 3px solid #000;
}

/* ===== CAT HERO ===== */
.cat-hero-section {
  padding: 5rem 0 3rem;
  border-bottom: 2px solid #000;
  margin-bottom: 3rem;
}

.cat-h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: #000;
}

.cat-lead {
  font-size: 1.125rem;
  color: #555;
  max-width: 560px;
  line-height: 1.7;
}

/* ===== ARTICLE HEADER ===== */
.article-header-section {
  padding: 4rem 0 2.5rem;
  border-bottom: 2px solid #000;
  margin-bottom: 3rem;
}

.article-h1 {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: #000;
}

.article-lead {
  font-size: 1.125rem;
  color: #555;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.meta-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.02em;
}

.meta-updated {
  font-size: 0.8rem;
  color: #888;
}

.article-hero-media {
  margin-top: 2rem;
}

.article-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  filter: grayscale(0.7);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #000;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== ABOUT ===== */
.about-intro-section {
  padding: 5rem 0 3rem;
  border-bottom: 2px solid #000;
  margin-bottom: 3rem;
}

.about-h1 {
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: #000;
  margin-bottom: 2rem;
}

.about-hero-media {
  margin-top: 2rem;
}

.about-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  filter: grayscale(1);
}

.about-cta-section {
  padding: 3rem 0 2rem;
  border-top: 2px solid #000;
  margin-top: 3rem;
}

.about-cta-text {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== PRIVACY ===== */
.privacy-header-section {
  padding: 5rem 0 2.5rem;
  border-bottom: 2px solid #000;
  margin-bottom: 3rem;
}

.privacy-h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #000;
  margin-bottom: 1.25rem;
}

.privacy-lead {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.7;
}

.privacy-back-section {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid #e0e0e0;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== DEFAULT ===== */
.default-header-section {
  padding: 4rem 0 2.5rem;
  border-bottom: 2px solid #000;
  margin-bottom: 3rem;
}

.default-h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #000;
  margin-bottom: 1rem;
}

.default-lead {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.7;
}

/* ===== CONTENT / PROSE ===== */
.content-section {
  padding: 3rem 0;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #111;
  max-width: 720px;
}

.prose h2 {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 2.5rem 0 1rem;
  color: #000;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: #000;
}

.prose p {
  margin-bottom: 1.25rem;
}

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

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
}

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

.prose a {
  color: #000;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  opacity: 0.6;
}

.prose strong {
  font-weight: 700;
}

.prose time {
  font-size: 0.875rem;
  font-weight: 600;
  background: #000;
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
}

/* ===== TOPICS ===== */
.topics-section {
  padding: 3rem 0 2rem;
  border-top: 1px solid #e0e0e0;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: 2px solid #000;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #000;
  background: transparent;
  transition: background 0.18s, color 0.18s;
  letter-spacing: -0.01em;
}

.topic-pill:hover {
  background: #000;
  color: #fff;
}

/* ===== ARTICLES SECTION (home) ===== */
.articles-section {
  padding: 3rem 0 2rem;
  border-top: 1px solid #e0e0e0;
  margin-top: 1rem;
}

.cards-table {
  width: 100%;
  border-collapse: collapse;
}

.card-row {
  display: block;
}

.card-cell {
  display: block;
  padding: 0;
  margin-bottom: 1.5rem;
}

.card-link {
  display: block;
  text-decoration: none;
  color: #000;
}

.card {
  border: 1.5px solid #000;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 #000;
}

.card-body {
  padding: 1.75rem 2rem 1.25rem;
}

.card-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.card-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
}

.card-foot {
  height: 4px;
  background: #000;
  border-radius: 0 0 28px 28px;
}

/* ===== CHILDREN TABLE (category) ===== */
.children-section {
  padding: 3rem 0 2rem;
  border-top: 1px solid #e0e0e0;
  margin-top: 1rem;
}

.children-table {
  width: 100%;
  border-collapse: collapse;
}

.child-row {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.15s;
}

.child-row:hover {
  background: #f7f7f7;
}

.child-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #bbb;
  letter-spacing: 0.05em;
  padding: 1.25rem 1rem 1.25rem 0;
  vertical-align: top;
  white-space: nowrap;
  width: 2.5rem;
}

.child-main {
  padding: 1.25rem 1rem;
  vertical-align: top;
}

.child-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: #000;
}

.child-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.15s;
}

.child-link:hover .child-title {
  opacity: 0.55;
}

.child-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.child-date {
  font-size: 0.8rem;
  color: #aaa;
  font-weight: 500;
  padding: 1.25rem 0;
  vertical-align: top;
  white-space: nowrap;
  text-align: right;
  width: 6rem;
}

.child-date time {
  display: block;
}

/* ===== RELATED TABLE (article) ===== */
.related-section {
  padding: 3rem 0 2rem;
  border-top: 2px solid #000;
  margin-top: 2rem;
}

.related-table {
  width: 100%;
  border-collapse: collapse;
}

.related-row {
  border-bottom: 1px solid #e0e0e0;
}

.related-row:hover {
  background: #f7f7f7;
}

.related-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #bbb;
  padding: 1rem 1rem 1rem 0;
  vertical-align: middle;
  width: 2.5rem;
}

.related-main {
  padding: 1rem;
  vertical-align: middle;
}

.related-link {
  display: block;
  text-decoration: none;
  color: #000;
}

.related-title {
  font-size: 1rem;
  font-weight: 600;
  transition: opacity 0.15s;
}

.related-link:hover .related-title {
  opacity: 0.5;
}

.related-main time {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.25rem;
}

/* ===== FOOTER ===== */
.sitefooter {
  background: #000;
  color: #fff;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 2rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

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

.footer-contact-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.subscribe-input {
  flex: 1;
  min-width: 140px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  min-height: 44px;
}

.subscribe-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.subscribe-input:focus {
  border-color: rgba(255,255,255,0.6);
}

.subscribe-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
  min-height: 44px;
  min-width: 60px;
}

.subscribe-btn:hover {
  opacity: 0.8;
}

.footer-legal {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-legal a {
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}

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

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.footer-bar p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== PARALLAX / MOTION ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-img--b {
    transition: transform 0.1s linear;
  }
  .card {
    will-change: transform;
  }
}

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

/* ===== MOBILE NAV TOGGLE ===== */
.nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sidenav {
    width: 240px;
  }
  .page-body {
    margin-left: 240px;
  }
}

@media (max-width: 700px) {
  .sidenav {
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    width: 280px;
  }

  .sidenav.is-open {
    transform: translateX(0);
  }

  .page-body {
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .wrap {
    padding: 0 1.25rem;
  }

  .hero-section {
    padding: 5rem 0 3rem;
    min-height: auto;
  }

  .hero-h1 {
    font-size: clamp(2.5rem, 12vw, 5rem);
    text-align: left;
  }

  .hero-lead {
    text-align: left;
    margin-left: 0;
  }

  .hero-img-wrap {
    height: 220px;
    max-width: 100%;
  }

  .hero-img--b {
    bottom: -1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem 2rem;
  }

  .footer-bar {
    padding: 1rem 1.25rem;
  }

  .cat-h1 {
    font-size: clamp(1.75rem, 8vw, 3rem);
  }

  .article-h1 {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .about-h1 {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

  .privacy-h1 {
    font-size: clamp(1.75rem, 7vw, 3rem);
  }

  .child-date {
    display: none;
  }

  .children-table, .related-table, .cards-table {
    display: block;
  }
}

@media (max-width: 480px) {
  .nav-pill {
    font-size: 0.8rem;
    padding: 0.625rem 1rem;
  }

  .card-body {
    padding: 1.25rem 1.25rem 1rem;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-input, .subscribe-btn {
    width: 100%;
  }
}
