/* Uma pena em suspensão abre as páginas de um pequeno herbário. */
.menu-anchor { position: relative; width: 300px; min-height: 112px; margin-top: 54px; z-index: 30; }
.herbarium-menu { position: relative; width: 300px; z-index: 30; --feather-base: #a88b4d; --feather-middle: #ddc991; --feather-tip: #f4e9cd; --feather-label: #c3ab65; --feather-focus: #e6d7af; }
.herbarium-menu[data-surface="light"] { --feather-base: #294332; --feather-middle: #49653c; --feather-tip: #385533; --feather-label: #2e4a35; --feather-focus: #7a5c1e; }
.menu-feather stop { transition: stop-color 420ms ease-in-out; }
.menu-feather stop:nth-child(1) { stop-color: var(--feather-base); }
.menu-feather stop:nth-child(2) { stop-color: var(--feather-middle); }
.menu-feather stop:nth-child(3) { stop-color: var(--feather-tip); }
.herbarium-handle { position: relative; display: grid; grid-template-columns: 102px minmax(0, 1fr); align-items: center; gap: 18px; min-height: 112px; padding: 0 8px 0 0; color: #e6d7af; list-style: none; cursor: pointer; border-radius: 2px; -webkit-tap-highlight-color: #c3ab6533; }
.herbarium-handle::-webkit-details-marker { display: none; }
.feather-stage { position: relative; display: block; width: 102px; height: 112px; pointer-events: none; }
.menu-feather { position: absolute; left: -5px; top: -27px; width: 112px; height: 154px; transform-origin: 29% 88%; animation: feather-drift 9s cubic-bezier(.45,0,.55,1) infinite; }
.feather-shadow { position: absolute; bottom: -3px; left: 25px; width: 59px; height: 5px; border-radius: 50%; background: #d8c18618; animation: feather-shadow 9s ease-in-out infinite; }
.herbarium-handle-copy { display: grid; gap: 8px; padding-top: 7px; }
.herbarium-invitation { font: 400 31px/1.1 Caveat, cursive; color: #e6d7af; white-space: nowrap; }
.herbarium-handle-title { display: inline-flex; align-items: center; gap: 14px; font: 800 10px/1.5 'Nunito Sans', sans-serif; letter-spacing: .17em; text-transform: uppercase; color: var(--feather-label); transition: color 420ms ease-in-out; }
.herbarium-handle-title > span { font-size: 16px; font-weight: 400; }
.herbarium-handle:hover .herbarium-invitation { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.herbarium-handle:hover .menu-feather, .herbarium-handle:focus-within .menu-feather, .herbarium-menu[open] .menu-feather,
.herbarium-handle:hover .feather-shadow, .herbarium-handle:focus-within .feather-shadow, .herbarium-menu[open] .feather-shadow { animation-play-state: paused; }
.page .herbarium-handle:focus-visible { outline: 2px solid var(--feather-focus); outline-offset: 7px; }
.herbarium-panel { position: absolute; bottom: calc(100% + 16px); left: 0; width: 590px; max-width: calc(100vw - 48px); max-height: min(500px, calc(100dvh - 180px)); padding: 24px 30px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #9b884f #f3ecdd; border: 1px solid #c7b898; border-radius: 2px 6px 6px 2px; background: #f3ecdd; color: #2a2118; box-shadow: 0 18px 50px #0005, 4px 4px 0 -1px #e4d7bd, 5px 5px 0 0 #ae9b72; transform-origin: bottom left; }
.herbarium-panel::before { content: ''; position: absolute; top: 22px; bottom: 22px; left: 12px; width: 1px; background: #cbb98f; pointer-events: none; }
.herbarium-menu[open] .herbarium-panel { animation: herbarium-unfold 320ms cubic-bezier(.16,.75,.25,1) both; }
.herbarium-close { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: #5c5142; cursor: pointer; }
.herbarium-close[hidden] { display: none; }
.herbarium-close:hover { background: #e8dfcd; color: #2e4a35; }
.herbarium-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 118px; padding-right: 16px; margin-bottom: 10px; }
.herbarium-kicker { margin: 0 0 12px; color: #7a5c1e; font-size: 9px; line-height: 1.5; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.herbarium-title { margin: 0; font: 500 30px/1.25 Lora, Georgia, serif; color: #2e4a35; }
.herbarium-title em { color: #7a5c1e; font-weight: 400; }
.herbarium-intro { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #665b48; }
.herbarium-branch { flex-shrink: 0; color: #718064; transform: rotate(8deg); }
.page .herbarium-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; padding: 0; }
.page .herbarium-entry { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; gap: 8px; min-height: 82px; padding: 13px 0; border-top: 1px solid #cec1a7; color: #2e4a35; text-decoration: none; }
.herbarium-entry-copy { display: grid; gap: 6px; }
.herbarium-entry-title { font: 500 19px/1.25 Lora, Georgia, serif; }
.herbarium-entry-note { color: #665b48; font-size: 12px; line-height: 1.4; }
.herbarium-arrow { font-size: 17px; color: #7a5c1e; transition: transform 180ms ease-out; }
.herbarium-entry:hover .herbarium-arrow { transform: translate(3px, -3px); }
.herbarium-entry:hover .herbarium-entry-title, .herbarium-entry[aria-current="location"] .herbarium-entry-title { text-decoration: underline; text-decoration-color: #9b884f; text-underline-offset: 4px; }
.herbarium-entry[aria-current="location"]::before { content: ''; position: absolute; left: -10px; top: 28px; width: 4px; height: 4px; border-radius: 50%; background: #7a5c1e; }
.page .herbarium-entry:focus-visible, .page .herbarium-close:focus-visible { outline: 2px solid #7a5c1e; outline-offset: 3px; }
.herbarium-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 14px; border-top: 1px solid #b9a67c; }
.herbarium-whisper { color: #7a5c1e; font: 400 27px/1.1 Caveat, cursive; }
.herbarium-footer-place { color: #7a5c1e; font: 700 9px/1.6 'Nunito Sans', sans-serif; letter-spacing: .13em; text-transform: uppercase; text-align: right; }
/* Ao rolar, a pena vira um marcador na margem externa do conteúdo. */
.herbarium-menu.is-docked { position: fixed; left: max(8px, calc((100vw - 1080px) / 2 - 116px)); top: 96px; width: 76px; padding: 8px 5px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.herbarium-menu.is-docked .herbarium-handle { display: flex; flex-direction: column; gap: 3px; min-height: 128px; padding: 0; }
.herbarium-menu.is-docked .feather-stage { width: 56px; height: 100px; }
.herbarium-menu.is-docked .menu-feather { width: 68px; height: 100px; left: -6px; top: 0; animation-name: feather-drift-margin; }
.herbarium-menu.is-docked .feather-shadow { display: none; }
.herbarium-menu.is-docked .herbarium-handle-copy { display: block; padding: 0; }
.herbarium-menu.is-docked .herbarium-invitation { display: none; }
.herbarium-menu.is-docked .herbarium-handle-title { display: block; font-size: 0; }
.herbarium-menu.is-docked .herbarium-handle-title::before { content: 'Menu'; font-size: 9px; letter-spacing: .12em; }
.herbarium-menu.is-docked .herbarium-handle-title > span { display: none; }
.herbarium-menu.is-docked .herbarium-panel { left: calc(100% + 18px); right: auto; top: 0; bottom: auto; transform-origin: top left; }
@keyframes feather-drift-margin {
  0%, 100% { transform: translate(0, -1px) rotate(-8deg); }
  24% { transform: translate(3px, -6px) rotate(-2deg); }
  50% { transform: translate(5px, 1px) rotate(7deg); }
  75% { transform: translate(-2px, 5px) rotate(-11deg); }
}
@keyframes feather-drift {
  0%, 100% { transform: translate(-3px, -3px) rotate(-16deg); }
  20% { transform: translate(10px, -13px) rotate(-4deg); }
  43% { transform: translate(23px, 0) rotate(14deg); }
  67% { transform: translate(7px, 12px) rotate(-1deg); }
  85% { transform: translate(-8px, 5px) rotate(-21deg); }
}
@keyframes feather-shadow {
  0%, 100% { transform: translateX(0) scaleX(.9); opacity: .65; }
  20% { transform: translateX(8px) scaleX(.65); opacity: .35; }
  43% { transform: translateX(18px) scaleX(.88); opacity: .55; }
  67% { transform: translateX(6px) scaleX(1.1); opacity: .85; }
  85% { transform: translateX(-5px) scaleX(1); opacity: .7; }
}
@keyframes herbarium-unfold { from { opacity: 0; transform: translateY(10px) rotate(-1deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .page .site-container, .page .home-container, .hero-layout { width: min(1080px, calc(100% - 112px)); }
  .herbarium-menu.is-docked { left: 2px; width: 44px; padding-inline: 2px; }
  .herbarium-menu.is-docked .feather-stage { width: 36px; }
  .herbarium-menu.is-docked .menu-feather { width: 48px; left: -7px; }
}
@media (max-width: 1023px) {
  .herbarium-panel { max-width: calc(100vw - 40px); }
  .herbarium-menu.is-docked { left: 2px; top: 72px; width: 44px; padding-inline: 2px; }
  .herbarium-menu.is-docked .feather-stage { width: 36px; }
  .herbarium-menu.is-docked .menu-feather { width: 48px; left: -7px; }
  .herbarium-menu.is-docked .herbarium-panel { max-width: calc(100vw - 78px); }
}
@media (max-width: 600px) {
  .herbarium-panel { padding-inline: 24px; }
  .page .herbarium-index { grid-template-columns: minmax(0, 1fr); }
  .herbarium-branch { display: none; }
  .herbarium-heading { padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .herbarium-menu[open] .herbarium-panel, .menu-feather, .feather-shadow, .herbarium-menu.is-docked .menu-feather { animation: none; }
  .herbarium-arrow, .menu-feather stop, .herbarium-handle-title { transition: none; }
}
