/* Blog — editorial layout for /blog and /blog/<slug>.
   Inherits the studio palette from styles.css but sets its own measure,
   because long-form reading wants a much narrower column than the site grid. */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.14);
  --measure: 46rem;
  --content-width: 78rem;
  --page-padding: clamp(1rem, 3vw, 2.5rem);
}

.page-shell {
  min-height: 100vh;
  background: var(--bg);
  overflow-x: clip;
}

.current-home {
  position: relative;
}

.current-home .nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  margin-top: 0;
  padding: clamp(1.55rem, 2.3vw, 2rem) var(--page-padding) 1.2rem;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.055);
  overflow: visible;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.current-home .nav::before {
  display: none;
}

* {
  box-sizing: border-box;
}

.blog-body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page-bottom-blur {
  position: fixed;
  z-index: 40;
  bottom: 0;
  right: 0;
  left: 0;
  height: clamp(7rem, 16vh, 11rem);
  backdrop-filter: blur(22px) saturate(118%);
  -webkit-backdrop-filter: blur(22px) saturate(118%);
  mask-image: linear-gradient(
    to top,
    #000 0%,
    rgba(0, 0, 0, 0.92) 24%,
    rgba(0, 0, 0, 0.68) 44%,
    rgba(0, 0, 0, 0.38) 62%,
    rgba(0, 0, 0, 0.15) 80%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    rgba(0, 0, 0, 0.92) 24%,
    rgba(0, 0, 0, 0.68) 44%,
    rgba(0, 0, 0, 0.38) 62%,
    rgba(0, 0, 0, 0.15) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* ---------- nav ----------
   Ported from styles.css / nav-menu.css so the blog carries the same floating
   pill nav as the rest of the site. Keep in sync if the site nav changes. */

.nav {
  position: sticky;
  top: 0.85rem;
  z-index: 50;
  display: flex;
  width: min(calc(100% - 2rem), var(--content-width));
  align-items: center;
  justify-content: space-between;
  margin: 0.85rem auto 0;
  padding: 0.72rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  background: var(--nav-bg);
  overflow: hidden;
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  color: var(--nav-fg);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

.nav::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 48%),
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.08), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  content: "";
  pointer-events: none;
}

.nav-dark {
  --nav-bg: rgba(10, 10, 10, 0.54);
  --nav-fg: #ffffff;
  --nav-shadow: 0 1.1rem 3rem rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  --nav-mark-fill: #ffffff;
  --nav-mark-fill-alt: #000000;
  --nav-mark-stroke: rgba(255, 255, 255, 0.88);
  --nav-link-ring: rgba(255, 255, 255, 0.34);
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--nav-fg);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 1.2rem;
  height: 0.88rem;
  flex: 0 0 auto;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  top: 50%;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.brand-mark::before {
  left: 0;
  background: var(--nav-mark-fill);
  box-shadow: 0 0 0 1px var(--nav-link-ring);
}

.brand-mark::after {
  right: 0;
  border: 1.5px solid var(--nav-mark-stroke);
  background: var(--nav-mark-fill-alt);
  animation: logoCircleDrift 3200ms ease-in-out infinite;
}

@keyframes logoCircleDrift {
  0%,
  100% {
    transform: translate(0, -50%);
  }
  50% {
    transform: translate(0.16rem, -50%);
  }
}

.nav-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 1rem);
}

.nav-direct {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.2rem, 0.7vw, 0.6rem);
}

.nav-direct-link {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.85rem;
  border-radius: 999px;
  color: color-mix(in srgb, var(--nav-fg) 76%, transparent);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-direct-link:hover {
  color: var(--nav-fg);
  background: color-mix(in srgb, var(--nav-fg) 7%, transparent);
}

.nav-menu {
  position: relative;
  z-index: 2;
  display: inline-flex;
}

.nav-menu-trigger--label {
  gap: 0.28rem;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
}

.nav-menu-trigger--label.is-active,
.nav-menu.is-open .nav-menu-trigger--label {
  color: var(--nav-fg);
}

.nav-menu-chevron {
  flex: 0 0 auto;
  opacity: 0.72;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-menu--dropdown.is-open > .nav-menu-trigger .nav-menu-chevron,
.nav-menu-group.is-open > .nav-menu-group-trigger .nav-menu-chevron {
  transform: rotate(180deg);
  opacity: 0.92;
}

.nav-menu-trigger--icon {
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-menu-trigger--icon:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.nav-menu.is-open .nav-menu-trigger--icon {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.nav-menu-panel {
  position: fixed;
  z-index: 200;
  min-width: 13.5rem;
  width: max-content;
  max-width: min(19rem, calc(100vw - 2rem));
  padding: 0.4rem;
  border-radius: 1rem;
  background: rgba(14, 14, 14, 0.94);
  box-shadow: 0 1.1rem 2.4rem rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-menu-group-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
}

.nav-menu-group [hidden] {
  display: none;
}

.nav-menu-panel--dropdown {
  min-width: 10.5rem;
}

.nav-menu-panel[hidden] {
  display: none;
}

.nav-menu-item {
  display: block;
  padding: 0.72rem 0.9rem;
  border-radius: 0.72rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.nav-menu-item:hover,
.nav-menu-item.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-menu-item.nav-menu-group-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.86);
}

.nav-menu-item--nested {
  padding-left: 1.55rem;
  white-space: normal;
}

.home-workshop-bar {
  position: absolute;
  top: 5.9rem;
  right: 0;
  left: 0;
  z-index: 79;
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  padding: 0.8rem var(--page-padding);
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 10, 12, 0.56);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(26px) saturate(125%);
  -webkit-backdrop-filter: blur(26px) saturate(125%);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.home-workshop-bar-inner {
  display: flex;
  width: min(calc(100% - var(--page-padding) * 2), 92rem);
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-inline: auto;
}

.home-workshop-actions,
.workshop-countdown.is-home-banner {
  display: inline-flex;
  align-items: center;
}

.home-workshop-actions {
  gap: 1.25rem;
}

.workshop-countdown.is-home-banner {
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.76);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.workshop-countdown.is-home-banner .workshop-countdown-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 540;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workshop-countdown.is-home-banner .workshop-countdown-unit {
  display: inline-flex;
  min-width: 2.65rem;
  align-items: baseline;
  justify-content: center;
  gap: 0.08rem;
  padding: 0.42rem 0.52rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.055);
}

.workshop-countdown.is-home-banner .workshop-countdown-unit strong {
  font-size: 0.84rem;
  font-weight: 620;
  line-height: 1;
}

.workshop-countdown.is-home-banner .workshop-countdown-unit small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.58rem;
}

.home-workshop-date {
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}

.home-workshop-cta {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 620;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .home-workshop-bar {
    display: none;
  }
}

@media (max-width: 430px) {
  .workshop-countdown.is-home-banner .workshop-countdown-unit:last-child {
    display: none;
  }

  .home-workshop-cta {
    min-height: 2.35rem;
    padding-inline: 0.7rem;
    font-size: 0.7rem;
  }
}

.nav-menu-divider {
  height: 1px;
  margin: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- article ---------- */

.article {
  max-width: var(--measure);
  margin: 0 auto;
  padding: calc(5.75rem + 4.5rem + clamp(2rem, 5vw, 3rem)) var(--page-padding) 5rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  color: var(--faint);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.article__head h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.4vw, 2.65rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.article__standfirst {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.article__top-cta {
  margin: 1.4rem 0 0;
}

.article__top-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0b;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.article__top-cta a:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Anchor nav — understated, sits between the head and the body */
.article__toc {
  margin: 2.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.article__toc-label {
  margin: 0 0 0.75rem;
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.article__toc a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article__toc a:hover {
  color: var(--fg);
}

.article__body {
  margin-top: 2.75rem;
  font-size: 1.2rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.88);
}

.article__body > *:first-child {
  margin-top: 0;
}

.article__body p {
  margin: 0 0 1.25rem;
  text-wrap: pretty;
}

.article__body h2 {
  margin: 2.75rem 0 1rem;
  color: var(--fg);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  scroll-margin-top: 2rem;
}

.article__body h3 {
  margin: 2rem 0 0.8rem;
  color: var(--fg);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  scroll-margin-top: 2rem;
}

.article__body ul,
.article__body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.article__body li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.article__body a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s ease;
}

.article__body a:hover {
  text-decoration-color: var(--fg);
}

.article__body strong {
  color: var(--fg);
  font-weight: 500;
}

.article__body blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.article__body code {
  padding: 0.15em 0.4em;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9em;
}

.article__body pre {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  overflow-x: auto;
}

.article__body pre code {
  padding: 0;
  background: none;
}

.article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.article__body figure {
  margin: 0 0 2.5rem;
}

.article__body figure:first-child {
  margin-top: 0;
}

.article__body figcaption {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  line-height: 1.45;
}

.article__video {
  margin: 2rem 0 2.5rem;
}

.article__body > .article__video:first-child {
  margin-top: 0;
}

.article__video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #050506;
}

.article__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #050506;
}

.article__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article__video figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.article__body hr {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Workshop CTA card at article end */
.article__cta {
  margin-top: 4.5rem;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.article__cta p {
  margin: 0 0 1.25rem;
  color: var(--fg);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
}

.article__cta a,
.index__subscribe {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #000000;
  font-size: 0.9375rem;
  font-weight: 560;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.article__cta a:hover,
.index__subscribe:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ---------- index ---------- */

.index {
  max-width: 72rem;
  margin: 0 auto;
  padding: calc(5.75rem + 4.5rem + clamp(2rem, 5vw, 3.5rem)) var(--page-padding) 5rem;
}

.index__head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.index__head p {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.index__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 3rem 0 0;
}

.index__card {
  padding: 2rem;
  border-radius: 1rem;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s ease;
}

.index__card:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.index__card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.index__card h2 {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.index__card p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}

.index__link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.index__card:hover .index__link {
  color: #ffffff;
}

/* ---------- footer ---------- */

.blog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 2rem var(--page-padding) 3rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8125rem;
}

.blog-footer p {
  margin: 0;
}

.blog-footer a {
  color: var(--muted);
  text-decoration: none;
}

.blog-footer a:hover {
  color: var(--fg);
}

@media (max-width: 1024px) {
  .index__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --page-padding: 1.35rem;
  }

  .current-home .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    padding: calc(0.95rem + env(safe-area-inset-top)) 1rem 0.85rem;
  }

  .current-home .brand {
    flex: 0 0 auto;
    gap: 0.55rem;
    font-size: 0;
  }

  .current-home .brand-mark {
    width: 1rem;
    height: 0.75rem;
  }

  .current-home .brand-mark::before,
  .current-home .brand-mark::after {
    width: 0.66rem;
    height: 0.66rem;
  }

  .current-home .nav-actions {
    flex: 0 0 auto;
    min-width: 0;
  }

  .current-home .nav-direct {
    flex-shrink: 0;
  }

  .studio-home .nav-direct-link,
  .studio-home .nav-menu-trigger--label {
    font-size: 0.8125rem;
  }

  .nav-direct-link {
    min-height: 2.25rem;
    padding: 0.5rem 0.42rem;
    font-size: 0.72rem;
  }

  .nav-menu-trigger--icon {
    width: 2.2rem;
    height: 2.2rem;
    min-height: 2.2rem;
  }

  .nav-menu-panel {
    min-width: 12.5rem;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.3rem;
    border-radius: 0.85rem;
  }

  .nav-menu-item {
    padding: 0.62rem 0.72rem;
    border-radius: 0.62rem;
    font-size: 0.88rem;
    line-height: 1.15;
  }

  .index__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .index__card h2 {
    font-size: 1.25rem;
  }

  .article {
    max-width: none;
    width: 100%;
    padding: calc(3rem + 4rem) var(--page-padding) 5rem;
  }

  .article__meta {
    margin-bottom: 1.1rem;
    font-size: 0.72rem;
  }

  .article__head h1 {
    font-size: clamp(1.55rem, 7.8vw, 2.15rem);
    line-height: 1.12;
    letter-spacing: -0.022em;
  }

  .article__standfirst {
    margin-top: 1rem;
    font-size: clamp(0.88rem, 4vw, 0.98rem);
    line-height: 1.48;
  }

  .article__toc {
    margin-top: 2.1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.65rem;
  }

  .article__toc-label {
    font-size: 0.62rem;
  }

  .article__toc ol {
    gap: 0.4rem;
  }

  .article__toc a {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .article__body {
    margin-top: 2.2rem;
    font-size: clamp(1.08rem, 4.2vw, 1.2rem);
    line-height: 1.7;
  }

  .article__body p {
    margin-bottom: 1.15rem;
  }

  .article__body h2 {
    margin-top: 2.2rem;
    font-size: clamp(1.25rem, 5.4vw, 1.45rem);
  }

  .article__body h3 {
    font-size: clamp(1.05rem, 4.5vw, 1.15rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.index__subscribe {
  margin-top: 1.5rem;
}

.article__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.6rem 0 0;
  padding: 0.9rem 0.9rem 0.9rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.article__note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.article__note strong {
  color: #fff;
  font-weight: 600;
}

.article__note .article__note-link {
  flex: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.article__note .article__note-link:hover {
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 560px) {
  .article__note {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
  }
}

/* ---------- newsletter modal (mirrors src/v2/styles.css) ---------- */

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  place-items: center;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-modal.is-open .booking-modal-backdrop {
  opacity: 1;
}

.booking-modal-panel {
  position: relative;
  display: grid;
  width: min(62rem, 100%);
  height: min(48rem, calc(100vh - 2rem));
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    #080808;
  box-shadow:
    0 2rem 5rem rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(1.5rem) scale(0.965);
  transform-origin: center bottom;
  transition:
    opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-modal.is-open .booking-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .booking-modal-backdrop,
  .booking-modal-panel,
  .cohort-card::before {
    animation: none;
    transition-duration: 1ms;
  }
}

.booking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-modal-header p,
.booking-modal-header span {
  margin: 0;
}

.booking-modal-header p {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.booking-modal-header span {
  display: block;
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
}

.booking-modal-close {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.booking-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.newsletter-modal .booking-modal-panel {
  width: min(30rem, 100%);
  height: auto;
  max-height: calc(100vh - 2rem);
}

.newsletter-modal iframe {
  width: 100%;
  min-height: 20rem;
  border: 0;
  background: #ffffff;
}

.booking-modal[hidden] {
  display: none;
}

/* ---------- studio menu drawer ----------
   Copied from src/v2/nav-menu.css (lines 384-664) so static blog pages carry the
   same menu as the homepage. Keep the two in step. */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.nav-drawer.is-open {
  pointer-events: auto;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 320ms ease;
}

.nav-drawer.is-open .nav-drawer-backdrop {
  opacity: 1;
}

.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(40rem, 100vw);
  flex-direction: column;
  padding: 1.5rem clamp(1.5rem, 3vw, 2.5rem) 2rem;
  overflow-y: auto;
  background: #0b0b0b;
  box-shadow: -1.5rem 0 4rem rgba(0, 0, 0, 0.5), inset 1px 0 0 rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(100%);
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-drawer.is-open .nav-drawer-panel {
  transform: translateX(0);
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: clamp(1.5rem, 5vh, 3rem);
}

.nav-drawer-brand {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-drawer-close {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 200ms ease;
}

.nav-drawer-close:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.nav-drawer-body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: clamp(1.75rem, 4vh, 2.75rem);
}

.nav-drawer-label {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  opacity: 0;
  transform: translateX(1.5rem);
  transition:
    color 180ms ease,
    padding 240ms ease,
    opacity 400ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-drawer.is-open .nav-drawer-item {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0ms, 0ms, calc(120ms + var(--i, 0) * 40ms), calc(120ms + var(--i, 0) * 40ms);
}

.nav-drawer-arrow {
  flex: 0 0 auto;
  opacity: 0.35;
  transition: opacity 180ms ease, transform 240ms ease;
}

.nav-drawer-item:hover,
.nav-drawer-item.is-active {
  color: #ffffff;
}

.nav-drawer-item:hover {
  padding-left: 0.5rem;
}

.nav-drawer-item:hover .nav-drawer-arrow,
.nav-drawer-item.is-active .nav-drawer-arrow {
  opacity: 1;
}

.nav-drawer-item:hover .nav-drawer-arrow {
  transform: translateX(0.25rem);
}

.nav-drawer-item.is-active span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.nav-drawer-cta {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-drawer-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer-panel,
  .nav-drawer-item,
  .nav-drawer-backdrop {
    transition: none;
  }
}

/* Secondary groups: small, collapsed by default. */
.nav-drawer-sub {
  display: flex;
  flex-direction: column;
}

.nav-drawer-subtrigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 160ms ease;
}

.nav-drawer-subtrigger:hover,
.nav-drawer-subgroup.is-open .nav-drawer-subtrigger {
  color: #fff;
}

.nav-drawer-subtrigger svg {
  transition: transform 200ms ease;
}

.nav-drawer-subgroup.is-open .nav-drawer-subtrigger svg {
  transform: rotate(180deg);
}

.nav-drawer-subpanel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0 0.9rem 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 0.15rem;
  margin-bottom: 0.9rem;
}

.nav-drawer-subpanel[hidden] {
  display: none;
}

.nav-drawer-sublink {
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-drawer-sublink:hover,
.nav-drawer-sublink.is-active {
  color: #fff;
}

/* Top-level items that open in place (Studio, Talent pool, Tools): same type as links. */
.nav-drawer-toggle {
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-drawer-subgroup.is-open .nav-drawer-toggle {
  color: #fff;
}

.nav-drawer-subgroup.is-open .nav-drawer-chevron {
  opacity: 1;
  transform: rotate(180deg);
}

.nav-drawer-item.nav-drawer-toggle:hover .nav-drawer-chevron {
  transform: none;
}

.nav-drawer-subgroup.is-open .nav-drawer-item.nav-drawer-toggle:hover .nav-drawer-chevron {
  transform: rotate(180deg);
}

.nav-drawer-group .nav-drawer-subpanel {
  margin-top: 0.25rem;
  padding-bottom: 0.5rem;
}

.nav-drawer-group .nav-drawer-sublink {
  font-size: 1.05rem;
}

/* Each top-level item stays on one line. */
.nav-drawer-item > span {
  white-space: nowrap;
}

@media (max-width: 420px) {
  .nav-drawer-item {
    font-size: 1.55rem;
  }
}

/* More air between the big menu items. */
.nav-drawer-item {
  padding-top: clamp(0.9rem, 2.2vh, 1.4rem);
  padding-bottom: clamp(0.9rem, 2.2vh, 1.4rem);
}

.nav-drawer-cta {
  display: none;
}

/* ---- AB Academy logo: ABA tile with one copper full stop + two-line name ---- */
.brand:has(.aba-mark) { display: inline-flex; align-items: center; gap: 0.7rem; }
.aba-mark {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: 8px;
  background: #0c0d0f; color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: -0.06em; line-height: 1;
}
.aba-dot {
  display: inline-block; width: 2.5px; height: 2.5px; margin-left: 1px;
  transform: translateY(3.5px); border-radius: 50%; background: #c98659;
}
.ab-brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.ab-brand-name { font-size: 15.2px; font-weight: 500 !important; letter-spacing: -0.03em; color: #fff; }
.ab-brand-by { font-size: 11.5px; font-weight: 400 !important; color: rgba(255, 255, 255, 0.5); }

/* Course CTA under the blog index grid */
.index__cta { margin-top: 48px; }
