@font-face {
  font-family: "Instrument Serif";
  src: url("../../assets/fonts/instrument.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../../assets/fonts/instrument-italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("../../assets/fonts/newsreader.woff") format("woff");
  font-display: swap;
}
:root {
  --midnight: #211d2b;
  --gold: #c6a367;
  --lettering: #e4cea2;
  --oat: #e5d6bd;
  --denim: #374a5b;
  --clay: #9c4f35;
  background: var(--midnight);
  color: var(--oat);
  font-family: Newsreader, Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2rem, 66rem); margin: 0 auto 3rem; }
header { padding: clamp(1.5rem, 3.8vw, 3rem) 0 1.15rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
p, figure, h1, h2, h3 { margin: 0; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(2.75rem, 6.6vw, 5.4rem); line-height: 1.05; color: var(--lettering); }
.brand, .imprint, .genre { font-size: .79rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .14em; }
.brand { color: var(--lettering); margin-bottom: .5rem; }
.back { color: var(--oat); text-underline-offset: .24em; padding: .5rem 0; white-space: nowrap; }
figure { position: relative; border-block: 1px solid var(--gold); }
figure img { display: block; width: 100%; height: auto; }
.book {
  position: absolute; left: 65%; top: 35%; width: 33%; height: 38%;
  background: transparent; border: none; cursor: pointer;
}
.book:focus-visible, .back:focus-visible, summary:focus-visible { outline: 3px solid var(--lettering); outline-offset: 2px; }
.book:hover { outline: 1px dashed var(--lettering); outline-offset: 1px; }
details { scroll-margin-top: .3rem; }
summary {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  padding: 1rem .25rem; min-height: 3.25rem; border-bottom: 1px solid var(--gold);
  list-style: none; font-size: 1.2rem; color: var(--lettering);
}
summary::-webkit-details-marker { display: none; }
summary:hover { text-decoration: underline; text-underline-offset: .25em; }
.open-label, details[open] .closed-label { display: none; }
details[open] .open-label { display: inline; }
details[open] .arrow { transform: rotate(180deg); }
.spread {
  display: grid; grid-template-columns: 38% 1fr;
  margin: 1.25rem 0 0; border: 5px solid var(--denim); color: var(--midnight); background: var(--oat);
  box-shadow: 0 3px 0 #17151e, 0 9px 16px #14121a66;
}
.frontispiece {
  position: relative; padding: 2.2rem 1rem; display: grid; place-content: center; text-align: center;
  background: linear-gradient(90deg, #c6a36724, transparent 12%, transparent 92%, #4f3b282b);
  border-inline-end: 1px solid #a99982;
}
.frontispiece::before { content: ""; position: absolute; inset: .8rem; border: 1px solid #c6a367; pointer-events: none; }
.imprint { color: var(--denim); }
.frontispiece h2 { font-size: clamp(3.8rem, 8vw, 7rem); line-height: 1.05; margin: .65rem 0; }
.signature { font: italic clamp(1.4rem, 2.5vw, 2rem)/1.15 "Instrument Serif", Georgia, serif; }
.entries { padding: .5rem clamp(1.3rem, 5vw, 3.8rem); background: linear-gradient(90deg,#5a42251c,transparent 6%); }
.entries section { padding: 1.4rem 0; }
.entries section + section { border-top: 1px solid #aca08c; }
.genre { color: #783e2c; margin-bottom: .35rem; }
h3 { font: 400 clamp(1.5rem, 3.3vw, 2.2rem)/1.15 Newsreader, Georgia, serif; }
h3 + p { font-size: 1.08rem; line-height: 1.44; margin-top: .32rem; }
@media (max-width: 620px) {
  main { width: min(100% - 1.5rem, 66rem); }
  header { display: grid; gap: .25rem; }
  .back { justify-self: start; }
  .spread { grid-template-columns: 1fr; }
  .frontispiece { padding: 1.55rem 1rem; border-inline-end: none; border-bottom: 1px solid #ad9d85; }
  .frontispiece h2 { font-size: 3.5rem; margin: .25rem 0; }
  .entries { padding-inline: 1.2rem; }
}
