:root {
  --color-primary: #ff2d55;
  --color-dark: #151821;
  --color-darker: #0d1017;
  /* Unified site background base */
  --bg-base: #151821;
  /* Softer, less-dark background gradient stops */
  --bg-start: #1d2029;
  --bg-mid: #252a35;
  --bg-end: #2d3341;
  /* Solid background color for uniform look */
  --bg-solid: #1d212a;
  --bg-gradient: radial-gradient(circle at 15% 20%, rgba(255, 45, 85, 0.16), transparent 55%),
                  radial-gradient(circle at 82% 8%, rgba(76, 110, 255, 0.12), transparent 58%),
                  linear-gradient(160deg, #1b222f 0%, #121823 55%, #0b0f18 100%);
  --color-light: #f9f9f9;
  --color-muted: #babcc4;
  --color-border: rgba(255, 255, 255, 0.08);
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --shadow-soft: 0 24px 60px rgba(15, 15, 15, 0.35);
  --shadow-card: 0 18px 40px rgba(10, 10, 10, 0.28);
  --transition-base: 200ms ease;
  --nav-offset: 0px;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%; /* helps -webkit-fill-available on iOS */
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--color-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  height: 100%; /* helps -webkit-fill-available on iOS */
}

body.nav-condensed { padding-top: var(--nav-offset, 0px); }

body.nav-open {
  overflow: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

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

main {
  display: block;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: clamp(3rem, 3.5vw + 1.6rem, 5rem) 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.section-header--split {
  align-items: flex-end;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--color-muted);
  max-width: 520px;
  font-size: 1rem;
}

.section-kicker {
  margin-bottom: 0.4rem;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: gap var(--transition-base), color var(--transition-base);
}

.section-link:hover {
  gap: 0.6rem;
  color: #ff6f88;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: var(--color-light);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 12px 30px rgba(255, 45, 85, 0.35);
}

/* Compact button variant for tighter contexts */
.button.button--sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}

/* Extra-compact button variant */
.button.button--xs {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* Compact CTA row utility */
.cta--compact { gap: 0.6rem; }

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 45, 85, 0.4);
}

.button.secondary {
  background: transparent;
  color: var(--color-light);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: rgba(255, 45, 85, 0.6);
  color: var(--color-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.12);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navigation */

.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 160;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(120deg, rgba(21, 28, 42, 0.78), rgba(10, 14, 24, 0.68));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(5, 8, 16, 0.4);
  transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(0.9rem, 1.2vw + 0.5rem, 1.2rem) 0;
  transition: padding 200ms ease;
}

.top-nav.is-condensed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(118deg, rgba(10, 16, 26, 0.9), rgba(3, 7, 15, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 48px rgba(3, 5, 11, 0.55);
}

.top-nav.is-condensed .nav-inner {
  padding: clamp(0.6rem, 1vw + 0.4rem, 0.85rem) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.4);
  transition: border var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.brand:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(26, 26, 26, 0.65);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2d55, #ff5f72);
  color: var(--color-light);
  font-weight: 700;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 1.6rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(10, 10, 10, 0.38);
  backdrop-filter: blur(18px);
  transition: background var(--transition-base), border var(--transition-base), box-shadow var(--transition-base);
}

.nav-shell:hover {
  background: rgba(26, 26, 26, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.45);
}

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

.nav-links .nav-item {
  position: relative;
  padding: 0 0.3rem;
}

.nav-links .nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.35rem 0;
  transition: color var(--transition-base);
}

.nav-links .nav-link::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.45rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 45, 85, 1), rgba(255, 255, 255, 0.85));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.nav-links .nav-link:hover,
.nav-links .nav-link:focus-visible,
.nav-links .nav-item.current-menu-item > .nav-link,
.nav-links .nav-item.current-menu-parent > .nav-link {
  color: var(--color-light);
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link:focus-visible::after,
.nav-links .nav-item.current-menu-item > .nav-link::after,
.nav-links .nav-item.current-menu-parent > .nav-link::after {
  transform: scaleX(1);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition-base), border var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 45, 85, 0.45);
  color: var(--color-primary);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
}

.theme-toggle__icon--sun { display: none; }

.theme-toggle__text {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.theme-toggle--mobile {
  display: none;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 45, 85, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(10, 10, 10, 0.32);
  color: var(--color-light);
  transition: background var(--transition-base), border var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.theme-toggle--mobile:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 45, 85, 0.5);
  color: var(--color-primary);
  box-shadow: 0 14px 32px rgba(255, 45, 85, 0.28);
}

.theme-toggle--mobile .theme-toggle__icon {
  width: 20px;
  height: 20px;
}

body[data-theme='light'] .theme-toggle--mobile {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f1116;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .theme-toggle--mobile:hover {
  border-color: rgba(255, 45, 85, 0.45);
  color: var(--color-primary);
}

body[data-theme='light'] .theme-toggle__icon--sun { display: block; }
body[data-theme='light'] .theme-toggle__icon--moon { display: none; }

body[data-theme='light'] .theme-toggle {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--color-light);
}

body[data-theme='light'] .theme-toggle:hover {
  background: rgba(255, 45, 85, 0.12);
  border-color: rgba(255, 45, 85, 0.45);
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .theme-toggle { display: none; }
  .theme-toggle.theme-toggle--mobile {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .nav-inner { gap: 1rem; }
  .theme-toggle.theme-toggle--mobile {
    margin-left: auto;
  }
  .nav-toggle {
    margin-left: 0.6rem;
  }
}

/* Desktop nav search */
.nav-search { margin-left: 0.5rem; }

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

.searchbar--nav .search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 32px;
  padding: 0 0.5rem 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 18px rgba(10, 10, 10, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Live search dropdown */
.searchbar--nav { position: relative; }
.blog-search .searchbar { position: relative; }
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(24, 24, 24, 0.92);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.4rem;
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.38);
  z-index: 60;
}

.search-suggest a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  color: var(--color-light);
}

.search-suggest a:hover { background: rgba(255, 255, 255, 0.06); }
.search-suggest .suggest-title { font-weight: 600; }
.search-suggest .suggest-date  { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }

.searchbar--nav .search-icon { color: rgba(255, 255, 255, 0.7); }

.searchbar--nav .search-input {
  width: 150px;
  border: none;
  background: transparent;
  color: var(--color-light);
  font-size: 0.9rem;
}

@media (min-width: 1200px) { .searchbar--nav .search-input { width: 200px; } }

.searchbar--nav .search-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.searchbar--nav .search-input:focus { outline: none; }

.searchbar--nav .search-submit {
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-light);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
  cursor: pointer;
  transition: transform var(--transition-base), border var(--transition-base), color var(--transition-base), background var(--transition-base);
}

.searchbar--nav .search-submit:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 45, 85, 0.45);
  color: var(--color-primary);
  background: rgba(255, 45, 85, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-light);
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  place-items: center;
  transition: border var(--transition-base), background var(--transition-base), transform var(--transition-base);
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.nav-toggle.is-open {
  background: rgba(255, 45, 85, 0.18);
  border-color: rgba(255, 45, 85, 0.4);
}

.nav-toggle-icon {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
}

.nav-toggle-icon .line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 45, 85, 0.85));
  border-radius: 999px;
  transition: transform 240ms ease, opacity 200ms ease;
}

.nav-toggle-icon .line:nth-child(1) { top: 0; }
.nav-toggle-icon .line:nth-child(2) { top: 7px; }
.nav-toggle-icon .line:nth-child(3) { bottom: 0; }

.nav-toggle.is-open .nav-toggle-icon .line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-icon .line:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-icon .line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile Navigation Styles (fixed overlay + dynamic viewport units) --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  min-height: 100vh;
  padding: 5rem 1.5rem 2rem;
  padding-bottom: calc(env(safe-area-inset-bottom) + 2rem);
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
  overflow: hidden;
}
@supports (height: 100dvh) {
  .mobile-nav {
    height: 100dvh;
    min-height: 100dvh;
  }
}
@supports (-webkit-touch-callout: none) {
  .mobile-nav {
    min-height: -webkit-fill-available;
  }
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--color-light);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  z-index: 50;
  transition: all var(--transition-base);
}
.mobile-nav-close:hover {
  color: var(--color-primary);
  transform: rotate(90deg);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-border);
}
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-list::after {
  content: "";
  display: block;
  height: env(safe-area-inset-bottom);
}
.mobile-nav-list li {
  width: 100%;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.mobile-nav.open li:nth-child(1) { transition-delay: 100ms; }
.mobile-nav.open li:nth-child(2) { transition-delay: 150ms; }
.mobile-nav.open li:nth-child(3) { transition-delay: 200ms; }
.mobile-nav.open li:nth-child(4) { transition-delay: 250ms; }
.mobile-nav.open li:nth-child(5) { transition-delay: 300ms; }
.mobile-nav.open li:nth-child(6) { transition-delay: 350ms; }
.mobile-nav.open li {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav-list a {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-light);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  transition: color var(--transition-base), background-color var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
.mobile-nav-list a:hover,
.mobile-nav-list .current-menu-item > a {
  color: var(--color-primary);
  background-color: rgba(255, 45, 85, 0.15);
  border-color: rgba(255, 45, 85, 0.4);
  transform: scale(1.03);
}
body[data-theme='light'] .mobile-nav {
  background-color: rgba(255, 255, 255, 0.95);
}
body[data-theme='light'] .mobile-nav-close {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}
body[data-theme='light'] .mobile-nav-close:hover {
  background: rgba(255, 45, 85, 0.18);
  border-color: rgba(255, 45, 85, 0.3);
  color: var(--color-primary);
}
body[data-theme='light'] .mobile-nav-list a {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
}
body[data-theme='light'] .mobile-nav-list a:hover {
  background: rgba(255, 45, 85, 0.18);
  border-color: rgba(255, 45, 85, 0.45);
  color: #ffffff;
}

body[data-theme='light'] .mobile-nav-list .current-menu-item > a {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* Hero */
/* Hero */
.hero {
  padding: clamp(3.5rem, 6vw + 1.6rem, 6.5rem) 0;
}

.hero--compact {
  padding-bottom: clamp(1.6rem, 3vw + 1rem, 2.8rem);
}


/* Single post spacing tweaks */
.single-post .hero {
  padding-bottom: clamp(1.2rem, 2vw + 1rem, 2.4rem);
}

body.single-post .section--tight-top {
  padding-top: clamp(0.6rem, 1.2vw, 1.2rem);
}

.hero-layout {
  display: grid;
  align-items: center;
  gap: clamp(2.2rem, 6vw, 4.8rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  grid-template-areas: "copy media";
}

.hero-copy {
  grid-area: copy;
  display: grid;
  gap: 1.6rem;
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2.8rem, 5.2vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-title strong { color: var(--color-primary); }

.hero-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.hero-media {
  grid-area: media;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
  justify-self: end;
}

.hero-media img,
.hero-media picture {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 68px rgba(8, 8, 8, 0.55);
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 45, 85, 0.28));
  transform-style: preserve-3d;
  animation: portraitFloat 8s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  width: min(100%, 380px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 0.35;
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.hero-media:hover::after {
  opacity: 0.55;
  transform: translate(-50%, -50%) scale(1.04);
}

@keyframes portraitFloat {
  0% { transform: translateY(0) rotateX(0deg) rotateY(0deg); box-shadow: 0 32px 68px rgba(8, 8, 8, 0.55); }
  50% { transform: translateY(-6px) rotateX(2deg) rotateY(-3deg); box-shadow: 0 36px 74px rgba(8, 8, 8, 0.58); }
  100% { transform: translateY(-12px) rotateX(-2deg) rotateY(4deg); box-shadow: 0 40px 80px rgba(8, 8, 8, 0.6); }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Responsive adjustments for the Hero section */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "copy";
    text-align: center;
  }

  .hero-copy { align-items: center; }
  .hero-media { justify-self: center; }
  .hero-cta { justify-content: center; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.4rem, 8vw, 3.2rem); }
}

/* Feature tiles */

.section--latest-posts {
  padding-top: clamp(2.4rem, 4vw, 4.2rem);
  padding-bottom: clamp(2.2rem, 3vw, 3.4rem);
}

.section--latest-posts .section-title,
.section--categories .section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

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

.tile-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17, 19, 28, 0.94), rgba(22, 27, 40, 0.86));
  box-shadow: 0 28px 70px rgba(9, 10, 18, 0.46);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.tile:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 45, 85, 0.32);
  box-shadow: 0 26px 54px rgba(9, 10, 18, 0.42);
}

.tile-media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.tile-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tile-category {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.tile-date {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.tile-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
}

.tile-excerpt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.tile-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.86rem;
  transition: gap var(--transition-base);
}

.tile-link:hover { gap: 0.7rem; }

.section--categories {
  padding-top: clamp(1.2rem, 2.5vw, 2.2rem);
}

.section--categories .section-header {
  margin-bottom: 1.35rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.category-card {
  min-width: 0;
  min-height: 170px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
  padding: 1.25rem 0.85rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(17, 19, 28, 0.94), rgba(22, 27, 40, 0.86));
  box-shadow: 0 28px 70px rgba(9, 10, 18, 0.46);
  text-align: center;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 85, 0.32);
  background: rgba(17, 19, 28, 0.9);
  box-shadow: 0 26px 54px rgba(9, 10, 18, 0.42);
}

.category-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.category-card__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-card__name {
  color: var(--color-light);
  font-weight: 700;
  line-height: 1.25;
}

.category-card__count {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
}

.category-card__description {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* About highlights */

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.about-card {
  background: rgba(15, 15, 15, 0.72);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(2rem, 3vw, 2.8rem);
  box-shadow: var(--shadow-card);
}

.about-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.about-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
}

.milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  margin-top: 2.2rem;
}

.milestone {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(24, 24, 24, 0.9);
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.milestone strong {
  font-size: 1.4rem;
  color: var(--color-primary);
}

/* Contact */

.contact-card {
  background: rgba(15, 15, 15, 0.72);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(2rem, 3vw, 2.8rem);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-actions {
  display: grid;
  gap: 0.8rem;
  align-self: center;
}

.contact-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 26, 26, 0.92);
  transition: transform var(--transition-base), border var(--transition-base), background var(--transition-base);
}

.contact-action__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-action__content strong {
  font-size: 1rem;
}

.contact-action__content span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.contact-action__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 45, 85, 0.14);
  color: var(--color-primary);
  font-size: 1rem;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.contact-action:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 45, 85, 0.6);
  background: rgba(32, 32, 32, 0.96);
}

.contact-action:hover .contact-action__icon {
  background: var(--color-primary);
  color: var(--color-light);
  transform: rotate(-45deg);
}

@media (max-width: 600px) {
  .contact-action {
    gap: 1rem;
    padding: 0.75rem 1rem;
  }

  .contact-action__content strong {
    font-size: 0.95rem;
  }
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
}

.contact-detail span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 45, 85, 0.14);
  color: var(--color-primary);
  font-size: 1.3rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

 .contact-form input,
.contact-form textarea,
.newsletter-form input,
.newsletter-form textarea,
.field-select {
  width: 100%;
  max-width: 660px;
  background: rgba(24, 24, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  color: var(--color-light);
  font: inherit;
  transition: border var(--transition-base), background var(--transition-base);
}

.contact-form .wpforms-submit,
.newsletter-form .wpforms-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: var(--color-light);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(255, 45, 85, 0.28);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.contact-form .wpforms-submit:hover,
.newsletter-form .wpforms-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 45, 85, 0.38);
}

.contact-form .wpforms-submit:focus-visible,
.newsletter-form .wpforms-submit:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

body[data-theme='light'] .contact-form .wpforms-submit,
body[data-theme='light'] .newsletter-form .wpforms-submit {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(255, 45, 85, 0.28);
}

.contact-form input:focus,
.contact-form textarea:focus,
.newsletter-form input:focus,
.newsletter-form textarea:focus,
.field-select:focus {
  border-color: rgba(255, 45, 85, 0.6);
  background: rgba(32, 32, 32, 0.95);
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.field-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-primary) 50%),
    linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1.1rem), calc(100% - 13px) calc(1.1rem);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Footer */

.footer {
  padding: clamp(2.6rem, 5vw, 3.6rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(19, 26, 39, 0.88) 0%, rgba(11, 16, 28, 0.8) 45%, rgba(7, 10, 20, 0.82) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -18px 38px rgba(4, 6, 12, 0.45);
}

/* Ensure page sections never introduce their own full-width background */
.hero,
.section { background: transparent; }

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a { color: inherit; }

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-light);
  transition: transform var(--transition-base), background var(--transition-base);
}

.social-link:hover {
  transform: translateY(-3px);
  background: var(--color-primary);
}

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

/* Blog page */

.blog-layout {
  display: grid;
  gap: 2.5rem;
}

.blog-header { max-width: none; width: 100%; }

.blog-search {
  display: flex;
  justify-content: center;
}

.searchbar { width: min(92%, 760px); }

.search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.6rem 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-icon { color: rgba(255, 255, 255, 0.7); }

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--color-light);
  font-size: 1rem;
}

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

.search-input:focus { outline: none; }

.search-submit {
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-light);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-base), border var(--transition-base), color var(--transition-base);
}

.search-submit:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 45, 85, 0.5);
  color: var(--color-primary);
}

.blog-filter {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), border var(--transition-base);
}

.filter-chip.active {
  background: rgba(255, 45, 85, 0.16);
  border-color: rgba(255, 45, 85, 0.5);
  color: var(--color-primary);
}

.blog-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Optional glass container to wrap grids */
.glass-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Tighter top spacing for sections following a hero */
.section--tight-top { padding-top: clamp(1.2rem, 1.8vw, 2rem); }

.section--compact-top { padding-top: clamp(0.5rem, 0.8vw, 1.1rem); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}

.pagination .page-numbers {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-numbers li { display: inline-flex; }

.pagination .page-numbers a,
.pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-light);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.pagination .page-numbers a:hover {
  color: var(--color-primary);
  border-color: rgba(255, 45, 85, 0.45);
  transform: translateY(-1px);
}

.pagination .page-numbers .current {
  color: var(--color-primary);
  border-color: rgba(255, 45, 85, 0.55);
  background: rgba(255, 45, 85, 0.16);
}

.blog-article {
  background: rgba(15, 15, 15, 0.78);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 220ms ease, border 220ms ease;
}

.blog-article[hidden] { display: none; }

.blog-article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 85, 0.45);
}

.blog-article img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.blog-article-body {
  padding: 1.9rem;
  display: grid;
  gap: 0.9rem;
}

.blog-article-title {
  font-size: 1.35rem;
  font-weight: 600;
}

.blog-article-title a { color: inherit; }

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.blog-article-excerpt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
}

/* Share bar */
 .share-bar {
   display: flex;
   flex-wrap: wrap;
   gap: 0.6rem;
   margin: 0.5rem 0 1.2rem;
 }
 
 .share-btn {
   width: 42px;
   height: 42px;
   display: grid;
   place-items: center;
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.06);
   border: 1px solid var(--color-border);
   color: var(--color-light);
   transition: transform var(--transition-base), border var(--transition-base), color var(--transition-base), background var(--transition-base);
 }
 
 .share-btn:hover { transform: translateY(-2px); }
 .share-fb:hover { border-color: #1877F2; color: #1877F2; background: rgba(24, 119, 242, 0.12); }
 .share-li:hover { border-color: #0A66C2; color: #0A66C2; background: rgba(10, 102, 194, 0.12); }
 .share-x:hover  { border-color: rgba(255,255,255,0.5); color: #ffffff; background: rgba(255,255,255,0.06); }
 .share-wa:hover { border-color: #25D366; color: #25D366; background: rgba(37, 211, 102, 0.12); }

/* Util */

.grid-auto {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.74);
}

.highlight { color: var(--color-primary); }

.divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 3rem 0;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Light theme overrides */
body[data-theme='light'] {
  --color-light: #0f172a;
  --color-muted: #475467;
  --color-border: rgba(15, 23, 42, 0.12);
  --bg-base: #f5f7fb;
  --bg-start: #ffffff;
  --bg-mid: #eef2f6;
  --bg-end: #e2e8f0;
  --bg-solid: #f5f7fb;
  --bg-gradient: radial-gradient(circle at 12% 18%, rgba(255, 45, 85, 0.22), transparent 58%),
                  radial-gradient(circle at 78% 10%, rgba(86, 115, 255, 0.18), transparent 60%),
                  linear-gradient(150deg, #f8f9fc 0%, #eef1f8 60%, #e1e7f2 100%);
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.14);
  color-scheme: light;
}

body[data-theme='light'] .top-nav {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.78));
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

body[data-theme='light'] .top-nav.is-condensed {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.18);
}

body[data-theme='light'] .brand {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--color-light);
}

body[data-theme='light'] .brand:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.18);
}

body[data-theme='light'] .nav-shell {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

body[data-theme='light'] .tile-category {
  background: transparent;
  border: none;
  color: var(--color-primary);
}

body[data-theme='light'] .nav-shell:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

body[data-theme='light'] .nav-links .nav-link {
  color: rgba(15, 23, 42, 0.75);
}

body[data-theme='light'] .nav-links .nav-link:hover,
body[data-theme='light'] .nav-links .nav-link:focus-visible,
body[data-theme='light'] .nav-links .nav-item.current-menu-item > .nav-link,
body[data-theme='light'] .nav-links .nav-item.current-menu-parent > .nav-link {
  color: var(--color-light);
}

body[data-theme='light'] .nav-links .nav-link::after {
  background: linear-gradient(90deg, #ff2d55, rgba(15, 23, 42, 0.35));
}

body[data-theme='light'] .nav-toggle {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--color-light);
}

body[data-theme='light'] .nav-toggle:hover {
  border-color: rgba(15, 23, 42, 0.24);
}

body[data-theme='light'] .nav-toggle.is-open {
  background: rgba(255, 45, 85, 0.16);
  border-color: rgba(255, 45, 85, 0.45);
}

body[data-theme='light'] .nav-toggle-icon .line {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(255, 45, 85, 0.85));
}

body[data-theme='light'] .mobile-nav {
  background-color: rgba(255, 255, 255, 0.95);
}

body[data-theme='light'] .mobile-nav-close {
  color: var(--color-light);
}

body[data-theme='light'] .mobile-nav-close:hover {
  color: var(--color-primary);
  background-color: rgba(255, 45, 85, 0.12);
  border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .mobile-nav-list a {
  color: var(--color-light);
  background-color: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .mobile-nav-list a:hover,
body[data-theme='light'] .mobile-nav-list .current-menu-item > a {
  color: var(--color-primary);
  background-color: rgba(255, 45, 85, 0.16);
  border-color: rgba(255, 45, 85, 0.45);
}

body[data-theme='light'] .searchbar--nav .search-box,
body[data-theme='light'] .search-box {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .searchbar--nav .search-icon,
body[data-theme='light'] .search-icon {
  color: rgba(71, 84, 103, 0.85);
}

body[data-theme='light'] .searchbar--nav .search-input::placeholder,
body[data-theme='light'] .search-input::placeholder {
  color: rgba(100, 116, 139, 0.7);
}

body[data-theme='light'] .searchbar--nav .search-submit,
body[data-theme='light'] .search-submit {
  background: #eff2f8;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--color-light);
}

body[data-theme='light'] .searchbar--nav .search-submit:hover,
body[data-theme='light'] .search-submit:hover {
  border-color: rgba(255, 45, 85, 0.45);
  color: var(--color-primary);
  background: rgba(255, 45, 85, 0.12);
}

body[data-theme='light'] .search-suggest {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
}

body[data-theme='light'] .search-suggest a {
  color: var(--color-light);
}

body[data-theme='light'] .search-suggest a:hover {
  background: rgba(15, 23, 42, 0.06);
}

body[data-theme='light'] .search-suggest .suggest-date {
  color: rgba(71, 84, 103, 0.75);
}

body[data-theme='light'] .hero-subtitle {
  color: rgba(71, 84, 103, 0.88);
}

body[data-theme='light'] .hero-media img,
body[data-theme='light'] .hero-media picture {
  border: 6px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 45, 85, 0.28));
  box-shadow: 0 32px 68px rgba(15, 23, 42, 0.18);
}

body[data-theme='light'] .hero-media::after {
  border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .article-meta,
body[data-theme='light'] .article-author__text span,
body[data-theme='light'] .article-content,
body[data-theme='light'] .article-toc__item a {
  color: rgba(51, 65, 85, 0.78);
}

body[data-theme='light'] .article-hero__media,
body[data-theme='light'] .article-toc {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.94));
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

body[data-theme='light'] .article-author__avatar {
  border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .article-toc__title {
  color: rgba(15, 23, 42, 0.7);
}

body[data-theme='light'] .article-toc__item a {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

body[data-theme='light'] .article-toc__item a:hover,
body[data-theme='light'] .article-toc__item a.is-active {
  color: var(--color-primary);
}

body[data-theme='light'] .article-content h2,
body[data-theme='light'] .article-content h3 {
  color: var(--color-light);
}

body[data-theme='light'] .article-content h2 {
  border-top-color: rgba(15, 23, 42, 0.1);
}

body[data-theme='light'] .tile {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.94));
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

body[data-theme='light'] .tile:hover {
  border-color: rgba(255, 45, 85, 0.36);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16);
}

body[data-theme='light'] .category-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.94));
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

body[data-theme='light'] .category-card:hover {
  background: #ffffff;
  border-color: rgba(255, 45, 85, 0.36);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16);
}

body[data-theme='light'] .category-card__count {
  color: rgba(71, 84, 103, 0.72);
}

body[data-theme='light'] .category-card__description {
  color: rgba(51, 65, 85, 0.78);
}

body[data-theme='light'] .tile-meta {
  color: rgba(71, 84, 103, 0.75);
}

body[data-theme='light'] .tile-date {
  color: rgba(71, 84, 103, 0.75);
}

body[data-theme='light'] .tile-excerpt {
  color: rgba(51, 65, 85, 0.85);
}

body[data-theme='light'] .about-card,
body[data-theme='light'] .contact-card,
body[data-theme='light'] .glass-panel {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .about-card p {
  color: rgba(51, 65, 85, 0.85);
}

body[data-theme='light'] .milestone {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .contact-action {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .contact-action__content span {
  color: rgba(71, 84, 103, 0.75);
}

body[data-theme='light'] .contact-action:hover {
  background: rgba(255, 245, 247, 0.95);
}

body[data-theme='light'] .contact-detail {
  color: rgba(51, 65, 85, 0.85);
}

body[data-theme='light'] .contact-detail span {
  background: rgba(255, 45, 85, 0.16);
  color: var(--color-primary);
}

body[data-theme='light'] .contact-form label {
  color: rgba(51, 65, 85, 0.8);
}

body[data-theme='light'] .contact-form input,
body[data-theme='light'] .contact-form textarea,
body[data-theme='light'] .newsletter-form input,
body[data-theme='light'] .newsletter-form textarea,
body[data-theme='light'] .field-select {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--color-light);
}

body[data-theme='light'] .contact-form input:focus,
body[data-theme='light'] .contact-form textarea:focus,
body[data-theme='light'] .newsletter-form input:focus,
body[data-theme='light'] .newsletter-form textarea:focus,
body[data-theme='light'] .field-select:focus {
  background: #ffffff;
  border-color: rgba(255, 45, 85, 0.55);
}

body[data-theme='light'] .footer {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.88) 100%);
  box-shadow: 0 -16px 32px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body[data-theme='light'] .footer-links ul {
  color: rgba(71, 84, 103, 0.78);
}

body[data-theme='light'] .social-link {
  background: rgba(15, 23, 42, 0.08);
  color: var(--color-light);
}

body[data-theme='light'] .footer-note {
  color: rgba(71, 84, 103, 0.65);
}

body[data-theme='light'] .filter-chip {
  background: rgba(241, 245, 249, 0.9);
  border-color: transparent;
  color: rgba(71, 84, 103, 0.85);
}

body[data-theme='light'] .filter-chip.active {
  background: rgba(255, 45, 85, 0.16);
  border-color: rgba(255, 45, 85, 0.5);
  color: var(--color-primary);
}

body[data-theme='light'] .blog-article {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .blog-article-meta {
  color: rgba(71, 84, 103, 0.72);
}

body[data-theme='light'] .blog-article-excerpt {
  color: rgba(51, 65, 85, 0.85);
}

body[data-theme='light'] .pagination .page-numbers a,
body[data-theme='light'] .pagination .page-numbers span {
  background: #eff2f8;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--color-light);
}

body[data-theme='light'] .share-btn {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

body[data-theme='light'] .share-x:hover {
  border-color: rgba(17, 24, 39, 0.4);
  color: #ffffff;
  background: #111827;
}

body[data-theme='light'] .lead {
  color: rgba(51, 65, 85, 0.85);
}

body[data-theme='light'] .divider {
  background: rgba(15, 23, 42, 0.1);
}

/* Responsive */

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  }

  .hero-media {
    justify-content: flex-end;
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .nav-shell { display: none; }
  .nav-links { display: none; }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .hero-layout { text-align: left; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .tile-grid--featured,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.4rem, 8vw, 3.2rem); }
  .tile-grid--featured,
  .category-grid {
    grid-template-columns: 1fr;
  }
  .tile-media img,
  .blog-article img { height: 180px; }
  .footer-layout { flex-direction: column; align-items: flex-start; }
  .footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
  }
}

@media (max-width: 600px) {
  body[data-theme='light'] .footer-links ul {
    color: rgba(71, 84, 103, 0.78);
  }
}

.tile-media { display: block; }

/* Compact variant under post title */
.share-bar--hero { margin: 0.4rem 0 0.8rem; }
.share-bar--hero .share-btn {
  width: 36px;
  height: 36px;
}

/* Article page */
.article-hero {
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(3rem, 4vw, 4.5rem);
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.article-hero__copy {
  display: grid;
  gap: clamp(1.2rem, 2vw, 1.8rem);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.article-category {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.16);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-title {
  max-width: 760px;
  font-size: clamp(2.35rem, 4.2vw, 3.35rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: 0;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-author__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.article-author__text {
  display: grid;
  gap: 0.1rem;
  min-width: min(100%, 220px);
}

.article-author__text strong {
  font-size: 0.95rem;
}

.article-author__text span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.article-byline .share-bar {
  margin: 0 0 0 auto;
}

.article-hero__media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 19, 28, 0.82);
  box-shadow: 0 28px 70px rgba(9, 10, 18, 0.42);
}

.article-hero__media img {
  width: 100%;
  height: clamp(280px, 34vw, 430px);
  object-fit: cover;
}

.article-body-section {
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.article-body-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 760px);
  gap: clamp(2.2rem, 6vw, 5rem);
  align-items: start;
}

.article-toc[hidden] + .article-content {
  grid-column: 1 / -1;
  width: min(100%, 760px);
  margin: 0 auto;
}

.article-toc {
  position: sticky;
  top: calc(var(--nav-offset, 0px) + 2rem);
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(17, 19, 28, 0.94), rgba(22, 27, 40, 0.86));
  box-shadow: 0 20px 48px rgba(9, 10, 18, 0.36);
}

.article-toc__title {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-toc__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc__item a {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.82rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.35;
}

.article-toc__item--h3 a {
  padding-left: 1rem;
  font-size: 0.84rem;
}

.article-toc__item a:hover,
.article-toc__item a.is-active {
  color: var(--color-primary);
}

.article-toc__number {
  color: inherit;
}

.article-content {
  display: grid;
  gap: 1.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.8;
}

.article-content h2,
.article-content h3 {
  color: var(--color-light);
  line-height: 1.24;
  letter-spacing: 0;
  scroll-margin-top: calc(var(--nav-offset, 0px) + 2rem);
}

.article-content h2 {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(1.7rem, 2.5vw, 2.05rem);
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  margin-top: 1rem;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
}

@media (max-width: 980px) {
  .article-hero__grid,
  .article-body-layout {
    grid-template-columns: 1fr;
  }

  .article-hero__media {
    max-width: 720px;
    width: 100%;
  }

  .article-toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 700px) {
  .article-hero {
    padding-top: clamp(2.4rem, 8vw, 3.2rem);
  }

  .article-byline .share-bar {
    width: 100%;
    margin-left: 0;
  }

  .article-hero__media img {
    height: clamp(220px, 58vw, 300px);
  }
}

/* Post content typography tweaks */
.post-content a {
  color: var(--color-primary);
}
.post-content a:visited { color: var(--color-primary); }
.post-content ul,
.post-content ol {
  margin-left: 1.2rem;
  padding-left: 1rem;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.wp-block-code {
  background-color: #ffffff !important; /* White background */
  color: #000000 !important;           /* Black text */
}
/* Comments */
.section--comments .comments-area {
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(1.2rem, 2.2vw, 2rem);
  margin: 0 auto;
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.28);
}

.section--comments .comments-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1.2rem;
}

.comments-area ol, .comments-area ul { list-style: none; padding: 0; margin: 0; }
.comments-area .comment-list { display: grid; gap: 1.4rem; margin-bottom: 1.5rem; }
.comments-area .comment-body {
  background: rgba(24, 24, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  display: grid;
  gap: 0.6rem;
}

.comments-area .comment-meta { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); display: flex; gap: 0.6rem; flex-wrap: wrap; }
.comments-area .comment-author b, .comments-area .comment-author a { color: var(--color-light); }
.comments-area .reply a { color: var(--color-primary); font-weight: 600; }

.comment-respond {
  background: rgba(24, 24, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: grid;
  gap: 1rem;
}
.comment-respond label { font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 15, 0.65);
  color: var(--color-light);
}
.comment-respond textarea { min-height: 150px; }
.comment-respond input:focus,
.comment-respond textarea:focus { outline: 2px solid rgba(255, 45, 85, 0.4); border-color: rgba(255, 45, 85, 0.4); }
.comment-respond .form-submit .submit {
  /* reuse button styles */
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: var(--color-light);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 12px 30px rgba(255, 45, 85, 0.35);
}
.comment-respond .form-submit .submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(255, 45, 85, 0.4); }

.turnstile-wrap { margin: 0.6rem 0 0.2rem; }

@media (max-width: 600px) {
  .comments-area .comment-body { padding: 1rem; }
}
@media (max-width: 900px) {
  .single-post .hero-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(1.6rem, 6vw, 2.4rem);
  }
  .single-post .hero-layout > .fade-up:first-child { order: 1; }
  .single-post .hero-layout .hero-media {
    order: 2;
    align-self: center;
  }
}


body[data-theme='light'] .section--comments .comments-area {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #1a1d24;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}
body[data-theme='light'] .section--comments .comments-title {
  color: #0f1116;
}
body[data-theme='light'] .comments-area .comment-body {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 15, 15, 0.08);
  color: #1a1d24;
}
body[data-theme='light'] .comments-area .comment-meta {
  color: rgba(34, 38, 45, 0.6);
}
body[data-theme='light'] .comments-area .comment-author b,
body[data-theme='light'] .comments-area .comment-author a {
  color: #0f1116;
}
body[data-theme='light'] .comment-respond {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 15, 15, 0.08);
}
body[data-theme='light'] .comment-respond label {
  color: rgba(34, 38, 45, 0.85);
}
body[data-theme='light'] .comment-respond input[type="text"],
body[data-theme='light'] .comment-respond input[type="email"],
body[data-theme='light'] .comment-respond input[type="url"],
body[data-theme='light'] .comment-respond textarea {
  border: 1px solid rgba(15, 15, 15, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #0f1116;
}
body[data-theme='light'] .comment-respond input::placeholder,
body[data-theme='light'] .comment-respond textarea::placeholder {
  color: rgba(34, 38, 45, 0.5);
}
body[data-theme='light'] .comments-area .reply a { color: var(--color-primary); }
.section--share { padding: clamp(2.2rem, 4vw, 3.2rem) 0 0; }
.share-strip {
  margin: 0 auto;
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(0.9rem, 2.2vw, 1.6rem);
  background: rgba(18, 18, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.32);
}
.share-strip__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}
.share-strip__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.share-strip__buttons .share-btn {
  width: 44px;
  height: 44px;
}

body[data-theme='light'] .section--share { padding-top: clamp(2rem, 4vw, 3rem); }
body[data-theme='light'] .share-strip {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.1);
}
body[data-theme='light'] .share-strip__label {
  color: rgba(15, 17, 22, 0.72);
}

.section--newsletter {
  padding: clamp(2rem, 3.4vw, 3.4rem) 0 clamp(3rem, 4vw, 4rem);
}

.newsletter-signup {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(17, 19, 28, 0.94), rgba(22, 27, 40, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  min-height: 250px;
  padding: clamp(2rem, 3vw, 3rem);
  display: grid;
  gap: clamp(1.6rem, 3vw, 3rem);
  box-shadow: 0 28px 70px rgba(9, 10, 18, 0.46);
  align-items: center;
}

.newsletter-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.newsletter-icon {
  display: grid;
  place-items: center;
  width: clamp(92px, 11vw, 130px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 45, 85, 0.12);
  color: var(--color-primary);
}

.newsletter-icon svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 45, 85, 0.3));
}

.newsletter-copy,
.newsletter-form {
  position: relative;
  z-index: 1;
}

.newsletter-copy {
  display: grid;
  gap: 0.55rem;
  text-align: left;
}

.newsletter-kicker {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.newsletter-title {
  max-width: 560px;
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.newsletter-text {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.newsletter-form {
  width: 100%;
  margin: 0;
}

.newsletter-form form,
.newsletter-form .wpforms-form {
  display: grid;
  gap: 1rem;
}

.newsletter-form .wpforms-field-container,
.newsletter-form .wpforms-field {
  margin-bottom: 0 !important;
}

.newsletter-form .wpforms-field {
  padding: 0 !important;
}

.newsletter-form .wpforms-field-label,
.newsletter-form .wpforms-required-label {
  display: none !important;
}

.newsletter-form input[type='email'],
.newsletter-form input[type='text'] {
  max-width: none;
  height: 66px;
  min-height: 66px;
  border-radius: 16px;
  background: rgba(7, 12, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 1.25rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.newsletter-form .wpforms-field-checkbox ul,
.newsletter-form .wpforms-field-checkbox li,
.newsletter-form .wpforms-field-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.45;
}

.newsletter-form input[type='checkbox'] {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin-top: 0.15rem;
  accent-color: var(--color-primary);
}

.newsletter-form .wpforms-submit,
.newsletter-form button[type='submit'] {
  justify-self: stretch;
  justify-content: center;
  height: 66px;
  min-height: 66px;
  border-radius: 16px;
  padding: 0 1.6rem !important;
  line-height: 1 !important;
}

@media (min-width: 780px) {
  .newsletter-signup {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
  }

  .newsletter-form .wpforms-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    position: relative;
  }

  .newsletter-form .wpforms-field-container {
    display: contents;
  }

  .newsletter-form .wpforms-field:not(.wpforms-field-checkbox) {
    grid-column: 1;
    grid-row: 1;
  }

  .newsletter-form .wpforms-field:not(.wpforms-field-checkbox) input {
    padding-right: 210px;
  }

  .newsletter-form .wpforms-submit-container {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    margin: 0 !important;
    padding: 0.3rem !important;
    z-index: 2;
  }

  .newsletter-form .wpforms-submit,
  .newsletter-form button[type='submit'] {
    justify-self: stretch;
    width: 190px;
    height: 56px;
    min-height: 56px;
  }

  .newsletter-form .wpforms-field-checkbox {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

body[data-theme='light'] .newsletter-signup {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.94));
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

body[data-theme='light'] .newsletter-text {
  color: rgba(15, 23, 42, 0.7);
}

body[data-theme='light'] .newsletter-icon {
  background: rgba(255, 45, 85, 0.14);
}

body[data-theme='light'] .newsletter-form input[type='email'],
body[data-theme='light'] .newsletter-form input[type='text'] {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme='light'] .newsletter-form .wpforms-field-checkbox ul,
body[data-theme='light'] .newsletter-form .wpforms-field-checkbox li,
body[data-theme='light'] .newsletter-form .wpforms-field-checkbox label {
  color: rgba(15, 23, 42, 0.72);
}

.badge--soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.16);
  border: 1px solid rgba(255, 45, 85, 0.35);
  color: var(--color-primary);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 600px) {
  .newsletter-signup {
    min-height: auto;
  }

  .newsletter-intro {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .newsletter-icon {
    width: 86px;
  }

  .newsletter-title {
    font-size: 2rem;
  }

  body.single-post .hero-media {
    align-self: center;
  }
  body.single-post .hero-media img,
  body.single-post .hero-media picture {
    width: 100%;
    height: clamp(180px, 48vw, 240px);
    object-fit: cover;
  }
}

/* 404 page styling */
body.error404 {
  background: radial-gradient(circle at 20% 20%, rgba(255, 45, 85, 0.18), transparent 55%),
              radial-gradient(circle at 80% 10%, rgba(60, 110, 255, 0.18), transparent 50%),
              linear-gradient(160deg, #111620 0%, #0b0d13 55%, #141a28 100%);
  color: var(--color-light);
}

body.error404[data-theme='light'] {
  background: radial-gradient(circle at 30% 10%, rgba(255, 45, 85, 0.25), transparent 60%),
              radial-gradient(circle at 75% 15%, rgba(17, 94, 255, 0.2), transparent 55%),
              linear-gradient(155deg, #f1f4fb 0%, #e6ebf7 60%, #dbe1f0 100%);
  color: #0f172a;
}

body.error404 .error-404 {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

body.error404 .error-hero {
  width: 100%;
}

body.error404 .error-shell {
  width: min(92%, 980px);
  margin: 0 auto;
}

body.error404 .error-glass {
  position: relative;
  padding: clamp(2.8rem, 6vw, 4.2rem);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: 0 30px 80px rgba(7, 9, 16, 0.55);
  display: grid;
  gap: 1.6rem;
  text-align: center;
}

body.error404 .error-glass::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

body.error404 .error-code {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.08);
}

body.error404 .error-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.error404 .error-copy {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.74);
  max-width: 540px;
  margin: 0 auto;
}

body.error404 .error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

body.error404 .error-actions .button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

body.error404 .error-actions .button.secondary:hover {
  border-color: rgba(255, 45, 85, 0.55);
}

body.error404 .error-search {
  margin-top: 1rem;
}

body.error404 .error-search__field {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  justify-content: center;
}

body.error404 .error-search input[type='search'] {
  width: min(280px, 70vw);
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-light);
  transition: border var(--transition-base), background var(--transition-base);
}

body.error404 .error-search input[type='search']::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.error404 .error-search input[type='search']:focus {
  outline: none;
  border-color: rgba(255, 45, 85, 0.6);
  background: rgba(0, 0, 0, 0.35);
}

body.error404 .error-search button {
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: var(--color-light);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

body.error404 .error-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 45, 85, 0.35);
}

body.error404[data-theme='light'] .error-glass {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66));
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

body.error404[data-theme='light'] .error-code {
  color: rgba(15, 23, 42, 0.08);
}

body.error404[data-theme='light'] .error-copy {
  color: rgba(15, 23, 42, 0.65);
}

body.error404[data-theme='light'] .error-search input[type='search'] {
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

body.error404[data-theme='light'] .error-search input[type='search']::placeholder {
  color: rgba(71, 84, 103, 0.65);
}

@media (max-width: 600px) {
  body.error404 .error-code {
    letter-spacing: 0.05em;
  }

  body.error404 .error-actions .button,
  body.error404 .error-actions .button.secondary {
    width: 100%;
    justify-content: center;
  }

  body.error404 .error-search__field {
    flex-direction: column;
  }

  body.error404 .error-search button {
    width: 100%;
  }
}
