:root {
  color-scheme: light;
  --paper: #faf7f2;
  --ink: #1b2340;
  --muted: #5d6275;
  --line: #e2ddd3;
  --card: #ffffff;
  --hi: #ff8d67;
  --blue: #2f4aa8;
}

html {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
}

p,
h1,
h2 {
  margin: 0;
}

a:link,
a:visited {
  color: var(--blue);
}

.wrap {
  width: min(1056px, calc(100% - 64px));
  margin-inline: auto;
}

.band {
  border-bottom: 1px solid var(--line);
}

header .band {
  display: flex;
  align-items: flex-start;
  height: 86px;
  padding-top: 36px;
}

.brand {
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.brand:link,
.brand:visited {
  color: var(--ink);
}

.hero {
  padding-top: 52px;
  text-align: center;
}

h1 {
  margin: 30px auto 0;
  max-width: 760px;
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 600;
  line-height: 65px;
  text-align: center;
}

h1 em {
  color: var(--ink);
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(transparent 58%, var(--hi) 58%, var(--hi) 89%, transparent 89%);
}

.shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 33px;
}

.shelf article {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h2 {
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  width: 101px;
  height: 29px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.blurb {
  margin-top: 17px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

footer .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 22px;
  padding-bottom: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

footer a {
  display: inline-flex;
  line-height: 0;
}

footer img {
  width: 16px;
  height: 16px;
}

.missing {
  padding: 56px 0 72px;
  text-align: center;
}

.missing h1 {
  margin-top: 0;
}

.missing p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .shelf {
    grid-template-columns: 1fr;
  }

  .shelf article {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(1056px, calc(100% - 40px));
  }

  .hero {
    padding: 44px 0 28px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.15;
  }

  footer .foot {
    padding-bottom: 24px;
  }

  .shelf article:nth-child(2) {
    order: -1;
  }
}

@media (min-width: 601px) {
  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero {
    padding-top: 18px;
  }
}
