/* Portada: la ventana del atardecer, el cuaderno con la carta de juegos, Moka y Nata,
   la historia en post-its y «La tercera taza» (la taza que se sirve y la boleta). */

.page-home .site-header {
  background: #fff5e2;
}

.home-main {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--ink);
}

.home-wood {
  position: absolute;
  z-index: -1;
  inset: clamp(460px, 57vw, 580px) -16% -50px;
  border-radius: 50% 52% 0 0 / 140px 145px 0 0;
  background: radial-gradient(ellipse at 50% 5%, #fff0c5aa, transparent 66%), repeating-linear-gradient(5deg, #a86a4227 0 1px, transparent 2px 38px, #a86a4216 39px 40px), linear-gradient(180deg, #ecb786, #edc392 32%, #f2cda1 80%, #eab183);
  box-shadow: inset 0 7px 0 #edba885e, 0 -5px 24px #b98b642e;
}

.hero,
.serve-section {
  display: grid;
  grid-template-columns: minmax(0, .99fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(44px, 6.2vw, 91px);
}

.hero {
  padding: 74px 0 118px;
  min-height: 660px;
}

.home-copy {
  position: relative;
  min-width: 0;
}

.home-copy h1,
.home-copy h2,
.third-story h2 {
  font-size: clamp(3.65rem, 5.9vw, 5.4rem);
  line-height: 1.01;
  letter-spacing: -.06em;
  margin: 19px 0 24px;
}

.home-copy h1 em,
.home-copy h2 em,
.third-story h2 em {
  color: var(--rose);
}

.home-copy > p:not(.mini-label) {
  max-width: 29rem;
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  line-height: 1.69;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 23px;
  padding: 10px 23px;
  border: 1px solid #284238;
  border-radius: 7px;
  background: var(--green);
  color: #fff5e4;
  font-weight: 900;
  box-shadow: 4px 4px 0 #6549314c;
  transition: transform .2s, background .2s;
}

.home-button:hover,
.home-button:focus-visible {
  background: #467060;
  transform: translateY(-3px);
}

.hero-scene {
  position: relative;
  isolation: isolate;
  min-width: 0;
  aspect-ratio: 1.12;
  margin-inline: 0 2.5%;
}

.hero-window {
  position: absolute;
  isolation: isolate;
  overflow: hidden;
  inset: 0 12% 9% 3%;
  border: clamp(6px, 1vw, 13px) solid #8e5f43;
  border-radius: 49% 49% 4% 4% / 49% 49% 4% 4%;
  box-shadow: 3px 8px 0 #75482e69, 10px 12px 23px #79453142, inset 0 0 0 3px #d5a078;
}

.hero-window::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}

.window-crossbar {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-lantern {
  position: absolute;
  z-index: 2;
  top: 24%;
  right: 4%;
  width: 17%;
  aspect-ratio: .95;
  border: 2px solid #845f45;
  border-radius: 12% 12% 45% 45%;
  background: radial-gradient(ellipse at 48% 64%, #ffedbe 24%, #ffca84 61%, #bf8460 97%);
  box-shadow: 0 0 53px 13px #ffd58b7a, inset 0 7px 0 #956d4b;
}

.hero-lantern::before {
  content: "";
  position: absolute;
  left: 48%;
  bottom: 100%;
  width: 3px;
  height: 114px;
  background: #88674d;
}

.hero-sill {
  position: absolute;
  z-index: 3;
  inset: auto 6% 8% 0;
  height: 8%;
  border: 2px solid #8e5e42;
  border-radius: 4px 6px 8px 6px;
  background: linear-gradient(180deg, #d5a17a 0 29%, #b87d54 31% 86%, #9f694a 88%);
  box-shadow: 6px 11px 17px #87533065;
}

.hero-keebi {
  position: absolute;
  z-index: 4;
  right: 0;
  width: 46%;
  transform: rotate(10deg);
  filter: drop-shadow(6px 9px 0 #56372b4d);
}

.hero-hat-button {
  position: absolute;
  z-index: 5;
  border: 1px solid #9a6457;
  border-radius: 5px 6px 16px 6px;
  background: #fff0d8;
  box-shadow: 4px 5px 0 #69452e4d;
  transform: rotate(-7deg);
  transition: transform .2s, background .2s;
}

.hero-hat-button:hover,
.hero-hat-button:focus-visible {
  transform: rotate(-2deg) translateY(-3px);
  background: #fffaef;
}

.hero-hat-button span {
  font-size: .9rem;
}

.home-desk {
  position: relative;
  isolation: isolate;
  padding: 100px 0 90px;
}

.notebook {
  position: relative;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1fr);
  margin-inline: auto;
  border-radius: 13px;
  transform: rotate(-1.7deg);
}

.notebook-menu,
.third-story {
  position: relative;
  min-width: 0;
}

.notebook-menu {
  display: grid;
  background: linear-gradient(90deg, transparent 92%, #75502f42), repeating-linear-gradient(0deg, transparent 0 25px, #b59a752f 25px 26px), #f3e4c8;
  perspective: 1100px;
}

.notebook-sketch {
  position: relative;
  display: grid;
  gap: 8px;
  text-align: center;
  border: 1px solid #a885656b;
  background: #fffaee;
  box-shadow: 4px 5px 0 #79533b31;
}

.notebook-sketch::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 36%;
  width: 32%;
  height: 18px;
  transform: rotate(-9deg);
  background: #d2a77986;
}

.notebook-sketch img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
}

.notebook-sketch figcaption {
  font-weight: 800;
  line-height: 1.4;
}

.story-team {
  margin: 0;
  padding: 8px 14px;
  border: 1px dashed #a77a626e;
  border-radius: 4px;
  background: #fff2d7;
  box-shadow: 2px 3px 0 #76492b1f;
}

.story-team > div {
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
}

.story-team > div + div {
  border-top: 1px dashed #ad856b81;
}

.story-team dt {
  font: 1.22rem var(--display);
}

.story-team dd {
  margin: 0;
}

.desk-keyboard {
  position: absolute;
  top: 30px;
  right: 4%;
  z-index: -1;
  width: min(355px, 38%);
  border: 2px solid #6f626e;
  border-radius: 9px;
  background: #a498ad;
  box-shadow: 5px 9px 0 #7557466e;
  padding: 11px 13px;
  display: grid;
  gap: 5px;
  transform: rotate(12deg);
}

.desk-keyboard span {
  height: 21px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #f1e4e6 0 calc(10% - 3px), transparent calc(10% - 3px) 10%);
}

.desk-cup {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(64px, 11vw, 151px);
  aspect-ratio: 1;
  border: 2px solid #997763;
  border-radius: 50%;
  background: #f4daa3;
  box-shadow: 7px 10px 12px #80513365, inset 0 0 0 8px #eed1a8;
}

.desk-cup > div {
  width: 70%;
  aspect-ratio: 1;
  border: min(.7vw, 7px) solid #ffecd1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 30%, #d29360, #a75c32 70%);
  box-shadow: 1px 3px 5px #77472572;
}

.desk-cup::after {
  content: "";
  position: absolute;
  width: 14%;
  height: 14%;
  right: 1%;
  top: 39%;
  border: 4px solid #ffecd1;
  border-left: 0;
  border-radius: 0 70% 70% 0;
  box-shadow: 1px 1px 0 #ac7d5a;
}

.cup-sophi {
  top: 1%;
  left: 2%;
  transform: rotate(-32deg);
  background: #e5a5ac;
  box-shadow: 7px 10px 12px #80513365, inset 0 0 0 8px #e9b5b6;
}

.cup-cesar {
  transform: rotate(26deg);
}

.serve-section {
  padding-bottom: 96px;
}

.serve-section h2 {
  font-size: clamp(3rem, 5.1vw, 4.65rem);
}

.cup-scene {
  position: relative;
  isolation: isolate;
  min-width: 0;
  aspect-ratio: 1.16;
  --steam: .84;
}

.mug-napkin {
  position: absolute;
  width: 68%;
  aspect-ratio: 1.13;
  transform: rotate(-18deg);
  border: 1px solid #a47574;
  border-radius: 12px;
  box-shadow: 5px 7px 0 #8e5a4136, inset 0 0 0 7px #edc6c57d;
  background: repeating-linear-gradient(90deg, #bc7b841f 0 18px, transparent 18px 34px), repeating-linear-gradient(0deg, #bc7b842e 0 18px, transparent 18px 34px), #e4b1b3;
}

.mug-saucer {
  position: absolute;
  width: 70%;
  height: 33%;
  border-radius: 52%;
  border: 2px solid #83917c;
  background: radial-gradient(ellipse, #a9bb9f 48%, #cad9b8 50% 58%, #dce7c6 59% 68%, #b5c8aa 70%);
  box-shadow: inset 3px -5px 0 #91a38a66, 6px 10px 14px #724d3b5c;
}

.mug {
  position: absolute;
  width: 45%;
  height: 44%;
  border-radius: 22% 20% 46% 46% / 15% 15% 48% 49%;
  border: 2px solid #9d755c;
  background: linear-gradient(102deg, #e7bda2, #fdf1db 29%, #fff4dd 51%, #d6b592 97%);
  box-shadow: 3px 7px 0 #9b795a5c, inset -8px -4px 10px #a881693e;
}

.mug::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 28%;
  right: -21%;
  width: 24%;
  height: 39%;
  border: clamp(5px, 1vw, 12px) solid #f4e2c5;
  border-left: 0;
  border-radius: 0 55% 60% 0;
  box-shadow: 2px 1px 0 1px #ab8669, 3px 4px 0 #b88b696b;
}

.mug-rim {
  position: absolute;
  inset: -7% -1% auto;
  height: 48%;
  overflow: hidden;
  border: 4px solid #fae8cb;
  outline: 1px solid #a58064;
  border-radius: 50%;
  box-shadow: inset 0 5px 10px #7c4b3e51;
}

.mug-coffee {
  position: absolute;
  display: grid;
  place-items: center;
  inset: 2% 2% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 51% 47%, #cc9458, #a8643a 82%, #b4774c);
  color: #ffedc6;
}

.mug-coffee span {
  font: 900 clamp(23px, 4.5vw, 65px)/.7 var(--body);
}

.carafe {
  z-index: 3;
  background: linear-gradient(160deg, #f4d9bc 0 56%, #ad6b48 58% 100%);
}

.carafe::after {
  content: "";
  position: absolute;
  right: -19%;
  top: 20%;
  width: 25%;
  height: 50%;
  border: 4px solid #b28f74;
  border-left: 0;
  border-radius: 0 65% 65% 0;
}

.coffee-stream {
  background: linear-gradient(90deg, #98613e, #e0ad7b 61%, #ae7048);
}

.mug-steam {
  position: absolute;
  z-index: 4;
  width: 16%;
  height: 28%;
  opacity: var(--steam);
}

.mug-steam i {
  position: absolute;
  bottom: 0;
  border: solid #fff1d6;
  border-width: 0 0 0 clamp(2px, .56vw, 7px);
}

@media (max-width: 1100px) {
  .hero {
    min-height: 580px;
    padding: 58px 0 97px;
  }

  .hero-lantern::before {
    height: 83px;
  }

  .notebook-menu {
    padding-inline: 23px;
  }
}

@media (max-width: 800px) {
  .hero,
  .serve-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 0;
    padding: 40px 0 60px;
  }

  .home-copy h1 {
    font-size: clamp(3rem, 11vw, 4.75rem);
  }

  .home-copy > p:not(.mini-label) {
    font-size: 1.0625rem;
  }

  .hero-scene {
    width: min(100%, 490px);
    margin: 9px auto 0;
  }

  .hero-lantern::before {
    height: 60px;
  }

  .hero-hat-button span {
    font-size: .85rem;
  }

  .home-wood {
    top: 530px;
  }

  .home-desk {
    padding: 70px 0 61px;
  }

  .notebook {
    grid-template-columns: minmax(0, 1fr);
    transform: rotate(-1deg);
  }

  .cup-sophi {
    top: 18px;
    left: 3%;
  }

  .desk-keyboard {
    top: 18px;
    width: 51%;
  }

  .desk-keyboard span {
    height: 14px;
  }

  .cup-scene {
    width: min(100%, 460px);
    margin-inline: auto;
  }

  .serve-section {
    padding-bottom: 58px;
    gap: 13px;
  }

  .serve-section h2 {
    font-size: clamp(2.75rem, 10vw, 4.1rem);
  }
}

@media (max-width: 380px) {
  .home-copy h1 {
    font-size: clamp(2.8rem, 10vw, 3.4rem);
  }
}

.page-home {
  --rose: #9f4d46;
  --sunset-amber: #f9bd7d;
  --sunset-cream: #ffeed5;
  --serve-time: 4.1s;
}

.page-home .home-main {
  background: radial-gradient(ellipse at 76% 8%, #ffc680a8, transparent 41%), linear-gradient(145deg, #fff7e7, #ffecd0 48%, #efceab);
}

.hero-window {
  background: linear-gradient(180deg, #9d7094 0%, #d48996 31%, #eea18c 49%, #ffd99d 72%);
}

.hero-window::before {
  background: linear-gradient(120deg, transparent 22%, #fff0ca36 23% 28%, transparent 29% 39%, #ffeacb32 40% 41%, transparent 42%);
}

.sunset-sun {
  position: absolute;
  left: 24%;
  top: 37%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(155deg, #fff4c6 22%, var(--sunset-amber));
  box-shadow: 0 0 38px 13px #ffd49b58;
}

.sunset-cloud {
  position: absolute;
  top: 28%;
  left: 24%;
  width: 36%;
  height: 16%;
  opacity: .72;
  background: radial-gradient(ellipse at center, #fed0b578 0 48%, transparent 69%) center / 100% 32% no-repeat, radial-gradient(ellipse at center, #ffdfb77a 0 48%, transparent 70%) top right / 64% 29% no-repeat, radial-gradient(ellipse at center, #ffba9c7d 0 46%, transparent 70%) bottom left / 72% 25% no-repeat;
}

.sunset-ridge {
  position: absolute;
  inset: 34% -1% -1%;
}

.far-ridge {
  background: linear-gradient(160deg, #b68191, #b36d7b 78%);
  clip-path: polygon(0 58%, 8% 55%, 17% 39%, 23% 42%, 30% 36%, 37% 51%, 45% 48%, 54% 32%, 61% 37%, 73% 10%, 76% 8%, 80% 17%, 85% 22%, 91% 39%, 100% 42%, 100% 100%, 0 100%);
}

.middle-ridge {
  background: linear-gradient(153deg, #946377 20%, #825c70 69%, #694f65 100%);
  clip-path: polygon(0 35%, 6% 31%, 13% 18%, 23% 28%, 34% 50%, 44% 59%, 49% 62%, 58% 51%, 68% 55%, 77% 39%, 85% 50%, 93% 47%, 100% 54%, 100% 100%, 0 100%);
}

.near-ridge {
  background: linear-gradient(174deg, #684e62 48%, #514354);
  clip-path: polygon(0 65%, 11% 68%, 20% 61%, 34% 65%, 45% 72%, 54% 74%, 62% 66%, 74% 58%, 86% 54%, 95% 61%, 100% 59%, 100% 100%, 0 100%);
}

.hero-window .window-crossbar {
  background: linear-gradient(90deg, transparent 48.4%, #76503e 48.8%, #c28f68 50.4%, #a87855 51.1%, transparent 51.6%), linear-gradient(180deg, transparent 59%, #79543e 59.2%, #c38d60 60.7%, #966b4f 62.1%, transparent 62.4%);
}

.window-moka,
.window-nata {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
}

.window-moka {
  z-index: 2;
  width: 18%;
  left: 1.5%;
  bottom: 16%;
  transform: rotate(16deg);
  filter: drop-shadow(2px 3px 0 #50302545);
}

.window-nata {
  z-index: 4;
  width: 21%;
  top: 1%;
  right: 25%;
  transform: rotate(-9deg);
  filter: drop-shadow(2px 3px 1px #65384a63);
}

.notebook-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(133deg, #ffdba151, transparent 52%);
  pointer-events: none;
}

.notebook-cover {
  display: none;
  position: absolute;
  z-index: 4;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 22px;
  color: #293e31;
  backface-visibility: hidden;
}

.notebook-cover::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid #51654e7d;
  border-radius: 4px;
}

.notebook-cover > span {
  font: 500 clamp(1.35rem, 2.3vw, 2.15rem)/1.2 var(--display);
  border: 1px solid #786f4f7d;
  border-radius: 3px;
  background: #f5e4be;
  box-shadow: 2px 3px 0 #5f755d71;
  text-align: center;
}

.notebook-cover b {
  font-size: 1.75rem;
  line-height: 1;
}

.serve-section.serve-section {
  display: block;
}

.serve-frame {
  display: grid;
  grid-template-columns: minmax(0, .99fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(44px, 6.2vw, 91px);
}

.cup-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14% -2% -8% -9%;
  background: radial-gradient(ellipse at 42% 48%, #ffe9afab, transparent 67%);
}

.cup-scene .mug-napkin {
  left: 14%;
  bottom: 4%;
}

.mug-saucer,
.mug {
  z-index: 2;
}

.cup-scene .mug-saucer {
  left: 16%;
  bottom: 10%;
}

.cup-scene .mug {
  left: 28%;
  bottom: 22%;
}

.cup-scene .mug-rim {
  background: radial-gradient(ellipse at center 62%, #d4a88c, #f7dfbc 66%, #b7876e 96%);
}

.cup-scene .mug-coffee {
  opacity: 1;
  transform: none;
}

.mug-coffee > span {
  position: relative;
  z-index: 1;
  color: var(--sunset-cream);
  text-shadow: 1px 0 #ffd4a4;
  transform: rotate(-12deg) scaleY(.63);
}

.mug-coffee > i {
  position: absolute;
  inset: 12% 18%;
  border: 2px solid #ffe8bfaa;
  border-radius: 50%;
  opacity: 0;
}

.barista {
  position: absolute;
  z-index: 1;
  top: 1%;
  width: 38%;
  height: 58%;
}

.barista > img {
  display: block;
  position: absolute;
  width: 100%;
  height: auto;
  filter: drop-shadow(3px 4px 0 #6d42305c);
}

.barista-moka {
  right: 0;
  transform-origin: 67% 58%;
}

.barista-moka > img {
  top: 0;
  transform: rotate(18deg);
}

.barista-nata {
  left: 1%;
  transform-origin: 43% 57%;
}

.barista-nata > img {
  top: 1%;
  transform: rotate(146deg);
}

.barista .carafe,
.barista .milk-pitcher {
  position: absolute;
  top: 39%;
  width: 44%;
  height: 37%;
  border: 2px solid #806758;
  border-radius: 17% 21% 35% 31%;
  opacity: 1;
  box-shadow: 3px 5px 0 #765b474d;
}

.barista .carafe {
  left: -19%;
  transform: rotate(12deg);
  transform-origin: 20% 32%;
}

.milk-pitcher {
  right: -8%;
  transform: rotate(-9deg) scale(.84);
  transform-origin: 72% 30%;
  background: linear-gradient(105deg, #e5abae, #ffe7db 40%, #edb3b7 85%);
}

.milk-pitcher::after {
  content: "";
  position: absolute;
  left: -18%;
  top: 22%;
  width: 21%;
  height: 44%;
  border: clamp(2px, .25vw, 4px) solid #ae7d74;
  border-right: 0;
  border-radius: 64% 0 0 63%;
}

.milk-pitcher::before {
  content: "";
  position: absolute;
  right: -3%;
  top: -2%;
  width: 29%;
  height: 18%;
  border-radius: 6px 60% 0 40%;
  background: #ffe6d8;
}

.cup-scene .coffee-stream,
.cup-scene .milk-stream {
  position: absolute;
  z-index: 3;
  width: 1.8%;
  border-radius: 70% 62% 55% 65%;
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
}

.cup-scene .coffee-stream {
  left: 53%;
  top: 25%;
  height: 16%;
  transform: rotate(6deg) scaleY(0);
}

.cup-scene .milk-stream {
  top: 25%;
  left: 45%;
  height: 16%;
  transform: rotate(-13deg) scaleY(0);
  background: linear-gradient(90deg, #f0cbab, #fff8dc 62%, #ecd1b4);
}

.cup-scene .mug-steam {
  left: 42%;
  bottom: 65%;
}

.cup-scene .mug-steam i {
  left: -6%;
  width: 43%;
  height: 70%;
  border-radius: 63% 0 0 52%;
  border-color: #fff2dc;
  border-left-width: clamp(3px, .57vw, 7px);
  filter: blur(.8px) drop-shadow(1px 1px 2px #986c50ae);
  transform: rotate(12deg);
  mask-image: linear-gradient(180deg, transparent, #000 23% 80%, #0009 95%);
}

.cup-scene .mug-steam i::after {
  content: "";
  position: absolute;
  bottom: 59%;
  right: 55%;
  width: 57%;
  height: 61%;
  border: solid #fff2dc;
  border-width: 0 clamp(2px, .47vw, 6px) 0 0;
  border-radius: 50%;
}

.cup-scene .mug-steam i + i {
  left: 69%;
  height: 95%;
  transform: scaleX(-1) rotate(10deg);
}

@media (prefers-reduced-motion: no-preference) {
  .sunset-cloud {
    animation: cloud-drift 22s ease-in-out 2 alternate both;
  }

  .window-moka {
    animation: moka-peeks 1s .65s cubic-bezier(.2, .66, .28, 1) both;
  }

  .window-nata {
    animation: nata-peeks 1s .95s cubic-bezier(.2, .66, .28, 1) both;
  }

  [data-serving="waiting"] .mug-coffee,
  [data-serving="waiting"] .mug-steam {
    opacity: 0;
  }

  [data-serving="pouring"] .barista-moka {
    animation: moka-reaches var(--serve-time) ease-in-out both;
  }

  [data-serving="pouring"] .barista-nata {
    animation: nata-reaches var(--serve-time) ease-in-out both;
  }

  [data-serving="pouring"] .carafe {
    animation: serve-coffee var(--serve-time) ease-in-out both;
  }

  [data-serving="pouring"] .milk-pitcher {
    animation: serve-milk var(--serve-time) ease-in-out both;
  }

  [data-serving="pouring"] .coffee-stream {
    animation: stream-coffee var(--serve-time) linear both;
  }

  [data-serving="pouring"] .milk-stream {
    animation: stream-milk var(--serve-time) linear both;
  }

  [data-serving="pouring"] .mug-coffee {
    animation: fill-cup var(--serve-time) linear both;
  }

  [data-serving="pouring"] .mug-coffee > i {
    animation: coffee-ring 1.45s .58s ease-out 2 both;
  }

  [data-serving="pouring"] .mug-coffee > i:nth-of-type(2) {
    animation-delay: .86s;
  }

  [data-serving="pouring"] .mug-coffee > i:nth-of-type(3) {
    animation-delay: 1.12s;
  }

  [data-serving="pouring"] .mug-coffee > span {
    animation: milk-heart var(--serve-time) ease-out both;
  }

  [data-serving="pouring"] .mug-steam {
    animation: steam-appears var(--serve-time) ease-out both;
  }

  [data-serving="served"] .mug-steam i {
    animation: quiet-steam 3.8s ease-in-out 3 alternate;
  }

  [data-serving="served"] .mug-steam i + i {
    animation-delay: -.8s;
  }
}

@keyframes cloud-drift {
  to {
    translate: 33% 5%;
  }
}

@keyframes moka-peeks {
  from {
    transform: translate(-22%, 33%) rotate(2deg);
  }
  to {
    transform: rotate(16deg);
  }
}

@keyframes nata-peeks {
  from {
    transform: translateY(-87%) rotate(-18deg);
  }
  to {
    transform: rotate(-9deg);
  }
}

@keyframes moka-reaches {
  0%, 57%, 100% {
    transform: none;
  }
  16%, 43% {
    transform: translate(-8%, 1%) rotate(-7deg);
  }
}

@keyframes nata-reaches {
  0%, 43%, 87%, 100% {
    transform: none;
  }
  55%, 73% {
    transform: translate(10%, -4%) rotate(6deg);
  }
}

@keyframes serve-coffee {
  0%, 55%, 100% {
    transform: rotate(12deg);
  }
  15%, 45% {
    transform: translate(-12%, -28%) rotate(-42deg);
  }
}

@keyframes serve-milk {
  0%, 44%, 88%, 100% {
    transform: rotate(-9deg) scale(.84);
  }
  54%, 75% {
    transform: translate(14%, -20%) rotate(46deg) scale(.84);
  }
}

@keyframes stream-coffee {
  0%, 14%, 56%, 100% {
    opacity: 0;
    transform: rotate(6deg) scaleY(0);
  }
  18%, 46% {
    opacity: .96;
    transform: rotate(6deg) scaleY(1);
  }
  49% {
    opacity: .83;
    transform: rotate(6deg) scaleY(1);
  }
}

@keyframes stream-milk {
  0%, 54%, 83%, 100% {
    opacity: 0;
    transform: rotate(-13deg) scaleY(0);
  }
  57%, 75% {
    opacity: .98;
    transform: rotate(-13deg) scaleY(1);
  }
  77% {
    opacity: .85;
    transform: rotate(-13deg) scaleY(1);
  }
}

@keyframes fill-cup {
  0%, 16% {
    opacity: 0;
    transform: translateY(58%) scaleY(.22);
  }
  20% {
    opacity: 1;
  }
  48%, 55% {
    opacity: 1;
    transform: translateY(13%) scaleY(.82);
  }
  78%, 100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes milk-heart {
  0%, 69% {
    opacity: 0;
    transform: rotate(-24deg) scale(.23, .15);
  }
  87%, 100% {
    opacity: 1;
    transform: rotate(-12deg) scaleY(.63);
  }
}

@keyframes steam-appears {
  0%, 76% {
    opacity: 0;
  }
  100% {
    opacity: .84;
  }
}

@keyframes coffee-ring {
  from {
    opacity: .66;
    transform: scale(.12);
  }
  to {
    opacity: 0;
    transform: scale(1.17);
  }
}

@keyframes quiet-steam {
  from {
    opacity: .43;
    translate: 4px 7px;
  }
  to {
    opacity: .96;
    translate: -4px -10px;
  }
}

@media (max-width: 800px) {
  .serve-frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }
}

@media (max-width: 380px) {
  .barista .carafe::after {
    border-width: 2px 2px 2px 0;
  }
}

.hero .home-copy > .hero-keebi-intro {
  margin-top: 17px;
  padding-left: 15px;
  border-left: 2px solid #b56758;
  color: #553a2d;
  line-height: 1.54;
}

.hero-keebi-intro strong {
  color: #315747;
  font-weight: 900;
}

.hero-game-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 22px;
  margin-top: 22px;
}

.hero-game-links .home-button {
  margin-top: 0;
}

.hero-catalog-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: #6e392f;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-catalog-link span {
  text-decoration: none;
}

.hero-scene .hero-keebi {
  top: auto;
  bottom: 14%;
}

.hero-scene .hero-keebi > img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-scene .hero-keebi > img[hidden] {
  display: none;
}

.hero-scene .hero-hat-button {
  inset: auto 24% 0 auto;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  color: #573a2b;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-scene .hero-hat-button[hidden] {
  display: none;
}

.hero-hat-button .hero-hat-star {
  color: #893f38;
  font-size: 1.25rem;
  line-height: 1;
}

.hero-hat-button:focus-visible,
.hero-catalog-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.game-ticket p.game-ticket-status {
  margin-top: 7px;
  color: #69473a;
  font-size: .84rem;
  font-weight: 900;
}

@media (max-width: 800px) {
  .hero {
    gap: 22px;
  }

  .hero .home-copy h1 {
    margin: 0 0 16px;
  }

  .hero .home-copy > p:not(.mini-label) {
    line-height: 1.52;
  }

  .hero-game-links {
    margin-top: 16px;
    column-gap: 14px;
  }

  .hero-game-links .home-button {
    padding-inline: 15px;
  }

  .hero-game-links a {
    font-size: .95rem;
  }

  .hero-scene {
    z-index: 1;
  }

  .hero-scene .hero-hat-button {
    right: 15%;
    justify-content: center;
    min-width: 170px;
    min-height: 48px;
    transform: rotate(-3deg);
    transition: background .2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-hat-button {
    transition: none;
  }

  .hero-hat-button:hover,
  .hero-hat-button:focus-visible {
    transform: rotate(-7deg);
  }
}

.home-desk {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.home-desk .cup-cesar {
  width: clamp(64px, 9vw, 124px);
  right: 0;
  bottom: 1%;
}

.notebook {
  --closed-leaf: rotateY(180deg);
  --closed-spread: -25% 0;
  --spine: right center;
  --page-edge: #84977f;
  --book-time: 2.4s;
  display: block;
  width: min(1030px, 94%);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  perspective: 1400px;
}

.notebook-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  transform-style: preserve-3d;
}

.notebook-leaf {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  transform-origin: var(--spine);
  transform-style: preserve-3d;
}

.notebook-trigger {
  position: absolute;
  inset: 43% 25% auto;
  height: 14%;
  pointer-events: none;
}

.notebook-leaf .notebook-menu,
.notebook-spread .notebook-games {
  border: 7px solid var(--page-edge);
  box-shadow: 4px 7px 0 #805f4740, 9px 13px 20px #70472735;
}

.notebook-leaf .notebook-menu {
  border-right-width: 0;
  border-radius: 11px 0 0 11px;
  backface-visibility: hidden;
}

.notebook-spread .notebook-games {
  border-left-width: 1px;
  border-radius: 0 11px 11px 0;
}

.notebook-leaf .notebook-cover {
  inset: -2px -2px -2px 0;
  border: 2px solid #64745d;
  border-radius: 5px 11px 11px 5px;
  background: linear-gradient(90deg, #687d62 0 4%, #5c735845 5%, transparent 10%), linear-gradient(132deg, #ffdb9b64, transparent 53%), repeating-linear-gradient(0deg, #e8efdd1d 0 1px, transparent 1px 4px), linear-gradient(135deg, #a4bb9b, #88a184);
  box-shadow: inset 0 0 0 5px #d3debd54, 5px 6px 0 #725b433e;
  transform: var(--closed-leaf) translateZ(.4px);
  transform-origin: center;
  opacity: 1;
  pointer-events: auto;
}

.notebook-leaf .notebook-cover > span {
  padding: 14px clamp(15px, 2.5vw, 30px);
  font-size: clamp(1.5rem, 2.7vw, 2.65rem);
}

@media (prefers-reduced-motion: no-preference) {
  .notebook:is([data-opening="waiting"], [data-opening="opening"]) .notebook-cover {
    display: grid;
  }

  .notebook[data-opening="waiting"] .notebook-spread {
    translate: var(--closed-spread);
  }

  .notebook[data-opening="waiting"] .notebook-leaf {
    transform: var(--closed-leaf);
  }

  .notebook[data-opening="opening"] .notebook-spread {
    animation: center-notebook var(--book-time) cubic-bezier(.32, .07, .24, 1) both paused;
  }

  .notebook[data-opening="opening"] .notebook-leaf {
    animation: open-notebook-leaf var(--book-time) cubic-bezier(.32, .07, .24, 1) both paused;
  }

  .notebook[data-opening="opening"].is-in-view :is(.notebook-spread, .notebook-leaf) {
    animation-play-state: running;
  }
}

@keyframes center-notebook {
  0%, 43% {
    translate: var(--closed-spread);
  }
  100% {
    translate: none;
  }
}

@keyframes open-notebook-leaf {
  0%, 43% {
    transform: var(--closed-leaf);
  }
  100% {
    transform: none;
  }
}

.notebook-menu {
  align-content: center;
  justify-items: stretch;
  gap: 16px;
  padding: clamp(24px, 3.5vw, 48px);
}

.notebook-menu h2,
.story-intro h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.78rem);
  line-height: 1.05;
  text-wrap: balance;
}

.notebook-menu h2 em,
.story-intro h2 em {
  color: var(--rose);
}

.menu-values {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-values li {
  display: grid;
  gap: 2px;
  padding: 9px 0;
  line-height: 1.32;
}

.menu-values li + li {
  border-top: 1px dashed #af806674;
}

.menu-values strong {
  font-weight: 900;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.menu-values span {
  color: #6a4b37;
  font-size: .95rem;
}

.notebook-menu .notebook-sketch {
  width: clamp(95px, 10vw, 135px);
  justify-self: end;
  margin: 2px 9px 1px 0;
  padding: 6px 6px 8px;
  transform: rotate(7deg);
}

.notebook-menu .notebook-sketch figcaption {
  font-size: .75rem;
}

.notebook-games {
  display: grid;
  align-content: center;
  gap: 28px;
  min-width: 0;
  padding: clamp(25px, 3.7vw, 50px);
  background: linear-gradient(90deg, #a57b6047, transparent 10%), radial-gradient(ellipse at 54% 38%, #f5d0c6, transparent 71%), #fff1dc;
}

.game-ticket {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.game-ticket h3 {
  font-size: clamp(2.75rem, 5.5vw, 4.85rem);
  line-height: 1.05;
}

.game-ticket p {
  max-width: 34ch;
  margin: 10px auto 0;
  font-size: 1rem;
  line-height: 1.52;
}

.game-ticket img {
  display: block;
  width: min(66%, 228px);
  height: auto;
  transform: rotate(-7deg);
  filter: drop-shadow(5px 7px 0 #9c6f6050);
}

.game-ticket .home-button {
  margin-top: 16px;
  padding-inline: 16px;
}

.studio-mascots {
  padding: 0 0 clamp(32px, 4vw, 58px);
}

.mascot-note {
  position: relative;
  --mascot-sticker-size: clamp(64px, 8.5vw, 122px);
  width: min(1080px, 100%);
  margin-inline: auto;
  padding: clamp(20px, 2.5vw, 34px) clamp(18px, 3.35vw, 46px);
  border: 1px solid #af8e6b73;
  border-radius: 3px 4px 6px 3px;
  background: linear-gradient(114deg, #fff1d8, #f8e7c8);
  box-shadow: 3px 4px 0 #80563732;
  transform: rotate(1deg);
}

.mascot-note::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 18%;
  width: 72px;
  height: 19px;
  background: #b8966f56;
  transform: rotate(-8deg);
}

.mascot-note h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.18;
  text-align: center;
}

.mascot-note > p {
  max-width: 67ch;
  margin: 8px auto 0;
  color: #654c38;
  font-size: clamp(1rem, 1.3vw, 1.17rem);
  line-height: 1.46;
  text-align: center;
}

.mascot-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px clamp(22px, 4.6vw, 66px);
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed #ba976b8c;
}

.mascot-entry {
  display: grid;
  grid-template-columns: var(--mascot-sticker-size) minmax(0, 1fr);
  align-items: center;
  gap: clamp(11px, 2vw, 19px);
}

.mascot-entry img {
  display: block;
  width: var(--mascot-sticker-size);
  height: auto;
  filter: drop-shadow(1px 2px 0 #7553423a);
}

.entry-nata img {
  transform: rotate(-7deg);
}

.mascot-entry h3 {
  font: 900 clamp(1.1rem, 1.55vw, 1.38rem)/1.2 var(--body);
  letter-spacing: normal;
}

.mascot-entry p {
  margin-top: 3px;
  color: #654c38;
  font-size: clamp(1rem, 1.3vw, 1.17rem);
  line-height: 1.4;
}

.story-table {
  padding: 18px 0 clamp(80px, 10vw, 136px);
}

.table-notes {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.85fr);
  align-items: start;
  gap: clamp(23px, 4vw, 57px);
  width: min(1110px, 96%);
  margin-inline: auto;
}

.story-intro .mini-label {
  color: #79493b;
  margin-bottom: 12px;
}

.story-intro .story-team {
  width: min(100%, 250px);
  margin-top: 26px;
  transform: rotate(-3deg);
}

.story-team > div {
  display: grid;
  gap: 2px;
  padding-block: 8px;
}

.story-team dd {
  font-size: .9375rem;
  line-height: 1.42;
}

.story-moments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 25px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-moments li {
  --note-color: #ffebae;
  --note-rotation: -2deg;
  position: relative;
  padding: clamp(19px, 2.4vw, 31px);
  border-radius: 1px 1px 13px 2px;
  background: linear-gradient(180deg, #59402913 0 22px, transparent 23px), var(--note-color);
  box-shadow: 4px 6px 0 #835b433b, 7px 9px 13px #835b4325;
  transform: rotate(var(--note-rotation));
}

.story-moments li:nth-child(2) {
  --note-color: #f7d0d3;
  --note-rotation: 1.7deg;
}

.story-moments li:nth-child(3) {
  --note-color: #dfe7bb;
  --note-rotation: -1.2deg;
}

.story-moments li:nth-child(4) {
  --note-color: #fae3cd;
  --note-rotation: 1deg;
}

.story-moments h3 {
  font-size: clamp(1.21rem, 1.85vw, 1.55rem);
  line-height: 1.16;
  margin-bottom: 7px;
}

.story-moments p {
  font-size: 1rem;
  line-height: 1.52;
}

.serve-illustration {
  min-width: 0;
  margin: 0;
  --receipt-delivery-time: 1.25s;
}

.support-receipt {
  --receipt-paper: #fff0d0;
  position: relative;
  z-index: 1;
  width: min(88%, 410px);
  margin: -8px auto 0 4%;
  padding: clamp(17px, 2.3vw, 26px);
  border: 1px solid #b18363;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(126deg, #ffd29258, transparent 62%), var(--receipt-paper);
  box-shadow: 5px 7px 0 #9b654739, 8px 12px 16px #7d472033;
  transform: rotate(-3deg);
}

.support-receipt::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  height: 6px;
  background: conic-gradient(from -45deg at 50% 100%, var(--receipt-paper) 90deg, transparent 0) 0 0 / 12px 6px repeat-x;
  pointer-events: none;
}

.support-receipt h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  color: var(--clay);
  line-height: 1.13;
}

.support-receipt p {
  margin: 6px 0 13px;
  font-size: 1rem;
  line-height: 1.42;
}

.receipt-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding-top: 12px;
  border-top: 1px dashed #b68864;
}

.receipt-action .home-button {
  margin: 0;
  padding-inline: 17px;
  color: #fff5e4;
  background: var(--clay);
  border-color: #662c21;
}

.receipt-action .home-button:hover,
.receipt-action .home-button:focus-visible {
  background: #6e3025;
}

.receipt-action small {
  max-width: 17ch;
  font-size: .875rem;
  line-height: 1.35;
  color: #653f2b;
}

@media (prefers-reduced-motion: no-preference) {
  .receipt-delivered .barista-nata {
    animation: nata-at-the-table-edge var(--receipt-delivery-time) step-end;
  }

  .receipt-delivered .barista-nata > img {
    animation: nata-brings-receipt var(--receipt-delivery-time) ease-in-out both;
  }

  .receipt-delivered .support-receipt {
    animation: receive-support-receipt var(--receipt-delivery-time) ease-out both;
  }

  .receipt-delivered .support-receipt:is(:hover, :focus-within) {
    animation-play-state: paused;
  }
}

@keyframes nata-at-the-table-edge {
  0%, 79%, 100% {
    z-index: 1;
  }
  28% {
    z-index: 4;
  }
}

@keyframes nata-brings-receipt {
  0%, 100% {
    translate: none;
    rotate: none;
  }
  36% {
    translate: -8% 79%;
    rotate: -8deg;
  }
  56% {
    translate: 4% 118%;
    rotate: 11deg;
  }
  65% {
    translate: 9% 108%;
    rotate: 6deg;
  }
}

@keyframes receive-support-receipt {
  0%, 43% {
    translate: none;
    transform: rotate(-3deg);
  }
  75% {
    translate: 15px 12px;
    transform: rotate(1deg);
  }
  100% {
    translate: 10px 8px;
    transform: rotate(-1deg);
  }
}

.barista-caption {
  max-width: 39ch;
  margin: 26px auto 0;
  text-align: center;
  font-size: .95rem;
  line-height: 1.45;
  color: #624330;
}

@media (max-width: 800px) {
  .notebook {
    --closed-leaf: rotateX(180deg);
    --closed-spread: 0 -50%;
    --spine: center bottom;
    width: 100%;
  }

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

  .notebook-trigger {
    inset: 21% 10% auto;
    height: 8%;
  }

  .notebook-leaf .notebook-menu {
    border-right-width: 7px;
    border-bottom-width: 0;
    border-radius: 9px 9px 0 0;
  }

  .notebook-spread .notebook-games {
    grid-row: auto;
    border-top-width: 1px;
    border-left-width: 7px;
    border-radius: 0 0 9px 9px;
  }

  .notebook-leaf .notebook-cover {
    inset: 0 -2px -2px;
    border-radius: 6px 6px 11px 11px;
    background: linear-gradient(180deg, #687d62 0 4%, #5c735845 5%, transparent 10%), linear-gradient(132deg, #ffdb9b64, transparent 53%), repeating-linear-gradient(0deg, #e8efdd1d 0 1px, transparent 1px 4px), linear-gradient(135deg, #a4bb9b, #88a184);
  }

  .table-notes {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .story-intro h2 {
    text-wrap: initial;
  }

  .story-intro .story-team {
    margin-left: 7px;
  }
}

@media (max-width: 540px) {
  .mascot-note {
    --mascot-sticker-size: 60px;
    width: 95%;
  }

  .mascot-entries {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-moments {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

.sketch-story-link {
  display: grid;
  color: #315747;
  text-align: center;
}

.sketch-story-link > span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: .84rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sketch-story-link:hover,
.mascot-serve-link:hover {
  color: #863d36;
}

.mascot-serve-link {
  display: flex;
  width: fit-content;
  min-height: 44px;
  margin: 12px auto 0;
  align-items: center;
  gap: 6px;
  color: #315747;
  font-size: .96rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sketch-story-link:focus-visible,
.mascot-serve-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
