/*
 * Template Kit for Astra: the kit stylesheet.
 *
 * Everything the kit cannot do with block and theme settings, and nothing else. Every rule targets a kit class
 * (tka-…) or Astra's own chrome; none uses Spectra's utility classes (R-e). Colours are Astra's palette
 * variables, so a member who changes slot 0 (the accent) changes every accent use, the hover included (R-c).
 * REPORT.md lists each declaration with the piece it serves.
 */

/* The accent hover, derived from slot 0 (R-c): one colour for a member to move. */
:root {
	--tka-accent-hover: color-mix(in srgb, var(--ast-global-color-0) 78%, #000);
	/* Translucent hairlines, read by the blocks' own border colour settings (Spectra drops a raw rgba border colour). */
	--tka-rule-ink: rgba(26, 31, 46, 0.12);
	--tka-rule-light-12: rgba(255, 255, 255, 0.12);
	--tka-rule-light-14: rgba(255, 255, 255, 0.14);
	--tka-rule-light-20: rgba(255, 255, 255, 0.2);
	--tka-rule-light-30: rgba(255, 255, 255, 0.3);
}

/* P1, P14: the monogram (R-k). The first letter of the site title in an accent disc. */
.tka-monogram {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ast-global-color-0);
	color: var(--ast-global-color-7);
	font-family: "Cormorant Garamond", serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
}

.tka-monogram--footer {
	width: 30px;
	height: 30px;
	font-size: 18px;
	font-weight: 400;
}

.tka-monogram-link {
	display: inline-flex;
	margin-right: 12px;
	text-decoration: none;
}

/* P1: the dark-to-clear band behind the transparent header (Astra's transparent header takes a colour, not a gradient). */
.ast-theme-transparent-header #masthead .main-header-bar {
	background-image: linear-gradient(180deg, rgba(13, 20, 38, 0.72), rgba(13, 20, 38, 0));
}

/* P1: the site identity's type, as designed: the name in Cormorant, the place in DM Mono. */
#masthead .site-title,
#masthead .site-title a {
	font-family: "Cormorant Garamond", serif;
	font-size: 23px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
}

#masthead .site-description {
	margin-top: 3px;
	font-family: "DM Mono", monospace;
	font-size: 9px;
	letter-spacing: 0.3em;
	line-height: 1.4;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

#masthead .main-header-menu .menu-link {
	font-size: 14px;
	font-weight: 500;
}

/* Accent hovers (R-c): the header button and the footer's Join here; the solid Spectra buttons point their own
   hover colour (backgroundColorHover) at --tka-accent-hover; accent text links below. */
#masthead .ast-builder-button-wrap .ast-custom-button:hover,
#masthead .ast-builder-button-wrap .ast-custom-button-link:hover .ast-custom-button,
.tka-footer-button:hover,
.tka-footer-button:focus-visible {
	background-color: var(--tka-accent-hover);
	border-color: var(--tka-accent-hover);
}

.tka-part .tka-link a {
	color: inherit;
	text-decoration: none;
}

.tka-part .tka-link a:hover,
.tka-part .tka-link a:focus-visible {
	color: color-mix(in srgb, currentColor 78%, #000);
}

/* Addendum 1 F1, F2: a [bracketed token], a stat value, and the last word of a "…→" label with its arrow, each
   kept on one line (the generator wraps them in this span; the text is unchanged). */
.tka-keep {
	white-space: nowrap;
}

/* P2: the H1's balanced line breaks, and the design's "pretty" paragraph wrapping. */
.tka-balance {
	text-wrap: balance;
}

.tka-pretty {
	text-wrap: pretty;
}

/* P2, P13: the outline buttons' translucent white border (a raw rgba border colour on a Spectra button never reaches the page). */
.tka-part .wp-block-spectra-button.tka-btn-outline {
	border-color: rgba(255, 255, 255, 0.42);
}

.tka-part .wp-block-spectra-button.tka-btn-outline--strong {
	border-color: rgba(255, 255, 255, 0.5);
}

/* P3: the accent block offset behind the photo, and the quote card over its corner (R-e: positioned here, not by utility classes). */
.tka-about-media {
	position: relative;
}

.tka-about-offset {
	position: absolute;
	top: 34px;
	right: -18px;
	bottom: 34px;
	left: 60px;
}

.tka-about-photo {
	position: relative;
	margin: 0;
}

/* P3: the portrait's focal point (core/image has none). */
.tka-about-photo img {
	object-position: 50% 22%;
}

.tka-about-quote {
	position: absolute;
	bottom: -26px;
	left: -26px;
	z-index: 2;
}

@media (max-width: 480px) {
	.tka-about-offset {
		right: -14px;
	}

	.tka-about-quote {
		left: -12px;
	}
}

/* P4: the scrolling band (R-b), stopped for visitors who ask for less motion. */
.tka-marquee__track {
	width: max-content;
	animation: tka-marquee 34s linear infinite;
	will-change: transform;
}

.tka-marquee__track > * {
	flex: none;
	white-space: nowrap;
}

@keyframes tka-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tka-marquee__track {
		animation: none;
	}
}

/* P11: the accent block behind the photo and the price card. */
.tka-faq-media {
	position: relative;
}

.tka-faq-offset {
	position: absolute;
	top: 40px;
	right: 0;
	bottom: 0;
	left: 0;
}

.tka-faq-photo,
.tka-faq-price {
	position: relative;
}

@media (max-width: 480px) {
	.tka-faq-offset {
		top: 24px;
	}
}

/* P11: the plus and minus in the accent (addendum 1 F3; the icon block's own colour setting did not reach the SVG). */
.tka-faq-item .wp-block-spectra-accordion-child-header-icon {
	color: var(--ast-global-color-0);
}

.tka-faq-item .wp-block-spectra-accordion-child-header-icon svg {
	fill: var(--ast-global-color-0);
}

/* P11: the open question's accent rule. */
.tka-faq-item.is-active {
	--tka-faq-rule: var(--ast-global-color-0);
}

/* P14: the footer's four columns and its bottom bar. Space between the columns when they wrap (tablet, phone). */
.site-primary-footer-wrap .ast-builder-grid-row {
	row-gap: 40px;
}

.site-footer .tka-footer-brand p,
.site-footer .tka-footer-col p {
	margin: 0;
}

.tka-footer-mark {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 18px !important;
}

.tka-footer-name {
	font-family: "Cormorant Garamond", serif;
	font-size: 22px;
	color: var(--ast-global-color-7);
}

.tka-footer-text {
	max-width: 300px;
	margin-bottom: 20px !important;
	font-size: 14px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
}

.tka-footer-social {
	display: flex;
	gap: 10px;
}

.tka-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 13px;
	color: var(--ast-global-color-7);
	text-decoration: none;
}

.tka-footer-title {
	margin-bottom: 18px !important;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ast-global-color-7);
}

.tka-footer-links,
.tka-footer-lines {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.7);
}

.tka-footer-links a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.tka-footer-links a:hover {
	color: var(--ast-global-color-9);
}

.tka-footer-amber {
	color: var(--ast-global-color-9);
}

.tka-footer-button {
	display: inline-block;
	padding: 12px 18px;
	background-color: var(--ast-global-color-0);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ast-global-color-7);
	text-decoration: none;
}

.tka-footer-button:hover,
.tka-footer-button:focus-visible {
	color: var(--ast-global-color-7);
}

.tka-footer-bar {
	font-family: "DM Mono", monospace;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.45);
}
