/* Tova theme — front-end and editor styles. Colors and type come from theme.json. */

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

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

:where(section[id]) { scroll-margin-top: 1rem; }

:focus-visible {
	outline: 3px solid var(--wp--preset--color--lamp);
	outline-offset: 3px;
}

/* Header */
.tova-wordmark a { color: var(--wp--preset--color--ink); }
.tova-nav a { text-decoration: none; }
.tova-nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.tova-nav .tova-nav__cta > a {
	border: 1.5px solid var(--wp--preset--color--ink);
	padding: 0.45rem 1rem;
	border-radius: 2px;
}
.tova-nav .tova-nav__cta > a:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	text-decoration: none;
}

/* Hero */
.tova-hero__title { max-width: 14ch; text-wrap: balance; }
.tova-hero__lede { max-width: 36em; color: var(--wp--preset--color--steel); line-height: 1.55; }
.tova-hero__art { display: flex; justify-content: center; }
.tova-facade { width: 100%; max-width: 420px; height: auto; display: block; }

/* The one moment of motion: windows light up as the page loads. */
.tova-facade .tova-win {
	fill: #26313d;
	animation: tova-lamp 0.5s ease-out forwards;
	animation-delay: calc(0.5s + var(--i, 0) * 0.13s);
}
@keyframes tova-lamp { to { fill: #e3a73e; } }
@media (prefers-reduced-motion: reduce) {
	.tova-facade .tova-win { animation: none; fill: #e3a73e; }
}

/* Button variations */
.wp-block-button.is-style-tova-text .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	padding-left: 0;
	padding-right: 0;
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
.wp-block-button.is-style-tova-text .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--brick);
}
.wp-block-button.is-style-tova-light .wp-block-button__link {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}
.wp-block-button.is-style-tova-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--lamp);
	color: var(--wp--preset--color--night);
}

/* Spec list */
.tova-spec { margin: 0; }
.tova-spec__row {
	display: grid;
	grid-template-columns: 8.5rem 1fr;
	gap: 1rem;
	padding: 1.1rem 0;
	border-top: 1px solid var(--wp--preset--color--rule);
}
.tova-spec__row:last-child { border-bottom: 1px solid var(--wp--preset--color--rule); }
.tova-spec dt { color: var(--wp--preset--color--steel); font-size: 0.9375rem; padding-top: 0.15em; }
.tova-spec dd { margin: 0; }
@media (max-width: 520px) {
	.tova-spec__row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Steps */
.tova-steps__intro { max-width: 40em; color: var(--wp--preset--color--steel); }
.tova-steps__list {
	list-style: none;
	counter-reset: tova-step;
	margin: var(--wp--preset--spacing--50) auto 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem 2rem;
}
@media (min-width: 640px) { .tova-steps__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tova-steps__list { grid-template-columns: repeat(4, 1fr); } }
.tova-step {
	counter-increment: tova-step;
	border-top: 2px solid var(--wp--preset--color--ink);
	padding-top: 1rem;
}
.tova-step::before {
	content: counter(tova-step);
	display: block;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 2.75rem;
	line-height: 1;
	color: var(--wp--preset--color--brick);
	margin-bottom: 0.75rem;
}
.tova-step h3 { margin: 0 0 0.5rem; }
.tova-step p { margin: 0; font-size: 1rem; color: var(--wp--preset--color--steel); }

/* Investors */
.tova-investors p { max-width: 34em; }
.tova-commitments { list-style: none; margin: 0; padding: 0; }
.tova-commitments li {
	position: relative;
	padding: 0 0 1.25rem 2rem;
	line-height: 1.55;
}
.tova-commitments li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 0.7rem;
	height: 1rem;
	background: var(--wp--preset--color--lamp);
}
.tova-commitments strong { display: block; font-weight: 600; }

/* About */
.tova-about p { font-size: 1.1875rem; }

/* Contact */
.tova-contact__details { color: var(--wp--preset--color--steel); line-height: 1.8; }

.tova-form { display: grid; gap: 1rem; }
.tova-form p { margin: 0; }
.tova-form__row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tova-form__row { grid-template-columns: 1fr 1fr; } }
.tova-form__field label { display: block; font-weight: 500; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.tova-form__optional { color: var(--wp--preset--color--steel); font-weight: 400; }
.tova-form input,
.tova-form select,
.tova-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	border: 1px solid #b9c0c5;
	border-radius: 2px;
	padding: 0.75rem 0.85rem;
}
.tova-form textarea { resize: vertical; min-height: 8rem; }
.tova-form input:focus,
.tova-form select:focus,
.tova-form textarea:focus {
	outline: 3px solid var(--wp--preset--color--lamp);
	outline-offset: 0;
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
}
.tova-form__actions { margin-top: 0.5rem; }
.tova-form button { cursor: pointer; border: 0; }
.tova-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tova-form__notice { padding: 0.9rem 1rem; border-left: 4px solid; }
.tova-form__notice--ok { border-color: #2e7d4f; background: #e8f3ec; }
.tova-form__notice--error { border-color: #b3261e; background: #fbeaea; }

/* Footer */
.tova-footer .tova-footer__rule {
	border: 0;
	border-top: 1px solid rgba(242, 243, 240, 0.2);
	opacity: 1;
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
}
.tova-footer__legal { max-width: 60em; color: rgba(242, 243, 240, 0.7); }

@media (max-width: 781px) {
	.tova-facade { max-width: 300px; }
}
