/*
Theme Name: ITHINK UWOOD
Theme URI: https://ithinkuwood.com
Author: ITHINK UWOOD Inc.
Description: Custom block theme for ITHINK UWOOD: news, products and insight from the wood industry.
Version: 1.0.3
Requires at least: 6.5
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: ithinkuwood
*/

/* Small refinements theme.json can't express. */
.ituw-kicker { letter-spacing: 0.22em; text-transform: uppercase; }
.ituw-card { transition: transform .15s ease; }
.ituw-card:hover { transform: translateY(-2px); }
.ituw-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; }
.ituw-card .wp-block-post-terms a { text-decoration: none; }
.ituw-header .wp-block-navigation a { text-decoration: none; }
.ituw-header .wp-block-navigation a:hover { color: var(--wp--preset--color--oak-deep); }
.ituw-logo img { display: block; height: 34px; width: auto; }
.ituw-footer-logo img { display: block; height: 28px; width: auto; }
.ituw-logo svg { display: block; height: 34px; width: auto; }
.ituw-footer-logo svg, .ituw-lockup { display: block; width: auto; }
.ituw-footer-logo svg { height: 28px; }
.ituw-hero { background-image: repeating-linear-gradient(-30deg, transparent 0 46px, rgba(201,168,119,.09) 46px 58px); }
.wp-block-post-content a { text-underline-offset: 3px; }
@media (max-width: 600px) {
  .ituw-logo img, .ituw-logo svg { height: 26px; }
}

/* Keep the footer at the bottom on short pages, with breathing room above it. */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group:has(> main) { flex: 1 0 auto; }
.wp-site-blocks > main { flex: 1 0 auto; padding-bottom: clamp(3rem, 8vw, 6rem); }
.wp-site-blocks > footer { margin-top: 0 !important; }
.wp-site-blocks > footer > .wp-block-group { margin-top: 0 !important; }

/* Branded card used when a post has no photo. */
.ituw-placeholder {
	display: flex; align-items: flex-end; aspect-ratio: 16 / 10; border-radius: 3px; padding: 1rem 1.1rem;
	background-color: var(--wp--preset--color--espresso);
	background-image:
		linear-gradient(90deg, transparent calc(50% - 2px), rgba(0,0,0,.35) calc(50% - 2px), rgba(0,0,0,.35) calc(50% + 2px), transparent calc(50% + 2px)),
		repeating-linear-gradient(-30deg, transparent 0 26px, rgba(201,168,119,.28) 26px 36px);
	text-decoration: none;
}
.ituw-placeholder span {
	color: var(--wp--preset--color--pale-oak); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
