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

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

:root {
  --black: #000000;
  --white: #ffffff;
  --accent: #ff4d00;
  --gray-100: #f5f5f5;
  --gray-200: #e0e0e0;
  --gray-400: #999999;
  --gray-700: #333333;
  --sidebar-w: 260px;
  --font-cond: 'Barlow Condensed', Arial Narrow, sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --transition: 0.2s ease;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-right: 3px solid var(--accent);
  overflow-y: auto;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--white);
  text-transform: uppercase;
}

.sidebar nav {
  flex: 1;
  padding: 1rem 0;
}

.sidebar nav ul {
  display: flex;
  flex-direction: column;
}

.sidebar nav ul li a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--gray-200);
  text-transform: uppercase;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a[aria-current="page"] {
  background: rgba(255,77,0,0.15);
  color: var(--accent);
  border-left-color: var(--accent);
}

.sidebar-search {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-search form {
  display: flex;
  gap: 0;
}

.sidebar-search input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  min-height: 40px;
  outline: none;
}

.sidebar-search input::placeholder { color: var(--gray-400); }

.sidebar-search button {
  padding: 0.5rem 0.875rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  min-height: 40px;
  text-transform: uppercase;
  transition: background var(--transition);
}

.sidebar-search button:hover { background: #e04300; }

/* ===== PAGE BODY ===== */
.page-body {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 45vh;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem 6rem;
  width: 100%;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-text {
  position: relative;
  z-index: 3;
}

.hero-text h1 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 7rem);
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.hero-slash {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 4;
}

/* ===== BANNERS (category/tag/about/privacy) ===== */
.cat-banner,
.tag-banner,
.about-banner,
.privacy-banner {
  position: relative;
  background: var(--black);
  min-height: 30vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cat-banner-inner,
.tag-banner-inner,
.about-banner-inner,
.privacy-banner-inner {
  padding: 3rem 3rem 5rem;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.cat-banner h1,
.tag-banner h1,
.about-banner h1,
.privacy-banner h1 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  text-transform: uppercase;
}

.banner-slash {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 4;
}

/* ===== MAIN + WRAP ===== */
main {
  flex: 1;
  padding: 3rem 0;
}

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

/* ===== SECTIONS ===== */
.content-section,
.cats-section,
.entries-section,
.tags-section,
.children-section,
.tag-entries-section,
.other-tags-section,
.about-nav-section,
.privacy-links-section,
.entry-section,
.related-section,
.quick-links {
  margin-bottom: 4rem;
}

h2 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  line-height: 1;
}

hr {
  border: none;
  border-top: 3px solid var(--black);
  margin-bottom: 2rem;
}

h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

h3 a:hover { color: var(--accent); }

/* ===== PROSE ===== */
.prose {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 72ch;
}

.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-cond);
  font-weight: 700;
  color: var(--black);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--accent); text-decoration: underline; }

/* ===== CAT CARDS (home) ===== */
.cats-section {
  display: block;
}

.cat-card {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(0,0,0,0.03);
  backdrop-filter: blur(4px);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.cat-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.cat-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.cat-card-body {
  flex: 1;
}

.cat-card-body p {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* ===== ENTRIES GRID ===== */
.entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.entry-card {
  border: 1px solid var(--gray-200);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.entry-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.entry-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

.entry-card-body time {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entry-card-body h3 {
  font-size: 1.1rem;
  margin: 0.4rem 0 0.5rem;
}

.entry-card-body p {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* ===== CHILDREN CARDS (category) ===== */
.child-card {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--gray-200);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  padding: 1.5rem;
  transition: border-color var(--transition);
}

.child-card:hover { border-color: var(--accent); }

.child-thumb {
  width: 140px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.child-card-body {
  flex: 1;
}

.child-card-body time {
  font-size: 0.75rem;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.child-card-body p {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.5;
}

/* ===== TAG ENTRIES ===== */
.tag-entry-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
  padding: 1rem;
  transition: border-color var(--transition);
}

.tag-entry-card:hover { border-color: var(--accent); }

.tag-entry-thumb {
  width: 100px;
  height: 75px;
  object-fit: cover;
  flex-shrink: 0;
}

.tag-entry-body time {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.tag-entry-body h3 {
  font-size: 1.1rem;
  margin: 0.3rem 0 0.4rem;
}

.tag-entry-body p {
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* ===== TAGS CLOUD ===== */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 40px;
  line-height: 1.8;
  transition: background var(--transition);
}

.tag-pill:hover {
  background: var(--accent);
  color: var(--white);
}

/* ===== BTN ===== */
.btn-line {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--black);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  min-height: 40px;
  line-height: 1.8;
  transition: background var(--transition), color var(--transition);
}

.btn-line:hover {
  background: var(--black);
  color: var(--white);
}

/* ===== ENTRY PAGE ===== */
.entry-header {
  margin-bottom: 2rem;
}

.entry-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.entry-header h1 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1rem;
}

.entry-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.entry-meta time {
  font-size: 0.875rem;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-tags {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags-label {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gray-400);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: var(--gray-200); }

/* ===== CONTENT ASIDE ===== */
.content-aside {
  background: var(--gray-100);
  border-left: 3px solid var(--accent);
  padding: 2rem;
  margin: 0 0 2rem;
}

.content-aside h2 {
  font-size: 1.4rem;
}

.content-aside ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.content-aside ul li a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  transition: color var(--transition);
  min-height: 40px;
  line-height: 2;
}

.content-aside ul li a:hover { color: var(--accent); }

.back-link {
  margin-top: 1rem;
}

.back-link a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== ABOUT / PRIVACY lists ===== */
.about-cat-list,
.privacy-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-cat-list li a,
.privacy-link-list li a {
  display: block;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gray-200);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
  min-height: 40px;
  transition: border-color var(--transition), color var(--transition);
}

.about-cat-list li a:hover,
.privacy-link-list li a:hover {
  border-left-color: var(--accent);
  color: var(--accent);
}

.policy-date {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  margin-top: auto;
}

.footer-cta {
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-cta span {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-bar {
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  text-align: center;
}

.footer-bar address {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-style: normal;
  line-height: 1.5;
  flex: 100%;
}

.footer-bar ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bar ul li a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}

.footer-bar ul li a:hover { color: var(--accent); }

.copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  flex: 100%;
}

/* ===== SCROLL REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
  .cat-card,
  .entry-card,
  .child-card,
  .tag-entry-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s ease;
  }

  .cat-card.revealed,
  .entry-card.revealed,
  .child-card.revealed,
  .tag-entry-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root { --sidebar-w: 220px; }
  .hero-text h1 { font-size: clamp(2rem, 8vw, 4rem); }
}

@media (max-width: 700px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-top: 3px solid var(--accent);
    z-index: 200;
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar nav {
    flex: 1;
    overflow-x: auto;
    padding: 0;
    min-width: 0;
  }

  .sidebar nav ul {
    flex-direction: row;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar nav ul li a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .sidebar nav ul li a[aria-current="page"],
  .sidebar nav ul li a:hover {
    border-left: none;
    border-bottom-color: var(--accent);
  }

  .sidebar-search {
    display: none;
  }

  .page-body {
    margin-left: 0;
    padding-bottom: 60px;
  }

  .hero-inner { padding: 2rem 1rem 4rem; }
  .cat-banner-inner,
  .tag-banner-inner,
  .about-banner-inner,
  .privacy-banner-inner { padding: 2rem 1rem 4rem; }

  .wrap { padding: 0 1rem; }

  .cat-card { flex-direction: column; }
  .cat-thumb { width: 100%; height: 160px; }

  .child-card { flex-direction: column; }
  .child-thumb { width: 100%; height: 180px; }

  .tag-entry-card { flex-direction: column; }
  .tag-entry-thumb { width: 100%; height: 150px; }

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

  .content-aside {
    margin: 0 1rem 2rem;
  }

  .footer-cta { padding: 2rem 1rem; }
  .footer-bar { padding: 1rem; }
}

@media (max-width: 400px) {
  .sidebar nav ul li a { padding: 0.75rem 0.75rem; font-size: 0.75rem; }
}
