/* The three @import rules that were here are now enqueued in functions.php.
   @import loads stylesheets serially, blocking each on the previous, and
   normalize was additionally <link>ed in header.php so it loaded twice. */

/*
Theme Name: HM Magazine 2027
Theme URI: https://hmmagazine.com
Description: Custom theme for HM Magazine. A refactor of HM Magazine 2021 with identical output: the same markup, assets and layout, reorganised into inc/ modules and template-parts/ so that repeated blocks exist once. Verified against the 2021 theme across 21 URLs.
Author: David Stagg
Author URI: https://davidstagg.com
Version: 5.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hm2027
*/

/*
 * The theme name had to change. Both directories declared "HM Magazine 2021",
 * and WordPress identifies themes by directory rather than by this header, so
 * the site worked — but Appearance > Themes listed two entries with the same
 * name and no way to tell which was which. Picking the wrong one is a live-site
 * mistake with no undo button.
 *
 * The http:// URLs were also updated to https://; the site has been served over
 * TLS for years.
 *
 * Only the header changed. Every rule below it, and every other asset in the
 * theme — all CSS, JS, images and fonts — is byte-identical to hm2021,
 * confirmed by comparing every non-PHP file in both directories.
 */

:root {
	--black: #000000;
	--primary: #d90000;
	--white: #FFFFFF;
	--grey-70: #3B3C3E;
	--grey-50: #7E7F82;
    --grey-20: #e5dfe0;
	--light-grey: #f5f1f2;
	
    --header-height-device: 52px;
    
    --undercut-line: .8;
    --straight-line: 1;
    --std-line: 1.2;
    --high-line: 1.4;
    --wide-line: 1.7;
    
    --xl-text: 2.7rem;
    --large-text: 2.3rem;
    --mid-text: 1.8rem;
    --smedium-text: 1.6rem;
    --root-text: 1.3rem;
    --small-text: 1rem;
    --xs-text: .8rem;
}

html { margin: 0; padding: 0; font-size: 16px; font-weight: 400; font-style: normal; font-family: 'Literata',serif; line-height: var(--std-line); }
body, fieldset { border: 0; margin: 0; padding: 0; }
button,input,select,textarea { color: var(--primary); }
button { cursor: pointer; }
::-moz-selection{background:var(--primary);color:var(--light-grey);text-shadow:none}
::selection{background:var(--primary);color:var(--light-grey);text-shadow:none}
.screenreader { clip: rect(1px, 1px, 1px, 1px); color: transparent; height: 1px; left: -10000px; overflow: hidden; position: absolute; top: auto; width: 1px; }

hr, hr.wp-block-separator { display: block; border-width: 1px 0 0; border-style: solid; border-color: var(--primary); margin: 48px 0; padding: 0; }
audio, canvas, iframe, img, svg, video { vertical-align: middle; }
img { height: auto; width: 100%; }
textarea { resize: vertical; }
figure, figure.wp-block-image { position: relative; margin: 16px 0; }
figure a, figure.wp-block-image a { display: block; }
figure figcaption, figure.wp-block-image figcaption { color: var(--black); margin: 0; padding: 8px; text-align: right; background-color: var(--grey-20); }
figure figcaption a, figure.wp-block-image figcaption a { display: inline; }

em { font-style: italic; }
strong { font-style: normal; font-weight: 700; }
strong em { font-style: italic; font-weight: 700; }

a { color: var(--grey-70); font-weight: bold; outline: 0; text-decoration: none; border-bottom: 2px solid var(--primary); -webkit-transition-property: all; transition-property: all; -webkit-transition-duration: .3s; transition-duration: .3s; -webkit-transition-timing-function: ease; transition-timing-function: ease; }
a:hover, a:focus { color: var(--black); border-color: var(--black); outline: 0; }
a.btn { display: inline-block; border: none; }
a.btn-fancy:link, a.btn-fancy:visited { position: relative; cursor: pointer; border: none; padding: 14px; overflow: hidden; transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1); color: var(--white); background-color: var(--primary); font-size: var(--xs-text); font-family: 'IBM Plex Mono',monospace; text-transform: uppercase; }
a.btn-fancy:hover { color: #fff; background-color: var(--black); }

small, .pre, code, kbd, pre, samp, figcaption, .wp-caption-text, .wp-pagenavi { font-size: var(--xs-text); display: block; text-transform: uppercase; font-weight: 700; line-height: var(--std-line); color: var(--grey-50); font-family: 'IBM Plex Mono', monospace; }
p.meta small { line-height: var(--wide-line); }
p.wp-caption-text { margin-top: 8px; }
.pre { display: inline; }

blockquote { margin: 0; padding: 0 32px; font-size: var(--root-text); color: var(--grey-50); position: relative; z-index: 2; font-family: 'Literata',serif; border-width: 0 0 0 4px; border-style: solid; border-color: var(--primary); }
blockquote:before, blockquote:after { content: ''; }
blockquote:before { font-family: 'Grenze',serif; content: '\201C'; font-size: 200px; line-height: 0; color: var(--grey-20); position: absolute; left: 0; top: 48px; z-index: -1; opacity: .5; }
blockquote p { margin: 16px 0; }
blockquote p:first-child { margin-top: 0; }
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; font-family: 'Literata',serif; position: relative; color: var(--grey-70); font-size: var(--small-text); font-style: normal; padding-left: 24px; }
blockquote cite:before { position: absolute; left: 0; content: '\2020\00A0'; }

p, ul, ol { margin: 32px 0; line-height: var(--wide-line); }
ul, ol { padding: 0 0 0 24px; }
ul ul, ul ol, ol ol, ol ul { margin: 16px 0 16px 24px; }
li { margin: 8px 0; padding: 0; }
dl, dt, dd { margin: 0; padding: 0; }

h1, h2, h3, h4,
h1 a, h2 a, h3 a, h4 a { font-family: 'Archivo Black',sans-serif; color: var(--black); text-decoration: none; line-height: 1; }
h1 a, h2 a, h3 a, h4 a { border: none; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { color: var(--primary); }

h1 { font-size: var(--large-text); }
h2 { font-size: var(--mid-text); }
.home h2 { font-size: var(--large-text); }
h3 { font-size: var(--root-text) }
h4 { font-size: var(--small-text); }
h1, h2, h3, h4 { margin: 40px 0 32px; }
h2, h3, h4 { line-height: var(--std-line); }

.center { text-align: center; }
.widget { margin: 48x 0; }
.ease { -webkit-transition-property: all; transition-property: all; -webkit-transition-duration: .3s; transition-duration: .3s; -webkit-transition-timing-function: ease; transition-timing-function: ease; }

/**
HEADER
**/

header { position: sticky; position: -webkit-sticky; top: 0; border-style: solid; border-width: 0 0 1px; border-color: var(--black); display: grid; grid: auto auto / 1fr 1fr; align-items: center; z-index: 9; padding: 8px; }

a.logo { display: block; border-bottom: 0; }
a.logo svg { fill: var(--black); stroke-width: 0; enable-background:new 0 0 60 36; }
a.logo:hover svg { fill: var(--primary); }

.menu-wrap { text-align: right; }
.header-btn { background-color: transparent; border: 0; padding: 4px 8px; }
.header-btn:active { outline: none; }
.header-btn .main-menu-icon,
.header-btn .close-icon { color: var(--primary); display: block; font-size: 23px; speak: none; line-height: 1; }
.header-btn .main-menu-icon:before,
.header-btn .close-icon:after { display: inline-block; width: 22px; height: 28px; }
.header-btn .main-menu-icon:before { content: "\2630"; }
.header-btn .close-icon:after { content: "\2715"; font-weight: bold; color: var(--white); }

.nav-background { background-color: var(--black); height: 100vh; width: 100vw; position: fixed; right: 0; top: 0; opacity: 0; z-index: 200; pointer-events: none; -webkit-transition: opacity .3s ease; transition: opacity .3s ease; }
.nav-open .nav-background { opacity: .1; pointer-events: all; }
.nav { background-color: var(--primary); color: var(--white); position: fixed; top: 0; width: 100vw; height: 100vh; z-index: 666; overflow-y: scroll; pointer-events: none; overflow-x: hidden; -webkit-transform: scaleX(0); transform: scaleX(0); -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; -webkit-transition: -webkit-transform .3s cubic-bezier(.19,1,.22,1) 150ms; transition: -webkit-transform .3s cubic-bezier(.19,1,.22,1) 150ms; transition: transform .3s cubic-bezier(.19,1,.22,1) 150ms; transition: transform .3s cubic-bezier(.19,1,.22,1) 150ms,-webkit-transform .3s cubic-bezier(.19,1,.22,1) 150ms; }
.nav-open .nav { pointer-events: all; -webkit-transform: scaleX(1); transform: scaleX(1); -webkit-transition: -webkit-transform .3s cubic-bezier(.19,1,.22,1); transition: -webkit-transform .3s cubic-bezier(.19,1,.22,1); transition: transform .3s cubic-bezier(.19,1,.22,1); transition: transform .3s cubic-bezier(.19,1,.22,1),-webkit-transform .3s cubic-bezier(.19,1,.22,1); }
.nav-wrapper { position: relative; opacity: 0; -webkit-transition: opacity 100ms ease-in; transition: opacity 100ms ease-in; }
.nav-header { padding: 8px; text-align: right; }
.nav-open .nav-wrapper { opacity: 1; z-index: 2; -webkit-transition: opacity .3s ease-in 200ms; transition: opacity .3s ease-in 200ms; }
.nav-wrapper ul { display: none; text-align: left; margin: 0; padding: 0; list-style: none; background-color: var(--primary); }
.nav-open .nav-wrapper ul { display: block; margin-bottom: 24px; }
.nav-wrapper ul li { margin: 0; padding: 0; }
.nav-wrapper ul li a { display: block; border: none; padding: 8px 12px; color: var(--white); font-family: 'IBM Plex Mono', monospace; }
nav .search {  }
nav form input[type="search"] { font-family: 'IBM Plex Mono', monospace; display: block; width: 100%; padding: 16px 12px; line-height: 1; border: 0; background-color: var(--primary); color: var(--white); }
nav ::placeholder { color: var(--white); }
nav form input[type="search"]:focus,
nav form input[type="search"]:active { outline: none; background-color: var(--light-grey); color: var(--black); }
nav form input[type="search"]:focus::placeholder { color: var(--black); }



/**
GLOBAL SHARED
**/

/* classes */
p.upper-meta { margin: 32px 0 24px; padding: 0 8px; font-size: var(--mid-text); line-height: var(--straight-line); font-style: oblique; }
p.meta { display: flex; justify-content: space-between; margin: 16px 0; line-height: var(--wide-line); }
p.exclusive-badge { margin: -8px 0 0 -8px; font-family: 'Archivo Black',sans-serif; background-color: var(--primary); color: var(--white); padding: 8px; font-size: var(--xs-text); line-height: var(--straight-line); text-transform: uppercase; width: calc(100% + 16px); }
.single p.exclusive-badge { margin: 16px -8px; }
p.archive-link { margin: 32px 8px 0; font-size: var(--xs-text); }
p.archive-link a.btn-fancy { display: block; text-align: right; }
p.archive-link a.btn-fancy span { font-weight: 700; position: relative; display: inline-block; top: -1px; }

.grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; }
.grid .grid-item { flex-basis: 50%; }
.wp-caption p.wp-caption-text { margin: 8px; }

/* sharerer */
.sharerer { display: flex; line-height: 1; grid-auto-rows: 42px; grid-auto-columns: 42px; }
.sharerer .share-btn { padding: 8px; border-width: 1px; border-style: solid; border-color: var(--grey-20); margin-right: 8px; }
.share-btn { color: var(--primary); }
.share-btn:hover { background-color: var(--light-grey); color: var(--black); }
.share-btn-link .copied { display: inline-block; position: absolute; top: 100%; right: 0; color: var(--white); padding: 6px 8px; display: none; background-color: green; }

/* progress bar */
.c-progress { display: block; -webkit-position: sticky; position: sticky; top: 52px; left: 0; width: 100%; height: 4px; background: transparent; border: none; color: var(--primary); z-index: 10; line-height: var(--straight-line); -webkit-appearance: none; appearance: none; }
.c-progress::-webkit-progress-bar { background: transparent; }
.c-progress::-webkit-progress-value { background: var(--primary); }
.c-progress::-moz-progress-bar { background: var(--primary); }

/* Post Parts Pagination */
.post-pages-links span, .post-pages-links a { display: inline-block; margin: 0 24px; }
.post-pages-links a { border: 2px solid var(--primary); }
.post-pages-links > :nth-child(1) { margin-left: 0; }

/* Post Author Box */
.wp-post-author-wrap h3.awpa-title { margin-bottom: 16px; }
.wp-post-author-wrap a { border-bottom:  0; }
.wp-post-author-wrap a:hover { color: var(--primary); }



/**
FRONT PAGE
**/

.right-now { display: none; }

/* shared */
.init { margin-bottom: 64px; }

.init-box { position: relative; font-family: 'IBM Plex Mono',monospace; border-width: 0 0 1px; border-style: solid; border-color: var(--grey-70); }
.init-box a { display: grid; grid-template-columns: minmax(88px, 25%) 1fr; border: 0; min-height: 160px; align-items: stretch; }
.init-box .cover-img { background-size: contain; background-position: center; }
.init-box article { padding: 8px; }
.init-box article h2 { font-family: 'Grenze',serif; font-weight: 700; line-height: var(--undercut-line); font-size: var(--mid-text); margin: 8px 0 12px; }
.init-box article p.meta { margin: 8px 0 0; }
.init-box.the-cover article { padding: 8px; margin: 0 }
.init-box.the-cover article p.meta { grid-template: auto auto / auto; }
.init-box.the-podcast { margin-bottom: 0; padding: 0; border-width: 1px 0; }

/* the latest */
.init .the-latest { margin: 40px 0; }
.init .the-latest .feed-item { padding: 0; border: 0; margin: 0; }
.init .the-latest .feed-item.category-album-reviews p.meta { display: block; }
.init .the-latest p.upper-meta { margin-top: 0; }
.init .the-latest figure.latest-post-thumbnail { margin: 0; }
.init .the-latest figure.latest-post-thumbnail a { display: block; border: none; }
.init .the-latest article { padding: 8px 8px 0; }
.init .the-latest article h3 { margin: 8px 0 0; }
.init .the-latest article p.excerpt { margin: 16px 0; }
.init .the-latest article p.excerpt a { border: 0; }
.init .the-latest .sharerer { display: none; }


.right-now-close { background-color: var(--black); margin-bottom: 48px; }
.right-now-close .hit-wrap { display: grid; grid-template: auto auto / auto auto; padding:  40px 0 24px; }
.right-now-close .hit-wrap .hit { border-bottom: 4px solid var(--primary); margin: 0 16px 16px; }
.right-now-close .hit-wrap .hit a { display: block; border: 0; padding-bottom: 16px; color: var(--grey-20); font-weight: normal; }
.right-now-close .hit-wrap .hit a figure { margin: 0 0 8px; min-height: 200px; display: flex; align-items: center; background-size: 50%; background-position: center center; background-repeat: repeat; }
.right-now-close .hit-wrap .hit a p { margin: 0; font-family: 'Archivo Black',sans-serif; line-height: var(--std-line); font-size: var(--xs-text); text-transform: uppercase; color: var(--primary); }
.right-now-close .hit-wrap .hit a p strong { display: block; font-family: 'Literata',serif; text-transform: none; font-size: var(--small-text); color: var(--grey-20); }



.primary { border-width: 0 0 1px; border-style: solid; border-color: var(--black); }

/* feed */
.feed { padding-bottom: 32px; margin-bottom: 48px; border-width: 0 0 1px; border-color: var(--black); border-style: solid; }
.home .feed .feed-item:last-child { margin-bottom: 0; border: 0; }
.primary .feed { border: 0; padding: 0; }
.feed-item { margin: 0 8px; padding: 40px 0; border-width: 0 0 1px; border-style: solid; border-color: var(--grey-50); }
.feed-item figure { margin: 0; }
.feed-item article { padding: 8px; }
.feed-item article small.upper-meta a { border: 0; color: var(--primary); }
.feed-item article small.upper-meta a:hover { color: var(--black); }
.feed-item article small.upper-meta svg { margin-top: -2px; }
.feed-item article h3 { margin: 16px 0; font-size: var(--mid-text); line-height: var(--std-line); }
.feed-item article .meta p { padding: 0; }

.feed-item.feature figure { margin: 24px auto; }
.feed-item.feature figure a { border: 0; }
.feed-item.feature article { text-align: center; width: calc(100% - 32px); margin: auto; background-color: var(--white); padding: 24px 16px; }
.feed-item.feature article h3 { margin-top: 0; font-size: var(--xl-text); line-height: var(--undercut-line); }
.feed-item.feature article h3 a { font-family: 'Grenze',serif; font-weight: 700; line-height: var(--undercut-line); }
.feed-item.feature article p.meta { display: block; }
.feed-item.feature .summary { font-family: 'Archivo',sans-serif; font-weight: 600; color: var(--grey-70); }
.feed-item.feature .summary a { border: 0; }
.feed-item.feature .sharerer { justify-content: center; }

.feed-item.gallery a { border-width: 12px 0; border-style: solid; border-color: var(--black); -webkit-transition-property: all; transition-property: all; -webkit-transition-duration: .5s; transition-duration: .5s; -webkit-transition-timing-function: ease; transition-timing-function: ease; }
.feed-item.gallery a:hover { border-color: var(--primary); }
.feed-item.gallery .hm-live-box { position: relative; margin: -32px 0 0 32px; background-color: var(--white); padding: 16px; }
.feed-item.gallery a:hover .hm-live-box { background-color: var(--black); }
.feed-item.gallery h3 { font-family: 'IBM Plex Mono',monospace; margin: 0 0 8px; font-size: var(--root-text); color: var(--primary); }
.feed-item.gallery a:hover h3 { color: var(--primary); }
.feed-item.gallery small.meta { margin: 8px 0 0; }
.feed-item.gallery a:hover small.meta { border: 0; color: var(--primary); }
.feed-item.gallery article dl { padding: 0; display: grid; grid-template: auto / minmax(40px,80px) auto; }
.feed-item.gallery article dl dt, .feed .feed-item.gallery article dl dd { padding: 4px 0; }
.feed-item.gallery .hm-live-box p { margin: 8px 0; }

.feed-item.category-hmtv figure a .play-btn { position: absolute; bottom: 24px; right: 24px; display: flex; justify-content: center; align-items: center; width: 64px; height: 40px; background-color: var(--primary); -webkit-transition-property: all; transition-property: all; -webkit-transition-duration: .3s; transition-duration: .3s; -webkit-transition-timing-function: ease; transition-timing-function: ease; }
.feed-item.category-hmtv figure a:hover .play-btn { background-color: var(--black); }

.feed .feed-item.feature,
.feed .feed-item.gallery { margin: 40px 0; }


/**
SEARCH
FORM
**/

.search-form { font-family: 'IBM Plex Mono',monospace; margin: 40px 0 0; }
.search-form p { margin-bottom: 16px; font-size: var(--xs-text); text-transform: uppercase; font-weight: 700; line-height: var(--std-line); color: var(--grey-50); }
.search-form p a { display: inline-block; margin-bottom: 8px; }
.search-form p strong { color: var(--primary); }
.search-form fieldset { line-height: var(--smedium-text); font-size: var(--small-text); }
.search-form fieldset input[type="text"],
.search-form fieldset input[type="text"]:active,
.search-form fieldset input[type="text"]:focus,
.search-form fieldset button {  border-radius: 0; border: 1px solid var(--black); }
.search-form fieldset input[type="text"] { padding: 12px; width: 100%; margin-bottom: 8px; }
.search-form fieldset button { padding: 12px 24px; background-color: var(--black); color: var(--white); display: block; width: 100%; }

/**
SIDE SWIPE
LATEST POSTS
GLOBAL CLASS
**/
.latest-posts-global { background-color: var(--light-grey); padding: 16px 16px 24px; margin-top: 40px; }
.latest-posts-global .feed-scroll-wrap { overflow: hidden; -webkit-overflow-scrolling: touch; }
.latest-posts-global .feed-scroll-wrap .feed::-webkit-scrollbar { display: none; }
.latest-posts-global .feed-scroll-wrap .feed { display: flex; overflow-x: scroll; border: 0; margin: 0; padding: 0; }
.latest-posts-global .feed-scroll-wrap .feed article { display: block; -webkit-box-flex: 0; flex: 0 0 75vw; max-width: 350px; padding: 0 24px; border-style: solid; border-width: 0 1px 0 0; border-color: var(--grey-20); }
.latest-posts-global .feed-scroll-wrap .feed article:first-child { padding-left: 0; border-left: none; }
.latest-posts-global .feed-scroll-wrap .feed article figure { margin-top: 0; }
.latest-posts-global .feed-scroll-wrap .feed article h4 { margin: 16px 0; }
.latest-posts-global .feed-scroll-wrap .feed .excerpt { font-size: var(--xs-text); }

.secondary .feed .feed-item.feature,
.secondary .feed .feed-item.gallery { border: 0; margin: 24px 0; }

.secondary .feed.reviews .feed-item { border: 0; padding: 0 0 24px; }
.secondary .feed.reviews p.archive-link { margin-top: 0; }

.secondary .feed.hmtv article { margin: 0 8px; }
.secondary .feed.hmtv article .hmtv-video { margin-bottom: 16px; }
.secondary .feed.hmtv article h3 { margin-top: 16px; font-size: var(--root-text); }
.secondary .feed.hmtv .more-hmtv { margin-top: 32px; }
.secondary .feed.hmtv .more-hmtv p.meta { margin-left: 8px; margin-right: 8px; }
.secondary .feed.hmtv .more-hmtv figure { margin-top: 0; }
.secondary .feed.hmtv .more-hmtv h4 { font-size: var(--small-text); line-height: var(--std-line); margin: 16px 0 24px; }



/**
FEATURES
**/
.single-feature .base-wrap { padding: 8px; }
.single-feature .primary { border: 0; }
.single-feature .features-header { padding: 48px 0 16px; }
.single-feature .features-header .header-content { margin-bottom: 80px; }
.single-feature .features-header small { margin-bottom: 8px; }
.single-feature .features-header figure figcaption { color: var(--light-grey); background-color: var(--black); }

.single-feature .features-header h1, .single-feature .features-header h2 { font-family: 'Grenze',serif; color: var(--primary); margin: 0 0 40px; }
.single-feature .features-header h1 { font-size: 4rem; line-height: var(--undercut-line); }
.single-feature .features-header h2 { font-size: var(--small-text); line-height: var(--high-line); font-family: 'IBM Plex Mono',monospace; font-weight: 400; }
.single-feature .features-header p.meta { display: flex; margin: 8px 0; }
.single-feature .features-header p.meta small { margin: 0; }

.single-feature .features-header .row-two .primary .sharerer { display: none; }
.single-feature .featured-img { margin-top: 0; margin-bottom: 0; padding: 120px 0; background-position: center; }
.single-feature .featured-img, .single-feature .features-content .fluid-width-video-wrapper, .single-feature .features-content .wp-caption, .single-feature .features-content blockquote { margin: 48px 0 48px -8px; width: calc(100% + 16px); }
.single-feature .features-content { padding-bottom: 64px; }



/**
SINGULAR
BASE
**/
.single h1 { margin: 16px 0; }
.singular-wrap article figure.feat-img { width: calc(100% + 16px); margin: 24px 0 24px -8px; }
.singular-wrap article .feed-item figure.feat-img { width: 100%; margin: 0; }
/* album reviews */
.category-album-reviews .singular-wrap article figure.feat-img { margin: 0 0 24px; }


/* sidebars on singular */
.singular-wrap .mast-runner { display: none; }
.singular-wrap main,
.singular-wrap .triple-runner { padding: 8px; }

.singular-wrap .mast-runner-perm { padding: 8px; }


/* related posts */
.related-posts a { display: block; margin: 32px 0; border: 0; }
.related-posts a p { display: inline; border-bottom: 2px solid var(--primary); line-height: var(--high-line); -webkit-transition-property: all; transition-property: all; -webkit-transition-duration: .3s; transition-duration: .3s; -webkit-transition-timing-function: ease; transition-timing-function: ease; }
.related-posts a:hover p { color: var(--primary); }
.related-posts a p.meta { display: block; margin-top: 16px; border: 0; }


/**
HMTV
**/
.hmtv-video { background-color: var(--black); padding: 8px 8px 32px; width: calc(100% + 16px); margin: 40px 0 48px -8px; }
.hmtv-video a.intro { font-family: 'Archivo Black',sans-serif; font-size: var(--small-text); color: var(--white); display: block; margin: 8px 0 16px; font-weight: 700; text-align: center; padding-bottom: 4px; }

/* Responsive video embeds (oEmbed output).
   Video iframes were previously emitted at a fixed 560x315 with no CSS
   constraining them, so on a phone they overflowed their container on a theme
   that is otherwise responsive. The wrapper holds a 16:9 box and the iframe
   fills it. */
.hm-video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background-color: var(--black); }
.hm-video-embed iframe,
.hm-video-embed object,
.hm-video-embed embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }


/**
ALBUM
REVIEWS
**/
.category-album-reviews p.meta { margin: 0 0 8px 0; }
.category-album-reviews article { padding: 0; }
.category-album-reviews figure.feat-img { margin-bottom: 16px; }

.archive.category-album-reviews main .feed-item .album-info .meta { display: none; }
.archive.category-album-reviews main .feed-item .excerpt { display: none; }

.home .review-guts, .archive .review-guts { display: grid; grid-template: auto / minmax(80px,30%) auto; column-gap: 16px; border: 0; margin-bottom: 16px; color: var(--black); }
.archive .review-guts { display: grid; grid-template: auto / minmax(80px,30%) auto; column-gap: 16px; border: 0; margin-bottom: 16px; color: var(--black); }

.review-guts .album-info h3 { margin: 0 0 8px; font-family: 'Archivo',sans-serif; font-size: var(--root-text); }
.review-guts:hover h3 { color: var(--black); }
.review-guts .album-info p.album-name { margin: 8px 0 16px; font-family: 'Archivo Black',sans-serif; line-height: var(--straight-line); font-size: var(--root-text); }
.review-guts:hover .album-info p.album-name { color: var(--black); }
.review-guts .album-info .rating { display: flex; margin: 8px 0; }
.review-guts .album-info .rating svg { width: 24px; height: 22px; margin-right: 4px; }

.header-review-guts { margin: 24px 0; border-color: var(--primary); border-width: 1px; border-style: solid; padding: 24px; }
.header-review-guts p.meta { margin: 16px 0 0; }
.header-review-guts .album-info { display: block; margin-bottom: 16px; }
figure.album-cover { margin: 0; }
.rating { display: flex; margin: 8px 0; }
.rating svg { width: 24px; height: 22px; margin-right: 4px; }
.album-info h1 { font-size: var(--mid-text); line-height: var(--std-line); margin: 0 0 16px; } 
.album-info h1 a { font-family: 'Archivo',sans-serif; text-decoration: none; border-bottom: 2px solid var(--primary); outline: 0; }
.album-info h1 a:hover { border-color: var(--black); color: var(--black); }
.album-info h2 { margin: 8px 0 16px; font-size: var(--large-text); line-height: var(--straight-line); }
.album-info h3 { margin: 0 0 8px; font-family: 'Archivo',sans-serif; font-size: var(--smedium-text); }
.album-info .excerpt { margin: 24px 0 0; font-weight: normal; line-height: var(--wide-line); }
.latest-posts-global .album-info .excerpt { margin: 16px 0 0; }

.review-guts { margin-bottom: 16px; }
.review-guts span { display: block; }
.play-embed iframe { width: 100%; }




/**
GALLERIES / HM LIVE
**/
.gallery-wrap main { margin-bottom: 80px; }

.gallery-header { height: calc(100vh - 53px); position: relative; margin-bottom: 40px; }
.gallery-header:after { content: ''; position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: rgba(0,0,0,.6); z-index: 1; }
.gallery-header .feat-img { margin: 0; height: calc(100vh - 53px); background-size: cover; }
.gallery-header .feat-img figcaption { position: absolute; bottom: 40px; right: 20px; width: 80%; display: inline-block; z-index: 2; background-color: transparent; color: var(--grey-20); }
.gallery-header .sharerer a svg { fill: var(--grey-20); }
.gallery-header .sharerer a.share-btn-reddit svg { fill: none; stroke: var(--grey-20); }
.gallery-header .sharerer a:hover svg { fill: var(--primary); }
.gallery-header .sharerer a.share-btn-reddit:hover svg { stroke: var(--primary); }
.gallery-header .hm-live-box { position: absolute; left: 20px; top: 20%; z-index: 2; width: 80%; }
.gallery-header .hm-live-box h1 { font-family: 'IBM Plex Mono',monospace; margin: 0 0 24px; font-size: var(--xl-text); color: var(--primary); }
.gallery-header .hm-live-box a { color: var(--light-grey); }
.gallery-header .hm-live-box dl { margin: 32px 0; padding: 0; display: grid; grid-template: auto / minmax(40px,80px) auto; font-size: var(--xs-text); text-transform: uppercase; font-weight: 700; line-height: var(--std-line); font-family: 'IBM Plex Mono', monospace; }
.gallery-header .hm-live-box dl dt { color: var(--grey-50); }
.gallery-header .hm-live-box dl dd { color: var(--grey-20); }
.gallery-header .hm-live-box dl dt, .gallery-header .hm-live-box dl dd { padding: 4px 0; }

.gallery-wrap main .sharerer { width: 100%; }
.gallery-wrap main .hm-live-specs { padding: 8px; margin-bottom: 32px; }
.gallery-wrap main .hm-live-specs p.meta { margin-top: 0; }
.gallery-wrap main figure.rolling-live { margin: 56px 0; }

.gallery-map { display: block; position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.gallery-map iframe { border: none !important; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }


/**
PODCASTS
**/
.article-header .podcast-banner { display: grid; column-gap: 16px; grid-template: auto / minmax(80px,110px) auto; margin: 32px 0; }
.article-header .podcast-banner .podcast-deets h3,
.article-header .podcast-banner .podcast-deets p { margin: 0 0 16px; }


/**
ARCHIVE
PAGES
**/
.archive .article-header,
.search .article-header { background-color: var(--black); color: var(--white); padding: 16px 8px; }
.archive .article-header a,
.search .article-header a { color: var(--grey-20); }
.archive .article-header figure,
.search .article-header figure { margin: 0 16px 16px 0; max-width: 36%; float: left; }
.archive .article-header figure a,
.search .article-header figure a { display: block; border: 0; }
.archive .article-header article.common,
.search .article-header article.common { font-family: 'IBM Plex Mono',monospace; margin: 2px 0 12px; font-size: var(--xs-text); line-height: var(--root-text); }
.archive .article-header article.common p,
.search .article-header article.common p { margin: 16px 0; }
.archive .article-header article.common p:first-child,
.search .article-header article.common p:first-child { margin-top: 0; }
.archive .article-header article.common p:last-child,
.search .article-header article.common p:last-child { margin-bottom: 0; }
.archive .article-header h1,
.search .article-header h1 { color: var(--primary); font-size: var(--root-text); margin: 0 0 6px; overflow-wrap: break-word; word-wrap: break-word; }
.archive .article-header .social,
.search .article-header .social { clear: left; padding-top: 12px; border-top: 1px solid var(--primary); }

.archive .article-header .sharerer { grid-auto-columns: 24px; grid-auto-rows: 24px; margin-right: 0; }
.archive .article-header .sharerer a { font-family: 'IBM Plex Mono',monospace; font-size: var(--xs-text); line-height: var(--high-line); padding: 0; border: 0; color: var(--grey-20); background-color: transparent; }
.archive .article-header .sharerer a svg { fill: var(--grey-20); width: 16px; height: 16px; margin-top: -4px; }
.archive .article-header .sharerer a:hover { color: var(--primary); }
.archive .article-header .sharerer a:hover svg { fill: var(--primary); }

.archive .feed-item { margin: 0; }
.archive .mast-runner { padding: 24px 8px 0; margin-bottom: 24px; }
.archive .mast-runner .article-header h1 { margin: 0 0 8px; }
/**
BlackSheep Podcast
Customisation
**/
.archive.term-blacksheep .article-header h1 { position: absolute; top: -9999px; left: 0; }
.archive.term-blacksheep .primary h1 { margin-top: 48px; margin-bottom: 0; }
.archive.term-blacksheep .article-header figure { float: none; width: 100%; max-width: 100%; }
.archive.term-blacksheep .article-header figure .bs-square { display: block; }
.archive.term-blacksheep .article-header figure .bs-wide { display: none; }
.archive.term-blacksheep .article-header figure .bs-wide-thin { display: none; }


/**
FOOTER
**/

footer { margin: 80px 0 0; padding: 80px 8px; background-color: var(--light-grey); }
footer .footer-content h3 { margin: 32px 0 24px; }
footer .footer-content a { font-weight: normal; }
footer .footer-content p { margin-top: 16px; }
footer .footer-content .widget { border-top: 2px solid var(--grey-50); margin: 0 0 80px; }
footer .footer-content .widget .menu { list-style: none; margin: 0; padding: 0; }
footer .footer-content .widget .menu a { display: inline-block; font-weight: normal; }

footer small.colophon { margin: 80px 0 0; }



/**
WP-SPECIFIC
**/
.base-wrap .wp-pagenavi { margin: 48px 0; }
.base-wrap .wp-pagenavi a, .base-wrap .wp-pagenavi span { display: inline-block; padding: 8px 9px; }



@media only screen and (min-width: 480px) {
	
	/**
	BlackSheep
	Customisation
	**/
	.archive.term-blacksheep .article-header figure .bs-wide-thin { display: block; }
	.archive.term-blacksheep .article-header figure .bs-square { display: none; }
	
}



/* iPad first generation portrait */
@media only screen and (min-width: 768px) {

    /**
    SINGULAR
    BASE
    **/
    main .the-entry,
    main .sharerer,
    main .category-hmtv figure.feat-img { width: 80%; margin: 24px auto; }

	main div.the-entry { margin-bottom: 0; }
    
    .search-form { margin: 40px 0; }
    .search-form fieldset { display: flex; }
    .search-form fieldset input[type="text"] { margin-bottom: 0; }
    .search-form fieldset button { margin-left: 8px; width: auto; }
	
	
	/**
	ARCHIVE
	PAGES
	**/
	.archive main .the-entry,
	.archive main .sharerer,
	.archive main .feed-item figure.feat-img { width: 100%; margin: 0; }
	.archive .article-header figure { width: 15%; max-width: 200px; }
	.archive.author .article-header article.common { width: 50%; }
	/**
	Author
	Customisation
	**/
	.archive.author .mast-runner .article-header figure { width: 100%; max-width: 100%; float: none; }
	.archive.author .mast-runner .article-header article.common { width: 100%; }
	/**
	BlackSheep
	Customisation
	**/
	.archive.term-blacksheep .primary .feed { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
	.archive.term-blacksheep .primary .feed .feed-item { flex-basis: 48%; border: 0; }
	.archive.term-blacksheep .primary .feed .feed-item:first-child { padding-top: 40px; }
	
	/**
	ALBUM
	REVIEWS
	**/
    .archive.category-album-reviews main .feed { display: grid; grid-template: auto / 50% 50%; column-gap: 24px; row-gap: 24px; }
    .archive.category-album-reviews main .feed .feed-item { padding-top: 0; }
    .archive.category-album-reviews main .feed-item figure.feat-img,
    .archive main .feed-item.category-album-reviews figure.feat-img { margin-bottom: 16px; }
    .archive.category-album-reviews main .feed-item figure.feat-img a { height: 260px; overflow: hidden; display: flex; justify-content: center; align-items: center; }
	.archive .review-guts { grid-template: auto / minmax(80px,30%) auto; }
    .archive.category-album-reviews main .wp-pagenavi { grid-column: span 2; }
    .archive.category-album-reviews.search-no-results main .feed { grid-template: none; }
    
    /**
    FOOTER
    **/
    footer .footer-content { display: flex; justify-content: space-between; align-items: stretch; }
    footer .footer-content .widget { flex-basis: 48%; }
    
}



/* iPad first generation landscape */
@media only screen and (min-width: 1024px) {
    
    h1 { font-size: var(--xl-text); }
    header { padding: 8px 16px; }
	
	p.archive-link { margin: 32px 0 0; }
    
    .right-now { display: flex; align-items: center; justify-content: center; background-color: var(--black); color: var(--primary); padding: 4px 0; position: relative; margin-top: -1px; z-index: 9; }
    .right-now small { color: var(--white); }

    .init { display: flex; }
    .init section a:hover small, .init .init-box.the-podcast a:hover small, .init section a:hover h2, .init .init-box.the-podcast a:hover h2 { color: var(--black); }
    .init .init-box { width: 28%; padding: 16px 16px 0; margin: 0; background-color: var(--white); border: 0; }
    .init .init-box a { display: block; }
    .init .init-box article { margin: 0; padding: 16px 0; }
    .init .init-box.the-cover article p.meta { display: block; }
    .init .init-box .cover-img { width: 100%; }
    .init .init-box .cover-img:after { content: ''; display: block; padding-bottom: 100%; }
    .init .init-box .cover-img img { display: none; }
    
    .init .init-box.the-podcast small { color: var(--grey-50); }
    .init .the-latest { margin: 0; padding: 16px 0 0; width: 70%; }
    .init .the-latest p.upper-meta { display: none; }
    .init .the-latest figure { margin: 0; }
    .init .the-latest .category-album-reviews figure { margin-bottom: 16px; }
    .init .the-latest article { padding: 0; }
    .init .the-latest article h3 { font-size: var(--mid-text); line-height: var(--undercut-line); }
	.init .the-latest article p.exclusive-badge { margin: 0; }
    
	.lower-home { max-width: 984px; margin: auto; display: flex; justify-content: space-between; }
	.lower-home .primary { width: 616px; }
	.lower-home .secondary { width: 328px; }
	
	.right-now-close .hit-wrap { grid-template: auto / auto auto auto auto; }
	.right-now-close .hit-wrap .hit:hover { border-bottom: 4px solid var(--white); }
	.right-now-close .hit-wrap .hit:hover p { color: var(--white); }
	
	.feed { margin-bottom: 0; }
	.feed .feed-item { margin: 0; }
	.feed .feed-item:first-child { padding-top: 0; }
	.feed .feed-item.feature,
	.feed .feed-item.gallery { margin: 40px 0; }

    .primary { border: 0; }
	.secondary p.upper-meta { padding: 0; }
    .secondary .feed.reviews article { padding: 0; }
    .secondary .feed:first-child { border-top: 0; }
    .secondary .feed:first-child p.upper-meta { margin-top: 0; }
	
	
    
    footer { width: 100%; padding: 80px 16px; }
    footer .footer-content, footer small.colophon { max-width: 944px; margin: 0 auto; }
    footer .footer-content .widget { margin: 0; }
    footer small.colophon { margin: 40px auto 0; }
    
    
    /**
    POSTS / HMTV
    **/
    .singular-wrap main { width: 58%; max-width: 1024px; padding: 8px; margin-left: auto; margin-right: auto; position: relative; }
	.singular-wrap main blockquote { font-size: var(--smedium-text); margin: 48px 0; }
    
    
    /**
    REVIEWS
    **/
    .header-review-guts { display: grid; grid-template: auto / minmax(80px,160px) auto; column-gap: 16px; margin: 32px 0; }
    .header-review-guts .album-info { order: 2; padding: 0; margin-bottom: 0; }
    .header-review-guts .album-cover { order: 1; }
    
    
    /* sidebars on singulars */
	.triple-runner .related-posts a.sidebar-thin-permalink { margin-top: 0; }
    .singular-wrap .mast-runner,
    .singular-wrap .mast-runner-perm,
    .singular-wrap .triple-runner { position: fixed; display: block; width: 204px; margin: 104px 0 0; opacity: 0; padding: 0 16px; }
    .singular-wrap .mast-runner-perm { opacity: 1; }
    .singular-wrap .mast-runner,
    .singular-wrap .mast-runner-perm { left: 0; }
    .singular-wrap .triple-runner { right: 0; }
    .singular-wrap .mast-runner .article-header h3,
    .singular-wrap .mast-runner-perm .article-header h3 { margin: 16px 0 8px; }
    .singular-wrap .mast-runner .article-header p.meta,
    .singular-wrap .mast-runner-perm .article-header p.meta { display: block; }
    
    .mast-runner-false .singular-wrap .mast-runner,
    .mast-runner-false .singular-wrap .triple-runner { top: -300px; opacity: 0; pointer-events: none; -webkit-transition: top .5s ease,left .5s ease,opacity .2s ease-in; transition: top .5s ease,left .5s ease,opacity .2s ease-in; }
    .mast-runner-true .singular-wrap .mast-runner,
    .mast-runner-true .singular-wrap .triple-runner { top: 0; opacity: 1; pointer-events: all; -webkit-transition: top .5s cubic-bezier(.19,1,.22,1),left .5s cubic-bezier(.19,1,.22,1),opacity .2s ease; transition: top .5s cubic-bezier(.19,1,.22,1),left .5s cubic-bezier(.19,1,.22,1),opacity .2s ease; }
    .mast-runner-true .singular-wrap .mast-runner p.meta:first-child,
    .mast-runner-true .singular-wrap .triple-runner p.meta:first-child { margin-top: 0; }
    
    
    /**
    FEATURES
    **/
   
    .single.single-feature .base-wrap { display: block; padding: 0; }
    
    .single-feature .features-header h1 { font-size: 6rem; }
	.single-feature .features-header .header-content { padding: 0 40px; }

    
    .single-feature .features-header .row-one, .single-feature .features-header .row-two { display: grid; grid-template-columns: 70% 30%; }
    .single-feature .features-header .row-two .primary .sharerer { display: flex; }
    .single-feature .features-header .row-two .secondary .sharerer { display: none; }
    
    .single-feature .features-content { max-width: 55%; margin: auto; }
    
    .single-feature .featured-img, .single-feature .features-content .fluid-width-video-wrapper, .single-feature .features-content .wp-caption, .single-feature .features-content blockquote { margin: 48px 0 48px -60px; width: calc(100% + 120px); }
    .single-feature .featured-img { margin: 48px 0 48px; width: 100%; }
    
    .single-feature .feature-share { margin: 48px 0 0; }
    
    
    /**
    GALLERIES /
    HM LIVE
    **/
    .gallery-header { margin-bottom: 56px; }
    .gallery-wrap main { width: 90%; margin: 0 auto 80px; }
    .gallery-wrap main .hm-live-specs { padding: 0; max-width: 600px; margin: auto; }
    .gallery-wrap main figure.rolling-live { margin: 80px 0; }
	
	
	/**
	ARCHIVE
	PAGES
	**/
	.archive .secondary, .archive .primary { margin: 0; padding: 24px 0; }
	.archive .article-header,
    .search .article-header { background-color: var(--black); color: var(--white); padding: 16px; }
	/**
	BlackSheep
	Customisation
	**/
	.archive.term-blacksheep .article-header article.common { width: 50%; }
	.archive.term-blacksheep .mast-runner .article-header figure .bs-square { display: block; }
	.archive.term-blacksheep .mast-runner .article-header article.common { width: 100%; }
	.archive.term-blacksheep .primary h1 { margin-bottom: 32px; }
	
    
}



/* iPhone 11 portrait */
@media only screen and (min-width: 1242px) {
    
    header { border-width: 0 0 1px; border-style: solid; border-color: var(--black); }
    
    .init .init-box.the-cover article p.meta { display: flex; }
    .init .init-box, .init .the-latest, .init .init-box.the-podcast { border: 0; }
    .init .the-latest article h3 { font-size: var(--xl-text); }
	
	.lower-home { max-width: 1240px; }
    .lower-home .primary { width: 740px; }
	.lower-home .secondary { width: 420px; }
    
    /**
    POSTS / HMTV
    **/
    .singular-wrap main .article-header, main .article-header, main .the-entry, main .sharerer,  main .category-hmtv figure.feat-img { margin: 24px auto; width: 82%; }
    .singular-wrap .mast-runner, .singular-wrap .triple-runner { width: 248px; }
    
    
    /**
    FEATURES
    **/
    .single-feature .features-content { max-width: 600px; margin: auto; }
	
	
	footer .footer-content, footer small.colophon { max-width: 1024px; }

    
}


/* Widescreens */
@media only screen and (min-width: 1440px) {
    
    /**
    POSTS / HMTV
    **/
    .singular-wrap main .article-header, main .article-header, main .the-entry, main .sharerer,  main .category-hmtv figure.feat-img { width: 70%; }
    .singular-wrap .mast-runner, .singular-wrap .triple-runner { width: 288px; }
	
	/**
	BlackSheep
	Customisation
	**/
	.archive.term-blacksheep .article-header figure .bs-wide { display: none; }
	.archive.term-blacksheep .article-header figure .bs-wide-thin { display: block; } 

}