:root {
  --color-orange: #ef5c1e;
  --color-yellow: #f3bc32;
  --color-teal: #168f8d;
  --color-teal-dark: #0d7776;
  --color-navy: #132a49;
  --color-ink: #273c43;
  --color-cream: #fffaf0;
  --color-paper: #fffdf8;
  --color-line: rgba(166, 125, 55, 0.24);
  --color-display: "Arial Rounded MT Bold", "Avenir Next", Avenir, Arial, sans-serif;
}

html {
  scroll-padding-top: 1rem;
}

.color-page {
  min-width: 20rem;
  background:
    radial-gradient(circle at 10% 12%, rgba(243, 188, 50, 0.11) 0 0.2rem, transparent 0.24rem),
    linear-gradient(180deg, #fffdf8 0%, #fff8e9 100%);
  color: var(--color-ink);
}

.color-page .prototype-notice {
  background: var(--color-orange);
}

.color-header {
  display: flex;
  width: min(calc(100% - 2rem), 72rem);
  min-height: 5.5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.color-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-orange);
  font-family: var(--color-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.color-brand-mascot {
  display: block;
  width: 3rem;
  height: 3rem;
}

.color-brand-mascot img,
.picker-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.back-link,
.color-footer a {
  display: inline-grid;
  min-height: 2.75rem;
  place-items: center;
  color: var(--color-navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28rem;
  text-transform: uppercase;
}

.color-hero {
  display: grid;
  width: min(calc(100% - 2rem), 72rem);
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.8fr);
  border: 1px solid var(--color-line);
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-cream);
  box-shadow: 0 1rem 2.4rem rgba(80, 62, 34, 0.12);
}

.color-hero-art {
  position: relative;
  min-height: clamp(28rem, 50vw, 39rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 16%, rgba(243, 188, 50, 0.18) 0 0.24rem, transparent 0.28rem),
    linear-gradient(145deg, #fff8e8 0%, #f3e3c6 100%);
}

.color-hero-art::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 20%;
  background: linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.15));
  content: "";
  pointer-events: none;
}

.hero-page-stack {
  position: absolute;
  inset: 6% 8% 5%;
}

.hero-sheet {
  position: absolute;
  width: 49%;
  height: 76%;
  border: 1px solid rgba(41, 73, 60, 0.2);
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 0.8rem 1.3rem rgba(80, 62, 34, 0.22);
  object-fit: cover;
  object-position: top center;
}

.hero-sheet-one {
  z-index: 4;
  bottom: 2%;
  left: 5%;
  transform: rotate(-7deg);
}

.hero-sheet-two {
  z-index: 3;
  right: 5%;
  bottom: 2%;
  transform: rotate(7deg);
}

.hero-sheet-three {
  z-index: 2;
  top: 0;
  left: 12%;
  transform: rotate(-2deg);
}

.hero-sheet-four {
  z-index: 1;
  top: 1%;
  right: 11%;
  transform: rotate(3deg);
}

.doodle {
  position: absolute;
  z-index: 1;
  font-family: var(--color-display);
  font-weight: 800;
  line-height: 1;
}

.doodle-star {
  top: 1.2rem;
  left: 1.5rem;
  color: var(--color-orange);
  font-size: clamp(2.6rem, 5vw, 4rem);
  transform: rotate(-8deg);
}

.doodle-wave {
  top: 1rem;
  right: 1.4rem;
  color: var(--color-teal);
  font-size: clamp(3rem, 6vw, 5rem);
  transform: rotate(-14deg);
}

.color-hero-copy {
  display: flex;
  padding: clamp(2rem, 5vw, 4rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.color-kicker,
.picker-heading > p,
.page-number {
  margin-bottom: 0.6rem;
  color: var(--color-orange);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.color-hero h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
  color: var(--color-navy);
  font-family: var(--color-display);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.color-hero-copy > p:not(.color-kicker) {
  max-width: 25rem;
  margin-bottom: 1.4rem;
  color: #445556;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}

.pick-button {
  display: grid;
  width: min(100%, 18rem);
  min-height: 3.8rem;
  padding: 0.7rem 1.2rem;
  place-items: center;
  border-radius: 1.5rem;
  background: var(--color-teal);
  color: #fff;
  font-family: var(--color-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.pick-button:hover,
.pick-button:focus-visible {
  background: var(--color-teal-dark);
}

.print-all-button,
.page-print-button,
.print-set-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.print-all-button {
  display: grid;
  width: min(100%, 18rem);
  min-height: 3.35rem;
  margin-top: 0.65rem;
  padding: 0.65rem 1.1rem;
  place-items: center;
  border-radius: 1.25rem;
  background: var(--color-orange);
  color: #fff;
  font-family: var(--color-display);
  font-size: 1rem;
  font-weight: 800;
}

.print-all-button:hover,
.print-all-button:focus-visible {
  background: #cc4611;
}

.download-all-link {
  display: inline-grid;
  min-height: 2.75rem;
  margin-top: 0.4rem;
  place-items: center;
  color: var(--color-navy);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.26rem;
  text-transform: uppercase;
}

.development-status {
  margin-top: 0.15rem;
  color: #5b6763;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-picker {
  width: min(calc(100% - 2rem), 64rem);
  margin-inline: auto;
}

.picker-heading {
  margin-bottom: clamp(1.6rem, 4vw, 2.5rem);
  text-align: center;
}

.picker-heading h2,
.picker-note h2 {
  margin-bottom: 0;
  color: var(--color-navy);
  font-family: var(--color-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.page-option {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 1.5rem;
  background: var(--color-paper);
  box-shadow: 0 0.7rem 1.6rem rgba(80, 62, 34, 0.1);
}

.page-preview-link {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.page-preview {
  display: block;
  width: 100%;
  aspect-ratio: 8.5 / 10.2;
  object-fit: cover;
  object-position: top center;
  transition: transform 180ms ease;
}

.page-preview-link:hover .page-preview,
.page-preview-link:focus-visible .page-preview {
  transform: scale(1.02);
}

.page-option-copy {
  padding: 1.25rem 1.4rem 1.5rem;
  text-align: center;
}

.page-option-copy h3 {
  margin-bottom: 0.45rem;
  color: var(--color-navy);
  font-family: var(--color-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1;
}

.page-print-button {
  display: grid;
  width: min(100%, 15rem);
  min-height: 3rem;
  margin: 0.75rem auto 0.2rem;
  padding: 0.65rem 1rem;
  place-items: center;
  border-radius: 1rem;
  background: var(--color-teal);
  color: #fff;
  font-family: var(--color-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.page-print-button:hover,
.page-print-button:focus-visible {
  background: var(--color-teal-dark);
}

.page-save-link {
  display: inline-grid;
  min-height: 2.75rem;
  place-items: center;
  color: var(--color-navy);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
  text-transform: uppercase;
}

.download-panel {
  display: grid;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  border-radius: 1.8rem;
  background: var(--color-navy);
  box-shadow: 0 0.7rem 1.6rem rgba(19, 42, 73, 0.18);
  color: #fff;
}

.download-kicker {
  margin-bottom: 0.45rem;
  color: #ffd36c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.download-panel h2 {
  margin-bottom: 0.55rem;
  font-family: var(--color-display);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.download-panel p:last-child {
  margin-bottom: 0;
  color: #dce7ee;
}

.download-button {
  display: grid;
  min-width: 12rem;
  min-height: 3.5rem;
  padding: 0.7rem 1.3rem;
  place-items: center;
  border-radius: 1.25rem;
  background: var(--color-orange);
  color: #fff;
  font-family: var(--color-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.download-button:hover,
.download-button:focus-visible {
  background: #cc4611;
}

.print-set-actions {
  display: grid;
  min-width: 12rem;
  justify-items: center;
  gap: 0.35rem;
}

.save-set-link {
  display: inline-grid;
  min-height: 2.75rem;
  place-items: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-underline-offset: 0.25rem;
  text-transform: uppercase;
}

.print-stage {
  display: none;
}

.picker-note {
  display: grid;
  min-height: 10rem;
  margin: clamp(3.5rem, 7vw, 6rem) auto;
  padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  align-items: center;
  gap: 1.5rem;
  border-radius: 1.8rem;
  background: linear-gradient(135deg, #8bd1ce, #49adae);
}

.picker-mascot {
  display: block;
  width: 100%;
  height: 9rem;
  align-self: end;
}

.picker-note h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.75rem, 3.4vw, 2.8rem);
}

.picker-note p {
  margin-bottom: 0;
  color: #183c48;
}

.color-footer {
  display: flex;
  min-height: 8rem;
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--color-navy);
  color: #fff;
  text-align: center;
}

.color-footer p {
  margin-bottom: 0;
}

.color-footer a {
  color: #fff;
}

@media (max-width: 48rem) {
  .color-header {
    min-height: 4.8rem;
  }

  .color-brand-mascot {
    width: 2.5rem;
    height: 2.5rem;
  }

  .color-hero {
    grid-template-columns: 1fr;
  }

  .color-hero-art {
    min-height: min(68vw, 28rem);
  }

  .color-hero-copy {
    padding: 2rem 1.25rem 2.25rem;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .page-option {
    width: min(100%, 34rem);
    margin-inline: auto;
  }

  .download-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-button {
    width: min(100%, 19rem);
    margin-inline: auto;
  }

  .print-set-actions {
    width: 100%;
  }
}

@media (max-width: 32rem) {
  .color-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .back-link {
    min-height: 2rem;
  }

  .color-hero {
    width: min(calc(100% - 1rem), 72rem);
  }

  .color-hero-copy > p:not(.color-kicker) {
    font-size: 0.9rem;
  }

  .picker-note {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-page-stack {
    inset: 7% 5% 4%;
  }

  .picker-mascot {
    width: 8rem;
    height: 7rem;
    margin-inline: auto;
  }

  .color-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@page {
  size: letter portrait;
  margin: 0.25in;
}

@media print {
  html,
  body {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #fff !important;
  }

  body > :not(.print-stage) {
    display: none !important;
  }

  .print-stage {
    display: block !important;
  }

  .print-sheet {
    display: grid;
    width: 7.5in;
    height: 10in;
    margin: 0 auto;
    overflow: hidden;
    place-items: center;
    break-after: page;
    page-break-after: always;
  }

  .print-sheet[hidden] {
    display: none !important;
  }

  .print-sheet img {
    display: block;
    width: 7.5in;
    height: 10in;
    object-fit: contain;
  }

  body:not([data-print-selection="all"]) .print-sheet,
  body[data-print-selection="all"] .print-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}
