:root {
  color-scheme: light;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-muted: rgba(255, 255, 255, 0.7);
  --text: #111111;
  --subtext: #6b7280;
  --accent: #2563eb;
  --accent-contrast: #ffffff;
  --shadow-soft: 0 24px 60px rgba(17, 17, 17, 0.12);
  --shadow-card: 0 12px 28px rgba(17, 17, 17, 0.12);
  --radius-large: 24px;
  --radius-medium: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(140deg, rgba(245, 245, 247, 0.95), rgba(229, 231, 235, 0.6));
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Respect WP admin bar when logged in */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.nav.nav--top {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.menu {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  font-weight: 600;
}

.menu--inline a {
  color: #1f2937;
  font-weight: 600;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-button {
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.16s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(17, 24, 39, 0.06);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0b;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  margin: 0;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.hero-banner {
  background: linear-gradient(165deg, #0f172a 0%, #0b1321 100%);
  color: #e5e7eb;
  padding: 54px 22px 64px;
}

.hero-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.hero-banner__eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.82);
  margin: 0;
}

.hero-banner__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: #f8fafc;
  margin: 6px 0 8px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.hero-banner__lede {
  font-size: 1.12rem;
  color: rgba(226, 232, 240, 0.86);
  margin: 0 0 16px;
  max-width: 820px;
}

.hero-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-banner__pill {
  background: #fff;
  color: #111827;
  border-radius: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  text-decoration: none;
  min-width: 140px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.hero-banner__pill--ghost {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.site-main {
  flex: 1;
}

.magazine {
  max-width: 1200px;
  margin: 32px auto 64px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}

.magazine__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.12);
  border: 1px solid rgba(17, 17, 17, 0.06);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
  position: relative;
}

.feature-card.no-thumb {
  grid-template-columns: 1fr;
}

.feature-card__media img,
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card__media {
  position: relative;
  min-height: 240px;
}

.feature-card__label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #111827;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.feature-card__placeholder,
.post-card__placeholder {
  background: linear-gradient(135deg, #cfd8e3, #e5e7eb);
  width: 100%;
  height: 100%;
}

.feature-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__tag {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f4bdd;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.card__excerpt {
  color: var(--subtext);
  margin: 0;
  line-height: 1.5;
}

.card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--subtext);
  font-size: 0.95rem;
}

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

.post-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.post-card.no-thumb {
  display: grid;
  grid-template-columns: 1fr;
}

.post-card__media {
  min-height: 160px;
}

.post-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.magazine__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel.panel--soft {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.1);
  padding: 18px;
}

.panel.panel--soft h3 {
  margin: 0 0 12px;
}

.aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #111827;
}

.aside-count {
  color: #6b7280;
}

.aside-name {
  color: #111827;
  font-weight: 600;
  font-size: 1.05rem;
}

.aside-list--compact .aside-title {
  font-weight: 700;
}

.aside-list--compact .aside-date {
  display: block;
  color: #6b7280;
  font-size: 0.95rem;
}

.categories-panel {
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.aside-details {
  border: none;
  border-radius: 0;
  padding: 4px 0;
  background: transparent;
}

.aside-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 8px;
  padding: 4px 0;
}

.aside-summary::-webkit-details-marker {
  display: none;
}

.aside-details[open] {
  box-shadow: none;
}

.aside-details > ul {
  margin-top: 6px;
  padding-left: 18px;
  border-left: 2px solid rgba(17, 17, 17, 0.08);
}

.aside-list--children {
  gap: 6px;
}

.chevron {
  color: #6b7280;
  font-weight: 700;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.aside-details[open] .chevron {
  transform: rotate(90deg);
}

.aside-summary a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.aside-list--children a {
  font-weight: 500;
  color: #374151;
  font-size: 0.98rem;
}

.aside-posts {
  margin: 6px 0 0;
  padding-left: 0;
  display: grid;
  gap: 4px;
  list-style: none;
}

.aside-posts a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #6b7280;
  text-decoration: none;
}

.aside-posts a:hover {
  text-decoration: underline;
}

.search-form {
  position: relative;
}

.search-form .search-field {
  width: 100%;
  padding: 12px 44px 12px 14px;
  border-radius: 14px;
  border: 1px solid #dfe3e8;
  background: #f9fafb;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-form .search-field:focus {
  outline: none;
  border-color: #1f4bdd;
  box-shadow: 0 0 0 3px rgba(31, 75, 221, 0.12);
  background: #fff;
}

.search-form .search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #4b5563;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f1f2f4;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tag-pill:hover {
  background: #e5e7eb;
  text-decoration: none;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.post-card__body,
.feature-card__body,
.post-card__media,
.feature-card__media {
  position: relative;
  z-index: 2;
}

.site-footer {
  margin-top: 0;
  padding-top: 0;
}

.site-footer--dark {
  background: #0c1424;
  color: #d1d5db;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.footer-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
}

.footer-cta-copy {
  max-width: 520px;
  color: #e5e7eb;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #e5e7eb;
}

.footer-desc {
  margin: 0;
  color: #cbd5e1;
}

.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #0c1424;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  border: 1px solid rgba(12, 20, 36, 0.16);
}

.footer-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 1.05rem;
  line-height: 1;
}

.footer-play-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-play-overline {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  color: #0c1424;
}

.footer-play-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0c1424;
}

.footer-play:hover {
  background: #f3f4f6;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #0c1424;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  border: 1px solid rgba(12, 20, 36, 0.16);
}

.app-store-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.app-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-store-overline {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.app-store-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  background: #f3f4f6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  color: #9ca3af;
  font-size: 0.98rem;
}

.footer-meta {
  opacity: 0.9;
}

.single {
  max-width: 1100px;
  margin: 0 auto 0;
  padding: 0 22px;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.single-aside {
  position: sticky;
  top: 150px;
}

.single-hero {
  padding: 26px 0 12px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.single-hero__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.back-link:hover {
  text-decoration: underline;
}

.single-hero__pills {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.single-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eceff3;
  color: #4b5563;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.single-pill--primary {
  background: rgba(59, 130, 246, 0.18);
  color: #2563eb;
}

.single-hero__title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 12px 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #0b0b0b;
}

.single-hero__lede {
  font-size: 1.1rem;
  color: #4b5563;
  margin: 0 0 18px;
  line-height: 1.6;
  max-width: 900px;
}

.single-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.single-hero__meta-items {
  display: inline-flex;
  gap: 12px;
  color: #4b5563;
  font-weight: 600;
}

.single-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-hero__actions {
  display: inline-flex;
  gap: 10px;
}

.pill-btn {
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill-btn:hover {
  background: #e5e7eb;
}

.single__image {
  margin: 22px 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.single__image img {
  display: block;
  width: 100%;
  height: auto;
}

.single__body {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  margin-top: 12px;
}

.single__body p {
  margin: 0 0 16px;
}

.single-related {
  margin-top: 24px;
}

.related-panel {
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.06);
  margin-top: 12px;
}

.related-panel .aside-title {
  font-weight: 500;
  line-height: 1.4;
}

.search-hero {
  max-width: 1100px;
  margin: 0 auto 20px;
  padding: 0 22px;
}

.search-title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin: 6px 0 6px;
}

.search-subtitle {
  color: #4b5563;
  margin: 0 0 8px;
  font-weight: 600;
}

.search-clear {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.search-clear:hover {
  text-decoration: underline;
}

.search-list {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 22px;
  display: grid;
  gap: 16px;
}

.search-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.1);
  overflow: hidden;
  position: relative;
}

.search-card.no-thumb {
  grid-template-columns: 1fr;
}

.search-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}

.search-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-card__media {
  position: relative;
  min-height: 180px;
}

.search-card__placeholder {
  background: linear-gradient(135deg, #d1d5db, #e5e7eb);
  width: 100%;
  height: 100%;
}

.search-card__body {
  padding: 18px 18px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.search-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.search-card__date {
  color: #4b5563;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
}

.search-card__title {
  margin: 0;
  font-size: 1.4rem;
}

.search-card__title a {
  color: #0f172a;
  text-decoration: none;
}

.search-card__title a:hover {
  text-decoration: underline;
}

.search-card__excerpt {
  margin: 0;
  color: #4b5563;
}

.search-card__meta {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.96rem;
}

.search-card__cta {
  margin-top: 6px;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.search-card__cta:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .search-card {
    grid-template-columns: 1fr;
  }
  .search-card__media {
    min-height: 160px;
  }
  .search-card__body {
    padding: 14px 14px 16px;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .menu {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .nav.nav--top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
  }
  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .hero-banner {
    padding: 38px 18px 42px;
  }
  .hero-banner__title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }
  .magazine {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 18px;
  }
  .magazine__aside {
    flex-direction: column;
  }
  .feature-card {
    grid-template-columns: 1fr;
  }
  .feature-card__media {
    min-height: 200px;
  }
  .single {
    padding: 0 18px;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-aside {
    position: static;
  }
}
