/* The Cote Photo — theme styles
   Visual idea: the site is framed like an aerial survey negative —
   fiducial corner marks, a data strip, and a photo that "develops" once on load. */

body { -webkit-font-smoothing: antialiased; }

:focus-visible { outline: 2px solid var(--wp--preset--color--signal); outline-offset: 3px; }

.cote-main p a:not(.wp-element-button),
.cote-main li a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }

.cote-header {
	background: color-mix(in srgb, var(--wp--preset--color--ink) 92%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--rule);
	padding-block: 0.9rem;
}
.cote-header .wp-block-site-title a { text-decoration: none; }
.cote-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--mist); }
.cote-header .wp-block-navigation a:hover,
.cote-header .wp-block-navigation .current-menu-item a { color: var(--wp--preset--color--paper); }
.cote-header .cote-nav-watch a { color: var(--wp--preset--color--signal); }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--paper) !important;
	font-size: 1.35rem;
}

/* ---------- Hero ---------- */
.cote-hero { padding-block: clamp(3rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem); }
.cote-kicker {
	font-family: var(--wp--preset--font-family--plex);
	color: var(--wp--preset--color--mist);
	font-size: 1rem;
	margin: 0;
}
.cote-hero .cote-title {
	font-size: clamp(3.25rem, 12vw, 9.5rem);
	font-weight: 300;
	line-height: 0.9;
	letter-spacing: -0.03em;
	margin-block: 0.15em 0.35em;
}
.cote-lead { font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.45; max-width: 32em; }

/* Survey frame: corner fiducials drawn with backgrounds, edge crosshairs with pseudo-elements */
.cote-frame {
	--f: var(--wp--preset--color--mist);
	--l: clamp(18px, 3vw, 34px);
	position: relative;
	padding: clamp(16px, 3.2vw, 40px);
	margin-top: clamp(2.5rem, 6vw, 5rem) !important;
	background:
		linear-gradient(var(--f), var(--f)) top left / var(--l) 1px no-repeat,
		linear-gradient(var(--f), var(--f)) top left / 1px var(--l) no-repeat,
		linear-gradient(var(--f), var(--f)) top right / var(--l) 1px no-repeat,
		linear-gradient(var(--f), var(--f)) top right / 1px var(--l) no-repeat,
		linear-gradient(var(--f), var(--f)) bottom left / var(--l) 1px no-repeat,
		linear-gradient(var(--f), var(--f)) bottom left / 1px var(--l) no-repeat,
		linear-gradient(var(--f), var(--f)) bottom right / var(--l) 1px no-repeat,
		linear-gradient(var(--f), var(--f)) bottom right / 1px var(--l) no-repeat;
}
.cote-frame::before,
.cote-frame::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 15px;
	height: 15px;
	transform: translateX(-50%);
	background:
		linear-gradient(var(--f), var(--f)) center / 100% 1px no-repeat,
		linear-gradient(var(--f), var(--f)) center / 1px 100% no-repeat;
}
.cote-frame::before { top: 2px; }
.cote-frame::after { bottom: 2px; }
.cote-frame .wp-block-image { margin: 0; }
.cote-frame .wp-block-image img { display: block; width: 100%; height: auto; animation: cote-develop 2.6s ease-out both; }
@keyframes cote-develop {
	from { opacity: 0; filter: brightness(2.2) contrast(0.5) grayscale(1); }
	to { opacity: 1; filter: none; }
}

.cote-strip {
	font-family: var(--wp--preset--font-family--plex);
	font-size: 0.85rem;
	color: var(--wp--preset--color--mist);
	gap: 0.4rem 2.5rem !important;
	margin-top: 1rem !important;
}
.cote-strip p { margin: 0; }

/* ---------- Sections ---------- */
.cote-section { padding-block: clamp(3.5rem, 9vw, 7.5rem); border-top: 1px solid var(--wp--preset--color--rule); }
.cote-section--deep { background: var(--wp--preset--color--deep); border-top-color: transparent; }
.cote-section > h2:first-child,
.cote-section > .wp-block-heading:first-child { margin-top: 0; }
.cote-muted { color: var(--wp--preset--color--mist); }
.cote-small { font-family: var(--wp--preset--font-family--plex); font-size: 0.9rem; color: var(--wp--preset--color--mist); }

.wp-block-quote.cote-quote { border: 0; padding: 0; margin-inline: 0; }
.cote-quote p {
	font-size: clamp(1.6rem, 4vw, 2.75rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1.22;
}
.cote-quote cite {
	display: block;
	margin-top: 1.25rem;
	font-family: var(--wp--preset--font-family--plex);
	font-style: normal;
	font-size: 0.95rem;
	color: var(--wp--preset--color--mist);
}

.wp-block-embed { margin-top: 2rem; }

/* Links into the rest of the site */
.cote-paths { gap: 0 2.5rem !important; margin-top: 2.5rem; }
.cote-paths .wp-block-column {
	position: relative;
	border-top: 1px solid var(--wp--preset--color--rule);
	padding-top: 1.25rem;
	padding-bottom: 2rem;
}
.cote-paths h3 { margin-top: 0; }
.cote-paths h3 a { text-decoration: none; }
.cote-paths h3 a::after { content: ""; position: absolute; inset: 0; }
.cote-paths .wp-block-column:hover h3 a,
.cote-paths .wp-block-column:focus-within h3 a { color: var(--wp--preset--color--signal); }
.cote-paths .wp-block-column:hover { border-top-color: var(--wp--preset--color--signal); }
.cote-paths p { color: var(--wp--preset--color--mist); margin-top: 0.5rem; }

/* ---------- Pricing ---------- */
.cote-prices { gap: 1.5rem !important; margin-top: 2.5rem; }
.cote-price {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--wp--preset--color--rule);
	padding: 1.75rem;
}
.cote-price--featured { border-color: var(--wp--preset--color--signal); }
.cote-price h3 { margin: 0; }
.cote-price-flag {
	font-family: var(--wp--preset--font-family--plex);
	color: var(--wp--preset--color--signal);
	font-size: 0.9rem;
	margin: 0 0 0.4rem !important;
}
.cote-price-amount { font-size: 2.75rem; font-weight: 300; line-height: 1; margin-top: 0.75rem !important; }
.cote-price-term { font-family: var(--wp--preset--font-family--plex); color: var(--wp--preset--color--mist); margin-top: 0.35rem !important; }
.cote-price ul { font-size: 1rem; color: var(--wp--preset--color--mist); padding-left: 1.1em; margin-bottom: 1.75rem; }
.cote-price .wp-block-buttons { margin-top: auto; }
.cote-price .wp-block-button,
.cote-price .wp-block-button__link { width: 100%; }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--paper);
	border: 1px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { color: var(--wp--preset--color--signal); }

/* ---------- Signup ---------- */
.cote-signup .cote-embed { margin-top: 1.5rem; }
.cote-signup .cote-embed iframe { width: 100%; border: 0; }

/* Marked for Megan: anything with this class must be replaced before launch */
.cote-note {
	border: 1px dashed var(--wp--preset--color--signal);
	padding: 1rem 1.25rem;
	color: var(--wp--preset--color--signal);
	font-family: var(--wp--preset--font-family--plex);
	font-size: 0.95rem;
}

/* ---------- Inner pages ---------- */
.cote-page-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 3vw, 2.5rem); }
.cote-page-head h1 { margin-block: 0.2em 0.4em; }
.cote-page-body { padding-bottom: clamp(3.5rem, 9vw, 7rem); }

/* ---------- Footer ---------- */
.cote-footer {
	border-top: 1px solid var(--wp--preset--color--rule);
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
	font-size: 1rem;
	color: var(--wp--preset--color--mist);
}
.cote-footer-title { font-size: 1.5rem; color: var(--wp--preset--color--paper); margin-bottom: 0.5rem; }
.cote-footer-label { font-family: var(--wp--preset--font-family--plex); color: var(--wp--preset--color--paper); margin-bottom: 0.5rem; }
.cote-footer-list { list-style: none; padding: 0; margin: 0; }
.cote-footer-list li { margin: 0.3rem 0; }
.cote-footer a { text-decoration: none; }
.cote-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.cote-footer-base {
	font-family: var(--wp--preset--font-family--plex);
	font-size: 0.85rem;
	border-top: 1px solid var(--wp--preset--color--rule);
	padding-top: 1.5rem;
	margin-top: 3rem !important;
}

@media (prefers-reduced-motion: reduce) {
	.cote-frame .wp-block-image img { animation: none; }
}
