:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #201f1c;
  --muted: #68615a;
  --orange: #aa6545;
  --glaze: #efd6c4;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.landing {
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.125rem, 5vh, 3.5rem) clamp(20px, 4.5vw, 3.5rem);
  text-align: center;
}

@media (max-width: 360px) {
  .landing {
    padding-inline: 10px;
  }
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.brand img {
  align-self: end;
  inline-size: 4.6em;
  block-size: auto;
}

.work-scene {
  display: block;
  inline-size: min(100%, 32.5rem, 65vh);
  block-size: auto;
  margin-block-start: clamp(1.5rem, 4vh, 2.75rem);
  margin-block-end: clamp(0.75rem, 2.5vh, 1.5rem);
  overflow: visible;
}

.ink {
  fill: var(--ink);
}

.drawn {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paper {
  fill: var(--paper);
}

.cup-glaze {
  fill: var(--glaze);
}

.steam {
  opacity: 0.52;
  stroke: var(--orange);
  stroke-width: 3;
}

h1 {
  margin: 0;
  max-inline-size: 100%;
  font: 400 min(clamp(2.375rem, 6.1vw, 5.25rem), 20.5vw)/1.03 Georgia, serif;
  letter-spacing: -0.047em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.65em;
  margin: clamp(1.25rem, 3.2vh, 1.75rem) 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: 0.035em;
}

.status-dot {
  inline-size: 0.48rem;
  block-size: 0.48rem;
  border-radius: 50%;
  background: var(--orange);
}

@media (prefers-reduced-motion: no-preference) {
  #eyes {
    transform-box: fill-box;
    transform-origin: center;
    animation: blink 13.6s ease-in-out infinite;
  }

  #far-arm,
  #near-arm {
    transform-box: view-box;
    animation: type 6.9s ease-in-out infinite;
  }

  #far-arm {
    transform-origin: 206px 244px;
    animation-delay: -1.27s;
  }

  #near-arm {
    transform-origin: 205px 244px;
  }

  .steam {
    animation: rise 5.4s ease-in-out infinite;
  }

  .steam--left {
    animation-delay: -1.7s;
  }

  .steam--right {
    animation-delay: -3.9s;
  }

  .status-dot {
    animation: breathe 4.8s ease-in-out infinite;
  }
}

@keyframes blink {
  0%, 19%, 20.5%, 63%, 64.5%, 68%, 69.5%, 100% {
    transform: scaleY(1);
  }

  19.65%, 63.65%, 68.65% {
    transform: scaleY(0.1);
  }
}

@keyframes type {
  0%, 7%, 13%, 19.5%, 39%, 54%, 60.5%, 68%, 100% {
    transform: rotate(0);
  }

  9.5%, 16%, 56.5%, 64% {
    transform: rotate(0.85deg);
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }

  31%, 51% {
    opacity: 0.62;
  }

  100% {
    opacity: 0;
    transform: translate(3px, -12px);
  }
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.7;
    transform: scale(0.89);
  }

  50% {
    opacity: 1;
    transform: scale(1.07);
  }
}
