/*
Theme Name: Hunza Folk
Theme URI: https://hunzafolk.com
Author: Hunza Folk
Description: Dark, music-first block theme for the Hunza Folk archive. Pairs with the Hunza Folk Music plugin.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.0.3
License: GPL-2.0-or-later
Text Domain: hunzafolk-theme
*/

body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.wp-block-site-logo, .wp-block-site-logo a { max-width: 40px; }
.wp-block-site-logo img, .wp-block-site-logo .custom-logo { width: 40px !important; max-width: 40px !important; height: auto; contain-intrinsic-size: 40px 41px; }
:where(h1, h2, h3) { font-stretch: 112%; text-wrap: balance; }
:where(h1) { font-stretch: 118%; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.has-global-padding { padding-left: max(var(--wp--style--root--padding-left), env(safe-area-inset-left, 0px)); padding-right: max(var(--wp--style--root--padding-right), env(safe-area-inset-right, 0px)); }

/* Painted bands of a Hunza dadang */
.hf-stripe { height: 4px; background: linear-gradient(90deg, var(--wp--preset--color--drum-red) 0 25%, var(--wp--preset--color--accent) 25% 50%, var(--wp--preset--color--drum-green) 50% 75%, var(--wp--preset--color--drum-blue) 75% 100%); }

.wp-site-blocks > * + * { margin-block-start: 0; }

/* Header: sticky on the template-part wrapper, dadang stripe painted across the top edge */
.hf-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; padding-top: 4px; background:
  linear-gradient(90deg, var(--wp--preset--color--drum-red) 0 25%, var(--wp--preset--color--accent) 25% 50%, var(--wp--preset--color--drum-green) 50% 75%, var(--wp--preset--color--drum-blue) 75% 100%) top / 100% 4px no-repeat,
  rgba(16, 15, 13, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(243, 236, 224, 0.09); }
.admin-bar .hf-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .hf-header { top: env(safe-area-inset-top, 0px); } }
body::before { content: ""; position: fixed; inset: 0 0 auto; z-index: 101; height: env(safe-area-inset-top, 0px); background: var(--wp--preset--color--base); }
.hf-header-in { min-height: 64px; gap: 28px; }
.hf-header .wp-block-site-logo img { width: 40px; height: auto; }
.hf-header .wp-block-navigation { flex: 1; }
.hf-header .wp-block-navigation a:hover, .hf-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--contrast) !important; }
.hf-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--contrast) !important; }
.hf-header .wp-block-button__link { padding: 0.6rem 1.15rem; }
@media (max-width: 600px) { .hf-header .wp-block-site-title { display: none; } }

/* Footer */
.hf-footer { border-top: 1px solid rgba(243, 236, 224, 0.09); }
.hf-footer-small { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--subtle); }

/* Support band */
.hf-support { background:
  linear-gradient(90deg, var(--wp--preset--color--drum-red) 0 25%, var(--wp--preset--color--accent) 25% 50%, var(--wp--preset--color--drum-green) 50% 75%, var(--wp--preset--color--drum-blue) 75% 100%) top / 100% 4px no-repeat,
  var(--wp--preset--color--base-2); }
.hf-support .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .hf-support .wp-block-buttons { justify-content: flex-start; } }

/* Kicker / eyebrow */
.hf-kicker { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.hf-kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--accent); margin-right: 10px; vertical-align: 1px; }

/* Facts row */
.hf-facts { border-top: 1px solid rgba(243, 236, 224, 0.1); padding-top: 22px; }
.hf-facts .wp-block-column p:first-child { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; font-stretch: 112%; line-height: 1; margin: 0; }
.hf-facts .wp-block-column p:last-child { font-size: 0.8125rem; color: var(--wp--preset--color--muted); margin: 6px 0 0; }

/* Archive images */
.hf-archive-photo img { filter: grayscale(1) contrast(1.05); border-radius: 6px; }

/* Outline button style */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1px solid rgba(243, 236, 224, 0.3); color: var(--wp--preset--color--contrast); background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--contrast); }

/* Content pages */
.hf-page-head { padding-top: var(--wp--preset--spacing--60); }
.wp-block-post-content > p, .wp-block-post-content > ul, .wp-block-post-content > ol { color: var(--wp--preset--color--soft); }
.wp-block-table td, .wp-block-table th { border-color: rgba(243, 236, 224, 0.12); }
.hf-instrument-photo img { border-radius: 8px; aspect-ratio: 9 / 16; object-fit: cover; }
@media (min-width: 782px) { .hf-instrument-photo { position: sticky; top: 96px; } }
input, textarea, select { background: var(--wp--preset--color--base-2); color: var(--wp--preset--color--contrast); border: 1px solid rgba(243, 236, 224, 0.2); border-radius: 6px; }
.wp-block-search__input { padding: 0.7rem 1rem; }

.hf-footer-links { margin-top: var(--wp--preset--spacing--30); }
.hf-footer-links a { color: var(--wp--preset--color--muted); text-decoration: none; }
.hf-footer-links a:hover { color: var(--wp--preset--color--contrast); }
