@font-face {
  font-family: "Poster Montserrat";
  src: url("assets/montserrat-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Poster Open Sans";
  src: url("assets/open-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poster Subtitle";
  src: url("assets/open-sans-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #365b6d;
  --text: #2b474e;
  --accent: #176788;
  --rule: #289dd2;
  --line: #a7bcc5;
  --paper: #f4f7f6;
  --surface: #fff;
  --surface-hover: #eef4f3;
  font: 100%/1.5 "Poster Open Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, p, ul { margin: 0; }

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(68rem, calc(100% - clamp(1.75rem, 8vw, 6rem)));
  margin-inline: auto;
}

.poster-header {
  padding-block: clamp(1.3rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
  border-bottom: 3px solid var(--rule);
  text-align: center;
}

.poster-credits {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) 9rem;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
}

.fresenius {
  display: block;
  width: 100%;
  max-height: 4.5rem;
  object-fit: contain;
  object-position: left center;
}

.project-logo {
  width: auto;
  height: clamp(2.6rem, 5.8vw, 4.45rem);
  justify-self: end;
}

.authors {
  color: var(--ink);
  font-size: clamp(.8rem, 1.2vw, .9rem);
  line-height: 1.55;
  text-transform: uppercase;
}

.authors span { white-space: nowrap; }

.poster-header h1 {
  margin-top: clamp(1.35rem, 3.6vw, 2.65rem);
  color: var(--ink);
  font: 700 clamp(1.6rem, 5.2vw, 3.5rem)/1.1 "Poster Montserrat", "Segoe UI", sans-serif;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.subtitle {
  margin: .75rem auto 0;
  color: var(--ink);
  font-family: "Poster Subtitle", "Poster Open Sans", "Segoe UI", sans-serif;
  font-size: clamp(.9rem, 1.8vw, 1.2rem);
  font-weight: 600;
  text-transform: uppercase;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.65rem, 1.8vw, 1.15rem);
  list-style: none;
  padding: 0;
  margin-block: clamp(1.35rem, 4.4vw, 3rem);
}

.tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--surface);
}

.tile-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.5rem;
  padding: .75rem .4rem;
  border-radius: .6rem .6rem 0 0;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}

.tile-link:hover {
  background: var(--surface-hover);
}

.tile-link:hover .tile-title {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.tile-title {
  font-size: clamp(1rem, 1.65vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.download {
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 2.75rem;
  margin: 0 .7rem .72rem;
  border-radius: .35rem;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
}

.download:hover { background: var(--accent); }

.download-icon {
  position: relative;
  width: 1.05rem;
  height: .38rem;
  margin-top: .65rem;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 .12rem .12rem;
}

.download-icon::before,
.download-icon::after {
  content: "";
  position: absolute;
  left: 50%;
}

.download-icon::before {
  top: -.68rem;
  width: 1.5px;
  height: .68rem;
  background: currentColor;
  transform: translateX(-50%);
}

.download-icon::after {
  top: -.39rem;
  width: .43rem;
  height: .43rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.footer {
  padding-block: .7rem 1.35rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: .9rem;
  text-underline-offset: .16em;
}

.legal {
  width: min(38rem, calc(100% - 2rem));
  margin: 2rem auto;
}

.legal h1 { margin-top: 1rem; color: var(--ink); font-size: 2rem; line-height: 1.15; }
.legal-section { border-top: 1px solid var(--line); margin-top: 1.25rem; padding: 1.15rem 0 0; }
.legal h2 { margin-bottom: .45rem; color: var(--ink); font-size: 1.1rem; }
.legal a { color: var(--accent); }
.legal address { margin-top: .4rem; font-style: normal; }
.legal-note { margin-block: .5rem 1.1rem; color: var(--ink); }
.editor + .editor { margin-top: .85rem; }

@media (max-width: 68rem) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 46rem) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 39rem) {
  .poster-credits {
    grid-template-columns: 1fr 1fr;
    row-gap: .95rem;
  }

  .fresenius { max-width: 8.35rem; }
  .authors { order: 1; grid-column: 1 / -1; }
  .poster-header h1 { margin-top: 1.35rem; }
  .tile-link { padding-inline: .4rem; }
  .tile-title { font-size: .98rem; }
}
