/* Lightweight CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kantumruy:wght@300display=swap');

/* Primary styles */
body {
  font-family: 'Kantumruy', sans-serif;
  font-weight: 300;
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 1px;
}

figure {
  /* aspect-ratio: 3/2; */
  background: #fff;
  border-radius: 0.25rem;
}

hr {
  border: 0;
  grid-column: 1 / -1;
}

main,
section {
  display: grid;
  gap: 1rem;
}

main::before,
main::after {
  content: '';
  display: block;
  grid-column: 1 / -1;
  height: calc(50vw - 14rem);
  max-height: calc(33vh - 1rem);
}

section > article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
}

@media (min-width: 32rem) {
  section {
    grid-template-columns: 8rem 1fr;
  }

  section > * {
    grid-column: 2;
  }

  section > h2 {
    grid-column: 1;
  }
}

@media (min-width: 52rem) {
  section {
    grid-template-columns: 8rem minmax(10rem, 28rem) auto;
    grid-auto-flow: row;
  }

  section > * {
    grid-row: 1;
  }

  section > figure {
    grid-column: 3;
  }
}
