:root {
  --ed-cream: #fff7ef;
  --ed-cream-strong: #fff1df;
  --ed-paper: rgba(255, 252, 247, 0.94);
  --ed-paper-strong: #fffaf4;
  --ed-cobalt: #244c8f;
  --ed-cobalt-deep: #1b396c;
  --ed-coral: #f05b78;
  --ed-coral-soft: #ffd6df;
  --ed-text: #253047;
  --ed-muted: #5d697f;
  --ed-line: rgba(36, 76, 143, 0.14);
  --ed-line-strong: rgba(36, 76, 143, 0.22);
  --ed-sky: #bfd9f3;
  --ed-shadow: 0 24px 60px rgba(36, 76, 143, 0.12);
  --ed-shadow-soft: 0 16px 34px rgba(36, 76, 143, 0.09);
  --ed-radius: 1.75rem;
  --ed-radius-small: 1rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ed-cream);
}

body.ed-body {
  margin: 0;
  min-width: 320px;
  color: var(--ed-text);
  font-family: "Manrope", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240, 91, 120, 0.12), transparent 22rem),
    radial-gradient(circle at top right, rgba(191, 217, 243, 0.45), transparent 24rem),
    linear-gradient(180deg, #fffaf3 0%, var(--ed-cream) 38%, #fff8f0 100%);
}

.ed-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(240, 91, 120, 0.12), transparent 11rem),
    radial-gradient(circle at 88% 10%, rgba(36, 76, 143, 0.12), transparent 14rem),
    radial-gradient(circle at 78% 74%, rgba(191, 217, 243, 0.24), transparent 16rem);
  z-index: -1;
}

a {
  color: var(--ed-cobalt);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

a:hover {
  color: var(--ed-coral);
}

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

figure,
blockquote,
pre,
ul,
ol,
p {
  margin: 0;
}

.grid-container {
  max-width: 75rem;
}

.ed-main {
  padding-bottom: 5rem;
}

.ed-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 247, 239, 0.9);
  border-bottom: 1px solid rgba(36, 76, 143, 0.08);
}

.ed-header__band {
  background: var(--ed-cobalt);
}

.ed-header__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.ed-header__tag,
.ed-header__skip {
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ed-header__skip:hover {
  color: var(--ed-coral-soft);
}

.ed-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0 1.1rem;
}

.ed-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 12rem;
}

.ed-brand__kicker,
.ed-footer__meta {
  color: rgba(37, 48, 71, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ed-brand__wordmark,
.ed-footer__brand {
  color: var(--ed-cobalt);
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ed-nav--desktop {
  display: block;
}

.ed-nav--desktop ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-nav__item > a,
.ed-nav__group summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--ed-cobalt);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ed-nav__item > a:hover,
.ed-nav__group summary:hover {
  background: rgba(36, 76, 143, 0.08);
  transform: translateY(-1px);
}

.ed-nav__group {
  position: relative;
}

.ed-nav__group summary {
  cursor: pointer;
  list-style: none;
}

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

.ed-nav__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  display: grid;
  gap: 0.3rem;
  min-width: 14rem;
  padding: 0.85rem;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid var(--ed-line);
  border-radius: 1rem;
  box-shadow: var(--ed-shadow-soft);
}

.ed-nav__panel-link,
.ed-nav__drawer-link {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 0.85rem;
  color: var(--ed-text);
  font-weight: 700;
}

.ed-nav__panel-link:hover,
.ed-nav__drawer-link:hover {
  background: rgba(36, 76, 143, 0.08);
}

.ed-nav__panel-link--parent,
.ed-nav__drawer-link--parent {
  color: var(--ed-cobalt);
}

.ed-nav--mobile {
  display: none;
}

.ed-nav--mobile summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ed-line-strong);
  border-radius: 999px;
  color: var(--ed-cobalt);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  list-style: none;
}

.ed-nav--mobile summary::-webkit-details-marker {
  display: none;
}

.ed-nav__drawer {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
  padding: 1rem;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid var(--ed-line);
  border-radius: 1rem;
  box-shadow: var(--ed-shadow-soft);
}

.ed-nav__drawer-section + .ed-nav__drawer-section {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(36, 76, 143, 0.08);
}

.ed-nav__drawer-children {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.35rem;
  padding-left: 0.85rem;
}

.ed-breadcrumbs {
  padding-top: 1.2rem;
}

.ed-breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
}

.ed-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ed-muted);
  font-size: 0.82rem;
}

.ed-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(37, 48, 71, 0.35);
}

.ed-home-hero,
.ed-page-hero {
  padding: 2.4rem 0 1.3rem;
}

.ed-home-hero__eyebrow,
.ed-page-hero__eyebrow,
.ed-section__eyebrow,
.ed-toc__title,
.ed-sidebar__title,
.ed-footer__title {
  margin-bottom: 0.8rem;
  color: var(--ed-cobalt);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ed-home-hero__title,
.ed-page-hero__title {
  margin: 0;
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ed-text);
}

.ed-home-hero__summary,
.ed-page-hero__summary {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--ed-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.ed-page-hero__meta,
.ed-article-meta {
  margin-top: 1rem;
  color: var(--ed-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.ed-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ed-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.ed-button,
.button.ed-button {
  margin: 0;
  padding: 0.95rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--ed-coral);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(240, 91, 120, 0.24);
}

.button.ed-button:hover,
.ed-button:hover {
  background: #e34d6d;
  color: white;
}

.button.ed-button.ed-button--ghost,
.ed-button--ghost {
  background: transparent;
  border: 1px solid var(--ed-line-strong);
  color: var(--ed-cobalt);
  box-shadow: none;
}

.button.ed-button.ed-button--ghost:hover,
.ed-button--ghost:hover {
  background: rgba(36, 76, 143, 0.06);
  color: var(--ed-coral);
}

.ed-home-hero__art,
.ed-page-hero__media {
  position: relative;
  padding: 1rem;
  border-radius: calc(var(--ed-radius) + 0.25rem);
  background:
    linear-gradient(180deg, rgba(191, 217, 243, 0.7), rgba(255, 252, 247, 0.92)),
    var(--ed-paper);
  box-shadow: var(--ed-shadow);
}

.ed-home-hero__art-main,
.ed-page-hero__media img {
  overflow: hidden;
  border-radius: calc(var(--ed-radius) - 0.1rem);
}

.ed-home-hero__art-main img,
.ed-page-hero__media img {
  width: 100%;
  object-fit: cover;
}

.ed-home-hero__art-card {
  position: absolute;
  right: -0.4rem;
  bottom: 1rem;
  width: min(15rem, 68%);
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.15rem;
  background: rgba(255, 252, 247, 0.95);
  box-shadow: var(--ed-shadow-soft);
}

.ed-home-hero__art-card img {
  border-radius: 0.95rem;
}

.ed-home-hero__art-card span {
  display: block;
  margin-top: 0.7rem;
  color: var(--ed-text);
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-weight: 700;
}

.ed-section {
  padding: 1rem 0 0;
}

.ed-paper,
.ed-card,
.ed-spotlight-card,
.ed-link-card,
.ed-error .ed-paper {
  background: var(--ed-paper);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--ed-radius);
  box-shadow: var(--ed-shadow-soft);
}

.ed-paper {
  padding: clamp(1.2rem, 2.6vw, 2rem);
  margin-bottom: 1.2rem;
}

.ed-paper--article {
  padding: clamp(1.35rem, 2.8vw, 2.3rem);
}

.ed-paper--links {
  margin-top: 1.2rem;
}

.ed-paper--sidebar {
  padding: 1.2rem;
}

.ed-feature-grid {
  margin-bottom: 1.2rem;
}

.ed-spotlight-card {
  height: 100%;
  padding: 1rem;
}

.ed-spotlight-card img {
  width: 100%;
  border-radius: 1.2rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ed-spotlight-card h2,
.ed-card__title,
.ed-card h2,
.ed-teaser__title,
.ed-heading {
  color: var(--ed-text);
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  letter-spacing: -0.03em;
}

.ed-spotlight-card h2,
.ed-card__title {
  margin-top: 0.85rem;
  font-size: 1.55rem;
}

.ed-spotlight-card p,
.ed-card p,
.ed-sidebar__links a,
.ed-link-card__label {
  color: var(--ed-muted);
  line-height: 1.65;
}

.ed-sidebar {
  display: grid;
  gap: 1rem;
}

.ed-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ed-sidebar__image {
  width: 4.8rem;
  height: 4.8rem;
  object-fit: cover;
  border-radius: 1.2rem;
  border: 1px solid rgba(36, 76, 143, 0.1);
}

.ed-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ed-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(191, 217, 243, 0.28);
  color: var(--ed-cobalt);
  font-size: 0.8rem;
  font-weight: 700;
}

.ed-chip:hover {
  background: rgba(240, 91, 120, 0.14);
}

.ed-sidebar__links {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
}

.ed-sidebar__links a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(191, 217, 243, 0.15);
  font-weight: 700;
}

.ed-sidebar__links a:hover {
  background: rgba(36, 76, 143, 0.08);
}

.ed-prose > * + *,
.ed-block + .ed-block,
.ed-paragraph + .ed-paragraph,
.ed-figure + .ed-paragraph,
.ed-paragraph + .ed-figure,
.ed-list + .ed-paragraph,
.ed-table-wrap + .ed-paragraph {
  margin-top: 1rem;
}

.ed-heading--1,
.ed-prose h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.ed-heading--2,
.ed-prose h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.ed-heading--3,
.ed-prose h3 {
  font-size: 1.2rem;
}

.ed-prose h1,
.ed-prose h2,
.ed-prose h3,
.ed-prose h4,
.ed-prose h5,
.ed-prose h6 {
  margin: 1.15rem 0 0;
  color: var(--ed-text);
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  line-height: 1.08;
}

.ed-paragraph,
.ed-prose p {
  color: var(--ed-text);
  font-size: 1rem;
  line-height: 1.78;
}

.ed-paragraph--short {
  color: var(--ed-cobalt);
  font-weight: 700;
}

.ed-figure {
  margin-top: 1.2rem;
}

.ed-figure img {
  width: 100%;
  border-radius: 1.2rem;
}

.ed-figure figcaption {
  margin-top: 0.65rem;
  color: var(--ed-muted);
  font-size: 0.86rem;
}

.ed-list,
.ed-prose ul,
.ed-prose ol {
  padding-left: 1.25rem;
  color: var(--ed-text);
  line-height: 1.75;
}

.ed-list li + li,
.ed-prose li + li {
  margin-top: 0.5rem;
}

.ed-table-wrap {
  margin-top: 1.1rem;
  overflow-x: auto;
}

.ed-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  overflow: hidden;
}

.ed-table th,
.ed-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(36, 76, 143, 0.08);
  text-align: left;
}

.ed-quote {
  margin-top: 1.2rem;
  padding: 1.2rem 1.35rem;
  border-left: 4px solid var(--ed-coral);
  border-radius: 1rem;
  background: rgba(240, 91, 120, 0.08);
}

.ed-code {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 1rem;
  overflow-x: auto;
  color: white;
  background: var(--ed-cobalt-deep);
}

.ed-separator {
  margin: 1.4rem 0;
  border: 0;
  border-top: 1px solid rgba(36, 76, 143, 0.14);
}

.ed-link-grid {
  margin-top: 0.4rem;
}

.ed-link-card {
  height: 100%;
}

.ed-link-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 100%;
  padding: 1rem 1.1rem;
}

.ed-link-card__label {
  color: var(--ed-text);
  font-weight: 700;
}

.ed-link-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(240, 91, 120, 0.12);
  color: var(--ed-coral);
  font-size: 1.2rem;
  font-weight: 800;
}

.ed-card-grid {
  display: grid;
  gap: 1rem;
}

.ed-card,
.ed-card--horizontal,
.ed-card--minimal {
  height: 100%;
  overflow: hidden;
}

.ed-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ed-card__body {
  padding: 1rem 1.1rem 1.2rem;
}

.ed-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.ed-card p {
  margin-top: 0.7rem;
}

.ed-card__link {
  display: inline-flex;
  margin-top: 0.95rem;
  color: var(--ed-coral);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ed-card--horizontal {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
}

.ed-card--horizontal img {
  height: 100%;
  aspect-ratio: auto;
}

.ed-card--minimal {
  border: 1px dashed rgba(36, 76, 143, 0.18);
  box-shadow: none;
}

.ed-category-head {
  margin-bottom: 1.3rem;
}

.ed-toc {
  margin-bottom: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(36, 76, 143, 0.1);
}

.ed-toc ul {
  list-style: none;
  padding: 0;
}

.ed-toc li + li {
  margin-top: 0.45rem;
}

.ed-toc a {
  color: var(--ed-text);
  font-weight: 700;
}

.ed-toc__child {
  padding-left: 0.8rem;
}

.ed-sticky {
  position: sticky;
  top: 7.8rem;
}

.ed-footer {
  padding: 2.2rem 0 2.8rem;
  background: linear-gradient(180deg, rgba(36, 76, 143, 0.96), rgba(27, 57, 108, 1));
  color: white;
}

.ed-footer a,
.ed-footer__title,
.ed-footer__brand,
.ed-footer__meta {
  color: white;
}

.ed-footer__brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ed-footer__art {
  margin-top: 1.15rem;
  width: 7rem;
}

.ed-footer__art img {
  border-radius: 1.3rem;
}

.ed-footer__list {
  list-style: none;
  padding: 0;
}

.ed-footer__list li + li {
  margin-top: 0.55rem;
}

.ed-footer__list a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.ed-footer__list a:hover {
  color: white;
}

.ed-error {
  padding: 2.2rem 0 3rem;
}

.ed-paper--error {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.ed-gallery {
  margin-top: 1.1rem;
}

.ed-gallery .cell {
  margin-bottom: 1rem;
}

@media (max-width: 63.9375em) {
  .ed-nav--desktop {
    display: none;
  }

  .ed-nav--mobile {
    display: block;
  }

  .ed-header__bar {
    align-items: flex-start;
  }

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

@media (max-width: 39.9375em) {
  .ed-header__utility,
  .ed-header__bar,
  .ed-action-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ed-home-hero,
  .ed-page-hero {
    padding-top: 1.8rem;
  }

  .ed-paper,
  .ed-paper--article {
    padding: 1.05rem;
  }

  .ed-home-hero__art-card {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }

  .ed-page-hero__media,
  .ed-home-hero__art {
    margin-top: 1rem;
  }
}
