@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --green: #00ff80;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --gray: #111111;
  --gray-mid: #222222;
  --gray-light: #333333;
  --border: 3px solid var(--green);
  --border-blue: 3px solid var(--blue);
  --border-white: 2px solid var(--white);
  --font-main: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --transition: none;
  --radius: 0px;
}

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

body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

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

a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--white);
  background: var(--blue);
  outline: none;
}

a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

p {
  line-height: 1.7;
}

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

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 60px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--green);
  border: 3px solid var(--black);
  flex-shrink: 0;
  color: var(--black);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand-mark:hover, .brand-mark:focus {
  background: var(--blue);
  color: var(--white);
}

.brand-icon {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ===== SITE NAV (header > nav > p > a) ===== */
.site-nav {
  flex: 1;
  overflow: hidden;
}

.site-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav p::-webkit-scrollbar {
  display: none;
}

.site-nav p a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  border-right: 2px solid var(--gray-light);
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-nav p a:first-child {
  border-left: 2px solid var(--gray-light);
}

.site-nav p a:hover, .site-nav p a:focus {
  background: var(--green);
  color: var(--black);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 3px solid var(--green);
  padding: 8px 10px;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--green);
}

.nav-toggle:hover {
  background: var(--green);
}

.nav-toggle:hover span {
  background: var(--black);
}

/* ===== FULLSCREEN MENU ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--green);
  transform: translateX(100%);
  transition: var(--transition);
}

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

.fullscreen-menu nav p {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.fullscreen-menu nav p a {
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--white);
  padding: 0.8rem 2rem;
  min-height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--gray-light);
  width: 100%;
  max-width: 480px;
  justify-content: center;
  text-decoration: none;
}

.fullscreen-menu nav p a:hover, .fullscreen-menu nav p a:focus {
  background: var(--green);
  color: var(--black);
}

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 3px solid var(--green);
  color: var(--green);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close:hover {
  background: var(--green);
  color: var(--black);
}

/* ===== HERO (HOME) ===== */
.hero-section {
  min-height: 45vh;
  background: var(--black);
  border-bottom: var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}

.hero-figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-right: var(--border);
}

.hero-figure .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 45vh;
}

.hero-bg-text {
  position: absolute;
  bottom: -0.2em;
  left: -0.05em;
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  color: var(--green);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
  gap: 1rem;
  background: var(--black);
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}

.hero-lead {
  font-size: 1rem;
  color: #aaa;
  max-width: 38ch;
}

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  padding: 0.8rem 2rem;
  border: 3px solid var(--green);
  font-size: 1rem;
  min-height: 48px;
  cursor: pointer;
  align-self: flex-start;
  text-decoration: none;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border: 3px solid var(--green);
  font-size: 0.9rem;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius);
}

.btn-outline:hover, .btn-outline:focus {
  background: var(--green);
  color: var(--black);
}

/* ===== SECTION CATS (HOME) ===== */
.section-cats {
  padding: 3rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-cats h2, .section-entries h2, .section-content h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  border-left: 6px solid var(--green);
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.section-cats p.subtitle, .section-entries p.subtitle {
  color: #888;
  margin-bottom: 2rem;
  padding-left: 1.3rem;
  font-size: 0.95rem;
}

.cat-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  border: 3px solid var(--gray-light);
  margin-bottom: 1rem;
  background: var(--gray;
  transition: var(--transition);
}

.cat-card {
  background: var(--gray);
}

.cat-card:hover {
  border-color: var(--green);
}

.cat-thumb {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-right: 3px solid var(--gray-light);
}

.cat-card-body {
  padding: 1rem 1.2rem;
}

.cat-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.cat-card-body h3 a {
  color: var(--white);
  text-decoration: none;
}

.cat-card-body h3 a:hover {
  color: var(--green);
  background: none;
}

.cat-card-body .subtitle {
  font-size: 0.88rem;
  color: #888;
}

/* ===== SECTION ENTRIES (HOME) ===== */
.section-entries {
  padding: 3rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  border-top: var(--border);
}

.entry-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  border: 3px solid var(--gray-light);
  margin-bottom: 1rem;
  background: var(--gray);
}

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

.entry-thumb {
  width: 120px;
  height: 88px;
  object-fit: cover;
  border-right: 3px solid var(--gray-light);
}

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

.entry-card-body time {
  font-size: 0.78rem;
  color: var(--green);
  display: block;
  margin-bottom: 0.25rem;
}

.entry-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.entry-card-body h3 a {
  color: var(--white);
  text-decoration: none;
}

.entry-card-body h3 a:hover {
  color: var(--green);
  background: none;
}

.entry-card-body .subtitle {
  font-size: 0.85rem;
  color: #888;
}

/* ===== SECTION CONTENT (generic) ===== */
.section-content, .section-cat-content, .entry-body-section,
.about-body-section, .privacy-body-section, .section-tag-content,
.default-body-section {
  padding: 3rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  border-top: var(--border);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* figure/aside structure: main > div > figure > aside */
.content-figure {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.content-aside, .sidebar-widget {
  background: var(--gray);
  border: 3px solid var(--green);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.content-aside h2 {
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--green);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--green);
}

.content-aside p.subtitle {
  font-size: 0.83rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.content-aside nav p, .content-aside p {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-aside nav p a, .content-aside p a {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
  color: var(--white);
  border-bottom: 1px solid var(--gray-light);
  text-decoration: none;
  font-weight: 500;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.content-aside nav p a:hover, .content-aside p a:hover {
  background: var(--green);
  color: var(--black);
}

.page-content {
  grid-column: 1;
  grid-row: 1;
  font-size: 1rem;
  line-height: 1.8;
  color: #ddd;
  min-width: 0;
}

.page-content h2 {
  font-size: 1.4rem;
  color: var(--white);
  margin: 2rem 0 0.5rem;
  border-left: 5px solid var(--green);
  padding-left: 0.8rem;
}

.page-content h3 {
  font-size: 1.15rem;
  color: var(--green);
  margin: 1.5rem 0 0.4rem;
}

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

.page-content a {
  color: var(--green);
  text-decoration: underline;
}

.page-content ul, .page-content ol {
  margin: 0.8rem 0 1rem 1.5rem;
}

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

.page-content strong {
  color: var(--white);
  font-weight: 700;
}

.page-content blockquote {
  border-left: 4px solid var(--blue);
  padding-left: 1rem;
  color: #aaa;
  margin: 1.5rem 0;
}

.page-content code {
  background: var(--gray-mid);
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  border: 1px solid var(--gray-light);
}

.page-content pre {
  background: var(--gray-mid);
  border: 2px solid var(--gray-light);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ===== CATEGORY PAGE ===== */
.cat-hero-section {
  background: var(--black);
  border-bottom: var(--border);
  padding: 0;
  min-height: 40vh;
  display: flex;
  align-items: stretch;
}

.cat-hero-fig {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.cat-hero-num {
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  padding: 1rem 1.5rem;
  border-right: var(--border);
  letter-spacing: -0.05em;
  opacity: 0.6;
}

.cat-hero-aside {
  padding: 2.5rem 2rem;
}

.cat-hero-aside h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cat-hero-aside .subtitle {
  color: #888;
  max-width: 50ch;
}

/* ===== SECTION CHILDREN (category) ===== */
.section-children {
  padding: 3rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-children h2, .section-tag-entries h2, .section-tag-entries p.subtitle {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  border-left: 6px solid var(--blue);
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.section-children p.subtitle {
  color: #888;
  margin-bottom: 2rem;
  padding-left: 1.3rem;
  font-size: 0.95rem;
}

/* child-card: div > section (direct child, no wrapper article) */
.child-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  border: 3px solid var(--gray-light);
  margin-bottom: 1.2rem;
  background: var(--gray);
}

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

.child-thumb {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-right: 3px solid var(--gray-light);
}

.child-card-body {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.child-card-body time {
  font-size: 0.78rem;
  color: var(--green);
}

.child-card-body h3 {
  font-size: 1.05rem;
}

.child-card-body h3 a {
  color: var(--white);
  text-decoration: none;
}

.child-card-body h3 a:hover {
  color: var(--green);
  background: none;
}

.child-card-body .subtitle {
  font-size: 0.88rem;
  color: #888;
  flex: 1;
}

.card-link {
  font-size: 0.85rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
  padding: 0.3rem 0;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.card-link:hover {
  color: var(--green);
  background: none;
}

/* ===== STAGGER ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.4s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.06s);
  }

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

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

/* ===== ENTRY PAGE ===== */
.entry-main {}

.entry-header-section {
  border-bottom: var(--border);
  min-height: 38vh;
}

.entry-hero-fig {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 38vh;
}

.entry-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 38vh;
  border-right: var(--border);
}

.entry-hero-aside {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.breadcrumb p {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.8rem;
}

.breadcrumb p a {
  color: #888;
  text-decoration: none;
  font-weight: 500;
  padding: 0.2rem 0.4rem;
}

.breadcrumb p a:not(:last-child)::after {
  content: ' / ';
  color: #555;
}

.breadcrumb p a:hover {
  color: var(--green);
  background: none;
}

.entry-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  color: var(--white);
}

.entry-desc {
  color: #888;
  max-width: 45ch;
}

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

.pub-date, .mod-date {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
}

.mod-date {
  color: #666;
}

.entry-content {
  max-width: 72ch;
}

/* entry sidebar */
.entry-body-section {
  grid-template-columns: 1fr 280px;
}

.entry-content-fig {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.entry-sidebar {
  background: var(--gray);
  border: 3px solid var(--blue);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.entry-sidebar h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.entry-sidebar p.subtitle {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.6rem;
}

.entry-sidebar nav p {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.entry-sidebar nav p a, .sibling-link {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  color: var(--white);
  border-bottom: 1px solid var(--gray-light);
  text-decoration: none;
  font-weight: 500;
  min-height: 38px;
}

.entry-sidebar nav p a:hover, .sibling-link:hover {
  background: var(--blue);
  color: var(--white);
}

/* ===== TAG PAGE ===== */
.tag-header-section {
  border-bottom: var(--border);
  min-height: 35vh;
}

.tag-hero-fig {
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 35vh;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.tag-hero-label {
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 700;
  color: var(--blue);
  opacity: 0.12;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.tag-hero-aside {
  position: relative;
  z-index: 1;
  padding: 1rem 2rem;
}

.tag-hero-aside h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--green);
  margin-bottom: 0.5rem;
}

.tag-hero-aside .subtitle {
  color: #888;
  max-width: 50ch;
}

.section-tag-entries {
  padding: 3rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-tag-entries h2 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  border-left: 6px solid var(--blue);
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.section-tag-entries p.subtitle {
  color: #888;
  margin-bottom: 2rem;
  padding-left: 1.3rem;
  font-size: 0.95rem;
}

.tag-entry-thumb {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-right: 3px solid var(--gray-light);
}

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

.about-header-section {
  border-bottom: var(--border);
  min-height: 40vh;
  display: flex;
  align-items: stretch;
}

.about-fig {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.about-bg-text {
  position: absolute;
  right: -0.05em;
  bottom: -0.1em;
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 700;
  color: var(--blue);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.about-aside {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 1rem;
}

.about-aside h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  color: var(--green);
  margin-bottom: 0.75rem;
}

.about-aside .subtitle {
  color: #888;
  max-width: 50ch;
  font-size: 1rem;
}

.about-body-section {
  grid-template-columns: 1fr 280px;
}

.about-content {
  max-width: 72ch;
}

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

.privacy-header-section {
  border-bottom: var(--border);
  min-height: 35vh;
  display: flex;
  align-items: stretch;
}

.privacy-fig {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.privacy-bg-text {
  position: absolute;
  right: -0.05em;
  bottom: -0.1em;
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 700;
  color: var(--green);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.privacy-aside {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 1rem;
}

.privacy-aside h1 {
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.privacy-aside .subtitle {
  color: #888;
  max-width: 50ch;
}

.privacy-body-section {
  grid-template-columns: 1fr 280px;
}

.privacy-content {
  max-width: 72ch;
}

/* ===== DEFAULT PAGE ===== */
.default-header-section {
  border-bottom: var(--border);
  min-height: 30vh;
}

.default-fig {
  margin: 0;
  min-height: 30vh;
  display: flex;
  align-items: center;
  padding: 2rem;
}

.default-aside {
  max-width: 600px;
}

.default-aside h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  color: var(--green);
  margin-bottom: 0.75rem;
}

.default-body-section {
  grid-template-columns: 1fr 280px;
}

/* ===== TAG CHIPS ===== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag-chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--black);
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.tag-chip:hover, .tag-chip:focus {
  background: var(--green);
  color: var(--black);
}

/* ===== SUBTITLE PATTERN ===== */
.subtitle {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: auto;
  background: var(--black);
  border-top: var(--border);
  padding: 2rem 1.5rem 1.5rem;
  max-width: 100%;
}

.site-footer p {
  max-width: 1400px;
  margin: 0 auto 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.site-footer p a {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.site-footer p a:hover, .site-footer p a:focus {
  color: var(--green);
  background: none;
}

.footer-brand {
  font-size: 1rem !important;
  color: var(--white) !important;
}

.footer-brand strong {
  color: var(--green);
}

.site-footer small {
  display: block;
  max-width: 1400px;
  margin: 0.5rem auto 0;
  font-size: 0.78rem;
  color: #555;
  border-top: 1px solid var(--gray-light);
  padding-top: 0.75rem;
}

/* ===== HOVER MICRO-INTERACTIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .cat-card, .entry-card, .child-card {
    transition: border-color 0.1s, transform 0.1s;
  }

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

  .btn-primary:hover, .btn-outline:hover {
    transform: translateY(-2px);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-figure {
    border-right: none;
    border-bottom: var(--border);
    min-height: 30vh;
  }

  .hero-figure .hero-img {
    min-height: 30vh;
  }

  .hero-aside {
    padding: 1.5rem;
  }

  .entry-hero-fig {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .entry-hero-img {
    border-right: none;
    border-bottom: var(--border);
    min-height: 30vh;
    width: 100%;
  }

  .entry-hero-aside {
    padding: 1.5rem;
  }

  .cat-hero-fig {
    grid-template-columns: 1fr;
  }

  .cat-hero-num {
    border-right: none;
    border-bottom: var(--border);
    font-size: 5rem;
    padding: 0.5rem 1.5rem;
    opacity: 0.4;
  }

  .section-content, .section-cat-content, .entry-body-section,
  .about-body-section, .privacy-body-section, .section-tag-content,
  .default-body-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-figure, .entry-content-fig {
    grid-column: 1;
    grid-row: 2;
  }

  .page-content, .entry-content, .about-content, .privacy-content {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
  }

  .content-aside, .sidebar-widget, .entry-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 1rem;
  }

  .site-nav {
    display: none;
  }

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

  .cat-thumb {
    width: 100%;
    height: 160px;
    border-right: none;
    border-bottom: 3px solid var(--gray-light);
  }

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

  .entry-thumb {
    width: 100%;
    height: 160px;
    border-right: none;
    border-bottom: 3px solid var(--gray-light);
  }

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

  .child-thumb {
    width: 100%;
    height: 160px;
    border-right: none;
    border-bottom: 3px solid var(--gray-light);
  }

  .section-cats, .section-entries, .section-children,
  .section-tag-entries, .section-content, .section-cat-content,
  .entry-body-section, .about-body-section, .privacy-body-section,
  .section-tag-content, .default-body-section {
    padding: 2rem 1rem;
  }

  .hero-aside {
    padding: 1.5rem 1rem;
  }

  .about-fig, .privacy-fig, .tag-hero-fig {
    padding: 1.5rem 1rem;
  }

  .cat-hero-aside {
    padding: 1.5rem 1rem;
  }

  .entry-hero-aside {
    padding: 1.5rem 1rem;
  }

  .fullscreen-menu nav p a {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
  }

  .site-footer p {
    gap: 0.3rem 1rem;
  }
}

@media (max-width: 375px) {
  body {
    font-size: 16px;
  }

  .hero-h1 {
    font-size: 1.6rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }
}
