/*
Theme Name: From Record, With Love — Stage
Theme URI: https://fromrecordwithlove.com
Description: Hannah Record's theatrical storefront. Built from her own Canva artwork; native blocks and WooCommerce, no page builder.
Version: 1.17.6
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: frwl
*/

/* Site-wide basics. The homepage stage has its own stylesheet (assets/stage.css). */
:root {
	--frwl-green: #6a8857;
	--frwl-velvet: #2c4231;
	--frwl-cream: #fae5c9;
	--frwl-rose: #d9776f;
	--frwl-ink: #2a2a26;
	--frwl-gold: #c9a14a;
}
@font-face {
	font-family: "Arapey Scrolls";
	src: url("assets/fonts/arapey-scrolls.ttf") format("truetype");
	font-display: swap;
}
body { margin: 0; }
.frwl-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Inside the site, Hannah's garden painting is the backdrop: the stage's zoom ends on exactly this framing. */
body:not(.home)::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background: #b9c7a4 url("assets/stage/window.webp") 50% 45% / max(100vw, 108svh) auto no-repeat;
}
body:not(.home) .frwl-card {
	background: rgb(251 243 230 / .94); max-width: 980px; box-sizing: border-box;
	margin: clamp(16px, 4vw, 40px) auto; border-radius: 14px; box-shadow: 0 10px 40px rgb(20 34 25 / .25);
}
/* Arriving from the stage, the painting is already in place; the page itself fades in on top. */
html.frwl-arrive .wp-site-blocks { animation: frwl-in .9s ease .1s both; }
@keyframes frwl-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { html.frwl-arrive .wp-site-blocks { animation: none; } }



/* Taps and clicks: no blue browser flash. Keyboard users get a gold ring in Hannah's palette instead. */
html { -webkit-tap-highlight-color: transparent; }
a, button, input, select, textarea, summary, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; box-shadow: none; }
:focus-visible { outline: 2px solid #c9a14a !important; outline-offset: 3px; }
.frwl-scroll:focus-visible, .frwl-gallery-card:focus-visible { outline: none !important; }
.frwl-scroll:focus-visible svg, .frwl-gallery-card:focus-visible .frwl-frame-wrap { outline: 2px solid #c9a14a !important; outline-offset: 3px; }
::selection { background: #f6d4c9; color: #2c4231; }

/* WordPress's keyboard "Skip to content" link: hidden until tabbed to, then shown in Hannah's palette. */
.skip-link.screen-reader-text:focus { background: #2c4231 !important; color: #fbf3e6 !important; border: 1px solid #c9a14a !important; border-radius: 999px; font-family: "Arapey", Georgia, serif; }
