/* Bee's note — the letter a visitor reads before the page opens. */
.pg-note-open { overflow: hidden; }

.bn-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(29, 26, 22, 0.58);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 320ms ease;
}
.bn-overlay.is-in { opacity: 1; }
.bn-overlay.is-out { opacity: 0; pointer-events: none; }

.bn-card {
  position: relative;
  width: 100%; max-width: 680px; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: #fcfaf5; color: #1d1a16;
  border: 1px solid #e3dccd; border-radius: 22px;
  box-shadow: 0 30px 80px rgba(29, 26, 22, 0.35);
  font-family: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  transform: translateY(10px); transition: transform 320ms ease;
}
.bn-overlay.is-in .bn-card { transform: none; }

.bn-head {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px 32px 0 32px;
}
.bn-eyebrow {
  font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #857c70;
}
.bn-title {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif; font-weight: 400;
  font-size: 30px; line-height: 1.1; letter-spacing: -0.01em;
}

.bn-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 18px 32px 8px 32px;
  scrollbar-gutter: stable;
}
.bn-body p {
  margin: 0 0 16px 0;
  font-size: 17px; line-height: 1.62; color: #2b2622;
  text-wrap: pretty;
}
.bn-body p:last-child { margin-bottom: 4px; }
.bn-body strong { font-weight: 600; letter-spacing: 0.02em; }
.bn-sign {
  margin: 22px 0 8px 0;
  display: flex; flex-direction: column; gap: 4px;
}
.bn-sign .bn-name {
  font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 24px; line-height: 1.1;
}
.bn-sign .bn-who {
  font-family: 'IBM Plex Mono', Menlo, Consolas, monospace; font-size: 12px; color: #857c70;
}

.bn-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 32px 24px 32px;
  border-top: 1px solid #ebe5d8;
}
.bn-hint {
  font-size: 13px; color: #857c70; line-height: 1.4;
}
.bn-hint.is-ready { color: #6f8a76; }
.bn-enter {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: #b8655a; color: #fbf7f0;
  font: 500 16px/1 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease;
}
.bn-enter:hover { background: #8f4a41; }
.bn-enter:focus-visible { outline: 2px solid #1d1a16; outline-offset: 3px; }
.bn-enter[disabled] { opacity: 0.45; cursor: default; background: #b8655a; }

/* the small link that reopens the note from the page */
.bn-reopen {
  font: 500 14px/1 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  color: #8f4a41; background: none; border: 0; padding: 0; cursor: pointer;
}
.bn-reopen:hover { color: #b8655a; }

@media (max-width: 640px) {
  .bn-overlay { padding: 12px; align-items: flex-end; }
  .bn-card { max-height: calc(100vh - 24px); border-radius: 18px; }
  .bn-head { padding: 22px 20px 0 20px; }
  .bn-title { font-size: 26px; }
  .bn-body { padding: 14px 20px 6px 20px; }
  .bn-body p { font-size: 16px; line-height: 1.6; }
  .bn-foot { flex-direction: column; align-items: stretch; padding: 12px 20px 18px 20px; }
  .bn-enter { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bn-overlay, .bn-card { transition: none; }
}
