:root {
  --heritage-ink: #2d241e;
  --heritage-navy: #233042;
  --heritage-terracotta: #9a3a2a;
  --heritage-gold: #c89a57;
  --heritage-paper: #f6efe6;
  --heritage-stone: #e9dfd1;
  --heritage-panel: rgba(255, 252, 247, 0.94);
  --heritage-shadow: 0 24px 60px rgba(26, 33, 42, 0.14);
  --heritage-radius: 28px;
  --heritage-content-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body.heritage-body {
  margin: 0;
  color: var(--heritage-ink);
  font-family: "Source Sans 3", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(200, 154, 87, 0.18), transparent 36%),
    linear-gradient(180deg, #fbf7f0 0%, #f0e6d8 100%);
}

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

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

.site-main {
  min-height: 60vh;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0 0;
}

.site-header__utility {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid rgba(35, 48, 66, 0.1);
  backdrop-filter: blur(10px);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header__utility-copy {
  color: rgba(45, 36, 30, 0.8);
}

.site-header__languages {
  display: flex;
  gap: 10px;
}

.site-header__languages a {
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.site-header__languages a:hover {
  color: var(--heritage-terracotta);
  background: rgba(154, 58, 42, 0.12);
}

.site-header__shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(35, 48, 66, 0.97), rgba(41, 55, 76, 0.9));
  box-shadow: var(--heritage-shadow);
}

.site-brand {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #fff8ee;
}

.site-brand img {
  width: 72px;
  height: 72px;
  padding: 8px;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(255, 248, 237, 0.96);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.site-brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 248, 237, 0.72);
}

.site-brand strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 0.92;
  font-weight: 600;
}

.site-nav__mobile {
  display: none;
}

.site-nav__list,
.site-nav__mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.site-nav__list > li {
  position: relative;
}

.site-nav__list > li > a,
.site-nav__mobile-list a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 15px;
  color: #fff8ee;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(255, 248, 237, 0.08);
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-nav__list > li > a:hover,
.site-nav__mobile-list a:hover {
  transform: translateY(-2px);
  background: rgba(255, 248, 237, 0.16);
  border-color: rgba(200, 154, 87, 0.4);
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  display: none;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 250, 244, 0.96);
  border: 1px solid rgba(35, 48, 66, 0.08);
  box-shadow: 0 20px 34px rgba(26, 33, 42, 0.14);
}

.site-nav__dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--heritage-ink);
  font-weight: 600;
}

.site-nav__dropdown a:hover {
  background: rgba(154, 58, 42, 0.08);
  color: var(--heritage-terracotta);
}

.site-nav__list > li.has-children:hover .site-nav__dropdown {
  display: block;
}

.page-shell,
.home-shell {
  width: min(var(--heritage-content-width), calc(100% - 40px));
  margin: 40px auto 0;
}

.page-intro {
  margin-bottom: 24px;
}

.page-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(154, 58, 42, 0.12);
  color: var(--heritage-terracotta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-title,
.home-hero__title {
  margin: 14px 0 0;
  color: var(--heritage-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 4.2vw, 4.4rem);
  line-height: 0.96;
  font-weight: 600;
  text-wrap: balance;
}

.content-card,
.site-sidebar__panel,
.home-partners,
.home-support {
  border-radius: var(--heritage-radius);
  background: var(--heritage-panel);
  border: 1px solid rgba(35, 48, 66, 0.08);
  box-shadow: var(--heritage-shadow);
}

.content-card {
  padding: 32px;
}

.content-card--article {
  padding: 36px;
}

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

.content-flow {
  font-size: 18px;
  line-height: 1.72;
}

.content-flow > * + * {
  margin-top: 18px;
}

.content-heading {
  margin: 0;
  color: var(--heritage-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.06;
}

.content-heading--1 { font-size: clamp(2rem, 3vw, 3rem); }
.content-heading--2 { font-size: 2rem; }
.content-heading--3 { font-size: 1.55rem; }
.content-heading--4,
.content-heading--5,
.content-heading--6 { font-size: 1.25rem; }

.content-paragraph {
  color: rgba(45, 36, 30, 0.92);
}

.content-paragraph a,
.content-list a,
.breadcrumb-trail a,
.toc-panel a,
.site-footer__nav a {
  color: var(--heritage-terracotta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.content-paragraph a:hover,
.content-list a:hover,
.breadcrumb-trail a:hover,
.toc-panel a:hover,
.site-footer__nav a:hover {
  color: var(--heritage-navy);
}

.content-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(35, 48, 66, 0.08);
  box-shadow: 0 16px 28px rgba(35, 48, 66, 0.08);
}

.content-figure img {
  width: 100%;
}

.content-figure figcaption,
.image-gallery figcaption {
  padding: 12px 14px 14px;
  font-size: 14px;
  color: rgba(45, 36, 30, 0.7);
}

.content-list {
  margin: 0;
  padding-left: 24px;
}

.content-list li + li {
  margin-top: 8px;
}

.content-table-wrap {
  overflow-x: auto;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}

.content-table th,
.content-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(35, 48, 66, 0.08);
  text-align: left;
  overflow-wrap: anywhere;
}

.content-table th {
  background: rgba(35, 48, 66, 0.06);
  color: var(--heritage-navy);
}

.content-quote {
  margin: 0;
  padding: 20px 24px;
  border-left: 4px solid var(--heritage-gold);
  background: rgba(200, 154, 87, 0.08);
  border-radius: 0 20px 20px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--heritage-navy);
}

.content-code {
  margin: 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: #1f2734;
  color: #f5eadb;
  overflow-x: auto;
}

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

.image-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(35, 48, 66, 0.08);
  box-shadow: 0 14px 26px rgba(35, 48, 66, 0.06);
}

.image-gallery__item img {
  width: 100%;
  min-height: 170px;
  object-fit: cover;
}

.content-separator {
  border: 0;
  border-top: 1px solid rgba(35, 48, 66, 0.12);
  margin: 10px 0;
}

.inline-card {
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(35, 48, 66, 0.08);
  box-shadow: 0 14px 26px rgba(35, 48, 66, 0.08);
}

.inline-card__link {
  display: block;
  padding: 18px 20px;
}

.inline-card h3 {
  margin: 0 0 8px;
  color: var(--heritage-navy);
}

.breadcrumb-trail {
  margin-bottom: 16px;
}

.breadcrumb-trail ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.breadcrumb-trail li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb-trail li + li::before {
  content: "/";
  color: rgba(45, 36, 30, 0.38);
  margin-right: 10px;
}

.site-sidebar__panel {
  padding: 24px;
}

.site-sidebar__panel h2 {
  margin: 0 0 12px;
  color: var(--heritage-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.site-sidebar__panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-sidebar__panel li + li {
  margin-top: 10px;
}

.site-sidebar__panel a {
  color: var(--heritage-terracotta);
}

.toc-panel {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(35, 48, 66, 0.08);
  box-shadow: 0 16px 28px rgba(35, 48, 66, 0.08);
}

.toc-panel h2 {
  margin: 0 0 12px;
  color: var(--heritage-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
}

.toc-panel ul {
  margin: 0;
  padding-left: 18px;
}

.article-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.article-layout--left,
.article-layout--right {
  grid-template-columns: 280px minmax(0, 1fr);
}

.article-layout--right {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.article-layout--right .toc-panel {
  order: 2;
}

.article-layout--right .content-card {
  order: 1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(45, 36, 30, 0.62);
}

.article-summary {
  margin-bottom: 18px;
  padding: 20px 22px;
  border-left: 4px solid var(--heritage-gold);
  background: rgba(200, 154, 87, 0.08);
  border-radius: 0 20px 20px 0;
  font-size: 20px;
}

.article-main-image {
  float: right;
  width: min(34%, 320px);
  margin: 4px 0 18px 22px;
}

.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 {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(35, 48, 66, 0.08);
  box-shadow: 0 16px 30px rgba(35, 48, 66, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 34px rgba(35, 48, 66, 0.12);
}

.category-card__media {
  min-height: 190px;
  background: linear-gradient(135deg, rgba(35, 48, 66, 0.88), rgba(154, 58, 42, 0.8));
}

.category-card__media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.category-card__body {
  padding: 20px;
}

.category-card__body h2,
.category-card__body h3 {
  margin: 0 0 10px;
  color: var(--heritage-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 0.98;
}

.category-card__body p {
  margin: 0 0 14px;
  color: rgba(45, 36, 30, 0.82);
}

.category-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(154, 58, 42, 0.12);
  color: var(--heritage-terracotta);
  font-weight: 700;
}

.category-card--horizontal {
  display: grid;
  grid-template-columns: 38% 1fr;
}

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

.category-card--minimal .category-card__media {
  display: none;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border-radius: 34px;
  color: #fff8ee;
  background:
    linear-gradient(90deg, rgba(21, 31, 43, 0.84) 0%, rgba(21, 31, 43, 0.58) 48%, rgba(21, 31, 43, 0.18) 100%),
    url("/assets/images/hero-landscape.jpg") center/cover no-repeat;
  box-shadow: var(--heritage-shadow);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(246, 239, 230, 0), rgba(246, 239, 230, 1));
}

.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: end;
}

.home-hero__copy p {
  max-width: 640px;
  margin: 16px 0 0;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 248, 237, 0.9);
}

.home-hero__logo {
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 248, 237, 0.96);
}

.home-hero__panel {
  padding: 22px;
  border-radius: 28px;
  background: rgba(20, 25, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.home-chip-group,
.home-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.home-chip,
.home-link-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.12);
  border: 1px solid rgba(200, 154, 87, 0.32);
  color: #fff8ee;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.home-chip:hover,
.home-link-grid a:hover {
  transform: translateY(-2px);
  background: rgba(255, 248, 237, 0.2);
}

.home-support,
.home-partners {
  margin-top: 24px;
  padding: 28px 30px;
}

.home-support h2,
.home-partners h2 {
  margin: 0 0 10px;
  color: var(--heritage-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
}

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

.home-support__card {
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(35, 48, 66, 0.08);
}

.home-support__card h3 {
  margin: 0 0 8px;
  color: var(--heritage-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
}

.home-support__card a {
  color: var(--heritage-terracotta);
  font-weight: 700;
}

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

.partner-grid__item {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(35, 48, 66, 0.08);
  box-shadow: 0 10px 22px rgba(35, 48, 66, 0.06);
}

.partner-grid__item img {
  max-height: 52px;
  width: auto;
}

.site-footer {
  padding: 12px 0 36px;
}

.site-footer__panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(35, 48, 66, 0.98), rgba(28, 38, 54, 0.94));
  box-shadow: var(--heritage-shadow);
  color: #fff8ee;
}

.site-footer__copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.site-footer__copy span {
  color: rgba(255, 248, 237, 0.72);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1100px) {
  .site-header__shell,
  .content-grid,
  .article-layout--left,
  .article-layout--right,
  .home-hero__grid,
  .home-support__grid,
  .site-footer__panel,
  .category-card--horizontal {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .site-nav__mobile {
    display: block;
    color: #fff8ee;
  }

  .site-nav__mobile summary {
    cursor: pointer;
    font-weight: 700;
  }

  .site-nav__mobile-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
  }

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

@media (max-width: 720px) {
  .site-header {
    padding-top: 10px;
  }

  .site-header__utility {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
  }

  .site-header__shell,
  .content-card,
  .home-hero,
  .home-support,
  .home-partners,
  .site-footer__panel {
    padding: 22px;
  }

  .page-shell,
  .home-shell {
    width: min(100% - 24px, var(--heritage-content-width));
    margin-top: 24px;
  }

  .home-hero__title,
  .page-title {
    font-size: 2.6rem;
  }

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

  .content-card--article {
    padding: 20px;
  }

  .content-table {
    min-width: 560px;
  }

  .page-title {
    line-height: 1.05;
    overflow-wrap: anywhere;
  }
}

@media print {
  .site-header,
  .site-footer,
  .site-sidebar,
  .site-nav__mobile {
    display: none !important;
  }

  body.heritage-body {
    background: #fff;
  }

  .content-card,
  .home-support,
  .home-partners {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
