/*
Theme Name:   Wind Cries Mary
Theme URI:    https://github.com/taylor-time/cottage-hospitality-web
Description:  Child theme for Wind Cries Mary (Cottage Hospitality, Victoria BC).
              Palette and typography extracted from the live Squarespace site;
              see audit/brand.md in the build repo for provenance of every value.
Author:       NovelLogic
Author URI:   https://novellogic.ca
Template:     generatepress
Version:      0.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  wcm
*/

/* ---------------------------------------------------------------------------
 * WHY GENERATEPRESS AND NOT KADENCE
 *
 * Both are good, fast, GPL themes. GeneratePress wins here specifically
 * because of what this project is being sold on: portability.
 *
 * Kadence's real value lives in the Kadence Blocks plugin. Build the layouts
 * with it and the proprietary block markup ends up saved inside every page's
 * post_content. Deactivate the plugin and the pages degrade to validation
 * warnings and raw HTML. That is the same lock-in we are pitching against
 * with Squarespace, only cheaper to escape - and we would be handing it to
 * the client ourselves.
 *
 * GeneratePress free ships ~10KB of CSS, no bundled block library, and no
 * proprietary markup. Every pattern in this theme is built from CORE blocks
 * only. The practical consequence is that the parent theme is replaceable:
 * swap GeneratePress for any block theme, or none, and the pages still hold,
 * because nothing about the content depends on the theme that rendered it.
 *
 * We also deliberately do not use GP Premium. The free parent plus this child
 * plus theme.json covers everything the design needs, so the client inherits
 * no licence that can lapse.
 *
 * Reconsider this choice only if the build starts needing a header/footer
 * builder UI for non-technical editors - that is Kadence's genuine advantage.
 * ---------------------------------------------------------------------------
 *
 * DESIGN TOKENS LIVE IN theme.json, NOT HERE.
 *
 * This file is intentionally almost empty. Colour, type, and spacing are all
 * declared in theme.json so they are available to the block editor, exposed
 * as CSS custom properties, and portable to any host. Adding overrides here
 * means the editor preview stops matching the front end.
 *
 * Only put rules here that theme.json genuinely cannot express.
 * ------------------------------------------------------------------------ */

/*
 * The one real exception. Squarespace's menus are flat images, which is why
 * Google cannot read them (see audit/findings.md section 5). Where we render a
 * menu document link we want a clear affordance that it opens a PDF, and
 * theme.json has no way to express a generated-content marker.
 */
.wcm-menu-doc__link[href$=".pdf"]::after {
	content: " (PDF)";
	font-size: 0.85em;
	letter-spacing: 0.04em;
	opacity: 0.75;
}

/*
 * Respect reduced-motion preferences for the gallery strip's scroll snapping.
 */
@media (prefers-reduced-motion: reduce) {
	.wcm-gallery-strip {
		scroll-behavior: auto;
	}
}
