@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@700;800&display=swap");

:root {
  --bg: #fff;
  --surface-soft: #f7f5fb;
  --border: rgba(92, 43, 130, .14);
  --text: #1f2544;
  --muted: #4f5878;
  --primary: #5c2b82;
  --primary-dark: #3f1c62;
  --teal: #138b98;
  --blue: #2f4aa0;
  --shadow: 0 18px 42px rgba(31, 37, 68, .09);
  --shadow-hover: 0 25px 54px rgba(47, 74, 160, .15);
  --container: 1280px;
  --gutter: 48px;
  --heading: "Manrope", "Avenir Next", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .eyebrow, .nav-links, .button, .publication-kind { font-family: var(--heading); }
h1, h2, h3, h4, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - var(--gutter)), var(--container)); margin: 0 auto; }
.site-shell { overflow: hidden; }

.topbar, .site-header { position: relative; z-index: 20; padding: 30px 0 18px; background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.42) 72%, rgba(255,255,255,0)); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 90px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; color: var(--text); font-size: .96rem; font-weight: 600; letter-spacing: -.02em; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; letter-spacing: -.02em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,37,68,.12); }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: var(--primary); border-color: rgba(92,43,130,.35); background: #fff; }
.button-secondary:hover { border-color: var(--primary); background: var(--surface-soft); }

.publications-hero { position: relative; min-height: 535px; display: grid; align-items: center; overflow: hidden; background: #eee9f4; }
.publications-hero::before { content: ""; position: absolute; inset: 0; background: url("../images/news-hero.png") center / cover no-repeat; transform: scale(1.02); filter: saturate(.78); }
.publications-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 36%, rgba(255,255,255,.78) 51%, rgba(255,255,255,.19) 73%, rgba(255,255,255,.02) 100%), linear-gradient(0deg, rgba(38,18,75,.09), transparent 42%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; padding: 66px 0 80px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 27px; color: var(--muted); font-size: .9rem; }
.breadcrumb a { color: var(--primary); font-weight: 700; }
.eyebrow { display: inline-block; margin-bottom: 15px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1 { max-width: 760px; margin-bottom: 22px; color: var(--primary); font-size: clamp(4rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy > p { max-width: 640px; margin-bottom: 28px; color: var(--muted); font-size: 1.12rem; line-height: 1.78; }
.hero-links { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 15px; border: 1px solid rgba(92,43,130,.18); border-radius: 999px; color: var(--primary); background: rgba(255,255,255,.78); font-size: .82rem; font-weight: 800; transition: background .18s ease, border-color .18s ease; }
.hero-links a:hover { border-color: var(--primary); background: #fff; }

.latest-section { position: relative; padding: 94px 0 102px; }
.latest-section::before { content: ""; position: absolute; top: 30px; right: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(19,139,152,.09), transparent 68%); pointer-events: none; }
.section-heading { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 0; color: var(--primary); font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -.055em; }
.section-heading > p { max-width: 440px; margin-bottom: 5px; color: var(--muted); line-height: 1.7; }
.featured-grid { position: relative; z-index: 1; display: grid; gap: 28px; }
.featured-card { display: grid; grid-template-columns: 300px 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.featured-cover, .card-cover { position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; }
.featured-cover::before, .card-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.cover-green::before { background: linear-gradient(150deg, #e8eeea, #dbe6e2 58%, #f7f5ef); }
.cover-red::before { background: linear-gradient(150deg, #f0e5e9, #eadce3 58%, #f8f2f5); }
.featured-cover::after, .card-cover::after { content: ""; position: absolute; width: 62%; height: 72%; border-radius: 50%; background: rgba(255,255,255,.5); filter: blur(28px); z-index: -1; }
.featured-cover img { width: 156px; max-height: 244px; object-fit: contain; filter: drop-shadow(14px 18px 16px rgba(31,37,68,.24)); transition: transform .3s ease; }
.featured-card:hover .featured-cover img { transform: translateY(-5px) rotate(-1deg); }
.featured-content { padding: 38px 42px 40px; }
.publication-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.publication-kind { display: inline-flex; align-items: center; min-height: 29px; padding: 0 11px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.publication-kind.journal { color: #7a2849; background: #f8eaf0; }
.publication-kind.adjudication { color: #176a5a; background: #e6f3ef; }
.featured-content h3 { max-width: 820px; margin-bottom: 16px; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.17; letter-spacing: -.045em; }
.featured-content > p { max-width: 910px; margin-bottom: 20px; color: var(--muted); line-height: 1.72; }
.editor-line { display: grid; grid-template-columns: 115px 1fr; gap: 15px; margin-bottom: 24px; padding: 15px 17px; border-radius: 12px; color: var(--muted); background: var(--surface-soft); font-size: .85rem; line-height: 1.55; }
.editor-line strong { color: var(--text); }
.publication-action { margin-top: 5px; }

.contents-panel { margin: 22px 0 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.contents-panel summary { position: relative; padding: 15px 48px 15px 17px; color: var(--primary); font-weight: 800; list-style: none; cursor: pointer; }
.contents-panel summary::-webkit-details-marker { display: none; }
.contents-panel summary::after { content: "+"; position: absolute; top: 50%; right: 17px; font-size: 1.35rem; transform: translateY(-52%); }
.contents-panel[open] summary::after { content: "−"; }
.contents-panel[open] summary { border-bottom: 1px solid var(--border); }
.contents-body { padding: 20px 20px 7px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.contents-body h4 { margin-bottom: 10px; color: var(--text); font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; }
.contents-body ul { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.contents-body li { display: grid; gap: 3px; }
.contents-body li strong { color: var(--text); }
.contents-body p { margin-bottom: 13px; }

.catalogue-section { padding: 96px 0 110px; background: linear-gradient(180deg, #f8f7fb 0%, #fff 42%); }
.catalogue-group { scroll-margin-top: 25px; }
.catalogue-group + .catalogue-group { margin-top: 76px; padding-top: 76px; border-top: 1px solid var(--border); }
.group-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 28px; }
.group-heading h3 { margin-bottom: 0; color: var(--text); font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.045em; }
.group-heading p { max-width: 480px; margin-bottom: 3px; color: var(--muted); line-height: 1.6; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.catalogue-grid-journals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.publication-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(31,37,68,.055); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.publication-card:hover { transform: translateY(-5px); border-color: rgba(92,43,130,.3); box-shadow: var(--shadow-hover); }
.card-cover { height: 270px; }
.card-cover img { width: 130px; max-height: 205px; object-fit: contain; filter: drop-shadow(12px 16px 14px rgba(31,37,68,.23)); transition: transform .3s ease; }
.publication-card:hover .card-cover img { transform: translateY(-4px) rotate(-1deg); }
.cover-year { position: absolute; right: 18px; bottom: 16px; padding: 6px 9px; border-radius: 8px; color: var(--text); background: rgba(255,255,255,.78); backdrop-filter: blur(7px); font-size: .71rem; font-weight: 800; }
.card-content { display: flex; flex-direction: column; min-height: 385px; padding: 27px 28px 29px; }
.card-content h4 { margin-bottom: 13px; font-size: 1.22rem; line-height: 1.35; letter-spacing: -.035em; }
.card-content > p { margin-bottom: 19px; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.card-content .contents-panel { margin-top: 1px; }
.contents-panel.compact summary { font-size: .84rem; }
.card-content .publication-action { width: 100%; margin-top: auto; }
.card-editors { padding-top: 15px; border-top: 1px solid var(--border); }
.card-editors strong { display: block; margin-bottom: 4px; color: var(--text); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

.contribute-panel { display: flex; align-items: center; justify-content: space-between; gap: 42px; margin-top: 88px; padding: 43px 48px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, #32155c, #5c2b82 55%, #2f4aa0); box-shadow: var(--shadow); }
.contribute-panel .eyebrow { color: #d8c3e8; }
.contribute-panel h2 { margin-bottom: 10px; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.045em; }
.contribute-panel p { max-width: 650px; margin-bottom: 0; color: rgba(255,255,255,.78); line-height: 1.68; }
.contribute-panel .button { flex: 0 0 auto; color: var(--primary); background: #fff; }

.site-footer { width: 100%; padding: 46px max(32px, calc((100vw - var(--container)) / 2)) 28px; color: rgba(255,255,255,.88); background: linear-gradient(90deg, #26124b 0%, #2e1960 45%, #341f72 100%); }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr 1.12fr; gap: 28px; }
.footer-column { display: flex; flex-direction: column; gap: 11px; }
.footer-brand img { width: 122px; margin-bottom: 13px; }
.footer-brand-copy { max-width: 245px; color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.65; }
.footer-title { margin-bottom: 4px; color: #fff; font-size: .95rem; font-weight: 800; }
.footer-links { display: grid; gap: 9px; color: rgba(255,255,255,.77); font-size: .88rem; }
.footer-links a:hover { color: #fff; }
.footer-meta { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.62); font-size: .84rem; }
.footer-meta-links { display: flex; flex-wrap: wrap; gap: 14px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .featured-card { grid-template-columns: 250px 1fr; }
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .nav { flex-wrap: wrap; gap: 18px; }
  .nav-links { order: 3; width: 100%; }
  .nav-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .section-heading, .group-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .featured-card { grid-template-columns: 220px 1fr; }
  .featured-content { padding: 31px; }
  .contribute-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  :root { --gutter: 28px; }
  .topbar { padding-top: 16px; padding-bottom: 12px; }
  .brand { width: 100%; justify-content: center; }
  .brand img { width: 82px; }
  .nav-actions { width: 100%; margin-left: 0; }
  .nav-actions .button { width: 100%; }
  .publications-hero { min-height: 645px; }
  .publications-hero::after { background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,255,255,.93) 58%, rgba(255,255,255,.54)); }
  .hero-grid { padding: 51px 0 74px; }
  .hero-copy > p { font-size: 1rem; }
  .hero-links { align-items: stretch; flex-direction: column; }
  .hero-links a { justify-content: space-between; }
  .latest-section, .catalogue-section { padding: 72px 0 82px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-cover { min-height: 300px; }
  .featured-cover img { width: 148px; }
  .featured-content { padding: 27px 24px 29px; }
  .editor-line { grid-template-columns: 1fr; gap: 4px; }
  .featured-content .publication-action { width: 100%; }
  .catalogue-grid, .catalogue-grid-journals { grid-template-columns: 1fr; }
  .catalogue-group + .catalogue-group { margin-top: 58px; padding-top: 58px; }
  .card-content { min-height: 0; }
  .contribute-panel { margin-top: 66px; padding: 34px 25px; }
  .contribute-panel .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-right: 22px; padding-left: 22px; }
  .footer-meta { align-items: flex-start; flex-direction: column; }
}
