/* ABOUTME: Styles the monochrome Pagepaint design review index. */
/* ABOUTME: Uses a typographic list that stays readable on small screens. */
@font-face {
  font-family: "DM Sans";
  src: url("/demo/fonts/dm-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/demo/fonts/dm-sans-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #111;
  color: #eee;
  font-family: "DM Sans", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}
header,
main,
footer {
  width: min(1100px, calc(100% - 64px));
  margin-inline: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  border-bottom: 1px solid #383838;
}
header > a:last-child {
  font-size: 14px;
}
.brand {
  font-weight: 600;
  letter-spacing: -0.06em;
  font-size: 27px;
}
.brand span {
  color: #929292;
}
main {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  padding: 92px 0 104px;
}
.intro > p:first-child {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #aaa;
}
h1 {
  font-size: clamp(45px, 5vw, 66px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.04;
  margin: 32px 0 24px;
}
.summary {
  color: #b3b3b3;
  font-size: 17px;
  line-height: 1.65;
  max-width: 34ch;
}
.directions {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #555;
}
.directions a {
  display: grid;
  grid-template-columns: 30px 1fr 24px;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid #383838;
  transition:
    background 180ms,
    padding 180ms;
}
.directions a:hover {
  background: #1c1c1c;
  padding-inline: 12px;
}
.number {
  color: #999;
  font-family: ui-monospace, monospace;
  padding-top: 5px;
  font-size: 12px;
}
strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
small {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #aaa;
  line-height: 1.5;
}
.arrow {
  font-size: 24px;
}
footer {
  border-top: 1px solid #383838;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #aaa;
  font-size: 12px;
}
footer nav {
  display: flex;
  gap: 24px;
}
@media (max-width: 800px) {
  main {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 44px;
  }
  h1 br {
    display: none;
  }
  .summary {
    max-width: 50ch;
  }
}
@media (max-width: 480px) {
  header,
  main,
  footer {
    width: calc(100% - 40px);
  }
  header {
    height: 72px;
  }
  footer {
    flex-direction: column;
  }
  .directions a {
    gap: 12px;
    padding-block: 24px;
  }
  strong {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
