:root {
  color-scheme: light;
  --paper: #faf7f0;
  --ink: #23333b;
  --muted: #5b6367;
  --focus: #6b3b87;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.homepage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.125rem;
  padding: 1.25rem 1.5rem;
}

.institute-logo {
  display: block;
  width: 8.5rem;
  max-width: 100%;
  height: auto;
}

.heading {
  text-align: center;
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.4rem, 4.8vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3em;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
}

.dates time {
  white-space: nowrap;
}

.cartoon {
  width: min(100%, 64rem);
  margin: 0;
}

.cartoon img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(35 51 59 / 12%);
  border-radius: 0.5rem;
  box-shadow: 0 0.375rem 1.5rem rgb(35 51 59 / 5%);
}

.collaboration-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  max-width: 100%;
  padding: 0.75rem 1.375rem;
  border: 1px solid var(--ink);
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.collaboration-link:hover {
  background: #344a56;
  box-shadow: 0 0.25rem 0.75rem rgb(35 51 59 / 16%);
}

.collaboration-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.sponsor-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 40rem) and (min-height: 28rem) {
  .homepage--landing {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    justify-content: normal;
    justify-items: center;
    align-items: center;
    gap: clamp(0.625rem, 1.6svh, 1rem);
    padding-block: clamp(0.75rem, 2.3svh, 1.5rem);
  }

  .cartoon {
    position: relative;
    align-self: stretch;
    min-height: 0;
    min-width: 0;
  }

  .cartoon img {
    /* Keep the image's intrinsic size out of the grid's track sizing. */
    position: absolute;
    inset: 0;
    margin: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 35rem) {
  .homepage {
    gap: 1.25rem;
    padding: 1.5rem 1rem;
  }

  .cartoon img {
    border-radius: 0.375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collaboration-link {
    transition: none;
  }
}
