/* HLL Ask the Framers: quill pen on parchment.
   Everything is scoped under .hllf, and buttons use .hllf button.* selectors so the
   theme's Elementor kit rule (.elementor-kit-7 button) cannot repaint them. */
.hllf {
  --hllf-parch: #e8d8b0;
  --hllf-parch-light: #f2e6c6;
  --hllf-parch-dark: #c9b27f;
  --hllf-ink: #2a1c0f;
  --hllf-ink-soft: #5d4832;
  --hllf-rule: rgba(60, 38, 15, 0.32);
  --hllf-seal: #8b1a1a;
  --hllf-seal-dark: #5e0f0f;
  --hllf-gild: #8a6a1f;
  --hllf-quote-bg: rgba(255, 248, 225, 0.45);
  --hllf-script: "Pinyon Script", "Snell Roundhand", "Brush Script MT", cursive;
  --hllf-fell: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --hllf-fell-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  position: relative;
  color: var(--hllf-ink);
  font-family: var(--hllf-fell);
  font-size: 18px;
  line-height: 1.55;
  padding: 0 0 48px;
  margin: 8px 0 32px;
  box-sizing: border-box;
  background-color: var(--hllf-parch);
  background-image:
    radial-gradient(ellipse at 50% 40%, rgba(255, 250, 230, 0.55) 0%, rgba(255, 250, 230, 0) 60%),
    radial-gradient(ellipse at 0% 0%, rgba(120, 80, 30, 0.28) 0%, rgba(120, 80, 30, 0) 45%),
    radial-gradient(ellipse at 100% 0%, rgba(120, 80, 30, 0.22) 0%, rgba(120, 80, 30, 0) 45%),
    radial-gradient(ellipse at 0% 100%, rgba(120, 80, 30, 0.30) 0%, rgba(120, 80, 30, 0) 45%),
    radial-gradient(ellipse at 100% 100%, rgba(120, 80, 30, 0.26) 0%, rgba(120, 80, 30, 0) 45%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.24  0 0 0 0 0.08  0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.30  0 0 0 0 0.18  0 0 0 0 0.04  0 0 0 0.20 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  box-shadow: 0 1px 0 rgba(255, 250, 230, 0.6) inset, 0 0 0 1px rgba(60, 38, 15, 0.25), 0 18px 40px rgba(50, 32, 8, 0.28);
}
.hllf::before {
  /* ruled margin, like a ledger sheet */
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(60, 38, 15, 0.35);
  outline: 1px solid rgba(60, 38, 15, 0.15);
  outline-offset: 3px;
  pointer-events: none;
}
.hllf-inner { position: relative; padding: 0 36px; }
@media (max-width: 700px) { .hllf-inner { padding: 0 22px; } }
.hllf *, .hllf *::before, .hllf *::after { box-sizing: border-box; }
.hllf [hidden] { display: none !important; }
.hllf button, .hllf select, .hllf input, .hllf textarea { font: inherit; color: inherit; }
.hllf button { cursor: pointer; }
.hllf :focus-visible { outline: 2px solid var(--hllf-gild); outline-offset: 2px; }
.hllf h2, .hllf h3, .hllf h4, .hllf p { margin: 0; padding: 0; }
.hllf ::selection { background: rgba(139, 26, 26, 0.25); }

/* Banner */
.hllf-banner { position: relative; margin: 22px 22px 0; overflow: hidden; border: 1px solid rgba(60, 38, 15, 0.45); box-shadow: 0 0 0 4px var(--hllf-parch-light), 0 0 0 5px rgba(60, 38, 15, 0.35), 0 10px 24px rgba(50, 32, 8, 0.3); }
.hllf-banner img { display: block; width: 100%; height: auto; max-width: 100%; filter: sepia(0.18) saturate(0.92) contrast(1.02); }
.hllf-banner::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(60, 38, 15, 0.45); pointer-events: none; }
@media (max-width: 700px) { .hllf-banner { margin: 22px 14px 0; } }

/* Masthead */
.hllf-eyebrow { font-family: var(--hllf-fell-sc); font-size: 14px; letter-spacing: 0.1em; color: var(--hllf-ink-soft); }
.hllf-mast { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 30px 0 22px; }
.hllf h2.hllf-title { font-family: var(--hllf-script); font-weight: 400; font-size: clamp(54px, 8vw, 96px); line-height: 1; color: var(--hllf-ink); text-shadow: 0 0 1px rgba(42, 28, 15, 0.35); margin: 0; padding: 0 0 4px; text-transform: none; letter-spacing: 0; }
.hllf-tag { font-family: var(--hllf-fell); font-style: italic; font-size: 19px; color: var(--hllf-ink-soft); max-width: 52ch; }
.hllf-flourish { font-family: var(--hllf-fell); color: var(--hllf-gild); font-size: 22px; letter-spacing: 0.4em; line-height: 1; }

/* Columns */
.hllf-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; margin-top: 10px; align-items: start; }
.hllf-cols--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .hllf-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.hllf-main, .hllf-rail { min-width: 0; }

/* Ask box: a ruled sheet */
.hllf-ask { display: grid; gap: 12px; padding: 18px 18px 16px; background: var(--hllf-quote-bg); border: 1px solid var(--hllf-rule); box-shadow: 0 2px 0 rgba(255, 250, 230, 0.5) inset; }
.hllf-ask label { font-family: var(--hllf-script); font-size: 34px; line-height: 1; color: var(--hllf-ink); }
.hllf textarea#hllf-question, .hllf textarea#hllf-followup-input {
  width: 100%; min-height: 96px; resize: vertical; padding: 10px 12px; border: 1px solid var(--hllf-rule); border-radius: 0;
  font-family: var(--hllf-fell); font-size: 19px; line-height: 32px; color: var(--hllf-ink); caret-color: var(--hllf-seal);
  background-color: var(--hllf-parch-light);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(60, 38, 15, 0.22) 31px, rgba(60, 38, 15, 0.22) 32px);
  background-attachment: local; box-shadow: none;
}
.hllf textarea#hllf-question::placeholder, .hllf textarea#hllf-followup-input::placeholder { color: rgba(93, 72, 50, 0.6); font-style: italic; }
.hllf-ask-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.hllf-hint { font-size: 15px; color: var(--hllf-ink-soft); font-style: italic; }

/* Buttons: wax seal and ink outline */
.hllf button.hllf-btn {
  font-family: var(--hllf-fell-sc) !important; font-size: 17px !important; letter-spacing: 0.06em; line-height: 1.2 !important; text-transform: none !important;
  padding: 9px 20px !important; border-radius: 3px !important; box-shadow: none !important;
  background: var(--hllf-seal) !important; color: #f7ead0 !important; border: 1px solid var(--hllf-seal-dark) !important;
  background-image: radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%) !important;
  box-shadow: 0 2px 0 var(--hllf-seal-dark), 0 3px 8px rgba(50, 10, 10, 0.35) !important;
}
.hllf button.hllf-btn:hover { background: var(--hllf-seal-dark) !important; color: #fff3dc !important; }
.hllf button.hllf-btn[disabled] { opacity: 0.55; cursor: default; }
.hllf button.hllf-btn--ghost, .hllf button.hllf-btn--quiet {
  background: transparent !important; background-image: none !important; color: var(--hllf-ink) !important;
  border: 1px solid var(--hllf-ink-soft) !important; box-shadow: none !important; font-size: 15px !important; padding: 6px 14px !important;
}
.hllf button.hllf-btn--ghost:hover, .hllf button.hllf-btn--quiet:hover { background: rgba(60, 38, 15, 0.08) !important; color: var(--hllf-seal) !important; border-color: var(--hllf-seal) !important; }
.hllf-notice { font-size: 15px; color: var(--hllf-ink-soft); border-left: 3px solid var(--hllf-gild); padding-left: 10px; font-style: italic; }
.hllf-notice--warn { border-color: var(--hllf-seal); }

/* Example questions */
.hllf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hllf button.hllf-chip {
  background: transparent !important; background-image: none !important; color: var(--hllf-ink-soft) !important;
  border: 1px solid var(--hllf-rule) !important; border-radius: 999px !important; box-shadow: none !important;
  padding: 5px 13px !important; font-family: var(--hllf-fell) !important; font-style: italic; font-size: 15px !important; line-height: 1.35 !important; text-align: left; text-transform: none !important;
}
.hllf button.hllf-chip:hover { color: var(--hllf-seal) !important; border-color: var(--hllf-seal) !important; background: rgba(139, 26, 26, 0.06) !important; }

/* Thread */
.hllf-thread { margin-top: 40px; display: grid; gap: 44px; }
.hllf-exchange { display: grid; gap: 18px; }
.hllf-q { display: grid; gap: 4px; }
.hllf-q p { font-family: var(--hllf-script); font-size: clamp(30px, 4vw, 42px); line-height: 1.15; color: var(--hllf-ink); }
.hllf-answer { font-family: var(--hllf-fell); font-size: 19px; line-height: 1.6; max-width: 66ch; color: var(--hllf-ink); text-shadow: 0 0 0.6px rgba(42, 28, 15, 0.35); }
.hllf-answer > * + * { margin-top: 14px; }
.hllf-answer h4 { font-family: var(--hllf-script); font-size: 30px; line-height: 1.1; color: var(--hllf-seal); margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--hllf-rule); font-weight: 400; text-transform: none; letter-spacing: 0; }
.hllf-answer h4:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.hllf-answer h4::before { content: "\2766  "; color: var(--hllf-gild); font-family: var(--hllf-fell); font-size: 18px; vertical-align: middle; }
.hllf-answer blockquote { margin: 0; padding: 10px 18px; background: var(--hllf-quote-bg); border-left: 3px solid var(--hllf-gild); font-style: italic; font-size: inherit; color: var(--hllf-ink); }
.hllf-answer blockquote::before { content: none; }
.hllf-answer ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; list-style: none; }
.hllf-answer li { margin: 0; position: relative; }
.hllf-answer li::before { content: "\2766"; position: absolute; left: -1.3em; color: var(--hllf-gild); font-size: 14px; top: 0.25em; }
.hllf-answer p { margin-bottom: 0; }
.hllf-placeholder { color: var(--hllf-ink-soft); font-style: italic; }
.hllf-placeholder::after { content: "\2026"; animation: hllf-dots 1.4s steps(4, end) infinite; }
@keyframes hllf-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
/* The quill, while an answer is being written */
.hllf-writing { cursor: pointer; }
.hllf-writing > :last-child:not(ul)::after, .hllf-writing > ul:last-child > li:last-child::after { content: "\2712"; color: var(--hllf-ink); margin-left: 4px; display: inline-block; transform: rotate(-20deg) translateY(-2px); animation: hllf-nib 0.9s ease-in-out infinite; }
@keyframes hllf-nib { 0%, 100% { transform: rotate(-20deg) translateY(-2px); } 50% { transform: rotate(-12deg) translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hllf-placeholder::after { animation: none; content: "\2026"; } .hllf-writing > :last-child::after { animation: none; } }

.hllf-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hllf-toolbar .hllf-sep { flex: 1; }
.hllf-status { font-size: 15px; color: var(--hllf-ink-soft); font-style: italic; }
.hllf-player { display: grid; gap: 8px; background: var(--hllf-quote-bg); border: 1px solid var(--hllf-rule); padding: 12px; max-width: 66ch; }
.hllf-player audio { width: 100%; }
.hllf-player-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 15px; color: var(--hllf-ink-soft); font-style: italic; }
.hllf-player-row select { padding: 2px 6px; border: 1px solid var(--hllf-rule); background: var(--hllf-parch-light); color: var(--hllf-ink); font-size: 15px; font-style: normal; }

.hllf-followup { display: grid; gap: 10px; padding-top: 24px; border-top: 1px dashed var(--hllf-rule); }
.hllf-followup-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

/* Reference rail */
.hllf-rail { display: grid; gap: 26px; }
.hllf-rail h3, .hllf-rail summary { font-family: var(--hllf-script); font-size: 30px; line-height: 1.1; font-weight: 400; padding-bottom: 6px; border-bottom: 1px solid var(--hllf-ink-soft); margin-bottom: 8px; color: var(--hllf-ink); }
.hllf-rail ul { list-style: none; margin: 0; padding: 0; display: grid; }
.hllf-rail li { margin: 0; padding: 0; }
.hllf .hllf-rail li button {
  width: 100%; text-align: left; border: 0 !important; background: transparent !important; background-image: none !important; box-shadow: none !important; border-radius: 0 !important;
  padding: 7px 4px !important; border-bottom: 1px solid var(--hllf-rule) !important; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline;
  font-family: var(--hllf-fell) !important; font-size: 15px !important; line-height: 1.35 !important; color: var(--hllf-ink) !important; text-transform: none !important;
}
.hllf .hllf-rail li button:hover { color: var(--hllf-seal) !important; }
.hllf .hllf-rail li button b { font-family: var(--hllf-fell-sc); font-weight: 400; color: var(--hllf-gild); white-space: nowrap; font-size: 14px; }
.hllf-rail details > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; }
.hllf-rail details > summary::after { content: "+"; color: var(--hllf-ink-soft); font-family: var(--hllf-fell); font-size: 20px; }
.hllf-rail details[open] > summary::after { content: "\2013"; }
.hllf-rail details > summary::-webkit-details-marker { display: none; }
.hllf .hllf-recent li button { grid-template-columns: minmax(0, 1fr); font-style: italic; }
.hllf-footer { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--hllf-rule); font-size: 15px; font-style: italic; color: var(--hllf-ink-soft); max-width: 72ch; }
