:root {
  --ink: #263238;
  --muted: #66757f;
  --brand: #9e032e;
  --brand-dark: #7a0222;
  --brand-soft: #f5d2db;
  --paper: #ffffff;
  --wash: #f7f8f8;
  --line: #e2e7ea;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Rambla, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.38;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

h1,
h2,
h3,
.nav a {
  font-family: Quicksand, "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
}

h1 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

h2 {
  margin: 0 0 .35rem;
  color: var(--brand);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

h3 {
  margin: 0 0 .25rem;
  font-size: 1.15rem;
}

p {
  margin: 0 0 .45rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  max-width: none;
  margin: 0 auto;
  padding: .35rem 1rem .35rem .35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-weight: 700;
}

.brand img {
  width: auto;
  height: 34px;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .25rem;
}

.nav a {
  display: inline-block;
  padding: .3rem .55rem;
  border-radius: 6px;
  color: var(--ink);
  font-size: .9rem;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: #fff;
  background: var(--brand);
  text-decoration: none;
}

.hero {
  height: 170px;
  display: grid;
  align-items: end;
  color: #fff;
  background: url("../data/images/banner_v2.jpg") center / cover no-repeat;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .65);
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.hero p {
  max-width: 520px;
  margin: .35rem 0 0;
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
}

.page-title {
  height: 130px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  background: url("../data/images/banner_v2.jpg") center / cover no-repeat;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .65);
}

.page-title h1 {
  width: 100%;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.hero h1,
.hero p,
.page-title h1 {
  max-width: min(560px, 48vw);
}

.section {
  padding: 1.15rem 1.25rem;
}

.section.alt {
  background: var(--wash);
}

.section.tint {
  background: var(--brand-soft);
}

.inner {
  max-width: var(--max);
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.feature-card,
.publication,
.press-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.feature-card {
  text-align: center;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.feature-card div {
  padding: .6rem;
}

.media-row {
  display: grid;
  grid-template-columns: minmax(220px, 36%) 1fr;
  align-items: center;
  gap: .85rem;
}

.media-row + .media-row,
.publication + .publication,
.press-item + .press-item {
  margin-top: .75rem;
}

.media-row img,
.publication img {
  width: 100%;
  border-radius: 8px;
}

.publication {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: .65rem;
  padding: .65rem;
}

.press-item {
  padding: .65rem .8rem;
}

.date {
  color: var(--muted);
  font-weight: 700;
}

.compact-list-page .section {
  padding-top: .65rem;
  padding-bottom: .65rem;
}

.compact-list-page h2 {
  margin-bottom: .2rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.compact-list-page p {
  margin-bottom: .25rem;
}

.compact-list-page .publication {
  grid-template-columns: 140px 1fr;
  gap: .5rem;
  padding: .45rem;
}

.compact-list-page .publication + .publication,
.compact-list-page .press-item + .press-item {
  margin-top: .45rem;
}

.compact-list-page .press-item {
  padding: .45rem .65rem;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
}

.image-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.logo-wall {
  display: block;
  max-width: 860px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

.site-footer {
  padding: 1.15rem 1.25rem;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.site-footer img {
  width: min(360px, 90%);
  margin-bottom: .45rem;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    height: 155px;
  }

  .page-title {
    height: 115px;
  }

  .section {
    padding: .9rem 1rem;
  }

  .hero h1,
  .hero p,
  .page-title h1 {
    max-width: 100%;
  }

  .grid-3,
  .grid-2,
  .media-row,
  .publication,
  .image-strip {
    grid-template-columns: 1fr;
  }
}
