:root {
  --ink: #291435;
  --muted: #685b70;
  --purple: #6513a5;
  --deep: #421066;
  --paper: #fff;
  --soft: #faf5fb;
  --line: #e9dfed;
  --pink: #f5d9ec;
  font-family: Onest,sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--purple);
}

a:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
  border-radius: 3px;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  padding: .8rem 1rem;
  background: var(--deep);
  color: #fff;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.blog-header,
.blog-footer,main {
  max-width: 1200px;
  margin: auto;
  padding-inline: clamp(1.25rem,5vw,4rem);
}

.blog-header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.blog-header img {
  object-fit: contain;
}

.blog-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.blog-header nav a {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.blog-header nav [aria-current] {
  text-decoration: underline;
}

.button {
  display: inline-block;
  padding: .8rem 1.25rem;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.5;
}

.button:hover {
  background: var(--deep);
  color: #fff;
}

.blog-intro {
  padding: 4.5rem 0 3.5rem;
  max-width: 790px;
}

.eyebrow,
.post-category {
  font-weight: 700;
  color: var(--purple);
  font-size: .8rem;
  letter-spacing: .025em;
}

.eyebrow {
  margin: 0 0 1.2rem;
}

h1,h2,h3 {
  font-family: 'Bricolage Grotesque',sans-serif;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem,5.8vw,4.75rem);
  margin: 0 0 1.5rem;
  font-weight: 700;
}

.blog-intro>p:last-child {
  font-size: 1.15rem;
  max-width: 580px;
  color: var(--muted);
}

.featured {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  background: var(--soft);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.featured-note {
  background: var(--deep);
  padding: 2.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}

.featured-note>span {
  font-size: .8rem;
  color: #edcdeb;
}

.featured-note p {
  font-family: 'Bricolage Grotesque',sans-serif;
  font-size: clamp(1.7rem,3vw,2.4rem);
  letter-spacing: -.03em;
  line-height: 1.2;
  max-width: 360px;
}

.post-card {
  padding: 1.7rem 0 2rem;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.post-card h3 {
  font-size: 1.45rem;
  margin: .6rem 0 1rem;
}

.post-card h2 {
  font-size: clamp(1.7rem,3vw,2.3rem);
  margin: .8rem 0 1rem;
}

.post-card h2 a,
.post-card h3 a {
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
  text-decoration: underline;
}

.post-card>p:not(.post-category) {
  color: var(--muted);
  font-size: .95rem;
}

.post-card--featured {
  padding: 2.5rem;
  border: 0;
}

.reading-time {
  font-size: .8rem;
  color: var(--muted);
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding-block: 1rem 2.5rem;
}

.category-nav a {
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .85rem;
  text-decoration: none;
}

.category-nav a:hover {
  border-color: var(--purple);
  background: var(--soft);
}

.post-group {
  padding: 1rem 0 3.5rem;
  scroll-margin-top: 2rem;
}

.group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.group-heading h2,
.related>h2 {
  font-size: clamp(1.6rem,3vw,2rem);
  margin: 0 0 1.5rem;
}

.group-heading>span {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
}

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

.blog-footer {
  margin-top: 3rem;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2rem;
  font-size: .85rem;
}

.blog-footer>a {
  font-weight: 800;
  text-decoration: none;
}

.blog-footer p {
  color: var(--muted);
  margin: 0;
}

.blog-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .8rem;
  color: var(--muted);
  margin: 2rem 0 2.5rem;
}

.article-header {
  max-width: 860px;
  margin-bottom: 3.5rem;
}

.article-header h1 {
  font-size: clamp(2.2rem,4.6vw,3.7rem);
  margin-block: 1rem 1.25rem;
}

.article-byline {
  font-size: .85rem;
  color: var(--muted);
}

.article-byline span {
  margin: 0 .6rem;
}

.article-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 76ch;
  margin-top: 2rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 3rem;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 2rem;
  font-size: .82rem;
  max-height: calc(100dvh - 4rem);
  overflow: auto;
}

.article-toc p {
  font-weight: 700;
  margin-top: 0;
}

.article-toc ol {
  padding-left: 1.2rem;
  color: var(--muted);
}

.article-toc li {
  margin-bottom: .8rem;
}

.article-toc a {
  text-decoration: none;
}

.article-toc a:hover {
  text-decoration: underline;
}

.article-body {
  max-width: 730px;
  min-width: 0;
}

.article-body section {
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}

.article-body h2 {
  font-size: clamp(1.5rem,3vw,2rem);
  margin: 0 0 1.3rem;
}

.article-body p {
  margin: 0 0 1.25rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
}

.article-body li {
  padding-left: .2rem;
  margin-bottom: .8rem;
}

.article-body a {
  color: var(--purple);
  overflow-wrap: anywhere;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1.3rem 1.5rem;
  background: var(--soft);
  border-radius: 8px;
  font-size: 1.02rem;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.section-content {
  overflow-x: auto;
  overflow-wrap: break-word;
}

.article-body table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: .88rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.article-body td,
.article-body th {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
  min-width: 145px;
}

.article-body th {
  background: var(--soft);
  font-weight: 700;
}

.article-sources {
  font-size: .85rem;
  color: var(--muted);
}

.article-cta {
  background: var(--soft);
  padding: 2rem;
  border-radius: 12px;
  margin: 3rem 0 1rem;
}

.article-cta .button {
  color: #fff;
}

.article-cta small {
  display: block;
  margin-top: .8rem;
  color: var(--muted);
  font-size: .78rem;
}

.related {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

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

.article-layout {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.article-toc {
  position: static;
  max-height: none;
  padding: 1.25rem;
  background: var(--soft);
  border-radius: 8px;
}

.article-toc ol {
  columns: 2;
  column-gap: 2rem;
}

.article-toc li {
  break-inside: avoid;
}

.article-body {
  max-width: none;
}


}

@media(max-width: 560px) {
  .blog-header {
  min-height: 88px;
  gap: .5rem;
}

.blog-header img {
  width: 100px;
  height: 58px;
  object-position: left center;
}

.blog-header nav {
  gap: .8rem;
}

.blog-header nav a {
  font-size: .75rem;
}

.blog-header nav>a:first-child {
  display: none;
}

.blog-header .button {
  padding: .65rem .85rem;
}

.blog-intro {
  padding: 2.5rem 0 2rem;
}

.blog-intro>p:last-child {
  font-size: 1rem;
}

.featured {
  grid-template-columns: 1fr;
}

.featured-note {
  min-height: 0;
  padding: 1.5rem;
}

.featured-note p {
  margin: .8rem 0 0;
  font-size: 1.7rem;
}

.post-card--featured {
  padding: 1.5rem;
}

.post-grid {
  grid-template-columns: 1fr;
}

.post-card h3 {
  font-size: 1.4rem;
}

.post-group {
  padding-bottom: 2rem;
}

.category-nav {
  gap: .5rem;
}

.category-nav a {
  padding: .45rem .8rem;
  font-size: .78rem;
}

.blog-footer {
  margin-top: 2rem;
}

.blog-footer nav {
  margin: 0;
}

.article-header {
  margin-bottom: 2rem;
}

.article-intro {
  font-size: 1.05rem;
}

.article-toc ol {
  columns: 1;
}

.article-body blockquote {
  padding: 1rem;
}

.article-cta {
  padding: 1.4rem;
}

.breadcrumbs {
  margin: 1.3rem 0 2rem;
}

.related {
  margin-top: 3rem;
}


}

@media(prefers-reduced-motion: reduce) {
  html {
  scroll-behavior: auto;
}


}



