/* ==========================================================================
   Porchlink theme: Herbarium (botanical illustrator)
   1. Colours  2. Type  3. Specimen-label links  4. Line-draw avatar (signature)
   ========================================================================== */
/* 1. Colours */
[data-theme="herbarium"] {
  --bg: #EEF1E8; --surface: #F9FAF5; --ink: #22301F; --muted: #5A6A55;
  --accent: #4F6A2A; --accent-ink: #F9FAF5; --line: rgba(34, 48, 31, .22); --focus: #4F6A2A;
  --paper: #F9FAF5; --paper-2: #E3E8D9; --stem: #34482F; --leaf: #6E8B3D; --bloom: #EDE6D2;
  --font-display: 'Newsreader', Georgia, serif;
  --radius: 2px; --radius-card: 2px;
}
[data-theme="herbarium"][data-mode="dark"] {
  --bg: #141A13; --surface: #1D251B; --ink: #E5EBDD; --muted: #A2B096;
  --accent: #A9C47A; --accent-ink: #141A13; --line: rgba(229, 235, 221, .18); --focus: #A9C47A;
  --paper: #1D251B; --paper-2: #26301F; --stem: #C9D6B8; --leaf: #8DAA5C; --bloom: #E5EBDD;
}
/* 2. Type: serif names, italic handles like Latin binomials */
[data-theme="herbarium"] .pl-name { font-weight: 400; font-size: clamp(2rem, 9vw, 2.6rem); }
[data-theme="herbarium"] .pl-handle { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
[data-theme="herbarium"] .pl-feature-title, [data-theme="herbarium"] .pl-info h2, [data-theme="herbarium"] .pl-form h2 { font-weight: 400; font-size: 1.3rem; }
[data-theme="herbarium"] .pl-bg svg { width: 100%; height: 100%; }
/* 3. Links: specimen labels with a double rule */
[data-theme="herbarium"] .pl-link { box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px var(--line); }
[data-theme="herbarium"] .pl-link-label { font-weight: 500; }
[data-theme="herbarium"] .pl-link:hover { background: var(--paper-2); }
[data-theme="herbarium"] .pl-link--primary { box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px rgba(249, 250, 245, .5); }
[data-theme="herbarium"] .pl-link--primary:hover { background: var(--accent); filter: brightness(1.08); }
[data-theme="herbarium"] .pl-avatar { border-radius: 2px; border: 1px solid var(--line); width: 104px; height: 128px; }
[data-theme="herbarium"] .pl-btn-icon, [data-theme="herbarium"] .pl-social a { border-radius: 2px; }
/* 4. Signature: the fern in the avatar draws itself once */
[data-theme="herbarium"] .hb-draw { stroke-dasharray: 260; stroke-dashoffset: 0; }
.pl-ready [data-theme="herbarium"] .hb-draw, [data-theme="herbarium"].pl-ready .hb-draw { animation: hb-draw 2.4s .2s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes hb-draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
