@font-face {
  font-family: Cormorant;
  src: url("assets/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --navy: #051840;
  --gold: #b2842e;
  --paper: #faf8f1;
  --serif: Cormorant, Georgia, serif;
  --inset: clamp(24px, 5vw, 88px);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--navy); background: white; font: 16px/1.55 Georgia, serif; }
.wrap { max-width: 1600px; margin: auto; padding-inline: var(--inset); }
a { color: inherit; text-underline-offset: .27em; }
button { cursor: pointer; }
button, nav, .label, .status, .card-description, small, details { font-family: Arial, sans-serif; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3, .imprint span, .byline, .credits > p { font-family: var(--serif); font-weight: 500; }
:focus-visible { outline: 3px solid #9c6416; outline-offset: 4px; }
.skip { position: absolute; z-index: 5; top: 6px; left: 8px; background: white; padding: 10px; transform: translateY(-150%); }
.skip:focus { transform: none; }
header { background: #fff; border-bottom: 1px solid #d8d1c1; }
.mast, .imprint, nav { display: flex; align-items: center; }
.mast { min-height: 88px; justify-content: space-between; }
.imprint { gap: 15px; text-decoration: none; }
.imprint img { display: block; }
.imprint span { font-size: 23px; letter-spacing: .01em; }
nav { gap: clamp(12px,3vw,48px); }
nav a { display: grid; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
nav a:hover, .imprint:hover span { text-decoration: underline; }
.opening { background: var(--paper); overflow: clip; }
.spread { display: grid; grid-template-columns: minmax(0,.79fr) minmax(0,1.21fr); grid-template-rows: 1fr auto auto 1fr; column-gap: clamp(40px,5vw,80px); }
.headline { grid-area: 2 / 1; }
.label { font-size: 11px; text-transform: uppercase; font-weight: 600; letter-spacing: .17em; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
h1 { font-size: clamp(76px,7.6vw,121px); line-height: .86; letter-spacing: -.055em; margin: 29px 0 26px; }
h1 span { display: block; }
.intro { grid-area: 3 / 1; padding-bottom: 8px; max-width: 47ch; }
.intro p { color: #303948; font-size: clamp(17px,1.26vw,20px); line-height: 1.65; }
.intro p + p { margin-top: 12px; }
.byline { margin-top: 24px; font-size: 24px; }
.books { position: relative; isolation: isolate; grid-area: 1 / 2 / 5; background: var(--navy); color: white; padding: clamp(30px,3vw,48px) 0 clamp(28px,2.8vw,46px) clamp(30px,3.8vw,62px); }
.books::before { position: absolute; content: ''; z-index: -1; inset: 0 -60vw 0 0; background: radial-gradient(ellipse at 27% 25%,#172f51,transparent 52%),var(--navy); border-top: 3px solid var(--gold); }
.shelf-heading { display: flex; align-items: center; gap: 24px; font-size: 30px; line-height: 1.2; margin-bottom: 28px; }
.shelf-heading::after { content: ''; flex: 1; height: 1px; background: #8d7958; }
.catalogue { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px,2.7vw,44px); }
.catalogue article { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; align-items: start; }
.cover { display: block; position: relative; width: 100%; max-width: 288px; padding: 0; border: 0; background: transparent; color: var(--navy); box-shadow: 3px 5px 0 -2px #a09784, 7px 13px 20px #020d22a3; }
.cover img { display: block; width: 100%; height: auto; }
.cover:hover, .cover:focus-visible { outline: 2px solid #e4c48b; outline-offset: 4px; }
.magnify { position: absolute; right: 6px; bottom: 6px; line-height: 22px; width: 22px; border-radius: 50%; background: #fffcf2; font: 18px/22px Arial,sans-serif; opacity: 0; }
.cover:hover .magnify,.cover:focus-visible .magnify { opacity: 1; }
.status { color: #ebd2a3; font-size: 10px; line-height: 1.5; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; margin: 24px 0 6px; }
h3 { font-size: clamp(24px,2.2vw,36px); line-height: 1.1; letter-spacing: -.025em; }
.subtitle { color: #ede8de; font-size: 16px; margin-top: 5px; line-height: 1.35; }
.card-description { font-size: 13px; line-height: 1.45; min-height: 2.9em; margin-top: 13px; color: #c4cfdb; }
.explore-book {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .35em;
  min-height: 44px;
  margin-top: 4px;
  color: #ebd2a3;
  font: 600 14px/1.35 Arial, sans-serif;
}
.explore-book:hover { color: #ede8de; }
.explore-book:focus-visible { outline-color: #e4c48b; }
.about { display: grid; grid-template-columns: .79fr 1.21fr; gap: clamp(40px,5vw,80px); padding-block: 70px; }
.about h2 { font-size: 64px; line-height: 1.1; letter-spacing: -.04em; margin-top: 12px; }
.bio { max-width: 56ch; font-size: 18px; line-height: 1.65; }
.bio p + p { margin-top: 12px; }
footer { background: var(--paper); border-top: 1px solid #cabfa8; }
.foot { display: flex; justify-content: space-between; gap: 24px; padding-block: 37px; }
.foot h2 { font-size: 32px; }
.email { display: inline-flex; align-items: center; min-height: 44px; }
.credits { text-align: right; }
.credits > p { font-size: 24px; }
small, details { font-size: 13px; }
summary { cursor: pointer; padding-block: 9px; text-decoration: underline; }
details p { max-width: 34ch; }
dialog { max-width: 94vw; max-height: 97vh; max-height: 97dvh; padding: 10px 14px 14px; border: 1px solid #a18d67; background: var(--paper); color: var(--navy); }
dialog::backdrop { background: #020d20dd; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 8px; }
.dialog-bar h2 { font-size: 24px; }
.dialog-bar button { min-height: 44px; padding-inline: 15px; background: white; border: 1px solid #6e7784; color: inherit; }
#detail { display: block; width: auto; max-width: 100%; max-height: 79vh; max-height: 79dvh; object-fit: contain; margin: auto; }
@media (max-width: 900px) {
  .spread { display: flex; flex-direction: column; padding-inline: 0; }
  .headline, .intro, .books { padding-inline: var(--inset); }
  .headline { order: 0; padding-block: 32px 23px; }
  h1 { font-size: clamp(50px,9vw,80px); margin: 14px 0 0; line-height: .99; }
  h1 span { display: inline; }
  .books { order: 1; padding-block: 24px 20px; }
  .intro { order: 2; max-width: 65ch; padding-block: 29px; }
  .books::before { inset-inline: 0; }
  .shelf-heading { font-size: 27px; margin-bottom: 22px; }
  .cover { max-width: 100%; }
  .catalogue { gap: clamp(18px,5vw,50px); }
  .about { padding-block: 44px; }
}
@media (max-width: 600px) {
  :root { --inset: 20px; }
  .mast { min-height: 64px; }
  .imprint img { width: 52px; height: 52px; }
  .imprint span { display: none; }
  nav { gap: 20px; }
  nav a { font-size: 14px; }
  .headline { padding-block: 25px 20px; }
  .label { font-size: 10px; }
  .status { margin-top: 18px; font-size: 12px; }
  h3 { font-size: 25px; }
  .subtitle { font-size: 15px; }
  .about { display: block; }
  .about h2 { font-size: 47px; margin-bottom: 17px; }
  .bio { font-size: 17px; }
  .foot { display: block; padding-block: 25px; }
  .credits { text-align: left; margin-top: 22px; }
}

/* Extend the approved design for individual titles and reference pages. */
.book-title { text-decoration: none; }
.book-title:hover, .book-title:focus-visible { text-decoration: underline; }
.book-spread { display:grid; grid-template-columns:minmax(240px, .85fr) minmax(0,1.15fr); padding-block:54px; gap:clamp(32px,6vw,96px); background:var(--paper); }
.book-art { padding:clamp(24px,4.5vw,70px); background:var(--navy); border-top:3px solid var(--gold); display:grid; place-items:start center; align-self:start; }
.book-art .cover { max-width:320px; }
.book-info { max-width:620px; }
.back { display:inline-flex; align-items:center; min-height:44px; font-size:15px; }
.book-info .eyebrow { margin-top:22px; }
.book-info h1,.reading h1 { font-size:clamp(48px,5.5vw,84px); line-height:.98; margin:18px 0; letter-spacing:-.045em; }
.deck { font:500 clamp(25px,2.5vw,38px)/1.2 var(--serif); }
.book-info .byline { margin-top:12px; }
.description { font-size:18px; margin:25px 0; }
.description p + p { margin-top:1em; }
.editions { border-top:1px solid #b5a481; padding-top:15px; }
.editions h2,.reading h2 { font-size:32px; }
.edition { display:grid; grid-template-columns:minmax(90px,.7fr) 1.3fr; gap:8px; align-items:baseline; padding:12px 0; border-bottom:1px solid #ccc3ad; }
.edition h3 { font-size:23px; }
.edition p,.publisher { font:14px/1.6 Arial,sans-serif; }
.edition ul { margin:0; padding:0; list-style:none; }
.purchase { display:inline-block; padding-block:10px; }
.publisher { margin-top:20px; }
.reading { max-width:870px; padding-block:50px 68px; }
.reading p { font-size:18px; line-height:1.7; margin:12px 0; overflow-wrap:anywhere; }
.reading h2 { margin-top:28px; }
@media(max-width:680px){.book-spread{grid-template-columns:1fr;padding-block:24px;gap:18px}.book-art .cover{max-width:205px}.book-info .eyebrow{margin-top:12px}.book-info h1,.reading h1{font-size:48px}.reading{padding-block:32px}}
.interior { min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; }
.interior footer { margin-top:auto; }
