:root {
  --op-bg: #F4F1EA;
  --op-sage: #6E8F59;
  --op-plum: #7B5C8E;
  --op-ink: #2E2B2A;
  --op-mist: #D8D1C5;
  --op-surface: #FBF8F2;
  --op-surface-strong: #F7F2EA;
  --op-white: #FFFFFF;
  --op-shell: 1200px;
  --op-radius: 28px;
  --op-radius-sm: 18px;
  --op-shadow: 0 30px 60px rgba(46, 43, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body.op-body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--op-ink);
  background:
    radial-gradient(circle at top right, rgba(123, 92, 142, 0.10), transparent 30%),
    radial-gradient(circle at top left, rgba(110, 143, 89, 0.12), transparent 32%),
    var(--op-bg);
}

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

a:hover,
a:focus {
  color: var(--op-sage);
}

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

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

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

.op-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.op-skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--op-sage);
  color: var(--op-white);
}

.op-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid rgba(216, 209, 197, 0.9);
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(16px);
}

.op-header__utility {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(46, 43, 42, 0.72);
}

.op-header__utility span:last-child {
  max-width: 60ch;
  text-align: right;
}

.op-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0 1.25rem;
}

.op-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--op-ink);
}

.op-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--op-sage), #91a97f);
  color: var(--op-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

.op-brand strong,
.op-brand small {
  display: block;
}

.op-brand strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.op-brand small {
  color: rgba(46, 43, 42, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.op-primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.op-primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 143, 89, 0.22);
  background: rgba(255, 255, 255, 0.45);
  color: var(--op-ink);
  font-size: 14px;
  font-weight: 600;
}

.op-primary-nav a:hover,
.op-primary-nav a:focus {
  transform: translateY(-1px);
  border-color: rgba(123, 92, 142, 0.38);
  background: rgba(123, 92, 142, 0.08);
}

.op-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(46, 43, 42, 0.64);
  font-size: 13px;
}

.op-breadcrumbs a {
  color: inherit;
}

.op-eyebrow {
  margin-bottom: 1rem;
  color: var(--op-sage);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.op-hero {
  padding: 4rem 0 3rem;
}

.op-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 2.5rem;
  align-items: center;
}

.op-hero__copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 5vw, 52px);
  line-height: 0.98;
  font-weight: 600;
  color: var(--op-ink);
}

.op-hero__lead {
  max-width: 60ch;
  margin-top: 1.25rem;
  font-size: 1.08rem;
  color: rgba(46, 43, 42, 0.8);
}

.op-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.op-nav-pills a,
.op-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 209, 197, 0.95);
  background: rgba(255, 255, 255, 0.55);
  color: var(--op-ink);
  font-size: 14px;
  font-weight: 600;
}

.op-nav-pills a:hover,
.op-chip:hover {
  background: rgba(110, 143, 89, 0.12);
}

.op-hero__image,
.op-hero__ornament {
  position: relative;
  min-height: 420px;
  border-radius: var(--op-radius);
  overflow: hidden;
  box-shadow: var(--op-shadow);
}

.op-hero__image {
  background: linear-gradient(160deg, rgba(110, 143, 89, 0.25), rgba(123, 92, 142, 0.18));
}

.op-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.op-hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(110, 143, 89, 0.28), transparent 24%),
    radial-gradient(circle at 80% 15%, rgba(123, 92, 142, 0.24), transparent 26%),
    linear-gradient(145deg, var(--op-surface), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(216, 209, 197, 0.9);
}

.op-hero__ornament span {
  display: inline-block;
  padding: 1.5rem 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--op-plum);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 36px);
  font-weight: 600;
}

.op-layout {
  padding: 0 0 5rem;
}

.op-layout--toc {
  padding-bottom: 2rem;
}

.op-content-grid {
  display: grid;
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.op-sidebar {
  display: grid;
  gap: 1.25rem;
  position: sticky;
  top: 8rem;
}

.op-sidebar__panel,
.op-sidebar__note,
.op-surface,
.op-toc {
  padding: 1.5rem;
  border-radius: var(--op-radius);
  border: 1px solid rgba(216, 209, 197, 0.9);
  background: rgba(251, 248, 242, 0.9);
  box-shadow: var(--op-shadow);
}

.op-sidebar__eyebrow,
.op-footer__eyebrow {
  margin-bottom: 0.8rem;
  color: var(--op-sage);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.op-sidebar__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.op-sidebar__menu li + li {
  margin-top: 0.65rem;
}

.op-sidebar__menu a {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(110, 143, 89, 0.10);
  color: var(--op-ink);
  font-weight: 600;
}

.op-sidebar__menu a:hover,
.op-sidebar__menu a:focus {
  transform: translateX(2px);
  background: rgba(123, 92, 142, 0.11);
}

.op-sidebar__note h2,
.op-footer__brand,
.op-section-head h2,
.op-card__body h2,
.op-card__body h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--op-ink);
}

.op-sidebar__note h2,
.op-footer__brand {
  font-size: 32px;
}

.op-sidebar__note p,
.op-footer__copy {
  margin-top: 0.9rem;
  color: rgba(46, 43, 42, 0.78);
}

.op-surface {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.op-surface--secondary {
  margin-top: 1.5rem;
}

.op-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.op-section-head h2 {
  font-size: clamp(2rem, 3vw, 36px);
}

.op-flow > * + * {
  margin-top: 1.5rem;
}

.op-block--heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  color: var(--op-ink);
}

.op-block--heading h2,
.op-flow h2,
.op-flow h3,
.op-flow h4,
.op-flow h5 {
  color: var(--op-ink);
}

.op-flow h2,
.op-block--heading {
  font-size: clamp(2rem, 3vw, 36px);
}

.op-flow h3 {
  font-size: 24px;
}

.op-flow h4,
.op-flow h5 {
  font-size: 18px;
}

.op-block--paragraph {
  color: rgba(46, 43, 42, 0.88);
}

.op-block--image img {
  width: 100%;
  border-radius: 24px;
  background: var(--op-surface-strong);
}

.op-block--image figcaption,
.op-gallery__item figcaption,
.op-card__meta,
.op-link-card__meta,
.op-meta-line {
  margin-top: 0.75rem;
  color: rgba(46, 43, 42, 0.6);
  font-size: 13px;
}

.op-block--list {
  padding-left: 1.4rem;
}

.op-block--list li + li {
  margin-top: 0.55rem;
}

.op-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 20px;
  background: var(--op-white);
}

.op-table th,
.op-table td {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(216, 209, 197, 0.9);
  vertical-align: top;
  text-align: left;
}

.op-table th {
  background: rgba(110, 143, 89, 0.10);
  font-weight: 700;
}

.op-inline-image {
  max-width: 72px;
}

.op-block--quote {
  padding: 1.5rem;
  border-left: 4px solid var(--op-plum);
  border-radius: 18px;
  background: rgba(123, 92, 142, 0.08);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
}

.op-block--embed,
.op-block--fallback,
.op-block--code {
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.op-block--gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.op-gallery__item img {
  width: 100%;
  border-radius: 18px;
}

.op-block--separator {
  border: 0;
  border-top: 1px solid rgba(216, 209, 197, 0.9);
}

.op-link-grid,
.op-category-grid {
  display: grid;
  gap: 1.5rem;
}

.op-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.op-link-card,
.op-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(216, 209, 197, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(247, 242, 234, 0.92));
  box-shadow: var(--op-shadow);
}

.op-link-card h3,
.op-card__body h3,
.op-card__body h2 {
  font-size: 28px;
}

.op-link-card h3 {
  margin: 0.3rem 0 0;
}

.op-link-card__cta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--op-sage);
}

.op-card__media {
  margin-bottom: 1rem;
}

.op-card__media img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 18px;
}

.op-card__body p {
  margin-top: 0.8rem;
  color: rgba(46, 43, 42, 0.8);
}

.op-card--horizontal {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 1.25rem;
}

.op-card--minimal {
  justify-content: center;
}

.op-related-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.op-related-links li + li {
  margin-top: 0.8rem;
}

.op-related-links a {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(110, 143, 89, 0.08);
  color: var(--op-ink);
  font-weight: 600;
}

.op-toc strong {
  display: block;
  margin-bottom: 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
}

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

.op-toc li + li {
  margin-top: 0.65rem;
}

.op-toc a {
  color: var(--op-ink);
  font-weight: 600;
}

.op-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

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

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

.op-category-grid__full {
  grid-column: 1 / -1;
}

.op-footer {
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, rgba(110, 143, 89, 0.94), rgba(88, 117, 74, 0.98));
  color: rgba(255, 255, 255, 0.92);
}

.op-footer a,
.op-footer .op-chip {
  color: rgba(255, 255, 255, 0.92);
}

.op-footer .op-chip {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

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

.op-footer__brand {
  color: var(--op-white);
}

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

.op-footer__list li + li {
  margin-top: 0.75rem;
}

.op-footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.op-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .op-header__utility,
  .op-header__main,
  .op-hero__grid,
  .op-content-grid,
  .op-footer__grid,
  .op-card--horizontal {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .op-header__main {
    align-items: flex-start;
  }

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

  .op-sidebar {
    position: static;
  }

  .op-content-grid__rail {
    order: 2;
  }

  .op-content-grid__main {
    order: 1;
  }

  .op-category-grid--3,
  .op-category-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .op-shell {
    width: min(calc(100% - 1.5rem), var(--op-shell));
  }

  .op-header__utility span:last-child {
    text-align: left;
  }

  .op-hero {
    padding-top: 2.5rem;
  }

  .op-hero__image,
  .op-hero__ornament {
    min-height: 300px;
  }

  .op-nav-pills,
  .op-primary-nav ul {
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0.25rem;
  }

  .op-primary-nav a {
    min-height: 40px;
    padding: 0.55rem 0.75rem;
  }

  .op-block--table,
  .op-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .op-sidebar__panel,
  .op-sidebar__note,
  .op-surface,
  .op-toc,
  .op-link-card,
  .op-card {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .op-link-grid,
  .op-category-grid--3,
  .op-category-grid--2 {
    grid-template-columns: 1fr;
  }

  .op-footer__base {
    flex-direction: column;
  }
}
