@font-face {
  font-family: Newsreader;
  src: url(assets/fonts/newsreader.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(assets/fonts/dm-sans.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --cream: #fbf6e9;
  --forest: #1e4633;
  --sage: #8fa98f;
  --blue: #7fa3b8;
  --clay: #e08a4c;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: DM, sans-serif;
  color: var(--forest);
  background: var(--cream);
  color-scheme: light;
  scrollbar-color: var(--sage) var(--cream);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
}
::selection {
  background: var(--clay);
  color: var(--forest);
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input {
  font: inherit;
  accent-color: var(--forest);
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--focus, var(--forest));
  outline-offset: 5px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3,
blockquote {
  font-family: Newsreader, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(4.4rem, 7vw, 6rem);
  line-height: 0.98;
}
h2 {
  font-size: clamp(2.8rem, 4vw, 4rem);
  line-height: 1.06;
}
h3 {
  font-size: 1.8rem;
  line-height: 1.2;
}
p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 65ch;
}
[hidden] {
  display: none !important;
}
header,
footer {
  max-width: 1600px;
  margin: auto;
  padding: 28px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: Newsreader, serif;
  font-weight: 550;
  font-size: 1.35rem;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 30px;
  font-size: 0.875rem;
}
nav a {
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
}
nav a:hover {
  text-decoration: underline;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 15px;
  background: var(--cream);
  z-index: 20;
}
.skip:focus {
  top: 12px;
}
.hero {
  max-width: 1440px;
  margin: auto;
  padding: 44px 8vw 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8vw;
}
.hero-copy {
  padding: 12px 0;
}
.subtitle {
  font-family: Newsreader, serif;
  font-size: 1.65rem;
  line-height: 1.25;
  margin-top: 27px;
}
.byline {
  font-size: 0.9rem;
  margin-top: 13px;
}
.intro {
  margin-top: 30px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 15px 24px;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--forest);
  color: var(--cream);
  transition:
    background 180ms ease,
    transform 150ms var(--ease);
}
.arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  vertical-align: middle;
}
.text-link {
  font-size: 0.9rem;
  line-height: 1.5;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}
.specs {
  font-size: 0.8rem;
  margin-top: 23px;
  line-height: 1.8;
}
.cover {
  padding: 22px;
  background: #1e46330a;
}
.cover img {
  width: 100%;
  box-shadow: 0 12px 24px #1e463321;
}
.cover figcaption {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 18px;
}
.section {
  padding: 90px 8vw;
  max-width: 1600px;
  margin: auto;
}
.inside {
  border-top: 1px solid #1e46332b;
}
.book-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
}
.book-details > div > p {
  margin-top: 25px;
  max-width: 38ch;
}
.contents {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contents li {
  border-top: 1px solid #1e463333;
  padding: 20px 0;
}
.contents li:first-child {
  padding-top: 0;
  border: 0;
}
.contents p {
  font-size: 0.95rem;
  margin-top: 8px;
}
.chapters {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 65px;
  padding-top: 30px;
  border-top: 1px solid #1e46332b;
}
.chapters p {
  font-family: Newsreader, serif;
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  line-height: 1.2;
}
.lakeside {
  height: clamp(200px, 25vw, 370px);
  background: url(assets/cover-front.jpg) center 78% / cover no-repeat;
}
.sample {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  align-items: center;
  background: #8fa98f12;
}
.sample-intro > p {
  max-width: 32ch;
  margin-top: 24px;
}
.sample-intro > .text-link {
  margin-top: 24px;
}
.sample-intro > .sample-note {
  font-size: 0.8rem;
  margin-top: 45px;
}
.coloring-sheet {
  background: #fffef8;
  padding: 22px;
  box-shadow: 0 12px 32px #1e463314;
}
.color-page {
  position: relative;
  background: white;
  aspect-ratio: 1198/1173;
  width: 100%;
  isolation: isolate;
}
.color-page img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 2;
}
.color-page canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.color-page[data-mode="brush"] canvas {
  touch-action: none;
}
.tools {
  padding-top: 20px;
}
.palette {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.swatch {
  width: 44px;
  height: 44px;
  border: 1px solid #1e463380;
  border-radius: 50%;
  background: var(--paint);
  position: relative;
}
.swatch[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--forest);
  border-radius: 50%;
}
.tool-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tool-row button,
.keyboard-regions button {
  font-size: 0.8rem;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #1e463355;
  border-radius: 4px;
  transition: background 180ms ease;
}
.tool-row button[aria-pressed="true"] {
  background: var(--forest);
  color: var(--cream);
}
.brush-size {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  margin-top: 15px;
}
.brush-size input {
  width: 110px;
}
.hint,
.color-status {
  font-size: 0.78rem;
  text-align: center;
  margin: 14px auto 0;
  line-height: 1.6;
}
.color-status {
  min-height: 26px;
  margin-top: 7px;
}
.keyboard-regions {
  font-size: 0.8rem;
  margin-top: 8px;
}
.keyboard-regions summary {
  cursor: pointer;
  text-align: center;
  padding: 12px;
  min-height: 44px;
}
.keyboard-regions div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}
.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.section-title-row p {
  font-size: 0.95rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 42px;
  align-items: start;
}
.gallery figure:nth-child(2) {
  margin-top: 42px;
}
.gallery figure:nth-child(3) {
  margin-top: 84px;
}
.gallery img {
  background: white;
  width: 100%;
  padding: 12px;
}
.gallery a {
  text-decoration: none;
}
.gallery figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  margin-top: 16px;
  line-height: 1.5;
}
.gallery figcaption span {
  white-space: nowrap;
  font-size: 0.75rem;
}
.gallery a:hover figcaption {
  text-decoration: underline;
}
.purchase {
  max-width: none;
  background: var(--forest);
  color: var(--cream);
  --focus: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.purchase blockquote {
  font-size: clamp(2.3rem, 3.5vw, 3.5rem);
  line-height: 1.14;
  max-width: 17ch;
}
.purchase cite {
  font-family: DM, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0;
  font-style: normal;
  display: block;
  margin-top: 24px;
}
.purchase h2 {
  font-size: 2.8rem;
}
.purchase-copy > p {
  margin-top: 20px;
  max-width: 36ch;
}
.purchase-copy > .byline {
  margin-top: 10px;
}
.purchase .button {
  background: var(--cream);
  color: var(--forest);
}
footer {
  font-size: 0.8rem;
}
footer p {
  font-size: 0.8rem;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: #2c6146;
  }
  .purchase .button:hover {
    background: #e9e0ca;
  }
  .tool-row button:hover,
  .keyboard-regions button:hover {
    background: #8fa98f26;
  }
  .tool-row button[aria-pressed="true"]:hover {
    background: #2c6146;
  }
}
.button:active,
button:active {
  transform: scale(0.97);
}
@media (max-width: 900px) {
  .hero {
    gap: 5vw;
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .hero .actions {
    gap: 10px;
  }
  .section {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .sample {
    gap: 5vw;
  }
  .coloring-sheet {
    padding: 16px;
  }
  .gallery {
    gap: 20px;
  }
  nav {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  header {
    padding: 16px 6vw;
    gap: 15px;
  }
  .wordmark {
    font-size: 1.15rem;
  }
  header nav {
    gap: 16px;
    font-size: 0.8rem;
  }
  header nav a:first-child {
    display: none;
  }
  header nav a:last-child {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 6vw 50px;
    gap: 35px;
  }
  .hero-copy {
    padding: 0;
  }
  h1 {
    font-size: clamp(3.8rem, 16vw, 5rem);
  }
  .subtitle {
    font-size: 1.45rem;
    margin-top: 20px;
  }
  .intro {
    margin-top: 22px;
  }
  .hero .actions {
    gap: 22px;
    margin-top: 23px;
  }
  .hero .specs {
    margin-top: 18px;
  }
  .cover {
    max-width: 430px;
    width: 100%;
    justify-self: center;
    padding: 18px;
  }
  .section {
    padding: 58px 6vw;
  }
  .book-details,
  .sample,
  .purchase {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  h2 {
    font-size: 2.9rem;
  }
  .contents li:first-child {
    border-top: 1px solid #1e463333;
    padding-top: 20px;
  }
  .chapters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 35px;
    gap: 23px;
  }
  .chapters p {
    font-size: 1.8rem;
  }
  .lakeside {
    height: 230px;
    background-size: auto 700px;
    background-position: 53% 100%;
  }
  .sample-intro > .sample-note {
    margin-top: 20px;
  }
  .sample-intro > p {
    max-width: 38ch;
  }
  .coloring-sheet {
    padding: 14px;
  }
  .palette {
    gap: 12px;
  }
  .tool-row {
    gap: 6px;
  }
  .tool-row button {
    padding: 8px 10px;
  }
  .hint {
    max-width: 35ch;
  }
  .section-title-row {
    display: block;
  }
  .section-title-row p {
    margin-top: 20px;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gallery figure:nth-child(2),
  .gallery figure:nth-child(3) {
    margin-top: 0;
  }
  .gallery img {
    padding: 10px;
  }
  .gallery figcaption {
    font-size: 0.85rem;
  }
  .purchase blockquote {
    font-size: 2.9rem;
    max-width: 18ch;
  }
  .purchase-copy {
    padding-top: 35px;
    border-top: 1px solid #fbf6e94d;
  }
  .purchase h2 {
    font-size: 2.7rem;
  }
  footer {
    padding: 27px 6vw;
    flex-wrap: wrap;
  }
  footer .wordmark {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.scroll-paper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.ambient-art {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: min(760px, 80%);
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to right, transparent, #000 45%);
}
.ambient-art img {
  width: 100%;
  opacity: 0.13;
}
.ambient-color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  mask-image: linear-gradient(to top, transparent, transparent);
  display: none;
}
.art-ready .ambient-color {
  display: block;
}
.coloring-sheet > summary {
  cursor: pointer;
  font-family: Newsreader, serif;
  font-size: 1.6rem;
  line-height: 1.3;
  padding: 10px 0;
}
.coloring-sheet > summary span {
  display: block;
  font-family: DM, sans-serif;
  font-size: 0.8rem;
  margin-top: 8px;
}
.coloring-sheet[open] > summary {
  margin-bottom: 14px;
}
@media (min-width: 701px) {
  .coloring-sheet[open] > summary {
    display: none;
  }
}
@media (max-width: 700px) {
  .ambient-art {
    width: 110%;
    right: -18%;
    mask-image: linear-gradient(to bottom, transparent, #000 50%);
  }
  .ambient-art img {
    opacity: 0.12;
  }
  .ambient-color {
    opacity: 0.18;
  }
  .coloring-sheet {
    box-shadow: none;
    background: #fffef8;
  }
  .coloring-sheet[open] {
    box-shadow: 0 12px 32px #1e463314;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-color {
    display: none !important;
  }
}
