:root {
  --ink: #120d08;
  --paper: #f3dfb3;
  --paper-light: #fff0c9;
  --paper-soft: #f8e7bd;
  --gold: #d89520;
  --orange: #b74319;
  --brown: #70430f;
  --muted: #5e4933;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(31, 18, 8, .03) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 82% 6%, rgba(255, 245, 210, .7), transparent 22%),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 4px solid #4c9189;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.books-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: min(100% - 44px, 1440px);
  min-height: 96px;
  margin: 0 auto;
  align-items: center;
  gap: 28px;
}

.books-brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.books-brand img {
  display: block;
  width: 112px;
  height: auto;
}

.books-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  font: 900 15px/1 Arial, sans-serif;
  text-transform: uppercase;
}

.books-nav a,
.portal-link {
  text-decoration: none;
}

.books-nav a:hover,
.books-nav a[aria-current="page"] {
  color: var(--orange);
}

.portal-link {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--paper-light);
  background: var(--ink);
  border: 3px solid var(--orange);
  border-radius: 50%;
  font: 900 12px/.95 Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.books-hero,
.product-section,
.benefits-row,
.newsletter-panel {
  width: min(100% - 52px, 1400px);
  margin: 0 auto;
}

.books-hero {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(520px, 1fr);
  min-height: 360px;
  align-items: center;
  gap: clamp(22px, 4vw, 62px);
  overflow: hidden;
  padding: 30px 48px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 42%, rgba(255, 255, 255, .55), transparent 22%),
    repeating-radial-gradient(circle at 32% 24%, rgba(184, 67, 25, .12) 0 1px, transparent 1px 8px),
    linear-gradient(105deg, rgba(255, 244, 210, .95), rgba(245, 202, 113, .52)),
    var(--paper-light);
  box-shadow: 7px 7px 0 rgba(18, 13, 8, .12);
}

.books-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 570px;
}

.books-hero h1 {
  margin: 0;
  font: 900 clamp(62px, 6.6vw, 106px)/.92 Arial, sans-serif;
  text-transform: uppercase;
}

.books-hero h1::after {
  content: "";
  display: block;
  width: 66px;
  height: 6px;
  margin: 20px 0 16px;
  background: var(--orange);
  border-radius: 999px;
}

.books-hero__line {
  max-width: 560px;
  margin: 0 0 12px;
  color: var(--orange);
  font: 900 clamp(20px, 2vw, 28px)/1.08 Arial, sans-serif;
}

.books-hero p:not(.books-hero__line) {
  max-width: 560px;
  margin: 0;
  font: 800 clamp(16px, 1.5vw, 20px)/1.32 Arial, sans-serif;
}

.books-hero__art {
  align-self: stretch;
  overflow: hidden;
}

.books-hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  object-position: 56% 46%;
}

.product-section {
  padding: 30px 0 22px;
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  margin-bottom: 10px;
  align-items: end;
  gap: 18px;
  border-bottom: 2px solid var(--ink);
}

.section-title-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: var(--paper-light);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font: 900 22px/1 Arial, sans-serif;
}

.section-heading h2 {
  margin: 0 0 8px;
  font: 900 clamp(27px, 3vw, 40px)/1 Arial, sans-serif;
  text-transform: uppercase;
}

.section-heading p {
  justify-self: end;
  margin: 0 0 12px;
  color: var(--orange);
  font: 900 16px/1.2 Arial, sans-serif;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-light);
  box-shadow: 4px 4px 0 rgba(18, 13, 8, .14);
}

.product-card__media {
  position: relative;
  display: grid;
  aspect-ratio: 1 / .9;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .45), transparent 24%),
    linear-gradient(135deg, rgba(184, 67, 25, .14), rgba(216, 149, 32, .24)),
    var(--paper-soft);
  border-bottom: 2px solid var(--ink);
}

.product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__media--missing::before {
  content: "Artwork coming soon";
  width: calc(100% - 34px);
  min-height: calc(100% - 34px);
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--brown);
  font: 900 17px/1.1 Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.product-card__stamp {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 7px 10px;
  color: var(--orange);
  background: rgba(255, 240, 201, .9);
  border: 1px solid var(--orange);
  border-radius: 6px;
  transform: rotate(-3deg);
  font: 900 12px/1 Arial, sans-serif;
  text-transform: uppercase;
}

.product-card__body {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px 16px 16px;
}

.product-card__meta {
  margin: 0;
  color: var(--brown);
  font: 900 11px/1.25 Arial, sans-serif;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font: 900 clamp(20px, 1.8vw, 25px)/.98 Arial, sans-serif;
  text-transform: uppercase;
}

.product-card__subtitle,
.product-card__price {
  margin: 0;
  font: 800 14px/1.25 Arial, sans-serif;
}

.product-card__price {
  color: var(--orange);
  font-weight: 900;
}

.product-card__button {
  justify-self: start;
  min-width: 128px;
  margin-top: 3px;
  padding: 10px 15px;
  color: var(--paper-light);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 900 12px/1 Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.product-card__button:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.product-card__button[aria-disabled="true"] {
  color: var(--orange);
  background: transparent;
  border-color: var(--orange);
  pointer-events: none;
}

.empty-state {
  margin: 0;
  padding: 28px;
  border: 2px dashed rgba(18, 13, 8, .6);
  font: 800 18px/1.3 Arial, sans-serif;
}

.benefits-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
  border: 2px solid rgba(18, 13, 8, .7);
  border-radius: 8px;
  background: rgba(255, 240, 201, .58);
}

.benefits-row article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 84px;
  padding: 16px 18px;
  align-items: center;
  border-right: 1px solid rgba(184, 67, 25, .48);
}

.benefits-row article:last-child {
  border-right: 0;
}

.benefits-row span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--ink);
  border: 2px solid var(--brown);
  border-radius: 50%;
  font: 900 23px/1 Arial, sans-serif;
}

.benefits-row h2,
.benefits-row p {
  margin: 0;
}

.benefits-row h2 {
  font: 900 14px/1.1 Arial, sans-serif;
  text-transform: uppercase;
}

.benefits-row p {
  margin-top: 3px;
  font: 700 13px/1.25 Arial, sans-serif;
}

.newsletter-panel {
  display: grid;
  grid-template-columns: auto minmax(150px, 240px) minmax(220px, 1fr) minmax(320px, .85fr);
  gap: 18px;
  margin-top: 12px;
  margin-bottom: 14px;
  align-items: center;
  overflow: hidden;
  padding: 10px 22px 10px 16px;
  border: 2px solid rgba(18, 13, 8, .7);
  border-radius: 8px;
  background: rgba(255, 240, 201, .58);
}

.newsletter-lucy {
  width: 112px;
  height: 86px;
  overflow: hidden;
}

.newsletter-lucy img {
  width: 150px;
  max-width: none;
  transform: translate(-22px, -22px);
}

.newsletter-note {
  position: relative;
  padding: 14px 16px;
  background: var(--paper-light);
  border: 2px solid var(--brown);
  border-radius: 8px;
  font: 900 15px/1.2 Arial, sans-serif;
  text-align: center;
}

.newsletter-copy h2,
.newsletter-copy p {
  margin: 0;
}

.newsletter-copy h2 {
  font: 900 28px/1 Arial, sans-serif;
  text-transform: uppercase;
}

.newsletter-copy p {
  margin-top: 4px;
  font: 800 14px/1.2 Arial, sans-serif;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.newsletter-form input,
.newsletter-form button {
  min-height: 44px;
  border: 2px solid rgba(112, 67, 15, .75);
  font: 800 14px/1 Arial, sans-serif;
}

.newsletter-form input {
  min-width: 0;
  padding: 0 16px;
  background: rgba(255, 247, 226, .86);
  border-radius: 8px 0 0 8px;
}

.newsletter-form button {
  padding: 0 24px;
  color: var(--paper-light);
  background: var(--orange);
  border-color: var(--orange);
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  text-transform: uppercase;
}

.books-footer {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) repeat(4, minmax(130px, .7fr));
  gap: 42px;
  min-height: 230px;
  padding: 34px min(5vw, 64px);
  color: var(--paper-light);
  background: #050403;
  border-top: 3px solid var(--gold);
  font: 800 13px/1.35 Arial, sans-serif;
}

.footer-brand img {
  width: 128px;
}

.footer-brand p,
.footer-brand small {
  display: block;
  margin: 8px 0 0;
}

.books-footer h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font: 900 14px/1 Arial, sans-serif;
  text-transform: uppercase;
}

.books-footer nav {
  display: grid;
  align-content: start;
  gap: 7px;
}

.books-footer a,
.books-footer .footer-placeholder {
  color: var(--paper-light);
  text-decoration: none;
}

.books-footer a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a,
.social-links .footer-placeholder {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-size: 12px;
}

@media (max-width: 980px) {
  .books-header {
    grid-template-columns: auto 1fr;
  }

  .portal-link {
    display: none;
  }

  .books-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .books-hero__art img {
    max-height: 310px;
  }

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

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

  .benefits-row article:nth-child(2n) {
    border-right: 0;
  }

  .newsletter-panel,
  .books-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .books-header {
    width: min(100% - 24px, 1440px);
    min-height: 82px;
    align-items: start;
    padding: 10px 0 4px;
    gap: 12px;
  }

  .books-brand img {
    width: 72px;
  }

  .books-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 11px;
  }

  .books-hero,
  .product-section,
  .benefits-row,
  .newsletter-panel {
    width: min(100% - 24px, 1440px);
  }

  .books-hero {
    min-height: 0;
    padding: 18px;
    gap: 14px;
  }

  .books-hero h1 {
    font-size: clamp(46px, 16vw, 64px);
  }

  .books-hero h1::after {
    width: 48px;
    height: 5px;
    margin: 14px 0 12px;
  }

  .books-hero__line {
    font-size: 18px;
  }

  .books-hero p:not(.books-hero__line) {
    font-size: 14px;
  }

  .books-hero__art img {
    min-height: 0;
    max-height: 180px;
  }

  .product-section {
    padding: 22px 0 14px;
  }

  .section-heading {
    display: block;
  }

  .section-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .section-heading h2 {
    margin-bottom: 8px;
    font-size: 25px;
  }

  .section-heading p {
    margin: 0 0 10px;
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card__media {
    aspect-ratio: 1 / .86;
  }

  .product-card h3 {
    font-size: 21px;
  }

  .benefits-row,
  .newsletter-panel,
  .books-footer {
    grid-template-columns: 1fr;
  }

  .benefits-row article,
  .benefits-row article:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid rgba(184, 67, 25, .48);
  }

  .benefits-row article:last-child {
    border-bottom: 0;
  }

  .newsletter-panel {
    gap: 12px;
    padding: 14px;
  }

  .newsletter-lucy {
    display: none;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .newsletter-form input,
  .newsletter-form button {
    border-radius: 8px;
  }

  .books-footer {
    gap: 22px;
    padding: 28px 24px;
  }
}
