@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5efe2;
  --ink: #27221d;
  --quiet: #5f5549;
  --wine: #8b2e38;
  --rule: #c8bbab;
  --serif: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.frame { width: min(100% - 5.5rem, 78rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  padding: .62rem 1rem;
  z-index: 6;
  top: .5rem;
  left: .5rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-color: var(--rule);
  border-style: solid;
}
.masthead { min-height: 5.25rem; border-width: 0 0 1px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 770;
  font-size: 1.13rem;
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
}
.mark {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--wine);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1;
}
.masthead nav a, .footer > a:last-child {
  font-size: .91rem;
  font-weight: 650;
  text-underline-offset: .25em;
  text-decoration-color: transparent;
  transition: text-decoration-color .16s ease;
}
.masthead nav a:hover, .footer > a:last-child:hover { text-decoration-color: currentColor; }
.masthead nav span, .footer > a:last-child span { margin-left: .25rem; color: var(--wine); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding-block: clamp(3.65rem, 7vw, 6rem);
}
.eyebrow, .category {
  color: var(--wine);
  font-size: .74rem;
  font-weight: 770;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.hero .eyebrow { margin-bottom: 1.3rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 630; }
h1 { font-size: clamp(4.25rem, 7.9vw, 8.1rem); line-height: .84; letter-spacing: -.065em; }
h1 em { color: var(--wine); font-style: italic; font-weight: inherit; }
.intro {
  margin-top: 1.65rem;
  max-width: 24rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--quiet);
}
.button {
  margin-top: 1.65rem;
  padding: .72rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  background: var(--wine);
  color: var(--paper);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 700;
  transition: background-color .18s ease;
}
.button:hover { background: #65212a; }

.hero-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.13;
  display: grid;
  place-items: center;
  container-type: inline-size;
  overflow: hidden;
  background-color: #e7ddce;
  background-image: repeating-linear-gradient(90deg, transparent 0 21px, #765c4e19 22px 23px),
                    repeating-linear-gradient(0deg, transparent 0 21px, #765c4e19 22px 23px);
}
.hero-art::after {
  position: absolute;
  inset: 9%;
  content: "";
  border: 1px solid #7c645452;
  z-index: -1;
}
.hero-note {
  position: absolute;
  left: 7%;
  bottom: 12%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: .55rem .22rem;
  background: #e7ddce;
  color: var(--wine);
  letter-spacing: .26em;
  font-size: .58rem;
  font-weight: 770;
}
.hero-book {
  grid-area: 1 / 1;
  width: 43%;
  aspect-ratio: .71;
  border-radius: 2% 1% 1% 2%;
  border: 1px solid #2418194c;
  box-shadow: inset .45rem 0 0 #13111223, .31rem .56rem 0 #dbceb0, .38rem .65rem 0 #393128, .9rem 1.1rem 1.5rem #4e382a4d;
}
.hero-book-back { background: #2d3c35; transform: translate(-26%, 4%) rotate(-20deg); }
.hero-book-middle { background: #ab7546; transform: translate(24%, 5%) rotate(19deg); }
.hero-book-front {
  display: flex;
  flex-direction: column;
  padding: 3%;
  transform: translateY(-3%) rotate(-4deg);
  background-color: var(--wine);
  color: #fae7c7;
}
.hero-book-imprint, .hero-book-edition {
  font-size: clamp(.35rem, 2.3cqw, .8rem);
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-book-imprint { border-bottom: 1px solid #fae7c777; padding-bottom: .27rem; }
.hero-book-name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 10cqw, 4rem);
  font-weight: 645;
  letter-spacing: -.05em;
  line-height: .82;
  margin-top: 9%;
}
.hero-book-lines {
  flex: 1;
  margin-block: 7%;
  background: repeating-radial-gradient(ellipse at 16% 112%, transparent 0 8px, #ffc98a 9px 10px, transparent 11px 13px);
}

.collection {
  border-top: 1px solid var(--rule);
  padding-block: 2.9rem 4.75rem;
  scroll-margin-top: 1.25rem;
}
.section-head {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  align-items: end;
  gap: 1rem 2.75rem;
  margin-bottom: 1.85rem;
}
h2 { margin-top: .65rem; font-size: clamp(2.75rem, 5.55vw, 5.8rem); line-height: .9; letter-spacing: -.055em; }
.section-head > p { color: var(--quiet); max-width: 23rem; }
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.4rem); }
.book {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.shelf {
  width: 100%;
  display: grid;
  place-items: center;
  aspect-ratio: 1.16;
  container-type: inline-size;
}
.shelf-signal { background: #e5d3c8; }
.shelf-offer { background: #d9dfd5; }
.shelf-motion { background: #e8dbca; }
.book-cover {
  width: 46%;
  aspect-ratio: .72;
  display: flex;
  flex-direction: column;
  padding: 4%;
  border-radius: 1.8% .6% .6% 1.8%;
  border: 1px solid #24181955;
  box-shadow: inset .25rem 0 #24181929, .18rem .31rem #dbcbb1, .23rem .38rem #211d1a, .5rem .8rem .9rem #4030253f;
  transform: rotate(-6deg);
}
.cover-signal { background: var(--wine); color: #fae7c7; }
.cover-offer { background: #2d3c35; color: #ebedc2; transform: rotate(5deg); }
.cover-motion { background: #af7649; color: #251913; transform: rotate(-4deg); }
.cover-top, .cover-bottom {
  font-size: clamp(.36rem, 2.5cqw, .76rem);
  font-weight: 790;
  line-height: 1.12;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.cover-top { display: flex; justify-content: space-between; gap: 1ch; padding-bottom: .24rem; border-bottom: 1px solid currentColor; }
.cover-name {
  font: 650 clamp(1rem, 8.2cqw, 3rem)/.84 var(--serif);
  letter-spacing: -.055em;
  margin-top: 9%;
}
.cover-art { margin-block: 7%; flex: 1; }
.art-signal { background: repeating-radial-gradient(ellipse at 12% 106%, transparent 0 6px, #ffc98a 7px 8px, transparent 9px 11px); }
.art-offer { background: repeating-linear-gradient(150deg, #d9dbaf 0 1px, transparent 2px 8px), repeating-linear-gradient(25deg, #d9dbaf00 0 15px, #d9dbaf 16px 17px, transparent 18px 21px); }
.art-motion { background: repeating-linear-gradient(-62deg, #48301c 0 2px, transparent 3px 7px, #48301c 8px 9px, transparent 10px 16px); }
.category { margin-top: 1.05rem; font-size: .67rem; }
h3 { font-size: clamp(1.9rem, 2.8vw, 2.95rem); line-height: .94; margin: .4rem 0 .58rem; letter-spacing: -.035em; }
.book > p:not(.category) { color: var(--quiet); font-size: .96rem; margin-bottom: 1rem; }
details {
  width: 100%;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: auto;
  font-size: .91rem;
}
summary {
  list-style: none;
  cursor: pointer;
  padding: .65rem .1rem;
  font-weight: 740;
  color: var(--wine);
  display: flex;
  justify-content: space-between;
  gap: .6rem;
}
summary::marker { content: ""; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-inline: .2rem; }
details[open] summary::after { content: "−"; }
summary:hover { text-decoration: underline; text-underline-offset: .2em; }
details ul { padding-left: 1.15rem; margin: .1rem .35rem .65rem 0; }
details li { margin-block: .24rem; }
details p { margin: .35rem 0 .85rem; color: var(--quiet); }
.footer { border-width: 1px 0 0; padding-block: 1.4rem; }
.footer p { color: var(--quiet); font-size: .92rem; }

@media (max-width: 59rem) {
  .frame { width: calc(100% - 3rem); }
  .hero { gap: 1.5rem; }
  h1 { font-size: clamp(3.85rem, 8.8vw, 6rem); }
}

@media (max-width: 45rem) {
  .frame { width: calc(100% - 2.5rem); }
  .masthead { min-height: 4.2rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.7rem 2.8rem; }
  h1 { font-size: clamp(3.7rem, 13vw, 5.9rem); }
  .intro { margin-top: 1.1rem; }
  .button { margin-top: 1.2rem; }
  .hero-art { aspect-ratio: 1.25; max-height: 30rem; }
  .section-head { grid-template-columns: 1fr; }
  .collection { padding-block: 2rem 3rem; }
  .books { grid-template-columns: 1fr; gap: 2.5rem; }
  .shelf { aspect-ratio: 1.34; }
  .book-cover { width: min(44%, 13.5rem); }
  .footer { flex-wrap: wrap; }
  .footer p { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
