:root {
  --paper: #e7e0d1;
  --paper-light: #f1ece1;
  --ink: #171713;
  --muted: #675f52;
  --oxblood: #551f20;
  --gold: #8c743f;
  --line: #aaa08d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  height: 100vh;
  min-height: 620px;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", Arial, sans-serif;
}
button { color: inherit; font: inherit; }

.site-header {
  min-height: 94px;
  padding: 16px clamp(24px, 6vw, 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 9px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-light);
}
.logo {
  display: flex;
  align-items: center;
  gap: 19px;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--oxblood);
  font: 700 28px/1 "Libre Caslon Text", Georgia, serif;
}
.logo-name {
  font: 700 clamp(30px, 3.2vw, 46px)/1 "Libre Caslon Text", Georgia, serif;
  letter-spacing: -.045em;
}
.logo-name small { color: var(--oxblood); font-size: .54em; }


main {
  display: grid;
  align-items: center;
  min-height: 0;
  padding: clamp(28px, 4.5vh, 48px) clamp(24px, 8vw, 130px);
  border-bottom: 1px solid var(--ink);
}
.product {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48px minmax(230px, 330px) minmax(310px, 1fr);
  gap: clamp(40px, 7vw, 105px);
  align-items: center;
}
.catalogue-number {
  align-self: stretch;
  padding-top: 7px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.book-cover {
  width: min(100%, 300px);
  max-height: calc(100vh - 235px);
  aspect-ratio: .69;
  padding: 15px;
  color: #d6c79e;
  background: var(--oxblood);
  border: 1px solid #351313;
  box-shadow: -11px 10px 0 #251b17, -15px 14px 22px rgba(23, 23, 19, .25);
}
.cover-inner {
  height: 100%;
  padding: 25px 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(214, 199, 158, .66);
  text-align: center;
}
.cover-inner p {
  margin: 0;
  font: 400 10px/1.3 "Source Sans 3", sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.cover-inner h1 {
  margin: auto 0 16px;
  color: #eee2c4;
  font: 400 clamp(42px, 4.5vw, 58px)/1 "Libre Caslon Text", Georgia, serif;
  letter-spacing: -.05em;
}
.cover-rule {
  width: 35px;
  margin: 0 auto auto;
  border-top: 1px solid var(--gold);
}
.details { max-width: 500px; }
.edition {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
}
.details h2 {
  margin: 0;
  font: 400 clamp(58px, 7vw, 94px)/.86 "Libre Caslon Text", Georgia, serif;
  letter-spacing: -.065em;
}
.author {
  margin: 18px 0 32px;
  color: var(--oxblood);
  font: 400 clamp(24px, 3vw, 34px)/1 "Libre Caslon Text", Georgia, serif;
}
dl { margin: 0 0 27px; border-top: 1px solid var(--ink); }
dl div {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; }
.purchase-button {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--ink);
  color: var(--paper-light);
  background: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.purchase-button:hover { color: white; background: var(--oxblood); border-color: var(--oxblood); }
.purchase-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.purchase-actions form { margin: 0; }
.physical-button {
  padding: 18px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: not-allowed;
}

footer {
  min-height: 52px;
  padding: 0 clamp(24px, 6vw, 92px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  background: var(--paper-light);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}



@media (max-width: 760px) {
  .site-header { min-height: 96px; }
  .logo-mark { width: 42px; height: 42px; font-size: 23px; }
  .logo-name { font-size: 28px; }
  body { height: auto; min-height: 100vh; }
  main { padding-top: 42px; padding-bottom: 48px; }
  .product { grid-template-columns: 1fr; gap: 48px; }
  .catalogue-number { display: none; }
  .book-cover { width: min(220px, 70vw); max-height: none; margin: auto; }
  .details { width: 100%; margin: auto; }
  .details h2 { font-size: 67px; }
  .author { margin-bottom: 40px; }
  .purchase-actions { grid-template-columns: 1fr; }
}

@media (min-width: 761px) and (max-height: 720px) {
  .site-header { min-height: 78px; padding-top: 10px; padding-bottom: 10px; }
  .logo-mark { width: 38px; height: 38px; font-size: 21px; }
  .logo-name { font-size: 30px; }
  main { padding-top: 20px; padding-bottom: 20px; }
  .book-cover { width: 245px; }
  .author { margin-bottom: 20px; }
  dl div { padding: 11px 0; }
  footer { min-height: 42px; }
}

@media (max-width: 420px) {
  .site-header { padding-left: 18px; padding-right: 18px; }
  .logo { gap: 10px; }
  .logo-name { font-size: 24px; }
}
