:root {
  --brand-magenta: #c325b2;
  --brand-plum: #4b164c;
  --brand-aqua: #e6f8fb;
  --brand-green: #2ccf63;
  --surface-lavender: #f6edf7;
  --ink: #222222;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(90deg, var(--brand-magenta) 0 18%, var(--brand-aqua) 18% 100%);
  font-family: Lato, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--brand-magenta);
  font-family: Kalam, Lato, Arial, sans-serif;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 80;
  transform: translateY(-150%);
  background: var(--panel);
  color: var(--brand-plum);
  border: 2px solid var(--brand-magenta);
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container-xl {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.brand-strip {
  min-height: 26px;
  background: var(--brand-magenta);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid rgba(75, 22, 76, .12);
  box-shadow: 0 10px 28px rgba(75, 22, 76, .08);
}

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-plum);
  font-weight: 700;
  min-width: 0;
}

.site-brand span:last-child {
  overflow-wrap: anywhere;
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--brand-aqua);
  border-radius: 999px;
  background: var(--panel);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}

.primary-nav > li {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 8px;
  color: var(--brand-plum);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brand-magenta);
  border-bottom-color: var(--brand-green);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 250px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid rgba(195, 37, 178, .18);
  box-shadow: 0 18px 42px rgba(75, 22, 76, .16);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: grid;
  gap: 3px;
}

.dropdown-menu a {
  display: block;
  padding: 9px 10px;
  color: var(--brand-plum);
}

.dropdown-menu a:hover {
  color: var(--brand-magenta);
  background: var(--surface-lavender);
}

.site-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 46px;
  min-width: 0;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: stretch;
  min-height: 360px;
  margin-bottom: 28px;
  padding: 28px;
  background: var(--brand-aqua);
  border: 1px solid rgba(195, 37, 178, .18);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(75, 22, 76, .10);
}

.layout-grid {
  display: grid;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--brand-magenta);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--brand-plum);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions a,
.read-more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  color: #fff;
  background: var(--brand-magenta);
  border: 1px solid var(--brand-magenta);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions a:nth-child(2) {
  color: var(--brand-plum);
  background: var(--panel);
}

.hero-media {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 14px;
  align-items: end;
}

.hero-media img:first-child {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(75, 22, 76, .16);
}

.hero-media img:last-child {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border: 5px solid var(--panel);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(75, 22, 76, .16);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
}

.content-card,
.content-article,
.category-grid,
.category-header {
  background: var(--surface-lavender);
  border: 1px solid var(--brand-green);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 18px 44px rgba(75, 22, 76, .08);
}

.right-rail {
  align-self: start;
  position: sticky;
  top: 126px;
  padding: 22px;
  color: var(--brand-plum);
  background: var(--surface-lavender);
  border: 1px solid rgba(195, 37, 178, .18);
  border-radius: 8px;
}

.right-rail ul {
  display: grid;
  gap: 10px;
}

.right-rail a {
  display: block;
  padding: 9px 10px;
  background: var(--panel);
  border-left: 4px solid var(--brand-green);
  border-radius: 6px;
  font-size: 14px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--brand-plum);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(75, 22, 76, .45);
}

.site-prose {
  font-size: 17px;
  line-height: 1.75;
}

.site-prose p,
.site-prose ul,
.site-prose ol,
.site-prose figure,
.site-prose blockquote,
.site-prose table,
.link-card {
  margin: 0 0 1.35rem;
}

.site-prose h1,
.site-prose h2,
.site-prose h3 {
  margin: 2rem 0 1rem;
  line-height: 1.18;
}

.site-prose h1:first-child,
.site-prose h2:first-child,
.site-prose h3:first-child {
  margin-top: 0;
}

.site-prose a,
.site-block--paragraph a,
.category-grid a {
  color: var(--brand-magenta);
  text-decoration: underline;
  text-decoration-color: rgba(195, 37, 178, .35);
  text-underline-offset: 3px;
}

.site-prose a:hover,
.site-block--paragraph a:hover,
.category-grid a:hover {
  color: var(--brand-plum);
  text-decoration-color: var(--brand-green);
}

.content-list {
  padding-left: 1.4rem;
  list-style: disc;
}

.content-list.ordered {
  list-style: decimal;
}

.content-list li::marker {
  color: var(--brand-green);
}

.site-figure {
  display: inline-block;
  max-width: min(100%, 520px);
  padding: 10px;
  background: var(--brand-aqua);
  border: 1px solid rgba(44, 207, 99, .35);
  border-radius: 8px;
}

.site-figure img {
  display: block;
  border-radius: 6px;
}

.site-figure figcaption {
  margin-top: 8px;
  color: var(--brand-plum);
  font-size: 13px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.gallery-grid figure {
  margin: 0;
  padding: 8px;
  background: var(--brand-aqua);
  border-radius: 8px;
}

.link-card,
.category-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(195, 37, 178, .14);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(75, 22, 76, .06);
}

.link-card img,
.category-card img {
  width: 110px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
}

.link-card h3,
.category-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(195, 37, 178, .18);
  border-radius: 8px;
}

.table-wrap table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

.table-wrap th,
.table-wrap td {
  padding: 12px;
  border-bottom: 1px solid rgba(195, 37, 178, .12);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.embed-frame {
  overflow: hidden;
  border-radius: 8px;
}

.embed-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

blockquote {
  padding: 18px 22px;
  color: var(--brand-plum);
  background: var(--surface-lavender);
  border-left: 5px solid var(--brand-magenta);
  border-radius: 8px;
}

pre {
  overflow-x: auto;
  padding: 16px;
  color: #fff;
  background: var(--brand-plum);
  border-radius: 8px;
}

.article-header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--brand-aqua);
}

.article-header h1,
.category-header h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
}

.article-dates,
.lead {
  color: var(--brand-plum);
}

.main-image {
  float: right;
  width: min(33%, 280px);
  margin: 0 0 18px 24px;
  border-radius: 8px;
}

.toc {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--brand-aqua);
  border-radius: 8px;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-header {
  margin-bottom: 24px;
}

.category-intro {
  margin-bottom: 28px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.category-card {
  grid-template-columns: 1fr;
}

.category-card img {
  width: 100%;
  height: 170px;
}

.category-card--horizontal .category-card {
  grid-template-columns: 160px minmax(0, 1fr);
}

.category-card--minimal .category-card {
  border-left: 4px solid var(--brand-green);
  box-shadow: none;
}

.site-footer {
  background: var(--brand-magenta);
  color: #fff;
  padding: 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.footer-grid a:hover {
  color: var(--brand-aqua);
  text-decoration: underline;
}

@media (max-width: 980px) {
  body {
    background: var(--brand-aqua);
  }

  .site-nav,
  .primary-nav,
  .content-layout,
  .page-hero,
  .footer-grid,
  .category-grid,
  .category-grid--2 {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: grid;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
  }

  .content-layout {
    display: grid;
  }

  .right-rail {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-main,
  .container-xl {
    width: min(100% - 20px, 1180px);
  }

  .page-hero,
  .content-card,
  .content-article,
  .category-grid,
  .category-header {
    padding: 20px;
  }

  .hero-media,
  .link-card,
  .category-card,
  .category-card--horizontal .category-card {
    grid-template-columns: 1fr;
  }

  .hero-media img:last-child {
    display: none;
  }

  .main-image {
    float: none;
    width: 100%;
    margin: 0 0 18px;
  }
}
