/* Highland Brevo Signup. Explicit colours so the forms read well on any theme, light or dark. */
.hsn {
	--hsn-fg: #f1e8d8;
	--hsn-dim: #c9bda8;
	--hsn-muted: #9c917f;
	--hsn-field: #18211a;
	--hsn-line: rgba(241, 232, 216, .22);
	--hsn-accent: #c4432a;
	--hsn-accent-hi: #dd5a3f;
	--hsn-ok: #d39a3a;
	--hsn-err: #ff8a70;
	color: var(--hsn-fg);
	font-family: "Figtree", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	max-width: 640px;
}
/* On light themes, use dark ink for text that sits on the page. */
body:not(.hs-autumn):not(.hs-bf) .hsn--inline { --hsn-fg: #2a2119; --hsn-dim: #4a3d30; --hsn-muted: #6e6555; --hsn-field: #ffffff; --hsn-line: rgba(42, 33, 25, .25); --hsn-ok: #8a5a12; --hsn-err: #b3261e; }
.hsn--card { background: #1b231c; border: 1px solid rgba(241, 232, 216, .14); border-radius: 20px; padding: 1.6rem; }
.hsn-title { font-family: "Young Serif", Georgia, serif; font-size: 1.5rem; line-height: 1.15; margin: 0 0 .4rem; color: var(--hsn-fg); }
.hsn-text { margin: 0 0 1rem; color: var(--hsn-dim); }
.hsn-form { margin: 0; }
.hsn-fields { display: flex; flex-wrap: wrap; gap: .6rem; }
.hsn .hsn-input {
	flex: 1 1 180px; min-width: 0; margin: 0;
	font: inherit; font-size: 1rem; color: var(--hsn-fg) !important; background: var(--hsn-field) !important;
	border: 1.5px solid var(--hsn-line) !important; border-radius: 999px !important; padding: .85rem 1.15rem !important;
	box-shadow: none !important; height: auto; line-height: 1.3;
}
.hsn .hsn-input::placeholder { color: var(--hsn-muted); opacity: 1; }
.hsn .hsn-input:focus { outline: 2px solid var(--hsn-ok); outline-offset: 2px; border-color: transparent !important; }
.hsn .hsn-input[aria-invalid="true"] { border-color: var(--hsn-err) !important; }
.hsn .hsn-button {
	flex: 0 0 auto; margin: 0; cursor: pointer;
	font: 700 1rem/1 "Figtree", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #fff !important; background: var(--hsn-accent) !important;
	border: 0 !important; border-radius: 999px !important; padding: .95rem 1.5rem !important; text-transform: none; letter-spacing: 0;
	transition: background .2s, transform .2s;
}
.hsn .hsn-button:hover { background: var(--hsn-accent-hi) !important; transform: translateY(-1px); }
.hsn .hsn-button:focus-visible { outline: 2px solid var(--hsn-ok); outline-offset: 3px; }
.hsn .hsn-button[disabled] { opacity: .6; cursor: progress; transform: none; }
.hsn-msg { margin: .6rem 0 0; min-height: 1.3em; font-size: .92rem; font-weight: 600; color: var(--hsn-ok); }
.hsn-msg:empty { min-height: 0; margin: 0; }
.hsn-msg.is-error { color: var(--hsn-err); }
.hsn-consent { margin: .7rem 0 0; font-size: .78rem; line-height: 1.45; color: var(--hsn-muted); }
.hsn-consent a { color: inherit; text-decoration: underline; }
.hsn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hsn-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hsn.is-done .hsn-fields, .hsn.is-done .hsn-consent { display: none; }
.hsn.is-done .hsn-msg { font-size: 1.05rem; margin: 0; }
@media (max-width: 520px) { .hsn .hsn-button { flex: 1 1 100%; } }

/* Pop-up */
.hsn-pop { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.hsn-pop[hidden] { display: none !important; }
.hsn-pop-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 6, .7); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: hsn-fade .25s ease; }
.hsn-pop-card {
	position: relative; width: min(100%, 480px); max-height: calc(100vh - 32px); overflow-y: auto;
	background: radial-gradient(120% 120% at 100% 0%, rgba(211, 154, 58, .22), transparent 55%), #141a15;
	color: #f1e8d8; border: 1px solid rgba(241, 232, 216, .16); border-radius: 24px; padding: 2.2rem 1.8rem 1.6rem;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); animation: hsn-up .3s cubic-bezier(.2, .8, .2, 1);
	font-family: "Figtree", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-align: left;
}
.hsn-pop-close { position: absolute; top: .7rem; right: .7rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(241, 232, 216, .2); background: transparent; color: #f1e8d8; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0; }
.hsn-pop-close:hover { border-color: rgba(241, 232, 216, .5); }
.hsn-pop-eyebrow { margin: 0 0 .5rem; font: 600 .72rem/1.3 "IBM Plex Mono", ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: #d39a3a; }
.hsn-pop-title { margin: 0 2rem .5rem 0; font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: clamp(1.6rem, 5vw, 2rem); line-height: 1.1; color: #f1e8d8; }
.hsn-pop-text { margin: 0 0 1.2rem; color: #c9bda8; line-height: 1.55; }
body.hsn-open { overflow: hidden; }
@media (max-width: 520px) {
	.hsn-pop { align-items: end; padding: 0; }
	.hsn-pop-card { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: max(1.6rem, env(safe-area-inset-bottom, 0px)); animation: hsn-sheet .3s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes hsn-fade { from { opacity: 0; } }
@keyframes hsn-up { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes hsn-sheet { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .hsn-pop-backdrop, .hsn-pop-card { animation: none; } .hsn .hsn-button { transition: none; } }
