/* Homepage welcome, using the site's existing type and color system. */
.welcome-note {
  position: relative;
  width: min(350px, calc(100% - 32px));
  margin: 24px auto;
  padding: 28px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid #d1c5b4;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgb(44 30 18 / 16%);
}
.welcome-note[hidden], .welcome-dismiss[hidden] { display: none; }
.welcome-note.is-floating {
  position: fixed;
  z-index: 97;
  right: 24px;
  bottom: calc(var(--welcome-cta-height, 0px) + 24px);
  max-height: calc(100dvh - var(--nav-h) - var(--welcome-cta-height, 0px) - 48px);
  margin: 0;
  overflow-y: auto;
}
.welcome-note h2 {
  padding-right: 22px;
  font: 400 46px/1.02 var(--font-display);
  letter-spacing: -.025em;
}
.welcome-hello { display: block; margin-bottom: 3px; font-size: 32px; font-style: italic; color: #93431f; }
.welcome-copy { margin-top: 16px; max-width: 29ch; font-size: 15px; line-height: 1.55; color: var(--fg-dim); }
.welcome-copy strong { font-weight: 600; color: var(--fg); }
.welcome-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin-top: 22px;
  padding: 11px 16px;
  border: 1px solid #93431f;
  border-radius: 2px;
  background: #93431f;
  color: #fafaf5;
  font-size: 14px;
  font-weight: 600;
}
.welcome-menu:hover { background: #713219; border-color: #713219; }
.welcome-menu svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.welcome-signoff { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--fg-dim); font-size: 12px; }
.welcome-signoff img { width: 27px; height: 27px; }
.welcome-dismiss {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg-dim);
  border-radius: 2px;
}
.welcome-dismiss svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.welcome-dismiss:hover { background: var(--bg-alt); }
.welcome-note :focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .welcome-note.is-floating { animation: welcome-arrive 360ms cubic-bezier(.16, 1, .3, 1); }
  @keyframes welcome-arrive { from { transform: translateY(12px); } to { transform: translateY(0); } }
}
@media (max-width: 600px) {
  .welcome-note { width: calc(100% - 24px); max-width: 350px; padding: 20px; }
  .welcome-note.is-floating { right: 12px; bottom: calc(var(--welcome-cta-height, 80px) + 12px); }
  .welcome-note h2 { font-size: 29px; line-height: 1.1; padding-right: 18px; }
  .welcome-hello { display: inline; font-size: inherit; margin: 0; }
  .welcome-copy { margin-top: 10px; max-width: 32ch; font-size: 14px; line-height: 1.5; }
  .welcome-menu { min-height: 44px; margin-top: 14px; padding-block: 9px; }
  .welcome-signoff { margin-top: 10px; font-size: 11px; }
  .welcome-signoff img { width: 22px; height: 22px; }
}
/* Small landscape screens keep the welcome in flow instead of covering content. */
@media (max-height: 520px) {
  .welcome-note.is-floating { position: relative; right: auto; bottom: auto; max-height: none; margin: 24px auto; }
}
