*,
*::before,
*::after {
  box-sizing: border-box;
}

body.bp-page {
  --bp-ink: #101a2c;
  --bp-text: rgba(16, 26, 44, 0.82);
  --bp-muted: rgba(16, 26, 44, 0.58);
  --bp-line: rgba(16, 26, 44, 0.10);
  --bp-cream: #fff8ec;
  --bp-cream-2: #fffdfa;
  --bp-white: #ffffff;
  --bp-navy: #102944;
  --bp-navy-deep: #0c1b2d;
  --bp-yellow: #ffd23f;
  --bp-yellow-soft: #fff1b8;
  --bp-yellow-dark: #8a6a00;
  --bp-radius: 22px;
  --bp-radius-lg: 28px;
  --bp-shadow: 0 30px 80px -55px rgba(8, 20, 36, 0.30);
  --bp-shadow-soft: 0 18px 45px -35px rgba(10, 22, 40, 0.20);
  --bp-font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --bp-font-body: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bp-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.75), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.45), transparent 24%),
    var(--bp-cream);
  color: var(--bp-ink);
  font-family: var(--bp-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.bp-page a {
  color: inherit;
}

body.bp-page img {
  max-width: 100%;
  display: block;
}

/* ===== HEADER ===== */
.bp-site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0c1b2d 0%, #102944 58%, #0b1626 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px -35px rgba(8, 20, 36, 0.55);
}

.bp-site-nav-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bp-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}

.bp-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bp-logo-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.bp-logo-txt {
  font-family: var(--bp-font-display);
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.bp-logo-accent {
  color: var(--bp-yellow);
}

.bp-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bp-nav-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--bp-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition: color 0.22s ease;
  white-space: nowrap;
}

.bp-nav-links a:hover,
.bp-nav-links a.active {
  color: #fff;
}

.bp-nav-links a.active {
  color: var(--bp-yellow);
}

/* ===== BURGER ===== */
.bp-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background 0.22s ease, border-color 0.22s ease;
  flex: 0 0 auto;
}

.bp-burger:hover,
.bp-burger:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 210, 63, 0.35);
  outline: none;
}

.bp-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.18s ease;
  transform-origin: center;
}

.bp-site-nav.bp-open .bp-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bp-site-nav.bp-open .bp-burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.bp-site-nav.bp-open .bp-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== DROPDOWN MOBILE MENU ===== */
.bp-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, #0c1b2d 0%, #102944 70%, #0b1626 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  overflow: hidden;
}

.bp-site-nav.bp-open .bp-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.bp-dropdown-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  display: grid;
  gap: 0;
}

.bp-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--bp-font-display);
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.bp-dropdown-link:last-child {
  border-bottom: 0;
}

.bp-dropdown-link:hover,
.bp-dropdown-link:focus-visible,
.bp-dropdown-link.active {
  color: var(--bp-yellow);
  outline: none;
}

.bp-dropdown-link .idx {
  font-family: var(--bp-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(255, 227, 112, 0.75);
  flex: 0 0 auto;
}

/* ===== PAGE SHELL ===== */
.bp-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.bp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.bp-main {
  min-width: 0;
}

/* ===== BLOG LIST HEADER ===== */
.bp-list-header {
  background: var(--bp-white);
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius-lg);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--bp-shadow);
  margin-bottom: 22px;
  overflow: hidden;
}

.bp-list-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--bp-font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bp-yellow-dark);
  margin: 0 0 12px;
}

.bp-list-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.bp-list-title {
  font-family: var(--bp-font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  color: var(--bp-ink);
}

.bp-list-dek {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
  color: var(--bp-text);
}

.bp-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 0 2px;
  font-family: var(--bp-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-muted);
}

/* ===== POST LIST ===== */
.bp-post-list {
  display: grid;
  gap: 18px;
}

.bp-post-item {
  position: relative;
  background: var(--bp-white);
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  padding: 26px;
  box-shadow: var(--bp-shadow-soft);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.bp-post-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 210, 63, 0.55);
  box-shadow: 0 28px 70px -45px rgba(8, 20, 36, 0.32);
}

.bp-post-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffe370, #e0ab10);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.bp-post-item:hover::after {
  transform: scaleX(1);
}

.bp-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bp-post-cat {
  display: inline-flex;
  align-items: center;
  font-family: var(--bp-font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bp-yellow-dark);
  background: var(--bp-cream);
  border: 1px solid rgba(255, 210, 63, 0.35);
  border-radius: 999px;
  padding: 7px 10px;
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.bp-post-cat:hover {
  background: #fff;
  border-color: rgba(255, 210, 63, 0.65);
  color: var(--bp-ink);
}

.bp-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--bp-font-mono);
  font-size: 0.7rem;
  color: var(--bp-muted);
}

.bp-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(16, 26, 44, 0.22);
  flex: 0 0 auto;
}

.bp-post-title {
  font-family: var(--bp-font-display);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--bp-ink);
}

.bp-post-title a {
  color: inherit;
  text-decoration: none;
}

.bp-post-title a:hover {
  color: var(--bp-navy);
}

.bp-post-excerpt {
  margin: 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--bp-text);
  max-width: 820px;
}

.bp-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--bp-line);
}

.bp-post-author {
  font-family: var(--bp-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--bp-muted);
}

.bp-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bp-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bp-yellow-dark);
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

.bp-read-more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.22s ease;
}

.bp-read-more:hover {
  color: var(--bp-ink);
}

.bp-read-more:hover svg {
  transform: translateX(3px);
}

/* ===== SIDEBAR ===== */
.bp-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.bp-widget {
  background: var(--bp-white);
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  padding: 22px;
  box-shadow: var(--bp-shadow-soft);
}

.bp-widget h3 {
  font-family: var(--bp-font-display);
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--bp-ink);
}

.bp-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: bpRecent;
}

.bp-recent-list li {
  counter-increment: bpRecent;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bp-line);
}

.bp-recent-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bp-recent-list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  text-decoration: none;
  color: var(--bp-text);
  line-height: 1.45;
  font-size: 0.94rem;
}

.bp-recent-list a::before {
  content: counter(bpRecent, decimal-leading-zero);
  font-family: var(--bp-font-mono);
  font-size: 0.72rem;
  color: var(--bp-yellow-dark);
  line-height: 1.55;
}

.bp-recent-list a:hover {
  color: var(--bp-ink);
}

.bp-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bp-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: var(--bp-text);
  font-size: 0.94rem;
  line-height: 1.45;
  padding: 11px 12px;
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  background: var(--bp-cream-2);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.bp-category-list a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 210, 63, 0.55);
  background: #fff;
  color: var(--bp-ink);
}

.bp-category-arrow {
  font-family: var(--bp-font-mono);
  font-size: 0.82rem;
  color: var(--bp-yellow-dark);
  flex: 0 0 auto;
}

/* ===== FOOTER ===== */
.bp-footer {
  background: linear-gradient(135deg, #0c1b2d 0%, #102944 58%, #0b1626 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  padding: 22px 0;
}

.bp-footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--bp-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.bp-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  flex-wrap: wrap;
}

.bp-footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1040px) {
  .bp-layout {
    grid-template-columns: 1fr;
  }

  .bp-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bp-nav-links {
    display: none;
  }

  .bp-burger {
    display: inline-flex;
  }

  .bp-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .bp-dropdown {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .bp-site-nav-inner {
    min-height: 64px;
  }

  .bp-shell {
    padding: 20px 0 34px;
  }

  .bp-list-header {
    padding: 22px;
    border-radius: 22px;
    margin-bottom: 18px;
  }

  .bp-post-item {
    padding: 20px;
    border-radius: 20px;
  }

  .bp-post-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .bp-post-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .bp-dropdown-inner {
    padding: 10px 0 16px;
  }

  .bp-dropdown-link {
    min-height: 52px;
    font-size: 1.02rem;
  }

  .bp-footer-inner {
    justify-content: flex-start;
  }
}