@font-face { font-family: "Headings"; src: local("Abel"); }
@font-face { font-family: "Body"; src: local("Inter"); }
/* Design tokens: #fafaf7 #5b21e6 #00897b #8f2d56 #1e1e1e #d8d6cf */
/* Font tokens: Abel, Inter, Headings, Body */
:root {
  --cieg-primary: #fafaf7;
  --cieg-surface: #ffffff;
  --cieg-ink: #1e1e1e;
  --cieg-muted: #68655f;
  --cieg-subtle: #d8d6cf;
  --cieg-violet: #5b21e6;
  --cieg-teal: #00897b;
  --cieg-burgundy: #8f2d56;
  --cieg-charcoal: #1a1a1a;
  --pico-font-family: "Inter", "Body", Arial, sans-serif;
  --pico-primary: #5B21E6;
  --pico-primary-hover: #8F2D56;
  --pico-color: #1E1E1E;
}
* { letter-spacing: 0; }
body {
  background: var(--cieg-primary);
  color: var(--cieg-ink);
  font-family: "Inter", "Body", Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, .primary-nav, .hero-caption {
  font-family: "Abel", "Headings", Arial, sans-serif;
  letter-spacing: 0;
}
h1 { border-color: var(--cieg-violet); }
a { color: inherit; }
a { border-color: var(--cieg-burgundy); }
.site-prose a, .content-panel a, .category-card a {
  color: var(--cieg-violet);
  text-decoration: underline;
  text-decoration-color: rgba(91, 33, 230, .35);
  text-underline-offset: 3px;
}
.site-prose a:hover, .content-panel a:hover, .category-card a:hover {
  color: var(--cieg-burgundy);
  text-decoration-color: var(--cieg-burgundy);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  z-index: 1000;
  background: #fff;
  padding: .5rem 1rem;
}
.site-shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-color: var(--cieg-subtle);
  border-bottom: 1px solid var(--cieg-subtle);
  box-shadow: 0 6px 24px rgba(30,30,30,.04);
}
.social-strip {
  display: flex;
  justify-content: flex-end;
  padding-top: .75rem;
  color: var(--cieg-muted);
  font-size: .78rem;
  text-transform: uppercase;
}
.masthead {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: end;
  padding: .75rem 0 0;
}
.brand img {
  width: 232px;
  max-width: 100%;
}
.primary-nav {
  border-bottom: 3px solid var(--cieg-charcoal);
  padding-bottom: .55rem;
  overflow: visible;
}
.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav li { position: relative; }
.primary-nav a {
  display: block;
  color: #5c5954;
  font-size: .98rem;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--cieg-violet); }
.dropdown {
  display: none !important;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 250px;
  padding: .65rem;
  background: #fff;
  border: 1px solid var(--cieg-subtle);
  box-shadow: 0 18px 50px rgba(30,30,30,.12);
}
.has-dropdown:hover .dropdown { display: block !important; }
.dropdown a { white-space: normal; padding: .35rem .25rem; }
.site-main { padding: 2.5rem 0 4rem; }
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem;
  align-items: start;
}
.narrow { max-width: 860px; }
.content-panel {
  background: var(--cieg-surface);
  border: 1px solid var(--cieg-subtle);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 18px 50px rgba(30,30,30,.08);
}
.page-header {
  border-left: 4px solid var(--cieg-violet);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}
.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
  font-size: .85rem;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--cieg-muted);
  margin-right: .35rem;
}
.site-sidebar {
  background: #fff;
  border: 1px solid var(--cieg-subtle);
  padding: 1rem;
  max-height: 70vh;
  overflow: auto;
}
.site-sidebar ul, .site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-sidebar li, .site-footer li { margin-bottom: .45rem; }
.home-hero {
  padding: 2rem 0;
  border-color: var(--cieg-teal);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
  gap: 1.5rem;
}
.hero-art, .hero-copy {
  background: #fff;
  border: 1px solid var(--cieg-subtle);
  box-shadow: 0 18px 50px rgba(30,30,30,.08);
}
.hero-art img {
  width: 100%;
  aspect-ratio: 1000 / 563;
  object-fit: cover;
}
.hero-caption {
  background: var(--cieg-charcoal);
  color: #fff;
  padding: 1rem;
  font-size: 1.8rem;
  text-align: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
}
.section-line {
  height: 1px;
  background: var(--cieg-charcoal);
  opacity: .55;
  margin: 2rem 0 1.5rem;
}
.card-grid, .category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-color: var(--cieg-subtle);
}
.content-card, .category-card {
  background: #fff;
  border: 1px solid var(--cieg-subtle);
  padding: 1rem;
  transition: border-color .2s ease, transform .2s ease;
}
.content-card:hover, .category-card:hover {
  border-color: var(--cieg-burgundy);
  transform: translateY(-3px);
}
.content-card img, .category-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: .8rem;
  border-bottom: 4px solid var(--cieg-violet);
}
.content-image img, .media-panel img {
  width: auto;
  max-width: 100%;
  height: auto;
}
.main-image {
  float: right;
  max-width: 34%;
  margin: 0 0 1rem 1.25rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.table-scroll { overflow-x: auto; }
.toc {
  background: #fff;
  border: 1px solid var(--cieg-subtle);
  padding: 1rem;
  margin-bottom: 1rem;
}
.site-footer {
  background: var(--cieg-charcoal);
  color: #d9d9d9;
  padding: 2.5rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.site-footer h3 { color: #fff; }
.site-footer a { color: #d9d9d9; }
.site-footer a:hover { color: #fff; }
@media (max-width: 900px) {
  .masthead, .hero-grid, .content-layout, .footer-grid { grid-template-columns: 1fr; }
  .primary-nav ul { justify-content: flex-start; }
  .card-grid, .category-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-image { float: none; max-width: 100%; margin: 0 0 1rem; }
}
@media (max-width: 560px) {
  .site-shell { width: min(100% - 28px, 1100px); }
  .card-grid, .category-grid, .gallery-grid { grid-template-columns: 1fr; }
  .content-panel { padding: 1rem; }
}
