/* =========================================================================
   Vani Kaushal — global.css
   Small, hand-written rules for things theme.json cannot express:
   the skip link, visible focus states, reduced-motion support, the native
   accordion (core/details) chevron, and a couple of block style variations.
   Everything else (color, type, spacing, shadows) comes from theme.json.
   ========================================================================= */

   body {
	margin: 0;
	padding: 0;
   }

/* ---- Skip link -------------------------------------------------------- */
.skip-link {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	padding: 12px 20px;
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 100000;
	text-decoration: none;
	border-radius: 2px;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 8px;
}

/* ---- Visible focus everywhere ------------------------------------------
   theme.json already sets a focus outline for .wp-element-button; this
   covers every other interactive element so keyboard users always see
   where they are. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-dark);
	outline-offset: 2px;
}

/* ---- Reduced motion ----------------------------------------------------
   Respect the OS-level preference: stop decorative motion, keep the site
   fully usable. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---- Accordion (core/details) ------------------------------------------
   Native <details>/<summary> is used for the FAQ pattern instead of a
   custom accordion block: it is keyboard operable, works with find-in-page,
   and needs no JavaScript. This just restyles the disclosure marker. */
.wp-block-details {
	position: relative;
}

.wp-block-details > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

.wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details > summary::after {
	content: "";
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.wp-block-details[open] > summary::after {
	transform: rotate(-135deg);
}

/* ---- Button style variation: Outline -----------------------------------
   Registered in functions.php as `outline`. A transparent, bordered button
   for secondary calls to action next to a solid primary button. */
/* .wp-block-button.is-style-outline .wp-block-button__link {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--ink);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
} */

/* ---- Quote style variation: Signature -----------------------------------
   Registered in functions.php as `signature`. Sets the quote in the
   cursive signature face for testimonials and personal notes. */
.wp-block-quote.is-style-signature {
	font-family: var(--wp--preset--font-family--signature);
	font-size: var(--wp--preset--font-size--xx-large);
	font-style: normal;
	line-height: 1.3;
}

.wp-block-quote.is-style-signature cite {
	display: block;
	margin-top: var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	color: var(--wp--preset--color--ink-soft);
}

/* ---- Footer ------------------------------------------------------------ */
.site-footer .wp-block-shortcode {
	font-size: 12.5px;
	opacity: 0.6;
	margin: 0;
}

.site-footer ul:not(.wp-block-social-links) li {
	margin-bottom: 11px;
	list-style: none;
}

.site-footer ul:not(.wp-block-social-links) {
	padding-left: 0;
}

.site-footer a:hover {
	color: var(--wp--preset--color--white);
}

/* The global focus-visible outline (accent-dark) only reaches ~1.9:1 against
   the footer's dark background — well under the 3:1 WCAG 2.4.11 minimum for
   a focus indicator. Use white here instead, which reaches 15.8:1. */
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer [tabindex]:focus-visible {
	outline-color: var(--wp--preset--color--white);
}

/* ---- Navigation submenu ---------------------------------------------- */
.wp-block-navigation .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--paper);
	box-shadow: var(--wp--preset--shadow--popover);
	border-radius: 2px;
}
