/* Nigra Sum — Black Madonnas of Europe, Pure.css theme (indigo · gold · parchment) */
:root {
  --indigo: #1A1B2E;
  --indigo-deep: #12121F;
  --gold: #B08D3C;
  --gold-bright: #CDA85A;
  --marian: #2E3A63;
  --ink: #231F1A;
  --body: #3A352F;
  --muted: #857B6E;
  --parchment: #F5EFE3;
  --card: #F5EFE3;
  --surface: #FBF8F2;
  --border: #E3D9C5;
  --radius: 8px;
  --shadow: 0 3px 14px rgba(18,18,31,0.10);
  --shadow-hover: 0 8px 24px rgba(18,18,31,0.16);
}
body { background: #FBF8F2; color: #3A352F; font-family: "Inter", system-ui, sans-serif; font-size: 17px; line-height: 1.75; }
h1,h2,h3,h4,h5,h6 { font-family: "Cormorant Garamond", Georgia, serif; color: #231F1A; font-weight: 700; line-height: 1.2; letter-spacing: .01em; }

/* header */
.np-header { position: sticky; top: 0; z-index: 60; background: #1A1B2E; color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.25); border-bottom: 2px solid #B08D3C; }
.np-header__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.25rem; flex-wrap: wrap; }
.np-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.np-brand__title { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.7rem; color: #fff; letter-spacing: 0.02em; }
.np-brand__sub { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #CDA85A; }
.np-nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.np-nav li { margin: 0; position: relative; }
.np-nav a { display: block; padding: 0.4rem 0.7rem; border-radius: 5px; color: #E7E4D9; text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: background .2s,color .2s; }
.np-nav a:hover, .np-nav a.active { background: rgba(176,141,60,0.18); color: #CDA85A; }
.np-nav .has-children > .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.3rem; z-index: 70; flex-direction: column; }
.np-nav .has-children:hover > .submenu, .np-nav .has-children:focus-within > .submenu { display: flex; }
.np-nav .submenu a { color: var(--ink); white-space: nowrap; font-weight: 400; }
.np-nav .submenu a:hover { background: #F5EFE3; color: #6E1330; color: var(--gold); }
.np-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; border-radius: 5px; padding: 0.25rem 0.6rem; font-size: 1.3rem; cursor: pointer; }
@media (max-width: 960px) {
  .np-toggle { display: block; }
  .np-nav { display: none; flex-basis: 100%; }
  #np-nav-toggle:checked ~ .np-nav { display: block; }
  .np-nav ul { flex-direction: column; align-items: stretch; }
  .np-nav .has-children > .submenu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
}

/* hero */
.np-hero { background: linear-gradient(120deg, #1A1B2E, #12121F); color: #fff; border-radius: 0 0 14px 14px; padding: 3rem 1.5rem; text-align: center; margin-bottom: 2rem; }
.np-hero--image { background-size: cover; background-position: center; padding: 5rem 1.5rem; }
.np-hero h1 { color: #fff; font-size: clamp(2rem,4vw,3rem); margin: 0 0 0.5rem; }
.np-hero p { color: #E3DCCB; max-width: 64ch; margin: 0 auto; font-size: 1.1rem; }
.np-hero::after { content:""; display:block; width:90px; height:3px; background:#B08D3C; margin:1.1rem auto 0; border-radius:4px; }

/* layout */
.np-wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.np-cols { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .np-cols { grid-template-columns: 1fr; } }
.np-section-title { font-size: 1.8rem; margin: 0 0 1.1rem; padding-bottom: 0.4rem; border-bottom: 2px solid #B08D3C; display: inline-block; }

/* sidebar */
.np-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.np-panel { background: #F5EFE3; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; }
.np-panel h3 { font-size: 1.2rem; margin: 0 0 0.7rem; color: #2E3A63; }
.np-panel ul { list-style: none; margin: 0; padding: 0; }
.np-panel li { margin: 0 0 0.4rem; border-bottom: 1px dotted var(--border); padding-bottom: 0.4rem; }
.np-panel a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.np-panel a:hover { color: #B08D3C; }

/* content */
.content-prose { max-width: 100%; }
.content-copy { margin: 0 0 1rem; }
.content-heading { margin: 1.6rem 0 0.7rem; }
.content-prose a, .content-copy a, .content-mini-card h3 a, .np-prose a { color: #8a6d24; color: var(--gold); text-decoration: underline; text-decoration-color: rgba(176,141,60,0.45); text-underline-offset: 2px; }
.content-prose a:hover, .content-copy a:hover { color: #6E1330; color: var(--marian); }
.content-figure { margin: 1.2rem 0; }
.content-figure img, .content-gallery img { max-width: 100%; height: auto; border-radius: 6px; }
.content-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 0.7rem; margin: 1rem 0; }
.content-gallery__item { margin: 0; }
.content-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.content-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.content-table-wrap { overflow-x: auto; margin: 1rem 0; }
.content-table { width: 100%; border-collapse: collapse; background: #F5EFE3; }
.content-table td, .content-table th { padding: 0.5rem 0.7rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.content-table th { background: #2E3A63; color: #fff; }

/* cards */
.np-card-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 1rem; }
.content-mini-card { background: #F5EFE3; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; transition: transform .2s, box-shadow .2s; }
.content-mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.content-mini-card h3 { font-size: 1.15rem; margin: 0 0 0.3rem; }
.content-mini-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* breadcrumbs */
.np-breadcrumbs { margin: 0 0 1rem; font-size: 0.85rem; }
.np-breadcrumbs ul { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.np-breadcrumbs li::after { content: "›"; margin-left: 0.35rem; color: var(--muted); }
.np-breadcrumbs li:last-child::after { content: ""; }
.np-breadcrumbs a { color: #B08D3C; text-decoration: none; }

/* article */
.np-article { background: #F5EFE3; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem 1.9rem; }
.np-article__meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.np-article__summary { border-left: 4px solid #B08D3C; background: var(--surface); padding: 0.8rem 1.1rem; border-radius: 0 6px 6px 0; margin: 0 0 1.4rem; font-style: italic; }
.np-article__image { float: right; max-width: 40%; margin: 0 0 1rem 1.4rem; border-radius: 6px; }
@media (max-width: 600px) { .np-article__image { float: none; max-width: 100%; margin: 0 0 1rem; } }
.np-toc { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.9rem 1.1rem; margin-bottom: 1.4rem; }
.np-toc ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.np-toc a { color: #B08D3C; }

/* category grid */
.np-cat-grid { display: grid; gap: 1.2rem; }
.np-cat-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.np-cat-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 800px) { .np-cat-grid.cols-2, .np-cat-grid.cols-3 { grid-template-columns: 1fr; } }
.np-cat-card { display: flex; flex-direction: column; overflow: hidden; background: #F5EFE3; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.np-cat-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.np-cat-card__body { padding: 1rem 1.1rem; }
.np-cat-card__body h3 a { color: var(--ink); text-decoration: none; }
.np-cat-card__body h3 a:hover { color: #B08D3C; }
.np-readmore { display: inline-block; margin-top: 0.5rem; color: #B08D3C; font-weight: 700; text-decoration: none; }
.np-readmore:hover { text-decoration: underline; }

/* footer */
.np-footer { background: #12121F; color: #CFC8B8; margin-top: 3rem; padding: 2.6rem 1.25rem; border-top: 2px solid #B08D3C; }
.np-footer__inner { max-width: 1200px; margin: 0 auto; }
.np-footer h2 { color: #fff; margin: 0 0 0.4rem; font-size: 1.5rem; font-family: "Cormorant Garamond", serif; }
.np-footer__tag { color: #A79E8C; margin: 0 0 0.6rem; max-width: 480px; }
.np-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1rem 0; }
.np-footer__links a { color: #CFC8B8; text-decoration: none; font-size: 0.85rem; }
.np-footer__links a:hover { text-decoration: underline; color: #CDA85A; }
.np-footer__copy { color: #847C6C; font-size: 0.8rem; margin-top: 1rem; }

h1 { font-size: 42px; }
