/* Capreolus Publikationen — Brand-compliant editorial redesign */


:root {
  /* Primary */
  --forest: #2d6a4f;
  --forest-deep: #005831;
  --forest-light: #66a366;
  --presentation-green: #7EA76A;

  /* Neutral */
  --black: #000000;
  --charcoal: #2d2d2d;
  --dark-gray: #4a4a4a;
  --stone-gray: #a8a8a8;
  --warm-gray: #e8e8e8;
  --off-white: #fafafa;
  --white: #ffffff;

  /* Natural */
  --deer-brown: #8b6f47;
  --golden-hour: #d4a574;
  --grass-green: #7a8471;
  --soft-beige: #c7b299;

  /* Accent */
  --topo-blue: #4a90a4;
  --earth-brown: #8b7355;
  --accent-magenta: #9e0142;

  --serif: "Bodoni MT", "Bodoni 72", Georgia, "Times New Roman", serif;
  --serif-alt: "Cormorant Garamond", "Bodoni MT", Georgia, serif;
  --sans: Verdana, "Thesis Sans", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;

  --gutter: clamp(24px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--off-white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ========== SITE CHROME (approximates capreolus.at header) ========== */
.site-chrome {
  position: relative;
  background: var(--charcoal);
  color: var(--off-white);
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-chrome .logo-slot img {
  height: 32px;
  width: auto;
  display: block;
}
.site-chrome nav {
  display: flex;
  gap: 28px;
}
.site-chrome nav a {
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
}
.site-chrome nav a.current {
  opacity: 1;
  border-bottom: 1px solid var(--presentation-green);
  padding-bottom: 3px;
}
.site-chrome .chrome-right { display: flex; align-items: center; gap: 26px; }
.chrome-lang { display: flex; align-items: center; gap: 6px; }
.chrome-lang a { color: inherit; opacity: 0.6; text-decoration: none; transition: opacity .15s ease, color .15s ease; }
.chrome-lang a:hover { opacity: 1; }
.chrome-lang a.current { opacity: 1; color: var(--presentation-green); }
.chrome-lang .sep { opacity: 0.4; }
.chrome-burger { display: none; width: 34px; height: 34px; position: relative; background: transparent; border: none; cursor: pointer; padding: 0; }
.chrome-burger span { position: absolute; left: 6px; right: 6px; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.chrome-burger span:nth-child(1) { top: 11px; }
.chrome-burger span:nth-child(2) { top: 16px; }
.chrome-burger span:nth-child(3) { top: 21px; }
body.chrome-open .chrome-burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.chrome-open .chrome-burger span:nth-child(2) { opacity: 0; }
body.chrome-open .chrome-burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ========== CHAPTER HEADER ========== */
.chapter-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: baseline;
  padding: 88px 0 48px;
  border-top: 1px solid var(--warm-gray);
}
.chapter-head .kicker {
  grid-column: 1 / 4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-gray);
  padding-top: 14px;
}
.chapter-head .kicker .num { color: var(--forest); }
.chapter-head h1 {
  grid-column: 4 / 12;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--charcoal);
}
.chapter-head h1 em {
  font-style: italic;
  color: var(--forest);
}
.chapter-head .lead {
  grid-column: 4 / 10;
  margin-top: 22px;
  font-family: var(--serif-alt);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--dark-gray);
}

/* ========== STATS STRIP ========== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--warm-gray);
  margin-top: 24px;
}
.stat {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--warm-gray);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.stat .lbl {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-gray);
}
.stat .sub {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--stone-gray);
}

/* ========== SECTION LABEL ========== */
.section-label {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: baseline;
  border-top: 1px solid var(--charcoal);
  padding-top: 16px;
  margin-top: 88px;
  margin-bottom: 32px;
}
.section-label .gnum {
  grid-column: 1 / 3;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--forest);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-label h2 {
  grid-column: 3 / 9;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.section-label .desc {
  grid-column: 8 / 13;
  font-size: 13px;
  color: var(--dark-gray);
  line-height: 1.55;
}

/* ========== FEATURED GRID ========== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--warm-gray);
  border-top: 1px solid var(--warm-gray);
}
.featured-card {
  background: var(--white);
  padding: 32px 28px;
  border-right: 1px solid var(--warm-gray);
  border-bottom: 1px solid var(--warm-gray);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.featured-card:hover { background: var(--off-white); }

.featured-card .meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-gray);
}
.featured-card .meta-row .year { color: var(--forest); font-weight: 500; }
.featured-card .type-chip {
  padding: 3px 8px;
  border: 1px solid currentColor;
  color: var(--forest);
  border-radius: 2px;
  font-size: 9px;
}
.featured-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  margin: 0 0 auto 0;
  text-wrap: pretty;
}
.featured-card .venue {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--warm-gray);
  font-family: var(--serif-alt);
  font-style: italic;
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.5;
}

/* ========== CONTROLS ========== */
.controls {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: end;
  margin-top: 48px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--charcoal);
}
.controls .left {
  grid-column: 1 / 7;
}
.controls .left .hd {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 6px;
}
.controls .left h2 {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.05;
  margin: 0;
  font-weight: 400;
}
.controls .right {
  grid-column: 7 / 13;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.search {
  position: relative;
}
.search input {
  width: 240px;
  padding: 10px 12px 10px 36px;
  font-family: var(--sans);
  font-size: 13px;
  background: var(--white);
  border: 1px solid #cccccc;
  border-radius: 4px;
  color: var(--charcoal);
  outline: none;
}
.search input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px oklch(47.6% 0.078 162.2 / 0.2);
}
.search svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--dark-gray);
}
.sort {
  padding: 10px 32px 10px 12px;
  font-family: var(--sans);
  font-size: 13px;
  background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%234a4a4a' stroke-width='1.2' fill='none'/></svg>") no-repeat right 12px center;
  border: 1px solid #cccccc;
  border-radius: 4px;
  color: var(--charcoal);
  appearance: none;
  cursor: pointer;
}

/* Filter pills */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 28px 0 40px;
}
.filter-pill {
  font-family: var(--sans);
  font-size: 12px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--warm-gray);
  border-radius: 4px;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.filter-pill:hover {
  border-color: var(--forest);
  color: var(--forest);
}
.filter-pill.active {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
  font-weight: 600;
}
.filter-pill .c {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

/* ========== YEAR GROUP + PUB LIST ========== */
.year-group {
  margin-bottom: 56px;
}
.year-head {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  column-gap: 24px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--charcoal);
  margin-bottom: 8px;
}
.year-head .yr {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--forest);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.year-head .count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-gray);
}

.pub-row {
  display: grid;
  grid-template-columns: 140px 1fr 180px;
  column-gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--warm-gray);
  align-items: baseline;
  transition: background 0.15s ease;
}
.pub-row:hover {
  background: var(--off-white);
}

.pub-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-gray);
  line-height: 1.7;
}
.pub-type {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  font-size: 9.5px;
  border-radius: 2px;
  letter-spacing: 0.08em;
}
.pub-type-sci { background: var(--forest); color: var(--white); }
.pub-type-conference { background: var(--warm-gray); color: var(--forest); border: 1px solid var(--forest); }
.pub-type-vortrag { background: var(--presentation-green); color: var(--white); }
.pub-type-lehre { background: var(--soft-beige); color: var(--charcoal); }
.pub-type-media { background: var(--charcoal); color: var(--off-white); }
.pub-type-other { background: transparent; color: var(--dark-gray); border: 1px solid var(--warm-gray); }

.pub-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  margin: 0 0 8px;
  text-wrap: pretty;
}
.pub-body .authors {
  font-family: var(--serif-alt);
  font-style: italic;
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.5;
  margin: 0 0 4px;
}
.pub-body .source {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--dark-gray);
  line-height: 1.55;
  margin: 0;
}

.pub-side {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--stone-gray);
  letter-spacing: 0.06em;
  text-align: right;
  line-height: 1.7;
}
.doi-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--forest);
  text-decoration: none;
  padding: 5px 9px;
  border: 1px solid var(--forest);
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.15s ease;
  margin-top: 6px;
}
.doi-link:hover {
  background: var(--forest);
  color: var(--white);
}
.feat-mark {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--golden-hour);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* Empty state */
.empty {
  padding: 80px 0;
  text-align: center;
  font-family: var(--serif-alt);
  font-style: italic;
  font-size: 18px;
  color: var(--stone-gray);
}

/* ========== FOOTER ========== */
.footer-band {
  margin-top: 120px;
  padding: 72px var(--gutter);
  background: var(--charcoal);
  color: var(--off-white);
}
.footer-band .inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.footer-band .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  line-height: 1.15;
  margin: 0;
  font-weight: 400;
  max-width: 16ch;
}
.footer-band .quote::before {
  content: "„";
  color: var(--presentation-green);
}
.footer-band .quote::after {
  content: "."
}
.footer-band .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-gray);
  line-height: 1.8;
  text-align: right;
}
.footer-band .meta b {
  color: var(--presentation-green);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.footer-band .legal {
  grid-column: 1 / 3;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer-band .legal > div { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-band .legal a { color: inherit; text-decoration: none; }
.footer-band .legal a:hover { color: var(--presentation-green); }
@media (max-width: 720px) {
  .footer-band .legal { flex-direction: column; gap: 12px; }
  .footer-band .legal > div { gap: 16px; }
}

/* ========== DENSITY VARIANTS ========== */
.density-compact .pub-row { padding: 12px 0; }
.density-compact .pub-body h3 { font-size: 16px; margin-bottom: 4px; }
.density-compact .pub-body .authors { font-size: 12px; }
.density-compact .pub-body .source { font-size: 11.5px; }

.density-airy .pub-row { padding: 32px 0; }
.density-airy .pub-body h3 { font-size: 22px; }

/* ========== LAYOUT VARIANTS ========== */
/* Variant A: editorial (default — above) */

/* Variant B: dense-index */
.layout-index .year-head .yr { font-size: 32px; }
.layout-index .pub-row {
  grid-template-columns: 60px 110px 1fr 120px;
  padding: 10px 0;
}
.layout-index .pub-row .pub-body h3 { font-size: 15px; font-family: var(--sans); font-weight: 600; margin-bottom: 2px; }
.layout-index .pub-row .pub-body .authors { font-size: 11.5px; }
.layout-index .pub-row .pub-body .source { font-size: 11.5px; }
.layout-index .featured-grid { display: none; }

/* Variant C: magazine (cards, big imagery placeholder) */
.layout-magazine #pub-list-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.layout-magazine .year-group {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}
.layout-magazine .year-head {
  grid-template-columns: 1fr;
}
.layout-magazine #pub-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.layout-magazine .pub-row {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-bottom: 1px solid var(--warm-gray);
  align-items: stretch;
  gap: 14px;
}
.layout-magazine .pub-row:hover { background: var(--off-white); }
.layout-magazine .pub-meta { text-align: left; }
.layout-magazine .pub-side { text-align: left; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .chapter-head { grid-template-columns: repeat(6, 1fr); padding: 48px 0 36px; }
  .chapter-head .kicker { grid-column: 1 / 7; padding-top: 0; margin-bottom: 12px; }
  .chapter-head h1 { grid-column: 1 / 7; }
  .chapter-head .lead { grid-column: 1 / 7; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--warm-gray); }
  .featured-grid { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; row-gap: 20px; }
  .controls .left, .controls .right { grid-column: 1 / -1; justify-content: flex-start; }
  .pub-row { grid-template-columns: 1fr; gap: 10px; }
  .year-head { grid-template-columns: 80px 1fr; }
  .year-head .yr { font-size: 36px; }
  .pub-side { text-align: left; }
  .footer-band .inner { grid-template-columns: 1fr; }
  .footer-band .meta { text-align: left; }
  .site-chrome { background: var(--charcoal); }
  .chrome-burger { display: block; }
  .site-chrome .chrome-right { gap: 14px; }
  .site-chrome nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--charcoal);
    padding: 4px var(--gutter) 22px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.3);
  }
  body.chrome-open .site-chrome nav { display: flex; }
  .site-chrome nav a { width: 100%; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.12); opacity: 0.9; }
  .layout-magazine #pub-items { grid-template-columns: 1fr; }
}
