:root {
  color-scheme: light;
  --ink: #203e38;
  --paper: #fcf8ef;
  --red: #96362d;
  --line: #d4cbb7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.05rem/1.6 system-ui,sans-serif;
}

a {
  color: inherit;
  text-underline-offset: .24em;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid #d98e27;
  outline-offset: 4px;
}

header,footer,.wrap {
  width: 91%;
  max-width: 1140px;
  margin: auto;
}

header,footer,nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

header,footer {
  justify-content: space-between;
  padding: 1.1rem 0;
}

nav a,.brand {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font: bold clamp(1.5rem,3vw,1.9rem)/1.15 Georgia,serif;
}

.brand em {
  font-style: italic;
  color: var(--red);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3.15rem;
  height: 3.15rem;
  border: 1px solid #dcb980;
  border-radius: 50%;
  background: #f2dfb7;
}

.brand-mark img {
  display: block;
  width: 80%;
  height: auto;
}

h1,h2,h3,blockquote {
  font-family: Georgia,serif;
  font-weight: normal;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: 4.8rem;
  font-size: clamp(2.4rem,5.7vw,5.6rem);
  margin: .25em 0;
}

h2 {
  font-size: 3rem;
  font-size: clamp(2rem,4vw,3.5rem);
  margin: .3em 0 .55em;
}

h3 {
  font-size: 1.42rem;
  margin: .45em 0;
}

.hero {
  background: #163d38;
  color: #fff7e2;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero .wrap {
  display: flex;
  align-items: center;
  padding: 4rem 0;
  padding-block: clamp(2rem,5vw,5rem);
  position: relative;
}

.hero .wrap>div {
  flex: 1;
  min-width: 0;
}

.hero h1 em {
  color: #f1cd87;
}

.hero p {
  max-width: 35rem;
}

.hero .art {
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background: radial-gradient(ellipse,#417362 0%,transparent 67%);
}

.art:before,.art:after {
  position: absolute;
  content: "✦";
  font: 2.3rem Georgia;
  color: #edcf8e;
  left: 15%;
  top: 15%;
  text-shadow: 8vw 2vh 0 #f3deaa,23vw 15vh 0 #efcf9c;
}

.art:after {
  font-size: 1rem;
  top: 66%;
  left: 10%;
}

.art img {
  height: 310px;
  height: clamp(240px,25vw,335px);
  max-width: 85%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(4px 12px 16px #0e292b99);
  transform: rotate(4deg);
}

.label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  background: var(--red);
  color: white;
  border-radius: 4px;
  padding: .65em 1.1em;
  text-decoration: none;
  font-weight: 650;
}

.hero .button {
  background: #f0d59c;
  color: #233d35;
}

.hero a:hover,.button:hover {
  filter: brightness(.92);
}

section.wrap,article.wrap {
  padding: 3rem 0;
  padding-block: clamp(2.5rem,5vw,5rem);
}

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(195px,100%),1fr));
  gap: 1.4rem;
}

.book {
  text-decoration: none;
  display: block;
}

.book img {
  height: 148px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  box-shadow: 3px 6px 10px #382a342b;
}

.cover {
  height: 180px;
  background: #e9e4d5;
  display: grid;
  place-items: center;
  border-radius: 4px;
}

.book:nth-child(3n+2) .cover {
  background: #eadbd2;
}

.book:nth-child(3n) .cover {
  background: #dae4d8;
}

.band {
  background: #edeede;
}

.row {
  display: flex;
  gap: clamp(.85rem,3.2vw,2rem);
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
  align-items: center;
}

.row-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 clamp(4.2rem,12vw,8rem);
  height: clamp(5.7rem,16.2vw,10.8rem);
  padding: clamp(.3rem,1.1vw,.75rem);
  background: #eee7d6;
  border-radius: .35rem;
}

.row-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(2px 3px 3px #42352233);
}

.row-description {
  min-width: 0;
  overflow-wrap: anywhere;
}

.row h3 {
  margin-top: 0;
}

.row p {
  margin: .3rem 0;
  max-width: 65ch;
}

.row a {
  color: var(--red);
  font-weight: 650;
}

.intro {
  max-width: 65ch;
}

.profile,.detail {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem,5vw,5rem);
  flex-wrap: wrap;
}

.profile img {
  width: 150px;
  border-radius: 50%;
}

.detail img {
  width: min(200px,70%);
  box-shadow: 5px 9px 20px #42352230;
}

.detail div,.profile div {
  flex: 1 1 300px;
}

.detail h1 {
  font-size: clamp(2.6rem,5vw,4.5rem);
}

.book-shops {
  gap: .65rem;
}

.book-shops a + a {
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.legal-copy {
  max-width: 46rem;
}

.ads-settings {
  position: fixed;
  z-index: 10;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  width: min(26rem, calc(100% - 1.5rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: calc(100dvh - 1.5rem - env(safe-area-inset-bottom));
  overflow: auto;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 .45rem 1.5rem #192f2a33;
  font-size: .9375rem;
  line-height: 1.45;
}

.ads-settings h2 {
  margin: 0;
  padding-right: 2rem;
  font-size: 1.25rem;
}

.ads-settings p {
  margin: .5rem 0;
  max-width: 66ch;
}

.ads-settings p:empty {
  display: none;
}

.ads-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.ads-actions button {
  flex: 1 1 auto;
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.ads-actions button:hover,
.ads-close:hover {
  background: #eee7d6;
}

.ads-close,
.footer-settings {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.ads-close {
  position: absolute;
  top: .3rem;
  right: .35rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: .25rem;
  font-size: 1.5rem;
  line-height: 1;
}

.footer-settings {
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.legal-copy h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  overflow-wrap: anywhere;
}

.legal-copy h2 {
  margin: 1.4em 0 .45em;
  font-size: 1.5rem;
}

.legal-copy address {
  font-style: normal;
}

footer {
  border-top: 1px solid var(--line);
  font-size: .94rem;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: white;
  z-index: 5;
}

.jump {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

blockquote {
  margin: 1rem 0;
  font-size: 1.8rem;
}

.hero .button {
  margin-top: .5rem;
}

@media(max-width:690px) {
  header {
    gap: .45rem;
  }

  nav {
    gap: .9rem;
    font-size: .94rem;
  }

  .hero .wrap {
    display: block;
    padding: 2.5rem 0;
  }

  .hero .art {
    min-height: 0;
    position: absolute;
    width: 35%;
    height: 105px;
    right: 0;
    bottom: 14px;
  }

  .art img {
    height: 100%;
    max-width: 100%;
  }

  .art:before,.art:after {
    display: none;
  }

  .hero p {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .hero .art {
    height: 85px;
  }

  .hero .button {
    max-width: 65%;
  }

  .row {
    align-items: flex-start;
  }

  .shelf {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .cover {
    height: 155px;
  }

  .book img {
    height: 125px;
  }

  h3 {
    font-size: 1.24rem;
  }

}

