:root {
  --bg: #000000;
  --red: #ed0005;
  --red-dark: #ab0003;
}

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

html,
body {
  height: 100%;
  background: var(--bg);
}

body {
  /* "Henry Trial" is a licensed display serif used in the source design.
     Supply the font file via @font-face to get an exact match. */
  font-family: 'Henry Trial', 'Big Caslon', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: normal;
  color: var(--red);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100vw;
  height: 100vh;
}

.quadrant {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  text-align: center;
}

.quadrant--about {
  border-bottom: 1px solid var(--red-dark);
  border-right: 1px solid var(--red-dark);
  border-bottom-right-radius: 16px;
}

.quadrant--tags {
  border-top: 1px solid var(--red-dark);
  border-right: 1px solid var(--red-dark);
  border-top-right-radius: 16px;
  border-bottom-left-radius: 4px;
}

.quadrant--work {
  border-bottom: 1px solid var(--red-dark);
  border-left: 1px solid var(--red-dark);
  border-bottom-left-radius: 16px;
  border-top-right-radius: 4px;
}

.quadrant--contact {
  border-top: 1px solid var(--red-dark);
  border-left: 1px solid var(--red-dark);
  border-top-left-radius: 16px;
  border-bottom-right-radius: 4px;
}

.tag-list,
.work-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work-list {
  text-align: right;
}

.tag-list p,
.work-list a {
  white-space: nowrap;
}

.quadrant--about .bio {
  display: none;
  max-width: 345px;
  color: var(--red-dark);
}

.quadrant--about .bio p + p {
  margin-top: 1em;
}

.quadrant--about:hover .label,
.quadrant--about:focus-within .label {
  display: none;
}

.quadrant--about:hover .bio,
.quadrant--about:focus-within .bio {
  display: block;
}

.grid:has(.quadrant--about:hover) .quadrant,
.grid:has(.quadrant--about:focus-within) .quadrant {
  border-color: var(--red);
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    height: auto;
    min-height: 100vh;
  }

  .quadrant {
    padding: 32px 16px;
    border-radius: 0 !important;
    border-right: none !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: 1px solid var(--red-dark) !important;
  }

  .quadrant--contact {
    border-bottom: none !important;
  }
}
