/*
Theme Name: Leuenaar Noir
Theme URI: https://www.leuenaar.my.id/
Author: Harva Heru
Author URI: https://www.leuenaar.my.id/
Description: A dark editorial theme for a one-person AI automation studio. Instrument Serif headlines with lime italics, Plus Jakarta Sans body text, JetBrains Mono labels, a pointer-lit grid and a custom cursor. Fonts are bundled locally, so there are no third-party requests. Works with Elementor Theme Builder locations and the block editor.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leuenaar-noir
Tags: dark, blog, portfolio, custom-menu, custom-logo, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ==========================================================================
   Fonts (bundled, SIL Open Font License)
   ========================================================================== */
@font-face {
	font-family: "Instrument Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
}
@font-face {
	font-family: "Instrument Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
}
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--bg: #101110;
	--raise: #151715;
	--sunk: #0b0c0b;
	--line: #292c29;
	--line-soft: #1d1f1d;
	--text: #e9e7de;
	--dim: #a9a89f;
	--faint: #878980;
	--lime: #b9d94c;
	--lime-ink: #101110;
	--lime-soft: rgba(185, 217, 76, 0.13);
	--amber: #e0a458;

	--serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	--sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--wrap: 75rem;
	--measure: 46rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 16px;
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);

	color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* Paper grain over the whole page. Static, so it costs nothing to animate. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 60;
	pointer-events: none;
	opacity: 0.045;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); }
h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
h4 { font-size: 1.35rem; }

p { margin: 0 0 1.2em; }

a {
	color: var(--lime);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
a:hover { color: #d4ee7c; }

::selection {
	background: var(--lime);
	color: var(--lime-ink);
}

:focus-visible {
	outline: 2px solid var(--lime);
	outline-offset: 3px;
	border-radius: 4px;
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.5rem 0;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.7rem 1rem;
	clip: auto;
	clip-path: none;
	background: var(--lime);
	color: var(--lime-ink);
	border-radius: var(--r-sm);
	font-weight: 600;
	text-decoration: none;
}

/* ==========================================================================
   Small parts: labels, pills, buttons, tags
   ========================================================================== */
.label {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1.5rem;
	color: var(--lime);
	font: 500 0.78rem/1 var(--mono);
	letter-spacing: 0.02em;
}
.label::before {
	content: "";
	width: 1.5rem;
	height: 1px;
	background: currentColor;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--raise);
	color: var(--text);
	font: 500 0.78rem/1 var(--mono);
	text-decoration: none;
	transition: border-color 0.25s, background-color 0.25s;
}
.pill:hover {
	border-color: rgba(185, 217, 76, 0.6);
	background: var(--lime-soft);
	color: var(--text);
}
.pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--lime);
	box-shadow: 0 0 0 0 rgba(185, 217, 76, 0.5);
	animation: lnoir-pulse 2.6s ease-out infinite;
}
@keyframes lnoir-pulse {
	0% { box-shadow: 0 0 0 0 rgba(185, 217, 76, 0.5); }
	70%, 100% { box-shadow: 0 0 0 8px rgba(185, 217, 76, 0); }
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.85rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--r-sm);
	font: 600 0.95rem/1 var(--sans);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.3s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn--lime {
	background: var(--lime);
	color: var(--lime-ink);
}
.btn--lime:hover {
	background: #cbe85f;
	color: var(--lime-ink);
}
.btn--ghost {
	border-color: var(--line);
	background: transparent;
	color: var(--text);
}
.btn--ghost:hover {
	border-color: rgba(185, 217, 76, 0.7);
	color: var(--lime);
}
.btn svg {
	width: 1.05em;
	height: 1.05em;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tags li {
	padding: 0.3rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--dim);
	font: 400 0.72rem/1 var(--mono);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
	background: rgba(16, 17, 16, 0.78);
	border-bottom-color: var(--line);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 4.5rem;
}

.brand {
	display: inline-flex;
	align-items: baseline;
	gap: 0.7rem;
	color: var(--text);
	text-decoration: none;
	min-width: 0;
}
.brand:hover { color: var(--text); }
.brand__name {
	font: 600 1.02rem/1 var(--sans);
	letter-spacing: -0.015em;
	white-space: nowrap;
}
.brand__tag {
	color: var(--faint);
	font: 400 0.72rem/1 var(--mono);
	white-space: nowrap;
}
.brand__tag::before {
	content: "/";
	margin-right: 0.7rem;
	color: var(--line);
}
.custom-logo-link img { max-height: 2.25rem; width: auto; }

.site-nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.4vw, 2.25rem);
}
.site-nav .menu,
.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(1rem, 2.2vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav li { position: relative; }
.site-nav a {
	position: relative;
	display: inline-block;
	padding: 0.4rem 0;
	color: var(--dim);
	font: 500 0.9rem/1.2 var(--sans);
	text-decoration: none;
	transition: color 0.2s;
}
.site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.05rem;
	height: 1px;
	background: var(--lime);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--ease);
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	color: var(--text);
}
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
	transform: scaleX(1);
}

/* The status pill lives inside the nav, so it must beat the generic nav link rules. */
.site-nav .pill {
	display: inline-flex;
	padding: 0.5rem 0.9rem;
	color: var(--text);
	font: 500 0.78rem/1 var(--mono);
}
.site-nav .pill::after { display: none; }

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	z-index: 5;
	min-width: 13rem;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0.5rem;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--raise);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.site-nav .sub-menu a {
	display: block;
	padding: 0.55rem 0.75rem;
	border-radius: 6px;
}
.site-nav .sub-menu a::after { display: none; }
.site-nav .sub-menu a:hover { background: var(--lime-soft); }

.nav-toggle {
	display: none;
	position: relative;
	z-index: 80;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--raise);
	color: var(--text);
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before {
	position: absolute;
	left: 50%;
	width: 1.1rem;
	height: 1.5px;
	background: currentColor;
	transform: translateX(-50%);
	transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle__bars { top: calc(50% - 4px); }
.nav-toggle__bars::before { content: ""; top: 8px; left: 50%; }
.nav-open .nav-toggle__bars { top: 50%; transform: translateX(-50%) rotate(45deg); }
.nav-open .nav-toggle__bars::before { top: 0; transform: translateX(-50%) rotate(-90deg); }

@media (max-width: 860px) {
	.nav-toggle { display: inline-block; }
	.brand__tag { display: none; }
	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 70;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 2rem;
		padding: 5rem var(--gutter) 3rem;
		background: radial-gradient(70% 50% at 20% 0%, rgba(185, 217, 76, 0.12), transparent 70%), var(--bg);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s, visibility 0.35s;
	}
	.nav-open { overflow: hidden; }
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.site-nav .menu,
	.site-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.4rem;
	}
	.site-nav a {
		font: 400 clamp(2.2rem, 9vw, 3rem)/1.1 var(--serif);
		letter-spacing: -0.02em;
		color: var(--text);
	}
	.site-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		background: transparent;
		padding: 0.25rem 0 0.25rem 1rem;
	}
	.site-nav .sub-menu a { font-size: 1.4rem; }
	.site-nav .pill { font: 500 0.85rem/1 var(--mono); padding: 0.7rem 1.1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: -4.5rem;
	padding-block: calc(4.5rem + clamp(3.5rem, 8vw, 7rem)) clamp(3.5rem, 7vw, 6rem);
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -3;
	background:
		radial-gradient(55% 60% at 14% 0%, rgba(185, 217, 76, 0.13), transparent 70%),
		radial-gradient(40% 50% at 96% 30%, rgba(76, 122, 94, 0.14), transparent 70%);
}
.hero__grid {
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		linear-gradient(var(--line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 10%, transparent 80%);
	mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 10%, transparent 80%);
}
.hero__grid--lit {
	z-index: -1;
	background-image:
		linear-gradient(rgba(185, 217, 76, 0.34) 1px, transparent 1px),
		linear-gradient(90deg, rgba(185, 217, 76, 0.34) 1px, transparent 1px);
	-webkit-mask-image: radial-gradient(300px circle at var(--mx, 72%) var(--my, 26%), #000, transparent 72%);
	mask-image: radial-gradient(300px circle at var(--mx, 72%) var(--my, 26%), #000, transparent 72%);
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: center;
}
@media (max-width: 920px) {
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
}

.display {
	margin: 0 0 1.5rem;
	font-family: var(--serif);
	font-size: clamp(2.9rem, 1.2rem + 5.4vw, 5rem);
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: -0.028em;
}
.display em {
	font-style: italic;
	color: var(--lime);
	padding-right: 0.06em;
}
.display .line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.1em;
	margin-bottom: -0.1em;
}
.display .line > span {
	display: inline-block;
	transform: translateY(110%);
	animation: lnoir-rise 1s var(--ease) forwards;
}
.display .line:nth-child(2) > span { animation-delay: 0.1s; }
.display .line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes lnoir-rise {
	to { transform: translateY(0); }
}

.lede {
	max-width: 34rem;
	margin: 0 0 2rem;
	color: var(--dim);
	font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Sample job card window */
.window {
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--raise);
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
	overflow: hidden;
}
.window__bar {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.85rem 1.1rem;
	border-bottom: 1px solid var(--line);
}
.window__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--line);
}
.window__title {
	flex: 1;
	text-align: center;
	color: var(--faint);
	font: 400 0.72rem/1 var(--mono);
}
.window__live {
	color: var(--lime);
	font: 500 0.72rem/1 var(--mono);
}
.bubble {
	margin: 1.25rem 1.25rem 0.5rem;
	padding: 0.95rem 1.05rem;
	border: 1px solid var(--line-soft);
	border-radius: 14px 14px 14px 4px;
	background: var(--sunk);
	color: var(--text);
	font-size: 0.95rem;
	line-height: 1.55;
}
.bubble__meta {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--faint);
	font: 400 0.7rem/1 var(--mono);
}
.card-rule {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1rem 1.25rem 0.35rem;
	color: var(--faint);
	font: 400 0.7rem/1 var(--mono);
}
.card-rule::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}
.kv {
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr);
	gap: 0.3rem 1rem;
	padding: 0.65rem 1.25rem;
	border-top: 1px solid var(--line-soft);
	font-size: 0.9rem;
	line-height: 1.45;
}
.kv:first-of-type { border-top: 0; }
.kv dt {
	color: var(--faint);
	font: 400 0.72rem/1.6 var(--mono);
}
.kv dd { margin: 0; }
.window__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1.25rem;
	border-top: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.2);
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.6rem;
	border-radius: 6px;
	background: var(--lime);
	color: var(--lime-ink);
	font: 500 0.72rem/1 var(--mono);
}
.window__note {
	color: var(--faint);
	font: 400 0.7rem/1.4 var(--mono);
}
.caption {
	margin: 1rem 0 0;
	color: var(--faint);
	font: 400 0.72rem/1.6 var(--mono);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
	padding-block: clamp(4rem, 8vw, 7rem);
	border-top: 1px solid var(--line-soft);
}
.section__head {
	max-width: 46rem;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section__head h2 { margin-bottom: 0.6rem; }
.section__head p {
	margin: 0;
	color: var(--dim);
	max-width: 38rem;
}

/* Spotlight surfaces: a soft glow and a lit border that follow the pointer */
.spot {
	position: relative;
	--mx: 50%;
	--my: 50%;
}
.spot::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	pointer-events: none;
	background: radial-gradient(420px circle at var(--mx) var(--my), var(--lime-soft), transparent 60%);
	opacity: 0;
	transition: opacity 0.35s var(--ease);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* Steps */
.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--line);
	overflow: hidden;
}
.step {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--bg);
}
.step__n {
	display: block;
	margin-bottom: 2.5rem;
	color: var(--lime);
	font: italic 400 3.4rem/1 var(--serif);
}
.step h3 { margin-bottom: 0.6rem; }
.step p {
	margin: 0;
	color: var(--dim);
	font-size: 0.98rem;
}
@media (max-width: 860px) {
	.steps { grid-template-columns: minmax(0, 1fr); }
	.step__n { margin-bottom: 1.25rem; }
}

/* ==========================================================================
   Hero demo: sample enquiries that play themselves
   ========================================================================== */
.demo { display: flex; flex-direction: column; }
.demo__tabs {
	display: none;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0.7rem 1.1rem;
	border-bottom: 1px solid var(--line-soft);
}
.js .demo__tabs { display: flex; }
.demo__tab {
	appearance: none;
	padding: 0.5rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--dim);
	font: 500 0.74rem/1 var(--mono);
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.demo__tab:hover { color: var(--text); border-color: var(--faint); }
.demo__tab.is-active {
	border-color: rgba(185, 217, 76, 0.5);
	background: var(--lime-soft);
	color: var(--lime);
}
.demo__replay {
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: transparent;
	color: var(--dim);
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, transform 0.5s var(--ease);
}
.demo__replay svg { width: 1rem; height: 1rem; }
.demo__replay:hover { color: var(--lime); border-color: var(--lime); transform: rotate(-90deg); }

/* All three panels share one grid cell, so the window is as tall as the longest one. */
.demo__stage { display: grid; }
.demo__panel { grid-area: 1 / 1; min-width: 0; visibility: hidden; }
.demo__panel.is-active { visibility: visible; }

.demo .bubble { margin: 0.8rem 1.25rem 0; font-size: 0.9rem; }
.demo .bubble:first-child { margin-top: 1.1rem; }
.bubble--desk {
	border-color: rgba(185, 217, 76, 0.28);
	border-radius: 14px 14px 4px 14px;
	background: rgba(185, 217, 76, 0.07);
}
.bubble--desk .bubble__meta { color: var(--lime); }
.bubble--safety {
	border-color: rgba(224, 164, 88, 0.5);
	background: rgba(224, 164, 88, 0.08);
}
.bubble--safety .bubble__meta { color: var(--amber); }
.demo .bubble--desk { margin-left: 2.25rem; }
.bubble--short { width: fit-content; max-width: calc(100% - 2.5rem); }
.demo .bubble--short { padding-block: 0.65rem; }
.demo .kv { grid-template-columns: 6.5rem minmax(0, 1fr); padding: 0.55rem 1.25rem; font-size: 0.86rem; }
.demo__card { margin: 0; }
.chip--amber { background: var(--amber); }

/* Typed text. The final text is always in the markup, so the bubble never changes size. */
.is-typing .tw__rest { visibility: hidden; }
.is-typing .tw__done::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 1.05em;
	margin-right: -2px;
	margin-left: 1px;
	background: var(--lime);
	vertical-align: -0.16em;
	animation: lnoir-blink 1s steps(2, start) infinite;
}
@keyframes lnoir-blink { 50% { opacity: 0; } }

/* Items start hidden only when scripts are on. The 3.5s animation is a safety net that
   reveals everything if the script never runs; the script switches it off with .is-live. */
.js .demo-item {
	opacity: 0;
	transform: translateY(8px);
	animation: lnoir-show 0.01s 3.5s forwards;
}
.js .demo-item.is-in {
	opacity: 1;
	transform: none;
	animation: none;
	transition: opacity 0.35s, transform 0.5s var(--ease);
}
.js .demo.is-live .demo-item { animation: none; }
@keyframes lnoir-show { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Two evenings
   ========================================================================== */
.lanes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
@media (max-width: 760px) {
	.lanes { grid-template-columns: minmax(0, 1fr); }
}
.lane {
	padding: clamp(1.4rem, 3vw, 2.25rem);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--raise);
}
.lane--before { border-style: dashed; background: transparent; }
.lane__title {
	margin: 0 0 1.5rem;
	color: var(--faint);
	font: 500 0.78rem/1 var(--mono);
	letter-spacing: 0;
}
.lane--after .lane__title { color: var(--lime); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li {
	display: grid;
	grid-template-columns: 4.6rem minmax(0, 1fr);
	gap: 1rem;
	padding: 0.95rem 0;
	border-top: 1px solid var(--line-soft);
}
.timeline li:first-child { padding-top: 0; border-top: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { color: var(--faint); font: 400 0.78rem/1.9 var(--mono); }
.lane--after time { color: var(--lime); }
.timeline p { margin: 0; }
.lane--before .timeline p { color: var(--dim); }

/* ==========================================================================
   Price list you can edit
   ========================================================================== */
.pricer {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 1.25rem;
	align-items: start;
}
@media (max-width: 920px) {
	.pricer { grid-template-columns: minmax(0, 1fr); }
}
.pricer__list {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--raise);
	overflow: hidden;
}
.pricer__legend {
	float: left;
	width: 100%;
	padding: 0.9rem 1.25rem;
	border-bottom: 1px solid var(--line);
	color: var(--faint);
	font: 400 0.72rem/1 var(--mono);
}
.pricer__legend + .pr-row { clear: both; border-top: 0; }
.pr-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.9rem;
	align-items: center;
	padding: 1rem 1.25rem;
	border-top: 1px solid var(--line-soft);
	transition: background-color 0.3s;
}
.pr-row.is-sel { background: linear-gradient(90deg, var(--lime-soft), transparent 85%); }
.pr-row__radio {
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	place-content: center;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	border: 1.5px solid var(--faint);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: border-color 0.2s;
}
.pr-row__radio::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--lime);
	transform: scale(0);
	transition: transform 0.25s var(--ease);
}
.pr-row__radio:checked { border-color: var(--lime); }
.pr-row__radio:checked::before { transform: scale(1); }
.pr-row__radio:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.pr-row__name {
	margin: 0;
	color: var(--text);
	font: 500 1rem/1.3 var(--sans);
	cursor: pointer;
}
.pr-row__range {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	white-space: nowrap;
	color: var(--faint);
	font: 400 0.88rem/1 var(--mono);
}
.pr-row__range--off { font-style: italic; }
.pr-row__num {
	width: 4.4rem;
	padding: 0.5rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--sunk);
	color: var(--text);
	font: 500 0.9rem/1 var(--mono);
	text-align: right;
	-moz-appearance: textfield;
	appearance: textfield;
}
.pr-row__num::-webkit-outer-spin-button,
.pr-row__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pr-row__num:focus {
	outline: none;
	border-color: var(--lime);
	box-shadow: 0 0 0 3px var(--lime-soft);
}
@media (max-width: 520px) {
	.pr-row { grid-template-columns: auto minmax(0, 1fr); }
	.pr-row__range { grid-column: 2; }
}
.pricer__chat {
	display: grid;
	gap: 0.8rem;
	padding: 1.25rem;
}
.pricer__chat .bubble { margin: 0; font-size: 0.95rem; }
.pricer__chat .bubble--desk { margin-left: 2rem; }
.bubble.flash [data-view-text] { animation: lnoir-flash 0.8s var(--ease); }
@keyframes lnoir-flash {
	0% { color: var(--lime); }
	100% { color: inherit; }
}

/* ==========================================================================
   Rules
   ========================================================================== */
.rules {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}
.rule {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 0.75rem 3rem;
	align-items: baseline;
	padding: clamp(1.4rem, 3vw, 2.2rem) 0;
	border-bottom: 1px solid var(--line);
	transition: padding 0.45s var(--ease), background-color 0.3s;
}
.rule h3 {
	margin: 0;
	font: 400 clamp(1.7rem, 1rem + 2.2vw, 2.6rem)/1.05 var(--serif);
	letter-spacing: -0.02em;
	transition: color 0.25s;
}
.rule p { max-width: 34rem; margin: 0; color: var(--dim); }
@media (hover: hover) {
	.rule:hover {
		padding-inline: 1.25rem;
		background: linear-gradient(90deg, var(--lime-soft), transparent 70%);
	}
	.rule:hover h3 { color: var(--lime); }
}
@media (max-width: 760px) {
	.rule { grid-template-columns: minmax(0, 1fr); }
}

.byline {
	margin: 1.25rem 0 0;
	color: var(--faint);
	font: 400 0.78rem/1.6 var(--mono);
}
.byline a { color: var(--dim); }
.byline a:hover { color: var(--lime); }

/* Contact band */
.band {
	position: relative;
	overflow: hidden;
	padding: clamp(2.5rem, 6vw, 5rem);
	border: 1px solid var(--line);
	border-radius: 24px;
	background:
		radial-gradient(60% 90% at 100% 0%, rgba(185, 217, 76, 0.16), transparent 70%),
		var(--raise);
}
.band h2 {
	max-width: 22ch;
	margin-bottom: 1rem;
	font-size: clamp(2.2rem, 1.2rem + 4vw, 4.2rem);
}
.band h2 em { color: var(--lime); }
.band p {
	max-width: 34rem;
	margin: 0 0 2rem;
	color: var(--dim);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-block: 3rem 2.5rem;
	border-top: 1px solid var(--line);
	color: var(--dim);
	font-size: 0.92rem;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
	gap: 2rem;
	align-items: start;
}
@media (max-width: 760px) {
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
.site-footer__name {
	margin: 0 0 0.5rem;
	color: var(--text);
	font: 400 1.7rem/1 var(--serif);
}
.site-footer p { margin: 0; max-width: 26rem; }
.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer a {
	color: var(--dim);
	text-decoration: none;
}
.site-footer a:hover { color: var(--lime); }
.site-footer__legal {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line-soft);
	color: var(--faint);
	font: 400 0.74rem/1.5 var(--mono);
}

/* ==========================================================================
   Entries, archives, blocks
   ========================================================================== */
.page-wrap { padding-block: clamp(3rem, 7vw, 6rem); }

.entry__head {
	width: min(100% - 2 * var(--gutter), var(--measure));
	margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.entry__title {
	margin-bottom: 0.4em;
	font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem);
	line-height: 1;
	letter-spacing: -0.026em;
}
.meta {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--faint);
	font: 400 0.74rem/1.4 var(--mono);
}
.meta__sep {
	width: 1.25rem;
	height: 1px;
	background: var(--line);
}
.meta a { color: var(--dim); text-decoration: none; }
.meta a:hover { color: var(--lime); }

.entry__media {
	width: min(100% - 2 * var(--gutter), 62rem);
	margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}
.entry__media img {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
}

.entry-content {
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--gutter), 1fr)
		[wide-start] minmax(0, 14.5rem)
		[main-start] minmax(0, var(--measure))
		[main-end] minmax(0, 14.5rem)
		[wide-end] minmax(var(--gutter), 1fr)
		[full-end];
}
.entry-content > * { grid-column: main; }
.entry-content > .alignwide { grid-column: wide; }
.entry-content > .alignfull { grid-column: full; }
.entry--builder .entry-content { display: block; }
.entry--builder .entry-content > * { grid-column: auto; }

.entry-content > * + * { margin-top: 1.2em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 2em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content img,
.entry-content .wp-block-image img {
	border-radius: var(--r-md);
}
.entry-content figcaption,
.wp-element-caption {
	margin-top: 0.6rem;
	color: var(--faint);
	font: 400 0.76rem/1.5 var(--mono);
	text-align: left;
}
.entry-content blockquote,
.wp-block-quote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 2px solid var(--lime);
	color: var(--text);
	font: italic 400 clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem)/1.3 var(--serif);
}
.entry-content blockquote p { margin: 0; }
.entry-content cite,
.wp-block-quote cite {
	display: block;
	margin-top: 0.8rem;
	color: var(--faint);
	font: 400 0.76rem/1.4 var(--mono);
	font-style: normal;
}
code,
kbd,
samp {
	padding: 0.15em 0.4em;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--sunk);
	font: 400 0.88em/1.4 var(--mono);
}
pre {
	margin: 0;
	padding: 1.25rem 1.4rem;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--sunk);
	font: 400 0.88rem/1.65 var(--mono);
}
pre code {
	padding: 0;
	border: 0;
	background: none;
}
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
th,
td {
	padding: 0.75rem 0.9rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
}
th {
	color: var(--faint);
	font: 500 0.74rem/1.3 var(--mono);
}
.wp-block-separator { border-color: var(--line); }
.wp-block-button__link {
	padding: 0.85rem 1.25rem;
	border-radius: var(--r-sm);
	background: var(--lime);
	color: var(--lime-ink);
	font-weight: 600;
	text-decoration: none;
}
.wp-block-button__link:hover {
	background: #cbe85f;
	color: var(--lime-ink);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid var(--line);
	background: transparent;
	color: var(--text);
}
.wp-block-pullquote {
	border-block: 1px solid var(--line);
	padding: 2rem 0;
}
.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }

.entry-footer {
	width: min(100% - 2 * var(--gutter), var(--measure));
	margin: 3rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}
.entry-footer .tags a {
	display: inline-block;
	padding: 0.3rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--dim);
	font: 400 0.74rem/1 var(--mono);
	text-decoration: none;
}
.entry-footer .tags a:hover {
	border-color: rgba(185, 217, 76, 0.6);
	color: var(--lime);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	width: min(100% - 2 * var(--gutter), var(--measure));
	margin: 2.5rem auto 0;
}
.post-navigation a {
	display: block;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	color: var(--text);
	font: 400 1.25rem/1.2 var(--serif);
	text-decoration: none;
	transition: border-color 0.25s;
}
.post-navigation a:hover { border-color: rgba(185, 217, 76, 0.6); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .meta { display: block; margin-bottom: 0.4rem; }

/* Archive */
.archive-head {
	max-width: 50rem;
	margin-bottom: clamp(2rem, 5vw, 4rem);
}
.archive-head h1 {
	font-size: clamp(2.6rem, 1.4rem + 4.8vw, 5rem);
	letter-spacing: -0.026em;
	line-height: 1;
}
.archive-head p { color: var(--dim); max-width: 36rem; }

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

.post-card { padding: 0; overflow: hidden; }
.post-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}
.post-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
	background: var(--sunk);
}
.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.post-card__title {
	margin: 0.9rem 0 0.6rem;
	font-size: 1.75rem;
	line-height: 1.08;
}
.post-card:hover .post-card__title { color: var(--lime); }
.post-card__excerpt {
	margin: 0;
	color: var(--dim);
	font-size: 0.95rem;
}

.pagination,
.navigation.pagination { margin-top: 3rem; }
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding: 0 0.8rem;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	color: var(--dim);
	font: 500 0.82rem/1 var(--mono);
	text-decoration: none;
}
.page-numbers:hover { border-color: rgba(185, 217, 76, 0.6); color: var(--text); }
.page-numbers.current {
	border-color: var(--lime);
	background: var(--lime);
	color: var(--lime-ink);
}

.not-found {
	padding-block: clamp(4rem, 12vw, 9rem);
	max-width: 46rem;
}
.not-found .display { font-size: clamp(3.4rem, 1.4rem + 9vw, 8rem); }

/* ==========================================================================
   Forms and comments
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
	width: 100%;
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--sunk);
	color: var(--text);
	font: 400 1rem/1.4 var(--sans);
	transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder,
textarea::placeholder { color: var(--faint); }
input:focus,
textarea:focus,
select:focus {
	outline: 0;
	border-color: var(--lime);
	box-shadow: 0 0 0 3px var(--lime-soft);
}
label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--dim);
	font: 500 0.8rem/1.3 var(--mono);
}
input[type="submit"],
button[type="submit"],
.wpforms-submit,
.wpcf7-submit {
	padding: 0.85rem 1.25rem;
	border: 0;
	border-radius: var(--r-sm);
	background: var(--lime);
	color: var(--lime-ink);
	font: 600 0.95rem/1 var(--sans);
	cursor: pointer;
	transition: background-color 0.2s;
}
input[type="submit"]:hover,
button[type="submit"]:hover { background: #cbe85f; }

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 30rem;
}
.search-form label { flex: 1; margin: 0; }

.comments-area {
	width: min(100% - 2 * var(--gutter), var(--measure));
	margin: 4rem auto 0;
}
.comments-title { font-size: 2rem; }
.comment-list {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}
.comment-list .children { margin: 0; padding-left: 1.5rem; list-style: none; }
.comment-body {
	margin-bottom: 1rem;
	padding: 1.25rem 1.4rem;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--raise);
}
.comment-meta { margin-bottom: 0.6rem; color: var(--faint); font: 400 0.74rem/1.4 var(--mono); }
.comment-meta a { color: var(--dim); text-decoration: none; }
.comment-author .fn { color: var(--text); font: 600 0.95rem/1 var(--sans); }
.comment-author .avatar { display: none; }
.comment-content p:last-child { margin-bottom: 0; }
.reply a { font: 500 0.78rem/1 var(--mono); }
.comment-respond .comment-form { display: grid; gap: 1rem; }

/* ==========================================================================
   Custom cursor
   ========================================================================== */
html.has-cursor,
html.has-cursor * { cursor: none; }
html.has-cursor input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
html.has-cursor textarea,
html.has-cursor [contenteditable="true"] { cursor: text; }
html.has-cursor iframe { cursor: auto; }

.cursor {
	position: fixed;
	inset: 0;
	z-index: 99999;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s;
	--ring: 38px;
}
.cursor.is-on { opacity: 1; }
.cursor.is-text { opacity: 0 !important; }

.cursor-dot,
.cursor-ring {
	position: fixed;
	left: 0;
	top: 0;
	will-change: transform;
}
.cursor-dot {
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	border-radius: 50%;
	background: var(--lime);
	transition: opacity 0.2s;
}
.cursor-ring__inner {
	position: absolute;
	left: 0;
	top: 0;
	width: var(--ring);
	height: var(--ring);
	border: 1px solid rgba(185, 217, 76, 0.65);
	border-radius: 50%;
	transform: translate(-50%, -50%) rotate(var(--rot, 0rad)) scale(var(--sx, 1), var(--sy, 1));
	transition: width 0.4s var(--ease), height 0.4s var(--ease), background-color 0.25s, border-color 0.25s;
}
.cursor-ring__label {
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(-50%, -50%);
	color: var(--lime-ink);
	font: 500 0.68rem/1 var(--mono);
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.2s;
}
.cursor.is-link { --ring: 64px; }
.cursor.is-link .cursor-ring__inner {
	background: var(--lime-soft);
	border-color: rgba(185, 217, 76, 0.9);
}
.cursor.has-label { --ring: 88px; }
.cursor.has-label .cursor-ring__inner {
	background: var(--lime);
	border-color: var(--lime);
}
.cursor.has-label .cursor-ring__label { opacity: 1; }
.cursor.has-label .cursor-dot { opacity: 0; }
.cursor.is-down { --ring: 28px; }
.cursor.has-label.is-down { --ring: 70px; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.display .line > span { transform: none; }
}
