@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
}

html {
  background: #f6f4ef;
  color: #221e1b;
  color-scheme: light;
}

body {
  margin: 0 auto;
  max-width: 48rem;
  padding: 3.5rem 1.75rem 4.5rem;
  font-family: "Source Serif 4", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.45;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

::selection {
  background: #aa1811;
  color: #f6f4ef;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

.series {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.16em;
}

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

.series a:hover,
.series a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.series a:focus-visible {
  outline: 1px solid #221e1b;
  outline-offset: 0.28rem;
}

.place {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
}

.rules {
  margin-top: 0.75rem;
  border-top: 1px solid #aa1811;
  padding-top: 2px;
  border-bottom: 1px solid #221e1b;
}

main {
  display: grid;
  grid-template-columns: 15rem 1fr;
  column-gap: 3rem;
  align-items: center;
  margin-top: 2.35rem;
}

.plate {
  margin: 0;
}

.plate img {
  display: block;
  width: 15rem;
  height: auto;
  border: 1px solid #221e1b;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.statement p {
  margin: 0;
  max-width: 28rem;
}

footer {
  margin-top: 3.25rem;
  border-top: 1px solid #221e1b;
}

@media (max-width: 40rem) {
  body {
    padding: 1.65rem 1.15rem 3rem;
  }

  .mast {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  main {
    grid-template-columns: 1fr;
    row-gap: 1.65rem;
  }

  .plate img {
    width: 12.5rem;
  }

  h1 {
    font-size: 2.15rem;
  }
}

.holdings {
  margin-top: 2rem;
}

.line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.holdings h2,
.record h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.register,
.works {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.entry,
.work {
  padding: 0.8rem 0;
  border-bottom: 1px solid #d9d2c6;
}

.entry.has-logo {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.entry img,
.portrait {
  display: block;
  width: 4.5rem;
  height: auto;
  border: 1px solid #221e1b;
}

.entry .name,
.work .title {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.entry .name:hover,
.work .title:hover {
  border-bottom-color: #221e1b;
}

.count,
.year,
.meta,
.by {
  color: #3f3832;
}

.work {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
}

.work .by {
  grid-column: 1 / -1;
  margin: 0;
}

.record {
  margin-top: 2.2rem;
}

.record h1 {
  margin-top: 0;
}

.reader {
  margin-top: 1.4rem;
}

.reader-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.6rem;
}

.reader-bar button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid #221e1b;
  border-radius: 0;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
}

.reader-bar a {
  margin-left: auto;
}

.sheet {
  overflow: auto;
  max-height: 78vh;
  background: #e4dece;
  border: 1px solid #221e1b;
  padding: 1rem;
}

.sheet canvas {
  display: block;
  margin: 0 auto;
  background: #fff;
}

@media print {
  body {
    max-width: none;
    padding: 0;
  }

  .series a {
    text-decoration: none;
  }

  .reader-bar {
    display: none;
  }
}
