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

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

ul, ol, dl {
  list-style: none;
}

/* ===== SITE WRAP ===== */
.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER & NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000;
  border-bottom: 2px solid #fff;
}

.nav-details {
  width: 100%;
}

.nav-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.nav-logo-text,
.nav-brand-link {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.nav-toggle-icon {
  font-size: 1.5rem;
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}

.nav-menu li a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  min-height: 40px;
  line-height: 1.6;
}

.nav-menu li a:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

/* details open: show menu */
.nav-details[open] .nav-menu {
  display: flex;
}

/* desktop: always show menu */
@media (min-width: 769px) {
  .nav-details {
    display: flex;
    flex-direction: column;
  }
  .nav-brand-wrap {
    justify-content: center;
    position: relative;
  }
  .nav-toggle-icon {
    display: none;
  }
  .nav-menu {
    display: flex !important;
  }
  /* nav items split around brand */
  .nav-brand-wrap {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle-icon {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: 0.1rem;
  }
  .nav-details[open] .nav-menu {
    display: flex;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu li a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-height: 44px;
  }
}

/* ===== STICKY SUBNAV ===== */
.sticky-subnav {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.subnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 1rem;
  min-height: 48px;
  flex-wrap: wrap;
}

.subnav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.subnav-links a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border-radius: 4px;
  transition: color 0.2s;
  min-height: 40px;
  line-height: 1.5;
}

.subnav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.subnav-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #fff;
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  white-space: nowrap;
  min-height: 40px;
  line-height: 1.5;
  transition: background 0.2s, transform 0.15s;
}

.subnav-cta:hover {
  background: rgba(255,255,255,0.85);
  text-decoration: none;
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .subnav-links {
    display: none;
  }
  .subnav-inner {
    justify-content: flex-end;
  }
}

/* ===== MAIN OFFSET ===== */
main {
  padding-top: 130px;
  flex: 1;
}

@media (max-width: 768px) {
  main {
    padding-top: 120px;
  }
}

/* ===== HERO SECTION (HOME) ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 2rem;
}

.hero-slash {
  position: absolute;
  top: 0;
  left: 40%;
  width: 200px;
  height: 100%;
  background: rgba(255,255,255,0.04);
  transform: skewX(-10deg);
  pointer-events: none;
  z-index: 0;
}

.hero-media {
  flex: 0 0 44%;
  max-width: 44%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
}

.hero-logo-placeholder {
  width: 320px;
  height: 240px;
  border: 3px solid #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.hero-logo-placeholder span {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.hero-text {
  flex: 1;
  z-index: 1;
  text-align: right;
  padding-left: 3rem;
}

.hero-h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  max-width: 460px;
  margin-left: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding: 2.5rem 1.25rem;
    gap: 1.5rem;
  }
  .hero-media {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .hero-logo-placeholder {
    width: 100%;
    max-width: 300px;
    height: 180px;
    margin: 0 auto;
  }
  .hero-text {
    text-align: left;
    padding-left: 0;
  }
  .hero-sub {
    margin-left: 0;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-slash {
    display: none;
  }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: #fff;
  color: #000;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  transition: transform 0.15s, background 0.2s;
  min-height: 44px;
}

.btn-primary:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border: 2px solid #fff;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

.btn-outline {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  min-height: 40px;
}

.btn-outline:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
  text-decoration: none;
}

/* ===== HOME CONTENT SECTION ===== */
.home-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.content-inner {
  border-left: 4px solid #fff;
  padding-left: 2rem;
}

/* ===== CATEGORIES SECTION ===== */
.cats-section {
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

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

.cat-card {
  background: #111;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(255,255,255,0.06), 0 1px 4px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,255,255,0.12);
}

.cat-card-inner {
  padding: 1.75rem;
}

.cat-card-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.cat-card-title a {
  color: #fff;
}

.cat-card-title a:hover {
  text-decoration: underline;
}

.cat-card-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cat-card-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.card-child-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.cat-card-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid #fff;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.cat-card-cta:hover {
  opacity: 0.7;
  text-decoration: none;
}

.card-parent-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: 0.5rem;
}

.card-parent-label a {
  color: rgba(255,255,255,0.4);
}

.card-parent-label a:hover {
  color: #fff;
}

.card-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-top: 0.5rem;
}

/* ===== TAGS SECTION / CLOUD ===== */
.tags-section {
  padding: 3rem 2rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-chip {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  min-height: 40px;
  line-height: 1.4;
}

.tag-chip:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
  text-decoration: none;
}

/* ===== SIDEBAR (shared) ===== */
.side-link {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  border-left: 2px solid rgba(255,255,255,0.15);
  margin-bottom: 0.3rem;
  transition: border-color 0.2s, color 0.2s;
  min-height: 40px;
  line-height: 1.5;
}

.side-link:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.side-link-parent {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.sidebar-block {
  margin-bottom: 2rem;
}

.sidebar-block h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}

/* ===== CATEGORY LAYOUT ===== */
.cat-main {
  /* inherits main padding-top */
}

.cat-hero-section {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  padding: 3rem 2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cat-aside-sidebar {
  flex: 0 0 220px;
  min-width: 0;
  padding-top: 0.5rem;
}

.cat-aside-sidebar h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.side-links-wrap {
  display: flex;
  flex-direction: column;
}

.cat-hero-figure {
  flex: 1;
  min-width: 0;
}

.cat-h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cat-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
}

.cat-content-section {
  display: flex;
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.cat-content-aside {
  flex: 0 0 220px;
  min-width: 0;
}

.cat-content-aside h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.cat-content-aside .tag-chip {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.4rem;
  min-height: 32px;
  display: inline-block;
}

.cat-content-body {
  flex: 1;
  min-width: 0;
}

/* ===== CHILD LIST (category -> articles) ===== */
.child-list-wrap {
  margin-top: 3rem;
}

.child-list-wrap h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.child-dl {
  margin-top: 1.5rem;
}

.child-dl dt {
  margin-bottom: 0.3rem;
}

.child-dl dt a {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  display: inline-block;
  min-height: 32px;
  line-height: 1.6;
}

.child-dl dt a:hover {
  border-color: #fff;
  text-decoration: none;
}

.child-dl dd {
  padding-left: 0;
  margin-bottom: 1.5rem;
  border-left: 3px solid rgba(255,255,255,0.1);
  padding-left: 1rem;
}

.child-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.25rem;
  line-height: 1.6;
}

.child-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ===== ENTRY LAYOUT ===== */
.entry-main {
  /* inherits */
}

.entry-header-section {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 3rem 2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.entry-hero-figure {
  flex: 0 0 300px;
  min-width: 0;
}

.entry-hero-img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.entry-hero-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  height: 200px;
}

.entry-hero-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
}

.entry-header-aside {
  flex: 1;
  min-width: 0;
  padding-top: 0.5rem;
}

.entry-breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.entry-breadcrumb a {
  color: rgba(255,255,255,0.4);
}

.entry-breadcrumb a:hover {
  color: #fff;
}

.entry-h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.entry-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.entry-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
}

.entry-body-section {
  display: flex;
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.entry-sidebar {
  flex: 0 0 220px;
  min-width: 0;
  order: -1;
}

.entry-prose {
  flex: 1;
  min-width: 0;
}

.entry-footer-nav {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

/* ===== TAG LAYOUT ===== */
.tag-main {}

.tag-hero-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem 2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tag-hero-figure {
  flex: 0 0 auto;
}

.tag-hero-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}

.tag-h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
}

.tag-hero-aside {
  flex: 1;
  min-width: 0;
}

.tag-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.other-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.other-tags strong {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-right: 0.5rem;
}

.tag-content-section {
  display: flex;
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.tag-content-aside {
  flex: 0 0 220px;
  min-width: 0;
}

.tag-content-aside h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.tag-content-body {
  flex: 1;
  min-width: 0;
}

.tag-content-body h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  margin-top: 2rem;
}

/* ===== ABOUT LAYOUT ===== */
.about-main {}

.about-intro-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  min-height: 50vh;
  padding: 4rem 2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.about-intro-figure {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-brand-big {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  word-break: break-all;
  text-align: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.about-intro-aside {
  flex: 1;
  min-width: 0;
}

.about-h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.about-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
}

.about-content-section {
  display: flex;
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.about-sidebar {
  flex: 0 0 220px;
  min-width: 0;
}

.about-sidebar h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.about-prose {
  flex: 1;
  min-width: 0;
}

.about-prose h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.about-cats {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.about-cats h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.about-cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ===== PRIVACY LAYOUT ===== */
.privacy-main {}

.privacy-header-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 4rem 2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.privacy-header-figure {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-icon-big {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  line-height: 1;
}

.privacy-header-aside {
  flex: 1;
  min-width: 0;
}

.privacy-h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.privacy-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}

.privacy-date {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.privacy-content-section {
  display: flex;
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.privacy-sidebar {
  flex: 0 0 220px;
  min-width: 0;
}

.privacy-sidebar h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.privacy-prose {
  flex: 1;
  min-width: 0;
}

.privacy-prose h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

/* ===== DEFAULT LAYOUT ===== */
.default-main {}

.default-header-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 4rem 2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.default-header-figure {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.default-page-label {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
}

.default-header-aside {
  flex: 1;
  min-width: 0;
}

.default-h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.default-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
}

.default-content-section {
  display: flex;
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.default-sidebar {
  flex: 0 0 220px;
  min-width: 0;
}

.default-sidebar h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.default-prose {
  flex: 1;
  min-width: 0;
}

/* ===== PROSE WRAP (shared rich text) ===== */
.prose-wrap {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  max-width: 72ch;
}

.prose-wrap h1,
.prose-wrap h2,
.prose-wrap h3,
.prose-wrap h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.prose-wrap h2 { font-size: 1.6rem; }
.prose-wrap h3 { font-size: 1.3rem; }
.prose-wrap h4 { font-size: 1.1rem; }

.prose-wrap p {
  margin-bottom: 1.1em;
}

.prose-wrap a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.prose-wrap a:hover {
  border-color: #fff;
  text-decoration: none;
}

.prose-wrap ul,
.prose-wrap ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.prose-wrap ol {
  list-style: decimal;
}

.prose-wrap li {
  margin-bottom: 0.4em;
}

.prose-wrap blockquote {
  border-left: 4px solid rgba(255,255,255,0.3);
  margin: 1.5em 0;
  padding: 0.75em 1.5em;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.prose-wrap img {
  border-radius: 12px;
  margin: 1.5em 0;
}

.prose-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

.prose-wrap th,
.prose-wrap td {
  padding: 0.6em 1em;
  border: 1px solid rgba(255,255,255,0.15);
  text-align: left;
}

.prose-wrap th {
  background: rgba(255,255,255,0.08);
  font-weight: 700;
}

/* ===== SUBTITLE SHARED ===== */
.subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #000;
  border-top: 2px solid rgba(255,255,255,0.15);
  padding: 3rem 2rem 0;
  margin-top: auto;
}

.site-footer > article {
  max-width: 1280px;
  margin: 0 auto;
}

footer > article:first-of-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Two sections inside footer */
.footer-brand {
  grid-column: 1;
}

.footer-links {
  grid-column: 2;
}

.footer-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-notice {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.3) !important;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.footer-links h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}

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

.footer-links ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  display: inline-block;
  padding: 0.3rem 0;
  min-height: 36px;
  line-height: 1.6;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

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

/* Footer structure override to handle 2 article children */
.site-footer {
  display: flex;
  flex-direction: column;
}

.site-footer > article {
  width: 100%;
}

.footer-brand,
.footer-links {
  /* used in grid above */
}

/* Make footer two-col via a wrapper approach */
/* We target the two sections as a pair */
.site-footer > article.footer-brand {
  display: block;
}

.site-footer > article.footer-links {
  display: block;
}

/* Use CSS grid on footer itself for two-col */
.site-footer {
  display: block;
}

.site-footer > article.footer-brand,
.site-footer > article.footer-links {
  max-width: none;
}

/* Properly do two-col footer with a pseudo-row */
.site-footer > article.footer-brand {
  display: contents;
}
.site-footer > article.footer-links {
  display: contents;
}

/* Reset above hacks — use a real approach */
.site-footer > article.footer-brand,
.site-footer > article.footer-links {
  display: block;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Two-col achieved via float or flex on footer */
.site-footer {
  padding-bottom: 0;
}

/* Wrap brand + links in implicit row */
@supports (display: grid) {
  .site-footer > .footer-brand {
    width: 50%;
    float: left;
    padding-right: 3rem;
    padding-bottom: 3rem;
    box-sizing: border-box;
    max-width: 640px;
  }
  .site-footer > .footer-links {
    width: 50%;
    float: right;
    padding-bottom: 3rem;
    box-sizing: border-box;
    max-width: 640px;
  }
  .site-footer > .footer-bottom {
    clear: both;
  }
}

/* ===== SCROLL REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 900px) {
  .cat-hero-section,
  .cat-content-section,
  .entry-header-section,
  .entry-body-section,
  .tag-hero-section,
  .tag-content-section,
  .about-intro-section,
  .about-content-section,
  .privacy-header-section,
  .privacy-content-section,
  .default-header-section,
  .default-content-section {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cat-aside-sidebar,
  .cat-content-aside,
  .entry-sidebar,
  .entry-hero-figure,
  .tag-content-aside,
  .about-intro-figure,
  .about-sidebar,
  .privacy-header-figure,
  .privacy-sidebar,
  .default-header-figure,
  .default-sidebar {
    flex: none;
    width: 100%;
  }

  .about-brand-big {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: clamp(2rem, 10vw, 5rem);
    color: rgba(255,255,255,0.05);
    text-align: center;
  }

  .about-intro-figure {
    display: none;
  }

  .privacy-header-figure {
    display: none;
  }

  .default-header-figure {
    display: none;
  }

  .entry-hero-figure {
    max-width: 100%;
  }

  footer > article:first-of-type,
  .site-footer > .footer-brand,
  .site-footer > .footer-links {
    width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 600px) {
  .cats-grid {
    grid-template-columns: 1fr;
  }

  .cat-h1,
  .tag-h1,
  .entry-h1,
  .about-h1,
  .privacy-h1,
  .default-h1 {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }

  .section-h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .subnav-inner {
    padding: 0 1rem;
  }

  main {
    padding-top: 110px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    text-align: center;
  }

  .cats-section,
  .tags-section,
  .home-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .cat-content-section,
  .tag-content-section,
  .about-content-section,
  .privacy-content-section,
  .entry-body-section,
  .default-content-section,
  .cat-hero-section,
  .tag-hero-section,
  .about-intro-section,
  .privacy-header-section,
  .entry-header-section,
  .default-header-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ===== H2 + subtitle contract ===== */
h2 + .subtitle,
h2 + p.subtitle,
h2 + p.subhead,
h2 + p.desc,
h2 + p.lead {
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
}
