/*
Theme Name: Wilkins Swann
Theme URI: https://example.com/
Author: Wilkins · Swann
Description: A quiet, spacious block theme for Wilkins · Swann. Lots of white space, one deep violet accent, and rounded practice-area buttons.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
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: wilkins-swann
Tags: block-patterns, full-site-editing, one-column, custom-colors, wide-blocks
*/

/* Small refinements theme.json can't express. */

html { scroll-behavior: smooth; }

:where(.wp-site-blocks) :target { scroll-margin-top: 2rem; }

/* Practice-area buttons: fill their grid cell and match the graphics. */
.is-style-practice .wp-block-button__link,
.wp-block-button.is-style-practice .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
}

.wp-block-button__link { transition: background-color .2s ease; }

/* Thin rule used between sections. */
.wp-block-separator.is-style-hairline {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	opacity: 1;
}

/* Lawyer photos keep a consistent shape. */
.ws-portrait { max-width: 460px; }
.ws-portrait img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

/* Navigation links: quiet until hovered. */
.wp-block-navigation a:where(:not(.wp-element-button)) { text-decoration: none; }
.wp-block-navigation a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--violet); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.wp-block-button__link { transition: none; }
}

/* Practice-area buttons are taller, like the original graphics. */
.wp-block-button.is-style-practice .wp-block-button__link {
	padding-top: 1.85rem;
	padding-bottom: 1.85rem;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	letter-spacing: 0.1em;
}

/* Home page logo: the main art. */
.ws-hero-logo img { width: 100%; height: auto; }

.ws-rounded img { border-radius: 14px; }

/* Practice-area cells: text sits under each label. */
.ws-practice-table .wp-block-buttons { width: 100%; }
.ws-practice-table p { margin: 0; padding: 0 .25rem; }

/* Lawyer pages: contact details stay in view while reading the bio. */
@media (min-width: 782px) {
	.ws-sticky { position: sticky; top: 2rem; align-self: flex-start; }
}

/* Dropdown menus. */
.wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 10px;
	padding: .5rem 0;
	min-width: 14rem !important;
	box-shadow: 0 8px 24px rgba(26, 26, 28, .06);
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .55rem 1.1rem;
	text-transform: none;
	letter-spacing: 0;
	font-size: .95rem;
}
.wp-block-navigation .wp-block-navigation-submenu__toggle { text-transform: uppercase; letter-spacing: .08em; }
