/* Shared styles for all content pages: about, acronyms, events, artists,
   researchers, curator, news. index.html has its own stylesheet
   (index.css) since it uses a different dark hero layout. */

@font-face {
  font-family: "DS Lato Black Skew";
  src: url("fonts/DS-Lato-Black-Skew-15.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "Special Elite";
  src: url("fonts/SpecialElite-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 120%;
}

html,
body {
  min-height: 100%;
  width: 100%;
  background: #e3241e;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8vh 6vw 6vh;
}

h1 {
  font-family: "DS Lato Black Skew", "Lato Black", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: #000000;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 6vh;
}

/* About page's tagline, shown directly under the h1. Pulled up closer to
   the h1 than the shared h1 margin-bottom leaves for pages without a lede. */
.lede {
  font-family: "Lato", "Arial", sans-serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: center;
  max-width: 680px;
  width: 100%;
  margin-top: -4vh;
  margin-bottom: 4vh;
}

main {
  font-family: "Special Elite", "Courier New", Courier, monospace;
  color: #000000;
  max-width: 680px;
  width: 100%;
}

main p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.6em;
}

main a {
  color: inherit;
  font-weight: bold;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

main h2 {
  font-family: "DS Lato Black Skew", "Lato Black", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 1px;
  margin: 0.5em 0 0.8em;
}

main .placeholder {
  font-style: italic;
}

.site-nav {
  /* TEMP: nav hidden site-wide; remove this line to restore */
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em 1.4em;
  font-family: "Special Elite", "Courier New", Courier, monospace;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5vh;
}

.site-nav a {
  color: #000000;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  border-bottom-color: #000000;
}

.back-link {
  font-family: "Special Elite", "Courier New", Courier, monospace;
  color: #000000;
  text-decoration: none;
  border: 3px solid #000000;
  padding: 0.7em 1.6em;
  margin-top: 4vh;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.back-link:hover,
.back-link:focus {
  background: #000000;
  color: #e3241e;
}

/* Acronyms page */
.acronyms-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.5em;
  row-gap: 0.9em;
}

.acronyms-list dt {
  font-weight: bold;
  white-space: nowrap;
}

.acronyms-list dd {
  margin: 0;
}

@media (max-width: 480px) {
  .acronyms-list {
    grid-template-columns: 1fr;
    row-gap: 0.2em;
  }

  .acronyms-list dt {
    margin-top: 0.6em;
  }

  .acronyms-list dt:first-child {
    margin-top: 0;
  }
}

/* Artists page */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2em;
  margin-top: 1em;
}

.artist-card {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.artist-card .placeholder-box {
  border: 2px dashed #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  padding: 0.5em;
}

.artist-card .headshot {
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.12);
}

.artist-card .work-sample {
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.06);
}

.artist-card .name {
  font-weight: bold;
}

.artist-card .role {
  font-size: 0.85rem;
  font-style: italic;
}

/* Curator page */
.curator-headshot {
  border: 2px dashed #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5em;
  width: 220px;
  aspect-ratio: 1;
  margin-bottom: 1.6em;
}
