:root {
  margin: 0;
  padding: 0;
  --blue-50: #f0f8ff;
  --blue-100: #c8e4fe;
  --blue-200: #9bcffd;
  --blue-300: #69b7fc;
  --blue-400: #4faafc;
  --blue-500: #1f9cfa;
  --blue-600: #1c7fc9;
  --blue-700: #195e9f;
  --blue-800: #133b77;
  --blue-900: #06214c;
  --red-500: #f61706;
}

html {
  font-size: 1em;
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
  font-size: 1rem;
}

/*
*
* TYPOGRAPHY *
*
*/

h1,
.sans-7 {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 4.5rem;
  padding: 0;
  margin: 0;
}

h2,
.sans-6,
.title {
  font-size: 3rem;
  font-weight: 600;
  line-height: 3.5rem;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
}

h3,
.sans-5,
.project {
  font-size: 2rem;
  font-weight: 600;
  line-height: 3rem;
  padding: 0;
  margin: 0;
}

.serif-5 {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-size: 2rem;
  line-height: 2.5rem;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
}

.dm-sans {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

p {
  font-size: 1rem;
  line-height: 1.5rem;
  vertical-align: baseline;
}

p.small,
.date {
  font-size: 0.875rem;
  line-height: 1.25rem;
  opacity: 0.8;
  vertical-align: baseline;
}

/*
*
* LAYOUT *
*
*/
.heading {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.75rem;
  color: var(--blue-700);
  max-width: 13ch;
}
.container {
  width: 100%;
  padding: 4rem 0 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr minmax(50vh, calc(100vh - 8rem));
  align-items: end;
  gap: 0.75rem;
  container: page-flex / inline-size;
  background-color: #fff;
}
.intro {
  grid-column: 2 / -1;
}

.item {
  min-height: 480px;
  grid-column: 2;
  background-color: white;
  color: #333;
  overflow: hidden;
  display: grid;
  container: item / inline-size;
  grid-template-columns: 1fr 1.5rem;
  border-bottom: 1px solid #eee;
  /* box-shadow: 0 0.5rem 1rem #00000033; */
  grid-template-areas: "feature feature" "title tags" "project tags" "releaseDate tags" "description tags" "credits .";
}

.info {
  grid-column: 1 span 6;
  opacity: 0;
  grid-row: 1 / -1;
  background-color: #fff;
}
.info.isShown {
  opacity: 1;
}
.item .title,
.item .project,
.item .date {
  color: #f2462c;
}
/* @container (width > 2000px) {
  .item {
    width: calc(50cqw - 2rem);
  }
} */
@container item (width > 0) {
  img.image {
    width: 100%;
    object-fit: contain;
    background-color: #fff;
    grid-column: span 2;
  }
}
.item .tags {
  grid-area: tags;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.25rem;
}

.item .badge {
  background-color: #f2462c;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.5rem 0.25rem;
  height: max-content;
  flex-basis: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.item .category {
  grid-column: span 4;
}

.item .date {
  grid-area: releaseDate;
}

.item .description,
.item .credits {
  grid-area: description;
  display: flex;
  justify-content: end;
  align-items: end;
  opacity: 1;
}
.item .credits {
  grid-area: credits;
}
.description p,
.credits p {
  max-width: 32rem;
}

/*
*
* COMPONENTS *
*
*/

.btn {
  display: inline-flex;
  border: solid 1px currentColor;
  border-radius: 3rem;
  padding: 0.5rem;
  width: auto;
  text-align: center;
  align-content: center;
  justify-content: center;
}
.btn.show {
  opacity: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.btn.show:hover {
  background-color: #00000020;
}
.item .info .btn.show:hover + .description {
  opacity: 1;
}
.item:hover .btn.show {
  opacity: 1;
}
