:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #f7f7ff;
  --text: #14221f;
  --muted: #5f6e68;
  --line: rgba(20, 34, 31, 0.12);
  --accent: #5857ff;
  --accent-strong: #4442eb;
  --accent-soft: rgba(88, 87, 255, 0.12);
  --shadow: 0 18px 50px rgba(33, 36, 120, 0.14);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

audio {
  width: 100%;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 30px rgba(20, 34, 31, 0.05);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at top left, rgba(88, 87, 255, 0.08), transparent 32%);
  opacity: 0.95;
}

.site-header__inner,
.site-footer__inner,
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  padding: 1rem 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.site-branding a {
  color: var(--text);
}

.site-branding__text {
  min-width: 0;
}

.site-title,
.footer-title,
h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

.site-title,
.footer-title {
  font-weight: 800;
}

.site-title {
  display: block;
  font-size: 1.05rem;
}

.site-tagline {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu,
.site-navigation ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-navigation > div,
.site-navigation > ul {
  display: flex;
}

.site-navigation > div {
  align-items: center;
}

.site-navigation li {
  list-style: none;
}

.site-navigation .menu,
.site-navigation > ul,
.site-navigation > div > ul {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.menu-item a,
.site-navigation li a,
.footer-links a,
.post-card__cta {
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.menu-item a:hover,
.site-navigation li a:hover,
.footer-links a:hover,
.post-card__link:hover .post-card__cta {
  color: var(--accent);
}

.menu-item a,
.site-navigation li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
}

.menu-item.current-menu-item a,
.menu-item.current_page_item a,
.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a,
.site-navigation li a:hover {
  background: var(--surface);
  border-color: rgba(88, 87, 255, 0.18);
  color: var(--accent-strong);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  font: inherit;
  color: var(--text);
  justify-self: end;
}

.nav-toggle__icon {
  display: inline-grid;
  gap: 4px;
}

.nav-toggle__icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-navigation {
  display: none;
}

.site-navigation.is-open {
  display: block;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 1rem;
  right: 1rem;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  border: 1px solid var(--accent-soft);
}

.site-navigation.is-open .menu,
.site-navigation.is-open > ul,
.site-navigation.is-open > div > ul {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-navigation.is-open .menu-item a,
.site-navigation.is-open > ul li a,
.site-navigation.is-open > div > ul li a {
  width: 100%;
  justify-content: space-between;
  border-radius: 16px;
}

.site-header__cta {
  display: none;
}

.site-header__button {
  min-height: 48px;
  padding-inline: 1.2rem;
}

.hero,
.section,
.content-grid,
.single-entry {
  padding: 2rem 0 4rem;
}

.hero__grid,
.post-list {
  display: grid;
  gap: 1.25rem;
}

.post-card {
  overflow: hidden;
  padding: 0;
}

.hero__content {
  padding-top: 1rem;
}

.hero__panel {
  position: relative;
  overflow: hidden;
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 87, 255, 0.22), transparent 70%);
}

.eyebrow,
.post-card__meta,
.audio-card__meta {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
}

h1,
h2 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 0.95;
  margin: 0.2rem 0 1rem;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
}

.hero__text,
.page-heading p,
.footer-copy,
.cta-band p {
  color: var(--muted);
  max-width: 62ch;
}

.archive-description,
.archive-description > * {
  color: var(--muted);
}

.archive-description--wide,
.archive-description--wide > * {
  max-width: none;
}

.single-entry {
  width: min(calc(100% - 2rem), 980px);
}

.entry-content {
  color: var(--text);
  max-width: 78ch;
}

.entry-content .audio-card {
  width: 100%;
  max-width: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.95rem 1.4rem;
  background: var(--accent);
  color: #f5fffc;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.button:hover {
  background: var(--accent-strong);
}

.button--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-soft);
  box-shadow: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero__panel,
.audio-card,
.post-card,
.cta-band__inner,
.hero-stat {
  background: var(--surface);
  border: 1px solid rgba(88, 87, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__panel,
.audio-card,
.hero-stat,
.post-card,
.cta-band__inner {
  padding: 1.4rem;
}

.audio-card__title,
.post-card__title {
  margin: 0.4rem 0 1rem;
  font-size: 1.4rem;
  line-height: 1.15;
}

.audio-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  width: min(100%, 540px);
}

.audio-card__button {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background:
    radial-gradient(circle at 30% 30%, #8d8bff, var(--accent));
  color: #f5fffc;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.audio-card__time {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.audio-card__player {
  display: none;
}

.post-card__excerpt {
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.post-card__link {
  display: block;
}

.post-card__link:hover {
  transform: translateY(-2px);
}

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-strong);
}

.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-card__content {
  padding: 1.4rem;
}

.category .post-card__title,
.category .post-card__link,
.category .post-card__title a {
  color: var(--text);
}

.post-card__link:hover .post-card__image {
  transform: scale(1.03);
}

.entry-featured-image {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(88, 87, 255, 0.08);
  box-shadow: var(--shadow);
}

.entry-featured-image img {
  width: 100%;
  display: block;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.6rem 0 1.2rem;
  flex-wrap: wrap;
}

.post-share__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-share__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(20, 34, 31, 0.12);
  background: transparent;
  color: var(--muted);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.post-share__link svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

.post-share__link-label {
  display: none;
}

.post-share__link:hover {
  transform: translateY(-1px);
  background: var(--surface-strong);
  border-color: rgba(88, 87, 255, 0.24);
  color: var(--accent-strong);
}

.homepage-story__grid,
.feature-strip__grid {
  display: grid;
  gap: 1.25rem;
}

.homepage-story__content,
.feature-tile {
  background: var(--surface);
  border: 1px solid rgba(88, 87, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.homepage-story__content {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hero-panel-content {
  display: grid;
  gap: 1rem;
}

.hero-panel-content__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.hero-panel-content__text {
  margin: 0;
  color: var(--muted);
}

.hero-panel-content__button {
  justify-self: start;
}

.feature-tile h3 {
  margin: 0.3rem 0 0.85rem;
  font-size: 1.35rem;
}

.feature-tile p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.entry-content > * + * {
  margin-top: 1.25rem;
}

.entry-content p,
.entry-content li {
  color: var(--text);
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
}

.affiliate-notice {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 34, 31, 0.12);
  color: var(--muted);
}

.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 78ch;
}

.comments-area__title,
.comment-reply-title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0 0 1.25rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.comment-list li {
  list-style: none;
}

.comment-list .children {
  list-style: none;
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid rgba(88, 87, 255, 0.12);
}

.comment-body {
  background: var(--surface);
  border: 1px solid rgba(88, 87, 255, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.comment-author {
  color: var(--text);
  font-weight: 700;
}

.comment-author img {
  border-radius: 999px;
}

.comment-metadata a,
.comment-reply-link {
  color: var(--accent);
  font-size: 0.92rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-respond {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(88, 87, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f9f9ff 100%);
  border: 1px solid rgba(88, 87, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.comment-respond::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), #8d8bff);
}

.comment-respond > * {
  position: relative;
}

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

.comment-notes,
.logged-in-as,
.comment-awaiting-moderation {
  color: var(--muted);
  font-size: 0.94rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(88, 87, 255, 0.16);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.comment-form textarea {
  min-height: 180px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(88, 87, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(88, 87, 255, 0.08);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.comment-form-cookies-consent input {
  margin-top: 0.2rem;
}

.form-submit {
  margin: 0;
}

.comment-form__submit {
  min-height: 48px;
}

.cta-band__inner .button {
  color: #f5fffc;
  min-height: 48px;
  padding-inline: 1.2rem;
  white-space: nowrap;
}

.cta-band {
  padding: 1rem 0 0;
}

.cta-band__inner {
  flex-direction: column;
  align-items: flex-start;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.site-footer__inner {
  align-items: flex-start;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.footer-links ul,
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.footer-menu li {
  list-style: none;
}

.footer-menu .menu-item a,
.footer-menu li a {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.footer-menu .menu-item a:hover,
.footer-menu li a:hover,
.footer-menu .current-menu-item > a,
.footer-menu .current_page_item > a {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .site-navigation {
    display: block;
    position: static;
    justify-self: center;
  }

  .site-header__inner {
    gap: 1.25rem;
    grid-template-columns: minmax(220px, 1fr) auto auto;
  }

  .site-navigation.is-open {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-navigation .menu,
  .site-navigation > ul,
  .site-navigation > div > ul {
    justify-content: center;
  }

  .site-header__cta {
    display: block;
    justify-self: end;
  }

  .hero,
  .section,
  .content-grid,
  .single-entry {
    padding: 3rem 0 5rem;
  }

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

  .comments-area {
    max-width: 86ch;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
    align-items: center;
  }

  .homepage-story__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

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

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

  .page-heading--wide,
  .archive-description--wide,
  .archive-description--wide > * {
    max-width: none;
  }

  .audio-card__button {
    width: 84px;
    height: 84px;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .cta-band__inner {
    flex-direction: row;
    align-items: center;
  }
}
