/*
Theme Name: Collyer
Theme URI: https://collyer.co
Author: Collyer
Description: A clean, luxurious block theme for Collyer — founder retreats, resources and recruiting. Tropical illustrations, ivory and gold palette, Cormorant Garamond and Jost type. Ships with a Recess retreat homepage and patterns for Retreats, Resources, Recruiting and Sponsors pages.
Requires at least: 6.6
Tested up to: 7.2
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: collyer
Tags: full-site-editing, block-patterns, block-styles, custom-colors, custom-menu, editor-style, one-column, wide-blocks, translation-ready
*/

/* ---------- Base refinements ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--gold-light); color: var(--wp--preset--color--ink); }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color .2s ease; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- Eyebrow text (paragraph style) ---------- */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.has-palm-background-color .is-style-eyebrow,
.has-ink-background-color .is-style-eyebrow { color: var(--wp--preset--color--gold-light); }

/* ---------- Gold rule ornament ---------- */
.is-style-gold-ornament {
	border: 0 !important;
	height: 14px !important;
	max-width: 160px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	background:
		linear-gradient(var(--wp--preset--color--gold-light), var(--wp--preset--color--gold-light)) left center / 42% 1px no-repeat,
		linear-gradient(var(--wp--preset--color--gold-light), var(--wp--preset--color--gold-light)) right center / 42% 1px no-repeat;
	position: relative;
	opacity: 1 !important;
}
.is-style-gold-ornament::after {
	content: "";
	position: absolute; left: 50%; top: 50%;
	width: 7px; height: 7px;
	transform: translate(-50%, -50%) rotate(45deg);
	border: 1px solid var(--wp--preset--color--gold);
}
.is-style-gold-ornament.alignleft, .is-style-gold-ornament.is-left { margin-left: 0 !important; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline-gold .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--palm);
	border: 1px solid var(--wp--preset--color--gold);
}
.wp-block-button.is-style-outline-gold .wp-block-button__link:hover,
.wp-block-button.is-style-outline-gold .wp-block-button__link:focus {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-light .wp-block-button__link {
	background: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--palm);
	border-color: var(--wp--preset--color--ivory);
}
.wp-block-button.is-style-light .wp-block-button__link:hover { background: var(--wp--preset--color--gold-light); border-color: var(--wp--preset--color--gold-light); color: var(--wp--preset--color--ink); }
.wp-block-button__link { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }

/* ---------- Text link with arrow ---------- */
.is-style-arrow-link a {
	text-decoration: none;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--wp--preset--color--gold);
	padding-bottom: 4px;
}
.is-style-arrow-link a::after { content: " \2192"; transition: margin-left .2s ease; }
.is-style-arrow-link a:hover::after { margin-left: 4px; }

/* ---------- Cards ---------- */
.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--shell);
	transition: transform .35s ease, box-shadow .35s ease;
}
.is-style-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(43,39,35,.35); }
.is-style-card .wp-block-image { margin: 0; }
.is-style-card .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Framed image: thin gold inset frame */
.wp-block-image.is-style-gold-frame { position: relative; }
.wp-block-image.is-style-gold-frame::after {
	content: ""; position: absolute; inset: 14px;
	border: 1px solid rgba(251,247,241,.85);
	pointer-events: none;
}
.wp-block-image.is-style-arch img { border-radius: 999px 999px 0 0; }

/* ---------- Header ---------- */
.collyer-header { border-bottom: 1px solid rgba(176,141,87,.25); }
.collyer-header--overlay {
	position: absolute; top: 0; left: 0; right: 0; z-index: 20;
	border-bottom: 1px solid rgba(43,39,35,.08);
}
.admin-bar .collyer-header--overlay { top: 32px; }
@media (max-width: 782px) { .admin-bar .collyer-header--overlay { top: 46px; } }
.collyer-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--ivory);
	padding: 2rem;
}
.collyer-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.5rem; }

/* Wordmark tagline under site title */
.collyer-tagline { margin-top: -0.35rem !important; }

/* ---------- Hero ---------- */
.collyer-hero { min-height: min(100vh, 920px); }
.collyer-hero .wp-block-cover__inner-container { max-width: 900px; }
.collyer-hero h1 { text-wrap: balance; }

/* ---------- Event detail strip ---------- */
.collyer-details > .wp-block-column { border-left: 1px solid var(--wp--preset--color--gold-light); padding-left: 1.5rem; }
.collyer-details > .wp-block-column:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 781px) {
	.collyer-details > .wp-block-column { border-left: 0; padding-left: 0; border-top: 1px solid var(--wp--preset--color--gold-light); padding-top: 1.25rem; }
	.collyer-details > .wp-block-column:first-child { border-top: 0; padding-top: 0; }
}

/* Numbered steps */
.collyer-step-num {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	color: var(--wp--preset--color--gold);
	line-height: 1 !important;
}

/* Decorative frond ornaments */
.collyer-ornament { pointer-events: none; }
.collyer-ornament img { opacity: .55; }

/* Details / FAQ */
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.4rem;
	cursor: pointer;
	list-style: none;
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	color: var(--wp--preset--color--palm);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--body); font-weight: 300; color: var(--wp--preset--color--gold); font-size: 1.5rem; transition: transform .25s ease; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }

/* Social icons */
.wp-block-social-links.is-style-logos-only .wp-social-link { color: currentColor; }

/* Footer */
.collyer-footer a { text-decoration: none; }
.collyer-footer a:hover { color: var(--wp--preset--color--gold-light); }

/* Forms (works with most form plugins) */
.collyer-form input[type="text"], .collyer-form input[type="email"], .collyer-form input[type="url"], .collyer-form textarea, .collyer-form select,
.wpforms-container input[type="text"], .wpforms-container input[type="email"], .wpforms-container textarea {
	width: 100%;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--shell);
	padding: .85rem 1rem;
	font-family: inherit; font-size: 1rem; font-weight: 300;
	color: var(--wp--preset--color--ink);
}
.collyer-form input:focus, .collyer-form textarea:focus { outline: 1px solid var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); }

/* Posts */
.wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; }
.wp-block-post-template.is-layout-grid { gap: 2.5rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

.collyer-footer ul { list-style: none; }
.collyer-footer .wp-block-site-title { margin-bottom: .5rem; }

/* Gold checklist */
.collyer-checklist { list-style: none; padding-left: 0; }
.collyer-checklist li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; }
.collyer-checklist li::before {
	content: ""; position: absolute; left: 0; top: .65em;
	width: 10px; height: 10px; transform: rotate(45deg);
	border: 1px solid var(--wp--preset--color--gold);
}

/* Mobile header */
@media (max-width: 600px) {
	.collyer-header-cta, .collyer-tagline { display: none !important; }
	.collyer-header .wp-block-site-title { font-size: 1.5rem !important; letter-spacing: 0.22em; }
}
