/* CIYCEA: minimal institutional theme */
:root {
  --bg: #ffffff;
  --ink: #0e1116;
  --text: #2c3038;
  --grey: #6a6e76;
  --line: #e2e2de;
  --soft: #f3f3f0;
  --navy: #16284f;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1400px;
  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 32px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Link underline that draws in on hover */
.u {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.3s ease;
}
.u:hover { background-size: 100% 1px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 72px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: clamp(16px, 2.6vw, 40px); font-size: 14px; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 136px) 0 clamp(36px, 5vw, 64px); }
.eyebrow { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 14px; margin-bottom: 28px; font-size: 13px; color: var(--grey); }
.eyebrow span { white-space: nowrap; }
.hero h1 { grid-column: 1 / span 11; font-size: clamp(40px, 6.4vw, 104px); line-height: 1; letter-spacing: -0.045em; }
.hero-figure { margin: 0 auto; }
.hero-figure img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--soft); }
.caption { margin-top: 12px; font-size: 12px; color: var(--grey); }

/* Sections: label on the left, content on the right */
.section { padding-top: clamp(80px, 11vw, 152px); }
.section-inner { padding-top: 20px; border-top: 1px solid var(--ink); }
.label { grid-column: 1 / span 3; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.body { grid-column: 4 / -1; }
.lede { max-width: 25em; font-size: clamp(24px, 2.7vw, 40px); line-height: 1.2; letter-spacing: -0.025em; }

/* About */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); }
.col h3 { margin-bottom: 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.col p { font-size: 15.5px; color: var(--text); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(56px, 7vw, 96px); }
.figures div { padding-top: 16px; border-top: 1px solid var(--line); }
.figures strong { display: block; font-size: clamp(36px, 4.2vw, 64px); font-weight: 400; line-height: 1; letter-spacing: -0.045em; }
.figures span { display: block; margin-top: 12px; font-size: 13px; color: var(--grey); }

/* Journal */
.journal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.item .cover { display: block; overflow: hidden; background: var(--soft); }
.item .cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.item:hover .cover img { transform: scale(1.015); }
.meta { margin-top: 16px; font-size: 13px; color: var(--grey); }
.item h3 { margin-top: 6px; font-size: clamp(22px, 2vw, 30px); line-height: 1.18; letter-spacing: -0.025em; }
.excerpt { max-width: 32em; margin-top: 10px; font-size: 15.5px; color: var(--text); }

/* Programmes index */
.index { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 160px; gap: var(--gap); align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row:first-child { padding-top: 0; }
.when, .where { font-size: 14px; color: var(--grey); font-variant-numeric: tabular-nums; }
.where { text-align: right; }
.row h3 { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -0.025em; }
.row p { max-width: 40em; margin-top: 6px; font-size: 15px; color: var(--text); }
.tag { margin-left: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--navy); vertical-align: 0.3em; }

/* Press */
.facts { margin: clamp(36px, 4vw, 56px) 0 0; }
.facts div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--gap); padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--grey); }
.facts dd { margin: 0; font-size: 16px; }
.facts a { border-bottom: 1px solid currentColor; }

/* Partners */
.names { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--gap); font-size: clamp(20px, 2vw, 30px); line-height: 1.45; letter-spacing: -0.025em; }
.names li { break-inside: avoid; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.contact h3 { margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--grey); letter-spacing: 0; }
.contact a, .contact address { font-size: 17px; font-style: normal; line-height: 1.5; overflow-wrap: anywhere; }
.contact a { border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.contact a:hover { border-color: var(--ink); }

/* Footer */
.site-footer { margin-top: clamp(96px, 12vw, 168px); padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--grey); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.foot img { height: 22px; width: auto; }

/* Article */
.article-head { padding: clamp(56px, 8vw, 120px) 0 clamp(36px, 5vw, 64px); }
.article-head .label { color: var(--grey); }
.head { grid-column: 4 / -1; }
.head h1 { max-width: 15em; font-size: clamp(36px, 5.2vw, 80px); line-height: 1.02; letter-spacing: -0.04em; }
.standfirst { max-width: 34em; margin-top: 28px; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 25px); line-height: 1.45; color: var(--text); }
.byline { margin-top: 28px; font-size: 13px; color: var(--grey); }
.prose { grid-column: 4 / span 7; font-family: var(--serif); font-size: 19px; line-height: 1.7; color: #1c1f25; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin: 2.2em 0 0.6em; font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.prose > h2:first-child { margin-top: 1.4em; }
.prose ol { margin: 1.1em 0; padding-left: 1.2em; }
.prose li + li { margin-top: 0.8em; }
.prose strong { font-weight: 600; }
.art-figure { grid-column: 2 / span 10; margin: clamp(40px, 5vw, 72px) 0; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.art-figure > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); }
.note { margin-top: 1.4em; font-style: italic; color: var(--text); }
.credits { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--grey); }
.credits a { border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .label, .body, .head, .prose, .art-figure, .hero h1 { grid-column: 1 / -1; }
  .label { margin-bottom: 28px; }
  .cols-3, .contact { grid-template-columns: 1fr; gap: 28px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .journal { grid-template-columns: 1fr; gap: 56px; }
  .row { grid-template-columns: 84px minmax(0, 1fr); row-gap: 4px; }
  .where { grid-column: 2; text-align: left; }
  .names { columns: 1; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .hero-figure img { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .brand img { height: 26px; }
  .nav { gap: 16px; font-size: 13px; }
  .pair { grid-template-columns: 1fr; }
  .prose { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
