/* The honey button: an amber pill with a drop hanging under it, on a white page. The honey itself (the pill, the drop,
   the thread, the pool) is drawn in an SVG whose filter melts the shapes together and lights them; the button and
   its words sit on top as real HTML. */
:root {
  --page: #ffffff;          /* the page */
  --ink: #3b2200;           /* the words, a dark honey brown */
  --emboss: rgba(255, 238, 180, 0.65);   /* the pale edge under the words, as if pressed into the honey */
  --focus: #5a4bff;         /* the keyboard focus ring */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  min-height: 100svh;
  background: var(--page);
  color: var(--ink);
  font-family: 'Geist Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* the pill sits a little above the middle, so the drop and the pool below it end up centred with it */
.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 16px 150px;
}

.honey {
  position: relative;
}

.honey__svg {
  position: absolute;
  left: calc(50% - 180px);
  top: -24px;
  width: 360px;
  height: 340px;
  overflow: visible;
  pointer-events: none;
}

.honey__btn {
  position: relative;
  display: grid;
  align-items: center;
  height: 60px;
  min-width: 232px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  text-shadow: 0 1px 0 var(--emboss);
  cursor: pointer;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.honey__btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}

.honey__btn[aria-disabled='true'] {
  cursor: default;
}

.honey__word {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.honey__word--done {
  opacity: 0;
}

.honey__tick {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
