@font-face {
  font-family: Andika;
  src: url("/assets/andika.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Andika;
  src: url("/assets/andika-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fffdf8;
  --cream: #f7eee9;
  --plum: #542d48;
  --ink: #33202d;
  --muted: #624758;
  --sage: #e5ebda;
  --warm: #f6e5ce;
  --line: #dbc7d1;
  --page-width: 74rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Andika, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
::selection { background: #eac9d7; color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 3px solid #ac506b; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
.shell { width: min(var(--page-width), calc(100% - 3rem)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  z-index: 5;
  inset: .65rem auto auto .65rem;
  padding: .65rem 1rem;
  background: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--paper); }
.header-inner, .footer-inner { display: flex; align-items: center; gap: 1.5rem; }
.header-inner { min-height: 5.2rem; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark img { width: clamp(8.25rem, 19vw, 12.5rem); height: auto; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--plum);
  border-radius: 1.15rem;
  overflow: hidden;
  color: var(--cream);
}
.hero-copy {
  padding: clamp(2.35rem, 6vw, 5.15rem);
  align-self: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  letter-spacing: -.04em;
  line-height: 1.01;
}
.hero p { margin-top: 1.55rem; max-width: 32ch; font-size: clamp(1.035rem, 1.65vw, 1.24rem); }
.hero-image { width: 100%; height: clamp(28rem, 42vw, 34rem); object-fit: cover; object-position: center 66%; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.25rem;
  border-radius: .65rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 170ms ease;
}
.button-light { margin-top: 1.8rem; background: var(--cream); color: var(--plum); }
.button-light:hover { background: #edd5df; }
.button-light:focus-visible { outline-color: var(--cream); }
.catalog { padding-block: clamp(3.25rem, 7vw, 6.25rem); }
h2 { color: var(--plum); font-size: clamp(2rem, 4.5vw, 3.45rem); letter-spacing: -.034em; }
.books { margin-top: 2.05rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3.5vw, 2.75rem); }
.book { border-radius: .95rem; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.book-art { display: grid; place-items: center; background: var(--sage); padding: clamp(1.3rem, 4.3vw, 2.8rem); }
.book-dino .book-art { background: var(--warm); }
.book-art img { width: min(59%, 13.9rem); height: auto; box-shadow: .35rem .6rem 1.25rem rgb(51 32 45 / .21); }
.book-copy { display: grid; gap: .62rem; padding: clamp(1.2rem, 3vw, 1.95rem); }
.book-meta { color: var(--muted); font-size: .9375rem; }
.book-copy h3 { font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.027em; }
.book-copy > p:last-of-type { max-width: 46ch; }
.text-link { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; color: var(--plum); font-weight: 700; }
.text-link:hover { text-decoration-thickness: 2px; }
.samples { padding-block: clamp(3rem, 7vw, 5.9rem); background: var(--cream); }
.sample-group { margin-top: 2rem; }
.sample-group + .sample-group { margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.sample-group h3 { margin-bottom: 1rem; font-size: clamp(1.36rem, 2.55vw, 1.85rem); }
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.65rem, 2.8vw, 1.55rem); }
.sample-grid figure { min-width: 0; }
.sample-grid img { width: 100%; height: auto; background: white; border-radius: .45rem; border: 1px solid var(--line); }
figcaption { margin-top: .45rem; color: var(--muted); font-size: .94rem; }
.site-footer { padding-block: 2.15rem; }
.footer-inner { justify-content: space-between; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); }
.footer-inner > a:last-child { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
@media (max-width: 52rem) {
  .hero-copy { padding: clamp(1.75rem, 4.8vw, 3.25rem); }
  .hero-image { height: 25rem; }
}
@media (max-width: 42rem) {
  .shell { width: calc(100% - 1.75rem); }
  .header-inner { gap: .6rem; min-height: 4.35rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 1.8rem; }
  .hero h1 { font-size: clamp(2.55rem, 9.1vw, 3.9rem); }
  .hero-image { height: clamp(15rem, 65vw, 24rem); min-height: 0; object-position: center 66%; }
  .books { grid-template-columns: 1fr; }
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 22rem) {
  .header-inner { flex-wrap: wrap; padding-block: .25rem; column-gap: .75rem; row-gap: 0; }
  nav { gap: .85rem; }
  .hero-copy { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
