/*
Theme Name: Mccu Studio
Theme URI: https://www.instagram.com/cam_mccu/
Author: MCCU LLC
Description: Gallery-minimal block theme for Mccu Studio, fine woodworking in Reno, Nevada.
Version: 1.4.1
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mccu-studio
*/

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* Sticky header */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.mccu-header { background: rgba(245, 244, 241, 0.95); border-bottom: 1px solid var(--wp--preset--color--line); }
.mccu-logo { margin: 0; font-family: var(--wp--preset--font-family--archivo); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.32em; }
.mccu-logo a { text-decoration: none; }
.mccu-nav { font-family: var(--wp--preset--font-family--archivo); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; }
.mccu-nav a { text-decoration: none; }
.mccu-nav .wp-block-navigation__container { gap: 2.25rem; }
.mccu-cta .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }
.mccu-logo, .mccu-cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) { .mccu-logo { font-size: 0.95rem; letter-spacing: 0.24em; } }
@media (max-width: 480px) {
	.mccu-header { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
	.mccu-logo { font-size: 0.8125rem; letter-spacing: 0.18em; }
	.mccu-cta .wp-block-button__link { font-size: 0.6875rem; letter-spacing: 0.12em; padding: 0.625rem 0.875rem; min-height: 40px; }
	.mccu-header .wp-block-group { gap: 0.75rem !important; }
}

/* Labels */
.mccu-label, figure .wp-element-caption em {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 0.75rem; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--wp--preset--color--muted); margin: 0;
}

/* Hero */
.mccu-hero .mccu-hero-image { margin-top: 0; margin-bottom: 0; }
/* Hero: never crop. The whole photo shows; on very wide screens the sides fill with a near-black that matches the photo's background. */
.mccu-hero .mccu-hero-image { background: #040404; }
.mccu-hero .mccu-hero-image img { width: 100%; height: min(66.667vw, 86vh) !important; aspect-ratio: auto !important; object-fit: contain !important; }
.mccu-hero-title { margin: 0; }
.mccu-lede { font-size: 1.1875rem; color: var(--wp--preset--color--body); max-width: 34em; }
.mccu-hero .wp-block-column { display: flex; flex-direction: column; gap: 1.25rem; }

/* Sections */
.mccu-section-head { border-top: 1px solid currentColor; padding-top: 1.25rem; margin-bottom: 3.5rem !important; }
.mccu-section-head h2 { margin: 0; }
#work > * + * { margin-block-start: 4.5rem; }
#work > .mccu-section-head + * { margin-block-start: 0; }
.mccu-mt { margin-top: 4.5rem !important; }

/* Photo grids: set the columns here so they don't depend on WordPress's grid math */
.mccu-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 4rem 2.5rem !important; }
#work .mccu-grid:has(> :nth-child(5)), #visit .mccu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
#sculpture .mccu-grid, #about .mccu-grid, #commissions .mccu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 2.5rem 2rem !important; }
.mccu-grid > * { margin: 0 !important; min-width: 0; }
@media (max-width: 1000px) {
	#work .mccu-grid:has(> :nth-child(5)), #visit .mccu-grid, #sculpture .mccu-grid, #about .mccu-grid, #commissions .mccu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
	.mccu-grid, #work .mccu-grid:has(> :nth-child(5)), #visit .mccu-grid, #commissions .mccu-grid { grid-template-columns: minmax(0, 1fr) !important; }
	#sculpture .mccu-grid, #about .mccu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.5rem 1rem !important; }
}
.mccu-grid .wp-block-image, .mccu-grid figure { margin: 0; }
.wp-block-image img { width: 100%; display: block; }
.wp-block-image .wp-element-caption {
	margin-top: 1rem; text-align: left;
	display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.mccu-small .wp-element-caption {
	font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin-top: 0.75rem;
}
.mccu-display { font-size: clamp(2rem, 4vw, 3rem) !important; font-weight: 300 !important; line-height: 1.1; }
.mccu-h-small { font-size: 2rem !important; line-height: 1.2; }
.mccu-inset { max-width: 360px; }
#sculpture p, #about p { color: var(--wp--preset--color--body); }

/* Solid wood note */
.mccu-wood-note > .wp-block-columns { border-top: 1px solid var(--wp--preset--color--ink); padding-top: 1.25rem; }
.mccu-wood-note p:not(.mccu-label) { color: var(--wp--preset--color--body); font-size: 1.0625rem; }
.mccu-wood-note h2 { margin-top: 1rem; }

/* Dark commissions section */
.mccu-dark .mccu-label { color: #B9B6AE; }
.mccu-dark p { color: #CFCCC4; }
.mccu-dark a { color: var(--wp--preset--color--paper); }
.mccu-dark .mccu-section-head { border-color: var(--wp--preset--color--paper); }
.mccu-dark .mccu-lede { color: var(--wp--preset--color--paper); font-family: var(--wp--preset--font-family--archivo); font-weight: 300; font-size: 1.375rem; max-width: 820px; margin-bottom: 4rem !important; }
.mccu-step { border-top: 1px solid #55534E; padding-top: 1.25rem; gap: 0.75rem !important; }
.mccu-step h3, .mccu-step p { margin: 0; }
.mccu-step p:not(.mccu-label) { font-size: 1rem; }
.mccu-inquire { margin-top: 7rem !important; }
.mccu-info { font-size: 1.1875rem; margin: 0; }

/* Inquiry form */
.mccu-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.mccu-form label { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: #CFCCC4; }
.mccu-form .mccu-full { grid-column: 1 / -1; }
.mccu-form input, .mccu-form select, .mccu-form textarea {
	font: inherit; font-size: 1rem; background: transparent; color: var(--wp--preset--color--paper);
	border: 0; border-bottom: 1px solid #8A877F; border-radius: 0; padding: 0.625rem 0; min-height: 44px; width: 100%; box-sizing: border-box;
}
.mccu-form select { background: var(--wp--preset--color--ink); }
.mccu-form input:focus, .mccu-form select:focus, .mccu-form textarea:focus { outline: none; border-bottom-color: var(--wp--preset--color--paper); }
.mccu-form button {
	justify-self: start; font-family: var(--wp--preset--font-family--archivo); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
	background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); border: 0; padding: 1rem 1.75rem; min-height: 48px; cursor: pointer;
}
.mccu-form button:hover { background: #D8D4CB; }
.mccu-form button:disabled { opacity: 0.6; cursor: default; }
.mccu-form .mccu-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mccu-form-notice { grid-column: 1 / -1; padding: 1rem 1.25rem; border: 1px solid #55534E; color: var(--wp--preset--color--paper); margin: 0; }
@media (max-width: 781px) { .mccu-form { grid-template-columns: minmax(0, 1fr); } .mccu-inquire { margin-top: 4rem !important; } }

/* Footer */
.mccu-footer { border-top: 1px solid var(--wp--preset--color--line); }
.mccu-footer .mccu-logo { font-size: 0.9375rem; }
.mccu-small-text { font-size: 0.875rem; color: var(--wp--preset--color--muted); margin: 0; }

/* ---------------------------------------------------------------
   Doorways: a photo that quietly links somewhere.
   In the editor: give the image the class "doorway" and a link.
   --------------------------------------------------------------- */
.doorway a { position: relative; display: block; overflow: hidden; }
.doorway img { transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .7s; }
.doorway a::after {
	content: ""; position: absolute; right: 14px; bottom: 14px; width: 26px; height: 26px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='11.6' fill='none' stroke='%23F5F4F1' stroke-width='1.4'/%3E%3Cpath d='M7.6 17.6V8.6l5.4 6.6 5.4-6.6v9' fill='none' stroke='%23F5F4F1' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); opacity: .85;
	transition: opacity .4s, transform .7s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) {
	.doorway a:hover img { transform: scale(1.03); filter: brightness(1.05); }
	.doorway a:hover::after { opacity: 1; transform: rotate(-12deg) scale(1.12); }
}

/* ---------------------------------------------------------------
   Motion page (templates/page-motion.html)
   --------------------------------------------------------------- */
.mccu-motion { --m-bg: #16181A; --m-ink: #ECE9E2; --m-mute: #8F8B84; --m-line: #34363A; --m-warm: #B4865C;
	background: var(--m-bg); color: var(--m-ink); font-family: var(--wp--preset--font-family--inter); }
.mccu-motion .m-label { font-family: var(--wp--preset--font-family--archivo); font-size: 0.75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--m-mute); margin: 0; }
.mccu-motion .m-intro { min-height: 82svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1.4rem; padding: 12vh 8vw; }
.mccu-motion .m-intro h1 { font-family: var(--wp--preset--font-family--archivo); font-weight: 300; font-size: clamp(3.5rem, 9vw, 7rem); line-height: .95; margin: 0; color: var(--m-ink); }
.mccu-motion .m-intro p { max-width: 32ch; color: #C9C5BC; margin: 0; }
.mccu-motion .m-cue { margin-top: 5vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mccu-motion .m-cue i { display: block; width: 1px; height: 56px; background: linear-gradient(var(--m-mute), transparent); animation: m-cue 2.4s ease-in-out infinite; }
@keyframes m-cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.mccu-motion .m-piece { min-height: 100svh; display: grid; place-items: center; padding: 6svh 0 12svh; }
.mccu-motion .m-frame { position: relative; width: min(86vw, 72svh); aspect-ratio: 1; }
.mccu-motion .m-frame.m-tall { width: min(86vw, calc(72svh * 9 / 16)); aspect-ratio: 9 / 16; }
.mccu-motion .m-frame.m-wide { width: min(86vw, calc(60svh * 16 / 9)); aspect-ratio: 16 / 9; }
.mccu-motion video { width: 100%; height: 100%; display: block; object-fit: cover; background: #2A2D30; opacity: 0; transition: opacity .9s ease; }
.mccu-motion .m-piece.is-in video { opacity: 1; }
.mccu-motion .m-meta { position: absolute; left: 0; right: 0; top: calc(100% + 18px); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.mccu-motion .m-meta h2 { font-family: var(--wp--preset--font-family--archivo); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; margin: 0; color: var(--m-ink); }
.mccu-motion .m-bar { position: absolute; left: 0; right: 0; top: calc(100% + 6px); height: 1px; background: var(--m-line); }
.mccu-motion .m-bar b { display: block; height: 100%; width: 0; background: var(--m-warm); }
@media (min-width: 900px) {
	.mccu-motion .m-frame { width: min(58vw, 76svh); }
	.mccu-motion .m-frame.m-tall { width: min(40vw, calc(80svh * 9 / 16)); }
	.mccu-motion .m-frame.m-wide { width: min(62vw, calc(70svh * 16 / 9)); }
	.mccu-motion .m-meta { top: auto; bottom: 0; left: auto; right: calc(100% + 40px); width: 280px; flex-direction: column; align-items: flex-end; text-align: right; gap: 10px; }
	.mccu-motion .m-bar { top: 0; bottom: 0; left: auto; right: -14px; width: 1px; height: auto; }
	.mccu-motion .m-bar b { width: 100%; height: 0; }
}
.mccu-motion .m-outro { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1.4rem; padding: 12vh 8vw; border-top: 1px solid var(--m-line); }
.mccu-motion .m-outro h2 { font-family: var(--wp--preset--font-family--archivo); font-weight: 300; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.08; max-width: 18ch; margin: 0; color: var(--m-ink); }
.mccu-motion .m-links { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
.mccu-motion .m-links a { color: var(--m-ink); text-decoration: none; border-bottom: 1px solid var(--m-warm); padding-bottom: 4px; font-family: var(--wp--preset--font-family--archivo); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.mccu-motion .m-links a:hover { color: var(--m-warm); }
@media (prefers-reduced-motion: reduce) { .mccu-motion .m-cue i { animation: none; } }

/* Full-width landscape between Commissions and Visit */
.mccu-landscape { margin-top: 0 !important; margin-bottom: 0 !important; }
.mccu-landscape img { display: block; width: 100%; object-position: 60% 50%; }
@media (max-width: 600px) { .mccu-landscape img { aspect-ratio: 4 / 3 !important; } }

/* Carving photo under "Start a commission" */
.mccu-commission-photo { margin: 0 !important; max-width: 460px; margin-left: auto !important; }
@media (max-width: 781px) { .mccu-commission-photo { margin: 2rem 0 0 !important; } }
.mccu-email-note { color: #C9C5BC; }
.mccu-email-buttons { margin-top: 2rem !important; }
.mccu-email-button .wp-block-button__link { background: var(--wp--preset--color--paper, #F5F4F1) !important; color: var(--wp--preset--color--ink, #1A1A18) !important; border-radius: 0; padding: 1rem 1.75rem; font-family: var(--wp--preset--font-family--archivo); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.mccu-email-button .wp-block-button__link:hover { opacity: .85; }
.mccu-email-address { margin-top: 1rem !important; font-size: .875rem; color: #A8A39A; letter-spacing: .02em; user-select: all; }
