:root {
  color-scheme: light;
  --paper: #e6c9c3;
  --ink: #302725;
  --muted: #65504d;
  --print: #fff9f5;
  --button: #483a36;
  --soft: #d7b6af;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background-image: url("/paper.svg");
}
button,a,input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:disabled {
  cursor: wait;
}
a:focus-visible,button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 6px;
}
.page {
  max-width: 1440px;
  margin: auto;
  padding: 36px 64px 0;
}
.masthead {
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.7px;
}
.cat-mark {
  width: 55px;
  height: 49px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.eyes {
  transform-origin: center;
  animation: blink 8s infinite;
}
.masthead-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.collection-link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 0;
}
.collection-link span {
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.collection-link:hover {
  color: #765853;
}
.headline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 49px 0 32px;
}
h1 {
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(48px,6.7vw,94px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -3.5px;
  margin: 0;
}
.hand-note {
  font: italic 21px/1.3 Georgia,serif;
  margin: 14px 70px 0 0;
  white-space: nowrap;
  position: relative;
  transform: rotate(-7deg);
}
.hand-note svg {
  display: block;
  position: absolute;
  width: 69px;
  height: 43px;
  right: -30px;
  top: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cat-room {
  display: grid;
  grid-template-columns: minmax(0,1fr) 262px;
  gap: 58px;
  align-items: stretch;
}
.photograph {
  min-width: 0;
  background: var(--print);
  margin: 0;
  padding: 14px 14px 0;
  border-radius: 3px 3px 20px 3px;
  transform: rotate(-1deg);
  align-self: start;
  position: relative;
}
.photo-stage {
  background: #292522;
  border-radius: 2px;
  aspect-ratio: 1.6;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.photo-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.photograph figcaption {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 65px;
  padding: 8px 3px;
  font-size: 13px;
}
.frame-number {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--muted);
}
.frame-number span {
  font-variant-numeric: tabular-nums;
}
#photo-caption {
  flex: 1;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.save-button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 10px 0;
  font-size: 12px;
}
.save-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.save-button[aria-pressed=true] svg {
  fill: #87564f;
  stroke: #87564f;
}
.save-button:hover {
  color: #87564f;
}
.remote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0 0;
}
h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.8px;
  line-height: 1.18;
  margin: 0 0 24px;
}
.moods {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.moods label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 5px;
}
.moods input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.moods label:has(input:checked) {
  background: var(--soft);
}
.moods label:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.moods label:hover {
  background: #dbbcb5;
}
.moods label>span:first-of-type {
  font-size: 14px;
  flex: 1;
}
.mood-symbol {
  width: 24px;
  text-align: center;
  font-size: 25px;
  line-height: 1;
}
.sleepy {
  font-family: Georgia,serif;
  font-size: 22px;
}
.sleepy span {
  display: inline-block;
  font-size: 15px;
  transform: translateY(-6px);
}
.next-block {
  padding-top: 28px;
}
.mood-note {
  font: italic 19px/1.45 Georgia,serif;
  margin: 0 0 20px;
  color: var(--muted);
}
.next-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--button);
  color: var(--print);
  border: 0;
  border-radius: 5px;
  padding: 18px 21px;
  min-height: 59px;
  width: 100%;
  font-size: 15px;
}
.next-button svg {
  width: 27px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}
.next-button:hover {
  background: #5b4842;
}
.next-button:hover svg {
  transform: translateX(4px);
}
.next-button:disabled {
  background: #695550;
}
.next-button.is-loading svg {
  animation: waiting 1s ease-in-out infinite;
}
.status {
  min-height: 38px;
  margin: 11px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.status[data-error=true] {
  color: #742f25;
}
.collection {
  padding: 30px 0 35px;
}
.collection-heading {
  display: flex;
  align-items: baseline;
  gap: 25px;
  flex-wrap: wrap;
}
.collection h2 {
  font: 26px/1.25 Georgia,serif;
  letter-spacing: -.6px;
  margin: 0;
}
.collection-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.empty-collection {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 21px 0 8px;
}
.saved-cats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.saved-cat {
  border: 0;
  background: var(--print);
  padding: 6px 6px 8px;
  border-radius: 2px 2px 9px 2px;
  width: 120px;
  text-align: left;
}
.saved-cat img {
  display: block;
  width: 108px;
  height: 84px;
  object-fit: cover;
  background: #302725;
}
.saved-cat span {
  display: block;
  padding: 8px 3px 0;
  font-size: 11px;
  color: var(--muted);
}
.saved-cat:hover {
  background: #f2e4dd;
}
.saved-cat[aria-pressed=true] {
  outline: 2px solid #65504d;
  outline-offset: 3px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 25px 0 30px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
footer p {
  margin: 0;
}
footer a {
  font-weight: 600;
}
.noscript {
  line-height: 1.5;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
[hidden] {
  display: none!important;
}
@keyframes blink {
  0%,45%,48%,100% {
    transform: scaleY(1);
  }
  46%,47% {
    transform: scaleY(.05);
  }
}
@keyframes waiting {
  0%,100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}
@media(min-width:1500px) {
  .page {
    padding-top: 46px;
  }
  .headline-row {
    padding-top: 65px;
  }
  .cat-room {
    gap: 70px;
    grid-template-columns: minmax(0,1fr) 290px;
  }
  .remote {
    padding-top: 20px;
  }
}
@media(max-width:1050px) {
  .page {
    padding: 28px 36px 0;
  }
  .cat-room {
    gap: 30px;
    grid-template-columns: minmax(0,1fr) 228px;
  }
  .headline-row {
    padding: 45px 0 32px;
  }
  .hand-note {
    margin-right: 28px;
    font-size: 18px;
  }
  h1 {
    font-size: 66px;
    letter-spacing: -2.5px;
  }
  .photo-stage {
    aspect-ratio: 1.2;
  }
  .photograph figcaption {
    flex-wrap: wrap;
    gap: 6px 15px;
    padding: 10px 3px;
  }
  .frame-number {
    flex-basis: 100%;
  }
  #photo-caption {
    font-size: 12px;
  }
  .save-button span {
    font-size: 11px;
  }
  .footer-aside {
    display: none;
  }
}
@media(max-width:720px) {
  .page {
    padding: 22px 22px 0;
  }
  .masthead {
    gap: 18px;
  }
  .brand {
    font-size: 20px;
    gap: 9px;
  }
  .cat-mark {
    width: 43px;
    height: 40px;
  }
  .masthead-note {
    display: none;
  }
  .collection-link {
    font-size: 12px;
  }
  .headline-row {
    padding: 35px 0 25px;
  }
  h1 {
    font-size: clamp(36px,9.2vw,62px);
    letter-spacing: -1.8px;
  }
  .hand-note {
    display: none;
  }
  .cat-room {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .photograph {
    padding: 10px 10px 0;
    width: 100%;
    transform: rotate(-.7deg);
  }
  .photo-stage {
    aspect-ratio: 1.3;
  }
  .photograph figcaption {
    min-height: 64px;
    gap: 6px 14px;
  }
  .remote {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .remote h2 {
    font-size: 21px;
    margin-bottom: 14px;
  }
  .moods {
    gap: 5px;
  }
  .moods label {
    padding: 6px 7px;
    min-height: 42px;
  }
  .moods label>span:first-of-type {
    font-size: 12px;
  }
  .mood-symbol {
    font-size: 21px;
    width: 18px;
  }
  .next-block {
    padding-top: 0;
    align-self: end;
  }
  .mood-note {
    font-size: 17px;
    margin-bottom: 17px;
  }
  .next-button {
    padding: 15px 13px;
    font-size: 13px;
    gap: 10px;
    min-height: 52px;
  }
  .next-button svg {
    width: 22px;
  }
  .status {
    font-size: 11px;
    min-height: 53px;
    margin-bottom: 0;
  }
  .collection {
    padding-top: 20px;
  }
  .collection-heading {
    gap: 12px;
  }
  .collection h2 {
    font-size: 23px;
  }
  .collection-heading p {
    font-size: 11px;
    line-height: 1.5;
  }
  .empty-collection {
    font-size: 12px;
  }
  .saved-cats {
    gap: 12px;
  }
  .saved-cat {
    width: calc((100% - 24px)/3);
  }
  .saved-cat img {
    width: 100%;
    height: 80px;
  }
  .saved-cat span {
    font-size: 10px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 25px;
    font-size: 10px;
  }
}
@media(max-width:370px) {
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .remote {
    gap: 16px;
  }
  .next-button {
    font-size: 12px;
  }
  .moods label {
    gap: 5px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
  }
  .photograph {
    transform: none;
  }
}
.previous-button {
  font-size: 22px;
  line-height: 1;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  color: var(--ink);
}
.previous-button:disabled {
  color: #b8a59d;
  cursor: default;
}
.previous-button:not(:disabled):hover {
  color: #87564f;
}
@media(max-width:1050px) {
  .frame-number {
    flex-basis: auto;
  }
  .photograph figcaption {
    gap: 8px 12px;
  }
  #photo-caption {
    flex-basis: 40%;
  }
  .save-button {
    margin-left: auto;
  }
}
@media(max-width:720px) {
  #photo-caption {
    flex-basis: 30%;
    font-size: 11px;
  }
  .frame-number {
    font-size: 10px;
    letter-spacing: .5px;
  }
}
@media(max-width:400px) {
  .save-button span {
    display: none;
  }
  #photo-caption {
    flex-basis: 28%;
  }
}
@media(min-width:1051px) and (max-height:820px) {
  .page {
    padding-top: 24px;
  }
  .headline-row {
    padding: 24px 0 22px;
  }
  h1 {
    font-size: 72px;
    letter-spacing: -2.5px;
  }
  .photo-stage {
    aspect-ratio: 1.9;
  }
  .remote {
    padding-top: 0;
  }
  .remote h2 {
    font-size: 24px;
    margin-bottom: 17px;
  }
  .moods label {
    min-height: 39px;
  }
  .next-block {
    padding-top: 20px;
  }
  .mood-note {
    font-size: 17px;
    margin-bottom: 14px;
  }
  .next-button {
    padding: 15px 20px;
    min-height: 52px;
  }
}
.error-page {
  max-width: 650px;
  min-height: 100svh;
  margin: auto;
  padding: 60px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.error-page h1 {
  font-size: clamp(60px,15vw,100px);
}
.error-page p {
  line-height: 1.6;
  margin: 0;
}
.error-page .next-button {
  width: auto;
  text-decoration: none;
}

.first-screen {
  min-height: calc(100svh - 85px);
  padding-bottom: 32px;
}
@media(min-width:1051px) and (max-height:820px) {
  .first-screen { min-height:calc(100svh - 73px); }
}
@media(max-width:1050px) {
  .first-screen { min-height:calc(100svh - 77px); }
}
@media(max-width:720px) {
  .first-screen { min-height:auto; padding-bottom:28px; }
}
