/* Themewright Studio – details theme.json cannot express. */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--orange);
	outline-offset: 3px;
}

:where(.wp-site-blocks) a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

::selection {
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--ink);
}

/* Logo */
.tw-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--wp--preset--color--lime);
	text-decoration: none !important;
}
.tw-logo:hover {
	color: var(--wp--preset--color--lime);
}
.tw-logo__word {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
}
.tw-mark {
	display: block;
	flex: none;
}

/* Small pill label */
.tw-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	letter-spacing: 0.02em;
}
.tw-pill::before {
	content: "";
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 2px;
	background: var(--wp--preset--color--orange);
	animation: tw-blink 2.4s ease-in-out infinite;
}
@keyframes tw-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

/* Eyebrow */
.tw-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6em;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.tw-eyebrow::before {
	content: "";
	width: 0.8em;
	height: 0.8em;
	border-radius: 2px;
	background: var(--wp--preset--color--orange);
}

/* Orange words inside headings */
.tw-hl {
	color: var(--wp--preset--color--orange);
}

/* Big brick mark in the hero */
.tw-wall {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(6px, 1.2vw, 14px);
	width: 100%;
	max-width: 420px;
	margin-inline: auto;
	aspect-ratio: 120 / 95;
}
.tw-wall span {
	border-radius: 12%;
	background: var(--wp--preset--color--ink-2);
	border: 1px solid var(--wp--preset--color--line);
}
.tw-wall .o {
	background: var(--wp--preset--color--orange);
	border-color: var(--wp--preset--color--orange);
}
.tw-wall .l {
	background: var(--wp--preset--color--lime);
	border-color: var(--wp--preset--color--lime);
}
@media (prefers-reduced-motion: no-preference) {
	.tw-wall span {
		animation: tw-place 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}
	.tw-wall span:nth-child(5n + 2) { animation-delay: 0.05s; }
	.tw-wall span:nth-child(5n + 3) { animation-delay: 0.1s; }
	.tw-wall span:nth-child(5n + 4) { animation-delay: 0.15s; }
	.tw-wall span:nth-child(5n + 5) { animation-delay: 0.2s; }
	.tw-wall span:nth-child(n + 6) { animation-delay: 0.25s; }
	.tw-wall span:nth-child(n + 11) { animation-delay: 0.35s; }
	.tw-wall span:nth-child(n + 16) { animation-delay: 0.45s; }
	@keyframes tw-place {
		from { opacity: 0; transform: translateY(-18px); }
		to { opacity: 1; transform: none; }
	}
}

/* Cards */
.tw-card {
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--ink-2);
}
.has-lime-background-color .tw-card {
	border-color: var(--wp--preset--color--lime-2);
	background: #fff;
}
.tw-num {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--orange);
	letter-spacing: 0.04em;
}

/* Screenshot frame */
.tw-shot img {
	border: 1px solid var(--wp--preset--color--lime-2);
	box-shadow: 1.25rem 1.25rem 0 0 var(--wp--preset--color--orange);
}
.tw-shot {
	margin-right: 1.25rem !important;
	margin-bottom: 1.25rem !important;
}

/* Waitlist form (Contact Form 7) */
.tw-waitlist {
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--ink-2);
}
.tw-waitlist .wpcf7-form > p {
	margin: 0 0 1rem;
}
.tw-waitlist .tw-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.tw-waitlist .tw-row > .wpcf7-form-control-wrap {
	flex: 1 1 16rem;
}
.tw-waitlist input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	min-height: 3.25rem;
	padding: 0.8rem 1rem;
	border: 2px solid var(--wp--preset--color--line);
	border-radius: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--lime);
	font: inherit;
}
.tw-waitlist input[type="email"]::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}
.tw-waitlist input[type="email"]:focus-visible {
	border-color: var(--wp--preset--color--orange);
	outline-offset: 0;
}
.tw-waitlist .wpcf7-submit {
	min-height: 3.25rem;
	padding: 0.8rem 1.5rem;
	border: 2px solid var(--wp--preset--color--orange);
	border-radius: 0;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}
.tw-waitlist .wpcf7-submit:hover,
.tw-waitlist .wpcf7-submit:focus-visible {
	border-color: var(--wp--preset--color--lime);
	background: var(--wp--preset--color--lime);
}
.tw-waitlist .wpcf7-submit:disabled {
	border-color: var(--wp--preset--color--line);
	background: transparent;
	color: var(--wp--preset--color--muted);
	cursor: not-allowed;
}

.tw-waitlist .wpcf7-acceptance label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.tw-waitlist .wpcf7-acceptance input {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0.15rem 0 0;
	accent-color: var(--wp--preset--color--orange);
}
.tw-waitlist .wpcf7-list-item {
	margin: 0;
}
.tw-waitlist .wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	color: #FF8A5C;
	font-size: var(--wp--preset--font-size--small);
}
.tw-waitlist .wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border: 2px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--small);
}
.tw-waitlist .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--orange);
}
.tw-waitlist .wpcf7-spinner {
	display: none;
}
.tw-waitlist .wpcf7 form.submitting .wpcf7-spinner {
	display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Header menu */
.tw-nav .wp-block-navigation-item__content {
	text-decoration: none;
	font-weight: 500;
}
.tw-nav .wp-block-navigation-item__content:hover,
.tw-nav .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--orange);
}
.tw-nav .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
@media (max-width: 520px) {
	.tw-header-right .tw-pill {
		display: none;
	}
}
